package SHARK2.keymon.com.mx;


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

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

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public static class _titledata{
public boolean IsInitialized;
public String Title;
public void Initialize() {
IsInitialized = true;
Title = "";
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public SHARK2.keymon.com.mx.c_respaldodiario _rd = null;
public SHARK2.keymon.com.mx.dbrequestmanager _reqmanager = null;
public String _conectado = "";
public anywheresoftware.b4a.objects.IME _ime = null;
public anywheresoftware.b4a.objects.Timer _t1 = 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 _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 SHARK2.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 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.ImageViewWrapper _imageview9 = 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 SHARK2.keymon.com.mx.batteryutilities _bu = 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.PanelWrapper _panel5 = 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.PanelWrapper _p_mandainfo = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public anywheresoftware.b4a.objects.LabelWrapper _label22 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rutasuplencia = null;
public String _userpiezas = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_abordo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_abordo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_venta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_preventa = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_abordo = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel11 = null;
public b4a.example3.customlistview _clv_pick_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_pick_ciego = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pick_ciego = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pick_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
public String _q_buscar = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_buspc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_tabulador = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_b_tabulador = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlcobranza = null;
public b4a.example3.customlistview _clvcobranza = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlbtncobranza = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btncobranza = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlbtnregresar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btnregresar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_secuencia = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlcontenedorcobranza = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_nombre = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cuentaxcobrar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_abono = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlcabecero = null;
public anywheresoftware.b4a.objects.LabelWrapper _lblabono = null;
public anywheresoftware.b4a.objects.LabelWrapper _lblsaldo = null;
public anywheresoftware.b4a.objects.LabelWrapper _lblcliente = null;
public anywheresoftware.b4a.objects.LabelWrapper _lblsec = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnltotal = null;
public anywheresoftware.b4a.objects.LabelWrapper _lbltotal = null;
public anywheresoftware.b4a.objects.LabelWrapper _lblversion = null;
public anywheresoftware.b4a.objects.collections.List _lista_punta = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prod = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_prod_prin = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regreso = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_productos = null;
public b4a.example.dateutils _dateutils = null;
public SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=13369344;
 //BA.debugLineNum = 13369344;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=13369345;
 //BA.debugLineNum = 13369345;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=13369346;
 //BA.debugLineNum = 13369346;BA.debugLine="End Sub";
return null;
}
public String  _addtitle(SHARK2.keymon.com.mx.c_principal __ref,String _title) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "addtitle", false))
	 {return ((String) Debug.delegate(ba, "addtitle", new Object[] {_title}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p_marcas = null;
SHARK2.keymon.com.mx.c_principal._titledata _td = null;
RDebugUtils.currentLine=15597568;
 //BA.debugLineNum = 15597568;BA.debugLine="Sub AddTitle (Title As String)";
RDebugUtils.currentLine=15597569;
 //BA.debugLineNum = 15597569;BA.debugLine="Dim p_MARCAS As B4XView = xui.CreatePanel(\"\")";
_p_marcas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p_marcas = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=15597570;
 //BA.debugLineNum = 15597570;BA.debugLine="p_MARCAS.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
_p_marcas.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._clv1 /*b4a.example3.customlistview*/ ._asview().getWidth(),__ref._titleheight /*int*/ );
RDebugUtils.currentLine=15597571;
 //BA.debugLineNum = 15597571;BA.debugLine="p_MARCAS.LoadLayout(\"CellTitle\")";
_p_marcas.LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=15597572;
 //BA.debugLineNum = 15597572;BA.debugLine="lblTitle.Text = Title";
__ref._lbltitle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_title));
RDebugUtils.currentLine=15597573;
 //BA.debugLineNum = 15597573;BA.debugLine="Dim td As TitleData";
_td = new SHARK2.keymon.com.mx.c_principal._titledata();
RDebugUtils.currentLine=15597574;
 //BA.debugLineNum = 15597574;BA.debugLine="td.Title = Title";
_td.Title /*String*/  = _title;
RDebugUtils.currentLine=15597575;
 //BA.debugLineNum = 15597575;BA.debugLine="CLV1.Add(p_MARCAS, td)";
__ref._clv1 /*b4a.example3.customlistview*/ ._add(_p_marcas,(Object)(_td));
RDebugUtils.currentLine=15597576;
 //BA.debugLineNum = 15597576;BA.debugLine="End Sub";
return "";
}
public String  _b_comm_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_comm_click", false))
	 {return ((String) Debug.delegate(ba, "b_comm_click", null));}
RDebugUtils.currentLine=15400960;
 //BA.debugLineNum = 15400960;BA.debugLine="Sub B_COMM_Click";
RDebugUtils.currentLine=15400961;
 //BA.debugLineNum = 15400961;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400962;
 //BA.debugLineNum = 15400962;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400963;
 //BA.debugLineNum = 15400963;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"COMIS\")";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("COMIS",ba);
RDebugUtils.currentLine=15400964;
 //BA.debugLineNum = 15400964;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel_C.Height";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=15400965;
 //BA.debugLineNum = 15400965;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400966;
 //BA.debugLineNum = 15400966;BA.debugLine="Panel_C.Visible = True";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400969;
 //BA.debugLineNum = 15400969;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400970;
 //BA.debugLineNum = 15400970;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400971;
 //BA.debugLineNum = 15400971;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400972;
 //BA.debugLineNum = 15400972;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400973;
 //BA.debugLineNum = 15400973;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400974;
 //BA.debugLineNum = 15400974;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400992;
 //BA.debugLineNum = 15400992;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_mapa_click", false))
	 {return ((String) Debug.delegate(ba, "b_mapa_click", null));}
RDebugUtils.currentLine=14286848;
 //BA.debugLineNum = 14286848;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=14286849;
 //BA.debugLineNum = 14286849;BA.debugLine="Log(\"mapClic\")";
__c.LogImpl("514286849","mapClic",0);
RDebugUtils.currentLine=14286850;
 //BA.debugLineNum = 14286850;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
_b4xpages._getpage /*Object*/ (ba,"Mapas");
RDebugUtils.currentLine=14286851;
 //BA.debugLineNum = 14286851;BA.debugLine="End Sub";
return "";
}
public String  _b_marcas_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_marcas_click", false))
	 {return ((String) Debug.delegate(ba, "b_marcas_click", null));}
int _i = 0;
RDebugUtils.currentLine=15532032;
 //BA.debugLineNum = 15532032;BA.debugLine="Sub B_MARCAS_Click";
RDebugUtils.currentLine=15532057;
 //BA.debugLineNum = 15532057;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15532058;
 //BA.debugLineNum = 15532058;BA.debugLine="Panel5.Visible = True";
__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15532059;
 //BA.debugLineNum = 15532059;BA.debugLine="pnlTitle.Visible = False";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15532060;
 //BA.debugLineNum = 15532060;BA.debugLine="pnlTitle.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._clv1 /*b4a.example3.customlistview*/ ._asview().getWidth(),(int) (__ref._titleheight /*int*/ +__ref._dividerheight /*int*/ ));
RDebugUtils.currentLine=15532061;
 //BA.debugLineNum = 15532061;BA.debugLine="pnlTitle.LoadLayout(\"CellTitle\")";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=15532062;
 //BA.debugLineNum = 15532062;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_GP";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_GP_CLASIF, SUM(TOTAL) AS TOTAL FROM TOTAL_MARCAS GROUP BY CAT_GP_CLASIF")));
RDebugUtils.currentLine=15532063;
 //BA.debugLineNum = 15532063;BA.debugLine="CLV1.Clear";
__ref._clv1 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=15532064;
 //BA.debugLineNum = 15532064;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15532065;
 //BA.debugLineNum = 15532065;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=15532066;
 //BA.debugLineNum = 15532066;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15532067;
 //BA.debugLineNum = 15532067;BA.debugLine="AddTitle(c.GetString(\"CAT_GP_CLASIF\"))";
__ref._addtitle /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF"));
RDebugUtils.currentLine=15532068;
 //BA.debugLineNum = 15532068;BA.debugLine="If c.GetString(\"CAT_GP_CLASIF\") = \"PROMOS\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")).equals("PROMOS")) { 
RDebugUtils.currentLine=15532069;
 //BA.debugLineNum = 15532069;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID")));
RDebugUtils.currentLine=15532070;
 //BA.debugLineNum = 15532070;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=15532071;
 //BA.debugLineNum = 15532071;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD DE PROMOS = \" & d.G";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CANTIDAD DE PROMOS = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=15532072;
 //BA.debugLineNum = 15532072;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=15532074;
 //BA.debugLineNum = 15532074;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery2(\"select CO";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=15532075;
 //BA.debugLineNum = 15532075;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=15532076;
 //BA.debugLineNum = 15532076;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=15532077;
 //BA.debugLineNum = 15532077;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select H";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HMC_MARCA, HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=15532078;
 //BA.debugLineNum = 15532078;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=15532079;
 //BA.debugLineNum = 15532079;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT c";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT count(distinct(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from cat_gunaprod WHERE CAT_GP_CLASIF =?)",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=15532080;
 //BA.debugLineNum = 15532080;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=15532081;
 //BA.debugLineNum = 15532081;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")),(Object)("1"));
RDebugUtils.currentLine=15532082;
 //BA.debugLineNum = 15532082;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & e.GetString";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("M E T A  = $"+__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")),(Object)("1"));
RDebugUtils.currentLine=15532083;
 //BA.debugLineNum = 15532083;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (e.GetString(";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("FALTA  = $"+BA.NumberToString(((double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))))),(Object)("1"));
RDebugUtils.currentLine=15532084;
 //BA.debugLineNum = 15532084;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=15532085;
 //BA.debugLineNum = 15532085;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=15532086;
 //BA.debugLineNum = 15532086;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=15532088;
 //BA.debugLineNum = 15532088;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT c";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT count(distinct(pe_cliente)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from cat_gunaprod WHERE CAT_GP_CLASIF =?)",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=15532089;
 //BA.debugLineNum = 15532089;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=15532090;
 //BA.debugLineNum = 15532090;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")),(Object)("1"));
RDebugUtils.currentLine=15532091;
 //BA.debugLineNum = 15532091;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & \"1000\",\"1\")";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("M E T A  = $"+"1000"),(Object)("1"));
RDebugUtils.currentLine=15532092;
 //BA.debugLineNum = 15532092;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (1000 - c.Get";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("FALTA  = $"+BA.NumberToString((1000-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))))),(Object)("1"));
RDebugUtils.currentLine=15532093;
 //BA.debugLineNum = 15532093;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=15532094;
 //BA.debugLineNum = 15532094;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=15532096;
 //BA.debugLineNum = 15532096;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
 }
};
 };
RDebugUtils.currentLine=15532100;
 //BA.debugLineNum = 15532100;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=15532101;
 //BA.debugLineNum = 15532101;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HMC_MA";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HMC_MARCA,  HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA  not in (SELECT  CAT_GP_CLASIF FROM TOTAL_MARCAS )")));
RDebugUtils.currentLine=15532102;
 //BA.debugLineNum = 15532102;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15532103;
 //BA.debugLineNum = 15532103;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step47 = 1;
final int limit47 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit47 ;_i = _i + step47 ) {
RDebugUtils.currentLine=15532104;
 //BA.debugLineNum = 15532104;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15532105;
 //BA.debugLineNum = 15532105;BA.debugLine="AddTitle(c.GetString(\"HMC_MARCA\"))";
__ref._addtitle /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_MARCA"));
RDebugUtils.currentLine=15532106;
 //BA.debugLineNum = 15532106;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $ 0.00\",\"1\"";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $ 0.00"),(Object)("1"));
RDebugUtils.currentLine=15532107;
 //BA.debugLineNum = 15532107;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & C.GetString(\"";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("M E T A  = $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")),(Object)("1"));
RDebugUtils.currentLine=15532108;
 //BA.debugLineNum = 15532108;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = 0\",\"1\")";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = 0"),(Object)("1"));
 }
};
 };
RDebugUtils.currentLine=15532111;
 //BA.debugLineNum = 15532111;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=15532114;
 //BA.debugLineNum = 15532114;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_comiss_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_comiss_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_comiss_click", null));}
RDebugUtils.currentLine=15466496;
 //BA.debugLineNum = 15466496;BA.debugLine="Sub B_OK_COMISS_Click";
RDebugUtils.currentLine=15466497;
 //BA.debugLineNum = 15466497;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466498;
 //BA.debugLineNum = 15466498;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466499;
 //BA.debugLineNum = 15466499;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466500;
 //BA.debugLineNum = 15466500;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466501;
 //BA.debugLineNum = 15466501;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15466502;
 //BA.debugLineNum = 15466502;BA.debugLine="Panel_C.Visible = False";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15466503;
 //BA.debugLineNum = 15466503;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15466504;
 //BA.debugLineNum = 15466504;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466505;
 //BA.debugLineNum = 15466505;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_panel5_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_panel5_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_panel5_click", null));}
RDebugUtils.currentLine=15663104;
 //BA.debugLineNum = 15663104;BA.debugLine="Sub B_OK_PANEL5_Click";
RDebugUtils.currentLine=15663105;
 //BA.debugLineNum = 15663105;BA.debugLine="Panel5.Visible = False";
__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15663106;
 //BA.debugLineNum = 15663106;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663107;
 //BA.debugLineNum = 15663107;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663108;
 //BA.debugLineNum = 15663108;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663109;
 //BA.debugLineNum = 15663109;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663110;
 //BA.debugLineNum = 15663110;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15663111;
 //BA.debugLineNum = 15663111;BA.debugLine="Panel4.Visible=False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15663112;
 //BA.debugLineNum = 15663112;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15663113;
 //BA.debugLineNum = 15663113;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663114;
 //BA.debugLineNum = 15663114;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15663116;
 //BA.debugLineNum = 15663116;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_pas_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_pas_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_pas_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _cn = null;
int _gh = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c12 = null;
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c13 = null;
RDebugUtils.currentLine=14548992;
 //BA.debugLineNum = 14548992;BA.debugLine="Sub B_OK_PAS_Click";
RDebugUtils.currentLine=14548993;
 //BA.debugLineNum = 14548993;BA.debugLine="If CARGA = \"SUBIR\" And S_CP.Text = \"INFO OK\" Then";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("INFO OK")) { 
RDebugUtils.currentLine=14548994;
 //BA.debugLineNum = 14548994;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14548995;
 //BA.debugLineNum = 14548995;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14548996;
 //BA.debugLineNum = 14548996;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14548998;
 //BA.debugLineNum = 14548998;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14548999;
 //BA.debugLineNum = 14548999;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549000;
 //BA.debugLineNum = 14549000;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549001;
 //BA.debugLineNum = 14549001;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549002;
 //BA.debugLineNum = 14549002;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549003;
 //BA.debugLineNum = 14549003;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 }else 
{RDebugUtils.currentLine=14549004;
 //BA.debugLineNum = 14549004;BA.debugLine="Else If CARGA = \"SUBIR\" And S_CP.Text = \"ERROR\" T";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("ERROR")) { 
RDebugUtils.currentLine=14549005;
 //BA.debugLineNum = 14549005;BA.debugLine="Msgbox(\"Tiene que subir de nuevo la información\"";
__c.Msgbox(BA.ObjectToCharSequence("Tiene que subir de nuevo la información"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=14549006;
 //BA.debugLineNum = 14549006;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549007;
 //BA.debugLineNum = 14549007;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549009;
 //BA.debugLineNum = 14549009;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549010;
 //BA.debugLineNum = 14549010;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549011;
 //BA.debugLineNum = 14549011;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549012;
 //BA.debugLineNum = 14549012;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549013;
 //BA.debugLineNum = 14549013;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549014;
 //BA.debugLineNum = 14549014;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 }else 
{RDebugUtils.currentLine=14549015;
 //BA.debugLineNum = 14549015;BA.debugLine="Else if CARGA = \"SUBIR\" And S_CP.Text <> \"INFO OK";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("INFO OK") == false) { 
RDebugUtils.currentLine=14549016;
 //BA.debugLineNum = 14549016;BA.debugLine="RES =  Msgbox2(\"Seguro que desea abortar el proc";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=14549017;
 //BA.debugLineNum = 14549017;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=14549018;
 //BA.debugLineNum = 14549018;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549020;
 //BA.debugLineNum = 14549020;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549021;
 //BA.debugLineNum = 14549021;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549022;
 //BA.debugLineNum = 14549022;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549023;
 //BA.debugLineNum = 14549023;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549024;
 //BA.debugLineNum = 14549024;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549025;
 //BA.debugLineNum = 14549025;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=14549026;
 //BA.debugLineNum = 14549026;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}}
;
RDebugUtils.currentLine=14549029;
 //BA.debugLineNum = 14549029;BA.debugLine="If CARGA = \"CARGAR\" And S_CP.Text = \"LISTO\" And S";
if ((__ref._carga /*String*/ ).equals("CARGAR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO")) { 
RDebugUtils.currentLine=14549030;
 //BA.debugLineNum = 14549030;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549031;
 //BA.debugLineNum = 14549031;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549032;
 //BA.debugLineNum = 14549032;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549033;
 //BA.debugLineNum = 14549033;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549035;
 //BA.debugLineNum = 14549035;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549036;
 //BA.debugLineNum = 14549036;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549037;
 //BA.debugLineNum = 14549037;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549038;
 //BA.debugLineNum = 14549038;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549039;
 //BA.debugLineNum = 14549039;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549040;
 //BA.debugLineNum = 14549040;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=14549042;
 //BA.debugLineNum = 14549042;BA.debugLine="Dim cn As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_cn = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cn = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CLIENTES_NUEVOS")));
RDebugUtils.currentLine=14549043;
 //BA.debugLineNum = 14549043;BA.debugLine="If cn.RowCount > 0 Then";
if (_cn.getRowCount()>0) { 
RDebugUtils.currentLine=14549044;
 //BA.debugLineNum = 14549044;BA.debugLine="For gh = 0 To cn.RowCount -1";
{
final int step47 = 1;
final int limit47 = (int) (_cn.getRowCount()-1);
_gh = (int) (0) ;
for (;_gh <= limit47 ;_gh = _gh + step47 ) {
RDebugUtils.currentLine=14549045;
 //BA.debugLineNum = 14549045;BA.debugLine="cn.Position = gh";
_cn.setPosition(_gh);
RDebugUtils.currentLine=14549046;
 //BA.debugLineNum = 14549046;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(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) 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)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_cn.GetString("CN_LON")),(Object)(_cn.GetString("CN_LAT")),(Object)(_cn.GetString("CN_GIRO"))}));
 }
};
 };
RDebugUtils.currentLine=14549050;
 //BA.debugLineNum = 14549050;BA.debugLine="If E_RUTA2.Text <> \"\" Then";
if ((__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=14549051;
 //BA.debugLineNum = 14549051;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_SUPLENCIA(RS_RUTA) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}));
 };
RDebugUtils.currentLine=14549053;
 //BA.debugLineNum = 14549053;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}));
RDebugUtils.currentLine=14549054;
 //BA.debugLineNum = 14549054;BA.debugLine="checaPedido";
__ref._checapedido /*String*/ (null);
RDebugUtils.currentLine=14549056;
 //BA.debugLineNum = 14549056;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 = 'PREVENTA'")));
RDebugUtils.currentLine=14549057;
 //BA.debugLineNum = 14549057;BA.debugLine="If c12.RowCount > 0 Then";
if (_c12.getRowCount()>0) { 
RDebugUtils.currentLine=14549058;
 //BA.debugLineNum = 14549058;BA.debugLine="For i = 0 To c12.RowCount - 1";
{
final int step59 = 1;
final int limit59 = (int) (_c12.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit59 ;_i = _i + step59 ) {
RDebugUtils.currentLine=14549059;
 //BA.debugLineNum = 14549059;BA.debugLine="c12.Position = i";
_c12.setPosition(_i);
RDebugUtils.currentLine=14549060;
 //BA.debugLineNum = 14549060;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_CANT")))+"  WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_PROID")))+"'"));
 }
};
 };
RDebugUtils.currentLine=14549063;
 //BA.debugLineNum = 14549063;BA.debugLine="c12.Close";
_c12.Close();
RDebugUtils.currentLine=14549065;
 //BA.debugLineNum = 14549065;BA.debugLine="Dim c13  As Cursor = Starter.skmt.ExecQuery(\"Sel";
_c13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c13 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  PE_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'VENTA'")));
RDebugUtils.currentLine=14549066;
 //BA.debugLineNum = 14549066;BA.debugLine="If c13.RowCount > 0 Then";
if (_c13.getRowCount()>0) { 
RDebugUtils.currentLine=14549067;
 //BA.debugLineNum = 14549067;BA.debugLine="For i = 0 To c13.RowCount - 1";
{
final int step67 = 1;
final int limit67 = (int) (_c13.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit67 ;_i = _i + step67 ) {
RDebugUtils.currentLine=14549068;
 //BA.debugLineNum = 14549068;BA.debugLine="c13.Position = i";
_c13.setPosition(_i);
RDebugUtils.currentLine=14549069;
 //BA.debugLineNum = 14549069;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD2 SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_CANT")))+"  WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_PROID")))+"'"));
 }
};
 };
RDebugUtils.currentLine=14549072;
 //BA.debugLineNum = 14549072;BA.debugLine="c13.Close";
_c13.Close();
RDebugUtils.currentLine=14549074;
 //BA.debugLineNum = 14549074;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }else 
{RDebugUtils.currentLine=14549075;
 //BA.debugLineNum = 14549075;BA.debugLine="Else if CARGA = \"CARGAR\" And (S_CP.Text <> \"LISTO";
if ((__ref._carga /*String*/ ).equals("CARGAR") && ((__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false || (__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false || (__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false)) { 
RDebugUtils.currentLine=14549076;
 //BA.debugLineNum = 14549076;BA.debugLine="RES =  Msgbox2(\"Seguro que desea abortar el proc";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=14549077;
 //BA.debugLineNum = 14549077;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=14549078;
 //BA.debugLineNum = 14549078;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549079;
 //BA.debugLineNum = 14549079;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549081;
 //BA.debugLineNum = 14549081;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549082;
 //BA.debugLineNum = 14549082;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549083;
 //BA.debugLineNum = 14549083;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549084;
 //BA.debugLineNum = 14549084;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14549085;
 //BA.debugLineNum = 14549085;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14549086;
 //BA.debugLineNum = 14549086;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=14549087;
 //BA.debugLineNum = 14549087;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=14549088;
 //BA.debugLineNum = 14549088;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=14549089;
 //BA.debugLineNum = 14549089;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=14549090;
 //BA.debugLineNum = 14549090;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=14549091;
 //BA.debugLineNum = 14549091;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=14549092;
 //BA.debugLineNum = 14549092;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=14549093;
 //BA.debugLineNum = 14549093;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod4");
RDebugUtils.currentLine=14549094;
 //BA.debugLineNum = 14549094;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=14549095;
 //BA.debugLineNum = 14549095;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=14549096;
 //BA.debugLineNum = 14549096;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=14549097;
 //BA.debugLineNum = 14549097;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=14549098;
 //BA.debugLineNum = 14549098;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=14549099;
 //BA.debugLineNum = 14549099;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=14549100;
 //BA.debugLineNum = 14549100;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=14549101;
 //BA.debugLineNum = 14549101;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}
;
RDebugUtils.currentLine=14549104;
 //BA.debugLineNum = 14549104;BA.debugLine="End Sub";
return "";
}
public String  _checapedido(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "checapedido", false))
	 {return ((String) Debug.delegate(ba, "checapedido", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
int _cor = 0;
RDebugUtils.currentLine=15859712;
 //BA.debugLineNum = 15859712;BA.debugLine="Sub checaPedido";
RDebugUtils.currentLine=15859713;
 //BA.debugLineNum = 15859713;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set ge";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 0");
RDebugUtils.currentLine=15859714;
 //BA.debugLineNum = 15859714;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE")));
RDebugUtils.currentLine=15859715;
 //BA.debugLineNum = 15859715;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15859716;
 //BA.debugLineNum = 15859716;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 2  WHERE CAT_CL_CODIGO IN (SELECT PC_CLIENTE FROM PEDIDO_CLIENTE)");
 };
RDebugUtils.currentLine=15859718;
 //BA.debugLineNum = 15859718;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE FROM NOVENTA")));
RDebugUtils.currentLine=15859719;
 //BA.debugLineNum = 15859719;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15859720;
 //BA.debugLineNum = 15859720;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 3  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA)");
 };
RDebugUtils.currentLine=15859723;
 //BA.debugLineNum = 15859723;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 COORDENADAS")));
RDebugUtils.currentLine=15859724;
 //BA.debugLineNum = 15859724;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
RDebugUtils.currentLine=15859725;
 //BA.debugLineNum = 15859725;BA.debugLine="For cor = 0 To coord.RowCount -1";
{
final int step12 = 1;
final int limit12 = (int) (_coord.getRowCount()-1);
_cor = (int) (0) ;
for (;_cor <= limit12 ;_cor = _cor + step12 ) {
RDebugUtils.currentLine=15859726;
 //BA.debugLineNum = 15859726;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
RDebugUtils.currentLine=15859727;
 //BA.debugLineNum = 15859727;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set  CAT_CL_LONG = ?, CAT_CL_LAT =?, CAT_CL_BCOORDENADAS = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("LAT")),(Object)(_coord.GetString("LONG")),(Object)((_coord.GetInt("CANTIDAD")+1)),(Object)(_coord.GetString("CLIENTE"))}));
 }
};
 };
RDebugUtils.currentLine=15859731;
 //BA.debugLineNum = 15859731;BA.debugLine="Private coord As Cursor = Starter.skmt.ExecQuery(";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ATIENDE")));
RDebugUtils.currentLine=15859732;
 //BA.debugLineNum = 15859732;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
RDebugUtils.currentLine=15859733;
 //BA.debugLineNum = 15859733;BA.debugLine="For cor = 0 To coord.RowCount -1";
{
final int step19 = 1;
final int limit19 = (int) (_coord.getRowCount()-1);
_cor = (int) (0) ;
for (;_cor <= limit19 ;_cor = _cor + step19 ) {
RDebugUtils.currentLine=15859734;
 //BA.debugLineNum = 15859734;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
RDebugUtils.currentLine=15859735;
 //BA.debugLineNum = 15859735;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set  CAT_CL_ATIENDE1 = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("ATIENDE")),(Object)(_coord.GetString("CLIENTE"))}));
 }
};
 };
RDebugUtils.currentLine=15859739;
 //BA.debugLineNum = 15859739;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 GIROS_ACTUAL")));
RDebugUtils.currentLine=15859740;
 //BA.debugLineNum = 15859740;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
RDebugUtils.currentLine=15859741;
 //BA.debugLineNum = 15859741;BA.debugLine="For cor = 0 To coord.RowCount -1";
{
final int step26 = 1;
final int limit26 = (int) (_coord.getRowCount()-1);
_cor = (int) (0) ;
for (;_cor <= limit26 ;_cor = _cor + step26 ) {
RDebugUtils.currentLine=15859742;
 //BA.debugLineNum = 15859742;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
RDebugUtils.currentLine=15859743;
 //BA.debugLineNum = 15859743;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set  CAT_CL_GIRO = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("GIRO")),(Object)(_coord.GetString("CLIENTE"))}));
 }
};
 };
RDebugUtils.currentLine=15859746;
 //BA.debugLineNum = 15859746;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {Debug.delegate(ba, "b4xpage_appear", null); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(SHARK2.keymon.com.mx.c_principal parent,SHARK2.keymon.com.mx.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_principal __ref;
SHARK2.keymon.com.mx.c_principal parent;
int _conven = 0;
int _sinven = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cursor = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cnoventa = null;
int _totclientes = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fg = null;
double _costo_cred = 0;
double _costo_contado = 0;
int _resultado = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pol = null;
int _poli = 0;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _coords = null;
int step210;
int limit210;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=13697026;
 //BA.debugLineNum = 13697026;BA.debugLine="rd.respaldaPedido";
__ref._rd /*SHARK2.keymon.com.mx.c_respaldodiario*/ ._respaldapedido /*String*/ (null);
RDebugUtils.currentLine=13697027;
 //BA.debugLineNum = 13697027;BA.debugLine="rd.respaldaInventarios";
__ref._rd /*SHARK2.keymon.com.mx.c_respaldodiario*/ ._respaldainventarios /*String*/ (null);
RDebugUtils.currentLine=13697028;
 //BA.debugLineNum = 13697028;BA.debugLine="rd.respaldaPaquetes";
__ref._rd /*SHARK2.keymon.com.mx.c_respaldodiario*/ ._respaldapaquetes /*String*/ (null);
RDebugUtils.currentLine=13697029;
 //BA.debugLineNum = 13697029;BA.debugLine="HORAINGRESO =\"000000\"";
__ref._horaingreso /*String*/  = "000000";
RDebugUtils.currentLine=13697030;
 //BA.debugLineNum = 13697030;BA.debugLine="Btn_Ubicar.Left = (Root.Width/2) - (Btn_Ubicar.Wi";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=13697031;
 //BA.debugLineNum = 13697031;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._dbreqserver /*String*/ );
RDebugUtils.currentLine=13697032;
 //BA.debugLineNum = 13697032;BA.debugLine="Log(Starter.DBReqServer)";
parent.__c.LogImpl("513697032",parent._starter._dbreqserver /*String*/ ,0);
RDebugUtils.currentLine=13697033;
 //BA.debugLineNum = 13697033;BA.debugLine="PASO =0";
__ref._paso /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697034;
 //BA.debugLineNum = 13697034;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=13697035;
 //BA.debugLineNum = 13697035;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if (true) break;

case 4:
//if
this.state = 9;
if ((parent._starter._marcacel /*String*/ ).equals("Sony") == false) { 
this.state = 6;
;}if (true) break;

case 6:
//C
this.state = 9;
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),parent.__c.True);
if (true) break;

case 9:
//C
this.state = 10;
;
RDebugUtils.currentLine=13697036;
 //BA.debugLineNum = 13697036;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
parent.__c.StartActivity(ba,(Object)(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 if (true) break;

case 10:
//C
this.state = 11;
;
RDebugUtils.currentLine=13697038;
 //BA.debugLineNum = 13697038;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select count";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=13697039;
 //BA.debugLineNum = 13697039;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697040;
 //BA.debugLineNum = 13697040;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if (true) break;

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

case 13:
//C
this.state = 20;
RDebugUtils.currentLine=13697041;
 //BA.debugLineNum = 13697041;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13697042;
 //BA.debugLineNum = 13697042;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=13697043;
 //BA.debugLineNum = 13697043;BA.debugLine="Log( Starter.DBReqServer)";
parent.__c.LogImpl("513697043",parent._starter._dbreqserver /*String*/ ,0);
RDebugUtils.currentLine=13697044;
 //BA.debugLineNum = 13697044;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=13697045;
 //BA.debugLineNum = 13697045;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=13697046;
 //BA.debugLineNum = 13697046;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=13697048;
 //BA.debugLineNum = 13697048;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=13697049;
 //BA.debugLineNum = 13697049;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697050;
 //BA.debugLineNum = 13697050;BA.debugLine="Dim sDate,sTime As String";
parent._sdate = "";
parent._stime = "";
RDebugUtils.currentLine=13697051;
 //BA.debugLineNum = 13697051;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
parent.__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=13697052;
 //BA.debugLineNum = 13697052;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=13697053;
 //BA.debugLineNum = 13697053;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if (true) break;

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

case 18:
//C
this.state = 19;
RDebugUtils.currentLine=13697054;
 //BA.debugLineNum = 13697054;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=13697055;
 //BA.debugLineNum = 13697055;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697056;
 //BA.debugLineNum = 13697056;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

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

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=13697060;
 //BA.debugLineNum = 13697060;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697061;
 //BA.debugLineNum = 13697061;BA.debugLine="If EJECUTANDO =0 Then";
if (true) break;

case 21:
//if
this.state = 24;
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
RDebugUtils.currentLine=13697062;
 //BA.debugLineNum = 13697062;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697063;
 //BA.debugLineNum = 13697063;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697064;
 //BA.debugLineNum = 13697064;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697065;
 //BA.debugLineNum = 13697065;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697066;
 //BA.debugLineNum = 13697066;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697067;
 //BA.debugLineNum = 13697067;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=13697068;
 //BA.debugLineNum = 13697068;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 24:
//C
this.state = 25;
;
RDebugUtils.currentLine=13697070;
 //BA.debugLineNum = 13697070;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=13697071;
 //BA.debugLineNum = 13697071;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=13697072;
 //BA.debugLineNum = 13697072;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente WHERE PC_CLIENTE <> 0  AND PC_CLIENTE <> 1")));
RDebugUtils.currentLine=13697073;
 //BA.debugLineNum = 13697073;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697074;
 //BA.debugLineNum = 13697074;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=13697075;
 //BA.debugLineNum = 13697075;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697077;
 //BA.debugLineNum = 13697077;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0")));
RDebugUtils.currentLine=13697078;
 //BA.debugLineNum = 13697078;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697079;
 //BA.debugLineNum = 13697079;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_CODIGO <>0 OR CAT_CL_CODIGO <>1 ")));
RDebugUtils.currentLine=13697080;
 //BA.debugLineNum = 13697080;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697081;
 //BA.debugLineNum = 13697081;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO <>0 OR CAT_CL_CODIGO <>1 ")));
RDebugUtils.currentLine=13697082;
 //BA.debugLineNum = 13697082;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697083;
 //BA.debugLineNum = 13697083;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=13697084;
 //BA.debugLineNum = 13697084;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697085;
 //BA.debugLineNum = 13697085;BA.debugLine="If l_ruta.Text = 0 Then";
if (true) break;

case 25:
//if
this.state = 30;
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
this.state = 27;
}else {
this.state = 29;
}if (true) break;

case 27:
//C
this.state = 30;
RDebugUtils.currentLine=13697086;
 //BA.debugLineNum = 13697086;BA.debugLine="l_ruta.Text =0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697087;
 //BA.debugLineNum = 13697087;BA.debugLine="p_b_tabulador.Visible = False";
__ref._p_b_tabulador /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697088;
 //BA.debugLineNum = 13697088;BA.debugLine="pnlBtnCobranza.Visible = False";
__ref._pnlbtncobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 29:
//C
this.state = 30;
RDebugUtils.currentLine=13697090;
 //BA.debugLineNum = 13697090;BA.debugLine="p_b_tabulador.Visible = False";
__ref._p_b_tabulador /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697091;
 //BA.debugLineNum = 13697091;BA.debugLine="pnlBtnCobranza.Visible = False";
__ref._pnlbtncobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697092;
 //BA.debugLineNum = 13697092;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=13697093;
 //BA.debugLineNum = 13697093;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697094;
 //BA.debugLineNum = 13697094;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=13697095;
 //BA.debugLineNum = 13697095;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;
;
RDebugUtils.currentLine=13697097;
 //BA.debugLineNum = 13697097;BA.debugLine="If Cuantos  = 0 Then";

case 30:
//if
this.state = 43;
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
this.state = 32;
}else {
this.state = 34;
}if (true) break;

case 32:
//C
this.state = 43;
RDebugUtils.currentLine=13697098;
 //BA.debugLineNum = 13697098;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697099;
 //BA.debugLineNum = 13697099;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697100;
 //BA.debugLineNum = 13697100;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697101;
 //BA.debugLineNum = 13697101;BA.debugLine="L_CUANTOST.Text = 0";
__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697102;
 //BA.debugLineNum = 13697102;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=13697103;
 //BA.debugLineNum = 13697103;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697104;
 //BA.debugLineNum = 13697104;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=13697105;
 //BA.debugLineNum = 13697105;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13697106;
 //BA.debugLineNum = 13697106;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=13697107;
 //BA.debugLineNum = 13697107;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=13697108;
 //BA.debugLineNum = 13697108;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697109;
 //BA.debugLineNum = 13697109;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697110;
 //BA.debugLineNum = 13697110;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=13697111;
 //BA.debugLineNum = 13697111;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697112;
 //BA.debugLineNum = 13697112;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=13697113;
 //BA.debugLineNum = 13697113;BA.debugLine="b.close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 34:
//C
this.state = 35;
RDebugUtils.currentLine=13697115;
 //BA.debugLineNum = 13697115;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  SUM(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.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 WHERE PE_CLIENTE <> 0")));
RDebugUtils.currentLine=13697116;
 //BA.debugLineNum = 13697116;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=13697117;
 //BA.debugLineNum = 13697117;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697118;
 //BA.debugLineNum = 13697118;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697119;
 //BA.debugLineNum = 13697119;BA.debugLine="L_MONTOD.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=13697120;
 //BA.debugLineNum = 13697120;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=13697122;
 //BA.debugLineNum = 13697122;BA.debugLine="D2=B4XPages.MainPage.skmt.ExecQuery(\"select  COU";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  COUNT(*) AS CUANTOS   from PEDIDO ")));
RDebugUtils.currentLine=13697123;
 //BA.debugLineNum = 13697123;BA.debugLine="D2.Position = 0";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697124;
 //BA.debugLineNum = 13697124;BA.debugLine="LPT = D2.GetString(\"CUANTOS\") / l_cuantosc.Text";
__ref._lpt /*String*/  = BA.NumberToString((double)(Double.parseDouble(__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))/(double)(double)(Double.parseDouble(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())));
RDebugUtils.currentLine=13697125;
 //BA.debugLineNum = 13697125;BA.debugLine="D2.Close";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697127;
 //BA.debugLineNum = 13697127;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=13697128;
 //BA.debugLineNum = 13697128;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
__ref._efectiva /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=13697129;
 //BA.debugLineNum = 13697129;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Round2(__ref._efectiva /*double*/ *100,(int) (2))));
RDebugUtils.currentLine=13697130;
 //BA.debugLineNum = 13697130;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=13697131;
 //BA.debugLineNum = 13697131;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697132;
 //BA.debugLineNum = 13697132;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=13697133;
 //BA.debugLineNum = 13697133;BA.debugLine="L_CUANTOST.Text = l_cuantosc.Text + l_cuantosn.T";
__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence((double)(Double.parseDouble(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+(double)(Double.parseDouble(__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))));
RDebugUtils.currentLine=13697134;
 //BA.debugLineNum = 13697134;BA.debugLine="drop = L_CUANTOST.Text / l_porvisitar.Text";
__ref._drop /*double*/  = (double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=13697135;
 //BA.debugLineNum = 13697135;BA.debugLine="l_drop.Text = Round(drop * 100)";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Round(__ref._drop /*double*/ *100)));
RDebugUtils.currentLine=13697136;
 //BA.debugLineNum = 13697136;BA.debugLine="If L_CUANTOST.Text < 40 Then";
if (true) break;

case 35:
//if
this.state = 42;
if ((double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))<40) { 
this.state = 37;
}else 
{RDebugUtils.currentLine=13697138;
 //BA.debugLineNum = 13697138;BA.debugLine="Else If L_CUANTOST.Text > =  40  And L_CUANTOST.";
if ((double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))>=40 && (double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))<50) { 
this.state = 39;
}else {
this.state = 41;
}}
if (true) break;

case 37:
//C
this.state = 42;
RDebugUtils.currentLine=13697137;
 //BA.debugLineNum = 13697137;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"tache_rojo.png").getObject()));
 if (true) break;

case 39:
//C
this.state = 42;
RDebugUtils.currentLine=13697139;
 //BA.debugLineNum = 13697139;BA.debugLine="ImageView3.bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alerta_amarilla.png").getObject()));
 if (true) break;

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=13697141;
 //BA.debugLineNum = 13697141;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"palomita_verde.png").getObject()));
 if (true) break;

case 42:
//C
this.state = 43;
;
RDebugUtils.currentLine=13697151;
 //BA.debugLineNum = 13697151;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697152;
 //BA.debugLineNum = 13697152;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 43:
//C
this.state = 44;
;
RDebugUtils.currentLine=13697154;
 //BA.debugLineNum = 13697154;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697155;
 //BA.debugLineNum = 13697155;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697156;
 //BA.debugLineNum = 13697156;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697157;
 //BA.debugLineNum = 13697157;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  ID_AL";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=13697158;
 //BA.debugLineNum = 13697158;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697159;
 //BA.debugLineNum = 13697159;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=13697160;
 //BA.debugLineNum = 13697160;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697161;
 //BA.debugLineNum = 13697161;BA.debugLine="bu.Initialize";
__ref._bu /*SHARK2.keymon.com.mx.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=13697162;
 //BA.debugLineNum = 13697162;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*SHARK2.keymon.com.mx.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=13697165;
 //BA.debugLineNum = 13697165;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=13697166;
 //BA.debugLineNum = 13697166;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697167;
 //BA.debugLineNum = 13697167;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=13697168;
 //BA.debugLineNum = 13697168;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697177;
 //BA.debugLineNum = 13697177;BA.debugLine="Dim conVen As Int = 0";
_conven = (int) (0);
RDebugUtils.currentLine=13697178;
 //BA.debugLineNum = 13697178;BA.debugLine="Dim sinVen As Int = 0";
_sinven = (int) (0);
RDebugUtils.currentLine=13697180;
 //BA.debugLineNum = 13697180;BA.debugLine="Dim cursor As Cursor = Starter.skmt.ExecQuery($\"S";
_cursor = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cursor = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT SUM(PE_COSTO_TOT) AS PE_COSTO_TOT, COUNT(DISTINCT PE_CLIENTE) AS PE_CLIENTE FROM PEDIDO WHERE PE_FOLIO <> 'RECARGA'"))));
RDebugUtils.currentLine=13697181;
 //BA.debugLineNum = 13697181;BA.debugLine="If cursor.RowCount > 0 Then";
if (true) break;

case 44:
//if
this.state = 47;
if (_cursor.getRowCount()>0) { 
this.state = 46;
}if (true) break;

case 46:
//C
this.state = 47;
RDebugUtils.currentLine=13697182;
 //BA.debugLineNum = 13697182;BA.debugLine="cursor.Position = 0";
_cursor.setPosition((int) (0));
RDebugUtils.currentLine=13697183;
 //BA.debugLineNum = 13697183;BA.debugLine="B4XPages.MainPage.montoActual = cursor.GetString";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/  = _cursor.GetString("PE_COSTO_TOT");
RDebugUtils.currentLine=13697184;
 //BA.debugLineNum = 13697184;BA.debugLine="B4XPages.MainPage.clientesventa = cursor.GetStri";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientesventa /*String*/  = _cursor.GetString("PE_CLIENTE");
RDebugUtils.currentLine=13697185;
 //BA.debugLineNum = 13697185;BA.debugLine="conVen = cursor.GetInt(\"PE_CLIENTE\")";
_conven = _cursor.GetInt("PE_CLIENTE");
 if (true) break;

case 47:
//C
this.state = 48;
;
RDebugUtils.currentLine=13697187;
 //BA.debugLineNum = 13697187;BA.debugLine="Log(\"Clientes con venta: \" & conVen)";
parent.__c.LogImpl("513697187","Clientes con venta: "+BA.NumberToString(_conven),0);
RDebugUtils.currentLine=13697189;
 //BA.debugLineNum = 13697189;BA.debugLine="Dim cNoVenta As Cursor = Starter.skmt.ExecQuery($";
_cnoventa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cnoventa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(DISTINCT NV_CLIENTE) AS NV_CLIENTE FROM NOVENTA"))));
RDebugUtils.currentLine=13697190;
 //BA.debugLineNum = 13697190;BA.debugLine="If cNoVenta.RowCount > 0 Then";
if (true) break;

case 48:
//if
this.state = 51;
if (_cnoventa.getRowCount()>0) { 
this.state = 50;
}if (true) break;

case 50:
//C
this.state = 51;
RDebugUtils.currentLine=13697191;
 //BA.debugLineNum = 13697191;BA.debugLine="cNoVenta.Position = 0";
_cnoventa.setPosition((int) (0));
RDebugUtils.currentLine=13697192;
 //BA.debugLineNum = 13697192;BA.debugLine="sinVen = cNoVenta.GetInt(\"NV_CLIENTE\")";
_sinven = _cnoventa.GetInt("NV_CLIENTE");
RDebugUtils.currentLine=13697194;
 //BA.debugLineNum = 13697194;BA.debugLine="Log(\"Clientes sin venta: \" & sinVen)";
parent.__c.LogImpl("513697194","Clientes sin venta: "+BA.NumberToString(_sinven),0);
RDebugUtils.currentLine=13697196;
 //BA.debugLineNum = 13697196;BA.debugLine="Dim totClientes As Int = sinVen + conVen";
_totclientes = (int) (_sinven+_conven);
RDebugUtils.currentLine=13697197;
 //BA.debugLineNum = 13697197;BA.debugLine="Log(\"Total clientes visitados: \" & totClientes)";
parent.__c.LogImpl("513697197","Total clientes visitados: "+BA.NumberToString(_totclientes),0);
 if (true) break;

case 51:
//C
this.state = 52;
;
RDebugUtils.currentLine=13697202;
 //BA.debugLineNum = 13697202;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._batt /*int*/  = __ref._batterystatus /*int[]*/ [(int) (0)];
RDebugUtils.currentLine=13697203;
 //BA.debugLineNum = 13697203;BA.debugLine="B4XPages.MainPage.clientestotal = totClientes";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientestotal /*String*/  = BA.NumberToString(_totclientes);
RDebugUtils.currentLine=13697204;
 //BA.debugLineNum = 13697204;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=13697205;
 //BA.debugLineNum = 13697205;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=13697206;
 //BA.debugLineNum = 13697206;BA.debugLine="B4XPages.MainPage.rutapreventa = l_ruta.Text";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=13697209;
 //BA.debugLineNum = 13697209;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=13697210;
 //BA.debugLineNum = 13697210;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697211;
 //BA.debugLineNum = 13697211;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=13697212;
 //BA.debugLineNum = 13697212;BA.debugLine="B4XPages.MainPage.usuario = usuario";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._usuario /*String*/  = __ref._usuario /*String*/ ;
RDebugUtils.currentLine=13697213;
 //BA.debugLineNum = 13697213;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697215;
 //BA.debugLineNum = 13697215;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")";
parent.__c.CallSubDebug(ba,(Object)(parent._starter.getObject()),"ENVIA_ULTIMA_GPS");
RDebugUtils.currentLine=13697218;
 //BA.debugLineNum = 13697218;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select RS_R";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RS_RUTA FROM RUTA_SUPLENCIA")));
RDebugUtils.currentLine=13697219;
 //BA.debugLineNum = 13697219;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697220;
 //BA.debugLineNum = 13697220;BA.debugLine="If s.RowCount = 0 Then";
if (true) break;

case 52:
//if
this.state = 57;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 54;
}else 
{RDebugUtils.currentLine=13697226;
 //BA.debugLineNum = 13697226;BA.debugLine="Else If s.RowCount > 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 56;
}}
if (true) break;

case 54:
//C
this.state = 57;
RDebugUtils.currentLine=13697222;
 //BA.debugLineNum = 13697222;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697223;
 //BA.debugLineNum = 13697223;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697224;
 //BA.debugLineNum = 13697224;BA.debugLine="l_rutasuplencia.Text = \"\"";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
 if (true) break;

case 56:
//C
this.state = 57;
RDebugUtils.currentLine=13697228;
 //BA.debugLineNum = 13697228;BA.debugLine="Label22.Visible = True";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=13697229;
 //BA.debugLineNum = 13697229;BA.debugLine="l_rutasuplencia.Visible = True";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=13697230;
 //BA.debugLineNum = 13697230;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RS_RUTA")));
 if (true) break;

case 57:
//C
this.state = 58;
;
RDebugUtils.currentLine=13697233;
 //BA.debugLineNum = 13697233;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13697235;
 //BA.debugLineNum = 13697235;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select RUTA";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA FROM RUTAA")));
RDebugUtils.currentLine=13697236;
 //BA.debugLineNum = 13697236;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13697237;
 //BA.debugLineNum = 13697237;BA.debugLine="If s.RowCount = 0 Then";
if (true) break;

case 58:
//if
this.state = 63;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 60;
}else 
{RDebugUtils.currentLine=13697242;
 //BA.debugLineNum = 13697242;BA.debugLine="Else If s.RowCount > 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 62;
}}
if (true) break;

case 60:
//C
this.state = 63;
RDebugUtils.currentLine=13697240;
 //BA.debugLineNum = 13697240;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 if (true) break;

case 62:
//C
this.state = 63;
RDebugUtils.currentLine=13697244;
 //BA.debugLineNum = 13697244;BA.debugLine="l_ruta.Text = s.GetString(\"RUTAA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")));
 if (true) break;
;
RDebugUtils.currentLine=13697248;
 //BA.debugLineNum = 13697248;BA.debugLine="If l_ruta.Text = \"0\" Then";

case 63:
//if
this.state = 68;
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
this.state = 65;
}else {
this.state = 67;
}if (true) break;

case 65:
//C
this.state = 68;
RDebugUtils.currentLine=13697249;
 //BA.debugLineNum = 13697249;BA.debugLine="p_abordo.Visible = False";
__ref._p_abordo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=13697250;
 //BA.debugLineNum = 13697250;BA.debugLine="b_productos.Visible = False";
__ref._b_productos /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 67:
//C
this.state = 68;
RDebugUtils.currentLine=13697252;
 //BA.debugLineNum = 13697252;BA.debugLine="p_abordo.Visible = True";
__ref._p_abordo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=13697253;
 //BA.debugLineNum = 13697253;BA.debugLine="b_productos.Visible = True";
__ref._b_productos /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
 if (true) break;

case 68:
//C
this.state = 69;
;
RDebugUtils.currentLine=13697267;
 //BA.debugLineNum = 13697267;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_fg = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fg = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(SUM(CASE WHEN PE_FOLIO = 'PREVENTA_CREDITO' THEN PE_COSTO_TOT ELSE 0 END), 0) AS COSTO_CRED, IFNULL(SUM(CASE WHEN PE_FOLIO = 'PREVENTA_CONTADO' THEN PE_COSTO_TOT ELSE 0 END), 0) AS COSTO_CONTADO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO IN ('PREVENTA_CREDITO', 'PREVENTA_CONTADO')")));
RDebugUtils.currentLine=13697269;
 //BA.debugLineNum = 13697269;BA.debugLine="fg.Position = 0";
_fg.setPosition((int) (0));
RDebugUtils.currentLine=13697270;
 //BA.debugLineNum = 13697270;BA.debugLine="Dim COSTO_CRED As Double = fg.GetDouble(\"COSTO_CR";
_costo_cred = _fg.GetDouble("COSTO_CRED");
RDebugUtils.currentLine=13697271;
 //BA.debugLineNum = 13697271;BA.debugLine="Dim COSTO_CONTADO As Double = fg.GetDouble(\"COSTO";
_costo_contado = _fg.GetDouble("COSTO_CONTADO");
RDebugUtils.currentLine=13697273;
 //BA.debugLineNum = 13697273;BA.debugLine="Log(\"Costo Crédito: \" & COSTO_CRED & \"<<<<<<<<<<<";
parent.__c.LogImpl("513697273","Costo Crédito: "+BA.NumberToString(_costo_cred)+"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=13697274;
 //BA.debugLineNum = 13697274;BA.debugLine="Log(\"Costo Contado: \" & COSTO_CONTADO & \"<<<<<<<<";
parent.__c.LogImpl("513697274","Costo Contado: "+BA.NumberToString(_costo_contado)+"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=13697276;
 //BA.debugLineNum = 13697276;BA.debugLine="If COSTO_CRED > 0 And COSTO_CRED < 1000 Then";
if (true) break;

case 69:
//if
this.state = 76;
if (_costo_cred>0 && _costo_cred<1000) { 
this.state = 71;
}if (true) break;

case 71:
//C
this.state = 72;
RDebugUtils.currentLine=13697277;
 //BA.debugLineNum = 13697277;BA.debugLine="Msgbox2Async($\"Se ha detectado venta a crédito m";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Se ha detectado venta a crédito menor a $1000 pesos. ¿Desea borrarla?")),BA.ObjectToCharSequence("Venta Mínima de Crédito"),"Sí","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=13697278;
 //BA.debugLineNum = 13697278;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b4xpage_appear"), null);
this.state = 89;
return;
case 89:
//C
this.state = 72;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=13697279;
 //BA.debugLineNum = 13697279;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 72:
//if
this.state = 75;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 74;
}if (true) break;

case 74:
//C
this.state = 75;
RDebugUtils.currentLine=13697280;
 //BA.debugLineNum = 13697280;BA.debugLine="Subs.borraPedidoCredito";
parent._subs._borrapedidocredito /*String*/ (ba);
 if (true) break;

case 75:
//C
this.state = 76;
;
 if (true) break;

case 76:
//C
this.state = 77;
;
RDebugUtils.currentLine=13697284;
 //BA.debugLineNum = 13697284;BA.debugLine="fg.Close";
_fg.Close();
RDebugUtils.currentLine=13697286;
 //BA.debugLineNum = 13697286;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"Track");
RDebugUtils.currentLine=13697287;
 //BA.debugLineNum = 13697287;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=13697288;
 //BA.debugLineNum = 13697288;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
if (true) break;

case 77:
//if
this.state = 80;
if (parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized() && parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { 
this.state = 79;
}if (true) break;

case 79:
//C
this.state = 80;
RDebugUtils.currentLine=13697289;
 //BA.debugLineNum = 13697289;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
RDebugUtils.currentLine=13697290;
 //BA.debugLineNum = 13697290;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
RDebugUtils.currentLine=13697292;
 //BA.debugLineNum = 13697292;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
__ref._gps_locationchanged /*String*/ (null,parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
 if (true) break;

case 80:
//C
this.state = 81;
;
RDebugUtils.currentLine=13697294;
 //BA.debugLineNum = 13697294;BA.debugLine="lista_punta.Initialize";
__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=13697295;
 //BA.debugLineNum = 13697295;BA.debugLine="Dim pol As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_pol = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pol = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT LAT, LONG FROM POLIGONO")));
RDebugUtils.currentLine=13697296;
 //BA.debugLineNum = 13697296;BA.debugLine="If pol.RowCount > 0 Then";
if (true) break;

case 81:
//if
this.state = 88;
if (_pol.getRowCount()>0) { 
this.state = 83;
}if (true) break;

case 83:
//C
this.state = 84;
RDebugUtils.currentLine=13697298;
 //BA.debugLineNum = 13697298;BA.debugLine="For poli = 0 To pol.RowCount -1";
if (true) break;

case 84:
//for
this.state = 87;
step210 = 1;
limit210 = (int) (_pol.getRowCount()-1);
_poli = (int) (0) ;
this.state = 90;
if (true) break;

case 90:
//C
this.state = 87;
if ((step210 > 0 && _poli <= limit210) || (step210 < 0 && _poli >= limit210)) this.state = 86;
if (true) break;

case 91:
//C
this.state = 90;
_poli = ((int)(0 + _poli + step210)) ;
if (true) break;

case 86:
//C
this.state = 91;
RDebugUtils.currentLine=13697299;
 //BA.debugLineNum = 13697299;BA.debugLine="pol.Position = poli";
_pol.setPosition(_poli);
RDebugUtils.currentLine=13697300;
 //BA.debugLineNum = 13697300;BA.debugLine="Dim coords As LatLng";
_coords = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
RDebugUtils.currentLine=13697301;
 //BA.debugLineNum = 13697301;BA.debugLine="coords.Initialize(pol.GetString(\"LAT\"), pol.Get";
_coords.Initialize((double)(Double.parseDouble(_pol.GetString("LAT"))),(double)(Double.parseDouble(_pol.GetString("LONG"))));
RDebugUtils.currentLine=13697302;
 //BA.debugLineNum = 13697302;BA.debugLine="lista_punta.Add(coords)";
__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_coords.getObject()));
 if (true) break;
if (true) break;

case 87:
//C
this.state = 88;
;
 if (true) break;

case 88:
//C
this.state = -1;
;
RDebugUtils.currentLine=13697305;
 //BA.debugLineNum = 13697305;BA.debugLine="checaPedido";
__ref._checapedido /*String*/ (null);
RDebugUtils.currentLine=13697307;
 //BA.debugLineNum = 13697307;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_ok_res_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_res_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_res_click", null));}
RDebugUtils.currentLine=14680064;
 //BA.debugLineNum = 14680064;BA.debugLine="Sub B_OK_RES_Click";
RDebugUtils.currentLine=14680066;
 //BA.debugLineNum = 14680066;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680067;
 //BA.debugLineNum = 14680067;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680068;
 //BA.debugLineNum = 14680068;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680069;
 //BA.debugLineNum = 14680069;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680070;
 //BA.debugLineNum = 14680070;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14680071;
 //BA.debugLineNum = 14680071;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14680072;
 //BA.debugLineNum = 14680072;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14680073;
 //BA.debugLineNum = 14680073;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680074;
 //BA.debugLineNum = 14680074;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14680075;
 //BA.debugLineNum = 14680075;BA.debugLine="End Sub";
return "";
}
public String  _b_productos_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_productos_click", false))
	 {return ((String) Debug.delegate(ba, "b_productos_click", null));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
String _itemtext = "";
RDebugUtils.currentLine=16384000;
 //BA.debugLineNum = 16384000;BA.debugLine="Private Sub b_productos_Click";
RDebugUtils.currentLine=16384002;
 //BA.debugLineNum = 16384002;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16384003;
 //BA.debugLineNum = 16384003;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
_label1 = __ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=16384004;
 //BA.debugLineNum = 16384004;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=16384005;
 //BA.debugLineNum = 16384005;BA.debugLine="p_prod.Width = Root.Width";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=16384006;
 //BA.debugLineNum = 16384006;BA.debugLine="p_prod.Height = Root.Height";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=16384007;
 //BA.debugLineNum = 16384007;BA.debugLine="b_regreso.Left = (p_prod.Width - b_regreso.Width)";
__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()-__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth())/(double)2));
RDebugUtils.currentLine=16384008;
 //BA.debugLineNum = 16384008;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height";
__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()));
RDebugUtils.currentLine=16384010;
 //BA.debugLineNum = 16384010;BA.debugLine="p_prod.Visible = True";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=16384011;
 //BA.debugLineNum = 16384011;BA.debugLine="p_prod.BringToFront";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=16384014;
 //BA.debugLineNum = 16384014;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 CAT_GP_NOMBRE AS HVD_PRONOMBRE, IFNULL(cat_gp_almacen, 0) AS HVD_RECHAZOCANT from CAT_GUNAPROD2 WHERE CAT_GP_TIPO <> 'PROMOS' AND CAT_GP_SUBTIPO <> 'PROMOS' order by CAT_GP_NOMBRE asc")));
RDebugUtils.currentLine=16384016;
 //BA.debugLineNum = 16384016;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=16384017;
 //BA.debugLineNum = 16384017;BA.debugLine="lv_prod_Prin.Clear";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=16384018;
 //BA.debugLineNum = 16384018;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=16384019;
 //BA.debugLineNum = 16384019;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step14 = 1;
final int limit14 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit14 ;_i = _i + step14 ) {
RDebugUtils.currentLine=16384020;
 //BA.debugLineNum = 16384020;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16384021;
 //BA.debugLineNum = 16384021;BA.debugLine="Dim itemText As String";
_itemtext = "";
RDebugUtils.currentLine=16384025;
 //BA.debugLineNum = 16384025;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} ${";
_itemtext = (""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Cantidad: "+__c.SmartStringFormatter("",(Object)((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("HVD_RECHAZOCANT"))))+"");
RDebugUtils.currentLine=16384026;
 //BA.debugLineNum = 16384026;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 }
};
 }else {
RDebugUtils.currentLine=16384031;
 //BA.debugLineNum = 16384031;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles."));
 };
RDebugUtils.currentLine=16384033;
 //BA.debugLineNum = 16384033;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16384035;
 //BA.debugLineNum = 16384035;BA.debugLine="End Sub";
return "";
}
public String  _b_regreso_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_regreso_click", false))
	 {return ((String) Debug.delegate(ba, "b_regreso_click", null));}
RDebugUtils.currentLine=16252928;
 //BA.debugLineNum = 16252928;BA.debugLine="Private Sub b_regreso_Click";
RDebugUtils.currentLine=16252929;
 //BA.debugLineNum = 16252929;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=16252930;
 //BA.debugLineNum = 16252930;BA.debugLine="End Sub";
return "";
}
public String  _b_tabulador_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_tabulador_click", false))
	 {return ((String) Debug.delegate(ba, "b_tabulador_click", null));}
RDebugUtils.currentLine=15925248;
 //BA.debugLineNum = 15925248;BA.debugLine="Private Sub b_tabulador_Click";
RDebugUtils.currentLine=15925249;
 //BA.debugLineNum = 15925249;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
_b4xpages._showpage /*String*/ (ba,"tabulador");
RDebugUtils.currentLine=15925250;
 //BA.debugLineNum = 15925250;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=15204352;
 //BA.debugLineNum = 15204352;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=15204354;
 //BA.debugLineNum = 15204354;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(SHARK2.keymon.com.mx.c_principal parent,SHARK2.keymon.com.mx.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_principal __ref;
SHARK2.keymon.com.mx.c_principal parent;

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

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

case 1:
//if
this.state = 12;
if (__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=14090246;
 //BA.debugLineNum = 14090246;BA.debugLine="Else if p_prod.Visible Then";
if (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else 
{RDebugUtils.currentLine=14090249;
 //BA.debugLineNum = 14090249;BA.debugLine="Else if Panel5.Visible Then";
if (__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 7;
}else 
{RDebugUtils.currentLine=14090252;
 //BA.debugLineNum = 14090252;BA.debugLine="Else If pnlCobranza.Visible Then";
if (__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 9;
}else {
this.state = 11;
}}}}
if (true) break;

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

case 5:
//C
this.state = 12;
RDebugUtils.currentLine=14090247;
 //BA.debugLineNum = 14090247;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=14090248;
 //BA.debugLineNum = 14090248;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 7:
//C
this.state = 12;
RDebugUtils.currentLine=14090250;
 //BA.debugLineNum = 14090250;BA.debugLine="B_OK_PANEL5_Click";
__ref._b_ok_panel5_click /*String*/ (null);
RDebugUtils.currentLine=14090251;
 //BA.debugLineNum = 14090251;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 9:
//C
this.state = 12;
RDebugUtils.currentLine=14090253;
 //BA.debugLineNum = 14090253;BA.debugLine="pnlCobranza.Visible = False";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=14090254;
 //BA.debugLineNum = 14090254;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

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

            }
        }
    }
}
public String  _b4xpage_created(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
String _ruta = "";
RDebugUtils.currentLine=13434880;
 //BA.debugLineNum = 13434880;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=13434881;
 //BA.debugLineNum = 13434881;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=13434883;
 //BA.debugLineNum = 13434883;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=13434884;
 //BA.debugLineNum = 13434884;BA.debugLine="rd.Initialize";
__ref._rd /*SHARK2.keymon.com.mx.c_respaldodiario*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=13434885;
 //BA.debugLineNum = 13434885;BA.debugLine="rd.vacuum";
__ref._rd /*SHARK2.keymon.com.mx.c_respaldodiario*/ ._vacuum /*String*/ (null);
RDebugUtils.currentLine=13434886;
 //BA.debugLineNum = 13434886;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=13434887;
 //BA.debugLineNum = 13434887;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=13434888;
 //BA.debugLineNum = 13434888;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13434889;
 //BA.debugLineNum = 13434889;BA.debugLine="ruta = File.DirInternal";
_ruta = __c.File.getDirInternal();
RDebugUtils.currentLine=13434890;
 //BA.debugLineNum = 13434890;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=13434891;
 //BA.debugLineNum = 13434891;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");
 };
RDebugUtils.currentLine=13434893;
 //BA.debugLineNum = 13434893;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=13434894;
 //BA.debugLineNum = 13434894;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=13434895;
 //BA.debugLineNum = 13434895;BA.debugLine="B4XPages.MainPage.skmt.Initialize(ruta,\"kmt.db\",";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_ruta,"kmt.db",__c.True);
RDebugUtils.currentLine=13434896;
 //BA.debugLineNum = 13434896;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=13434897;
 //BA.debugLineNum = 13434897;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434898;
 //BA.debugLineNum = 13434898;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=13434899;
 //BA.debugLineNum = 13434899;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13434900;
 //BA.debugLineNum = 13434900;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0")));
RDebugUtils.currentLine=13434901;
 //BA.debugLineNum = 13434901;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434902;
 //BA.debugLineNum = 13434902;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info")));
RDebugUtils.currentLine=13434903;
 //BA.debugLineNum = 13434903;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434904;
 //BA.debugLineNum = 13434904;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=13434905;
 //BA.debugLineNum = 13434905;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434906;
 //BA.debugLineNum = 13434906;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=13434907;
 //BA.debugLineNum = 13434907;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13434908;
 //BA.debugLineNum = 13434908;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=13434909;
 //BA.debugLineNum = 13434909;BA.debugLine="l_ruta.Text =0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=13434911;
 //BA.debugLineNum = 13434911;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=13434912;
 //BA.debugLineNum = 13434912;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434913;
 //BA.debugLineNum = 13434913;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=13434914;
 //BA.debugLineNum = 13434914;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=13434916;
 //BA.debugLineNum = 13434916;BA.debugLine="If Cuantos  = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=13434917;
 //BA.debugLineNum = 13434917;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13434918;
 //BA.debugLineNum = 13434918;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13434919;
 //BA.debugLineNum = 13434919;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13434920;
 //BA.debugLineNum = 13434920;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=13434921;
 //BA.debugLineNum = 13434921;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13434922;
 //BA.debugLineNum = 13434922;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=13434923;
 //BA.debugLineNum = 13434923;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=13434924;
 //BA.debugLineNum = 13434924;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=13434925;
 //BA.debugLineNum = 13434925;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
 }else {
RDebugUtils.currentLine=13434927;
 //BA.debugLineNum = 13434927;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 where PC_CLIENTE <> 0 AND PC_CLIENTE <> 1")));
RDebugUtils.currentLine=13434928;
 //BA.debugLineNum = 13434928;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=13434930;
 //BA.debugLineNum = 13434930;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434931;
 //BA.debugLineNum = 13434931;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434932;
 //BA.debugLineNum = 13434932;BA.debugLine="L_MONTOD.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=13434933;
 //BA.debugLineNum = 13434933;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=13434934;
 //BA.debugLineNum = 13434934;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=13434936;
 //BA.debugLineNum = 13434936;BA.debugLine="l_drop.Text = Round2(drop,2)";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._drop /*double*/ ,(int) (2))));
RDebugUtils.currentLine=13434937;
 //BA.debugLineNum = 13434937;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
__ref._efectiva /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=13434938;
 //BA.debugLineNum = 13434938;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._efectiva /*double*/ *100,(int) (2))));
RDebugUtils.currentLine=13434939;
 //BA.debugLineNum = 13434939;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=13434940;
 //BA.debugLineNum = 13434940;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=13434941;
 //BA.debugLineNum = 13434941;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13434942;
 //BA.debugLineNum = 13434942;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=13434944;
 //BA.debugLineNum = 13434944;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13434945;
 //BA.debugLineNum = 13434945;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13434947;
 //BA.debugLineNum = 13434947;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select RS_R";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RS_RUTA FROM RUTA_SUPLENCIA")));
RDebugUtils.currentLine=13434948;
 //BA.debugLineNum = 13434948;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13434949;
 //BA.debugLineNum = 13434949;BA.debugLine="If s.RowCount = 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=13434950;
 //BA.debugLineNum = 13434950;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13434951;
 //BA.debugLineNum = 13434951;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=13434952;
 //BA.debugLineNum = 13434952;BA.debugLine="Else If s.RowCount > 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13434953;
 //BA.debugLineNum = 13434953;BA.debugLine="Label22.Visible = True";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13434954;
 //BA.debugLineNum = 13434954;BA.debugLine="l_rutasuplencia.Visible = True";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13434955;
 //BA.debugLineNum = 13434955;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RS_RUTA")));
 }}
;
RDebugUtils.currentLine=13434957;
 //BA.debugLineNum = 13434957;BA.debugLine="Starter.Skmt.ExecNonQuery($\"create table if not e";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("create table if not exists kmt_info2 ("+__c.SmartStringFormatter("",(Object)(__ref._gettablecolumnlist /*String*/ (null,_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ ,"kmt_info")))+")"));
RDebugUtils.currentLine=13434958;
 //BA.debugLineNum = 13434958;BA.debugLine="End Sub";
return "";
}
public String  _gettablecolumnlist(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.sql.SQL _db,String _table) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "gettablecolumnlist", false))
	 {return ((String) Debug.delegate(ba, "gettablecolumnlist", new Object[] {_db,_table}));}
String _l = "";
int _i = 0;
RDebugUtils.currentLine=13631488;
 //BA.debugLineNum = 13631488;BA.debugLine="Sub getTableColumnList(db As SQL, table As String)";
RDebugUtils.currentLine=13631489;
 //BA.debugLineNum = 13631489;BA.debugLine="Private l As String = \"\"";
_l = "";
RDebugUtils.currentLine=13631490;
 //BA.debugLineNum = 13631490;BA.debugLine="If chkIfTableExists(db, table) Then";
if (__ref._chkiftableexists /*boolean*/ (null,_db,_table)) { 
RDebugUtils.currentLine=13631491;
 //BA.debugLineNum = 13631491;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"p";
_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(("pragma table_info("+__c.SmartStringFormatter("",(Object)(_table))+")"))));
RDebugUtils.currentLine=13631492;
 //BA.debugLineNum = 13631492;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13631493;
 //BA.debugLineNum = 13631493;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step5 = 1;
final int limit5 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit5 ;_i = _i + step5 ) {
RDebugUtils.currentLine=13631494;
 //BA.debugLineNum = 13631494;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13631495;
 //BA.debugLineNum = 13631495;BA.debugLine="If l.Length = 0 Then";
if (_l.length()==0) { 
RDebugUtils.currentLine=13631496;
 //BA.debugLineNum = 13631496;BA.debugLine="l = $\"${c.GetString(\"name\")} ${c.GetString(\"t";
_l = (""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("name")))+" "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("type")))+"");
 }else {
RDebugUtils.currentLine=13631498;
 //BA.debugLineNum = 13631498;BA.debugLine="l = $\"${l}, ${c.GetString(\"name\")} ${c.GetStr";
_l = (""+__c.SmartStringFormatter("",(Object)(_l))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("name")))+" "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("type")))+"");
 };
 }
};
 };
 }else {
RDebugUtils.currentLine=13631503;
 //BA.debugLineNum = 13631503;BA.debugLine="Return \"No existe la tabla.\"";
if (true) return "No existe la tabla.";
 };
RDebugUtils.currentLine=13631505;
 //BA.debugLineNum = 13631505;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13631506;
 //BA.debugLineNum = 13631506;BA.debugLine="Return l";
if (true) return _l;
RDebugUtils.currentLine=13631507;
 //BA.debugLineNum = 13631507;BA.debugLine="End Sub";
return "";
}
public void  _btn_ubicar_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "btn_ubicar_click", false))
	 {Debug.delegate(ba, "btn_ubicar_click", null); return;}
ResumableSub_Btn_Ubicar_Click rsub = new ResumableSub_Btn_Ubicar_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_Btn_Ubicar_Click extends BA.ResumableSub {
public ResumableSub_Btn_Ubicar_Click(SHARK2.keymon.com.mx.c_principal parent,SHARK2.keymon.com.mx.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_principal __ref;
SHARK2.keymon.com.mx.c_principal parent;
String _permission = "";
boolean _result = false;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=15269889;
 //BA.debugLineNum = 15269889;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA";
__ref._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,__ref._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
RDebugUtils.currentLine=15269890;
 //BA.debugLineNum = 15269890;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "btn_ubicar_click"), null);
this.state = 5;
return;
case 5:
//C
this.state = 1;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=15269891;
 //BA.debugLineNum = 15269891;BA.debugLine="If Result Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=15269892;
 //BA.debugLineNum = 15269892;BA.debugLine="StartActivity(MAPA_RUTAS)";
parent.__c.StartActivity(ba,(Object)(parent._mapa_rutas.getObject()));
 if (true) break;

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

            }
        }
    }
}
public String  _btncobranza_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "btncobranza_click", false))
	 {return ((String) Debug.delegate(ba, "btncobranza_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _ct = null;
RDebugUtils.currentLine=15990784;
 //BA.debugLineNum = 15990784;BA.debugLine="Private Sub btnCobranza_Click";
RDebugUtils.currentLine=15990785;
 //BA.debugLineNum = 15990785;BA.debugLine="Log(\"Entrando al Panel de Cobranza\")";
__c.LogImpl("515990785","Entrando al Panel de Cobranza",0);
RDebugUtils.currentLine=15990787;
 //BA.debugLineNum = 15990787;BA.debugLine="pnlCobranza.Width = Root.Width";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=15990788;
 //BA.debugLineNum = 15990788;BA.debugLine="pnlCobranza.Height = Root.Height";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=15990789;
 //BA.debugLineNum = 15990789;BA.debugLine="pnlCobranza.Left = 0";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0));
RDebugUtils.currentLine=15990790;
 //BA.debugLineNum = 15990790;BA.debugLine="pnlCobranza.Top = 0";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (0));
RDebugUtils.currentLine=15990791;
 //BA.debugLineNum = 15990791;BA.debugLine="pnlCobranza.BringToFront";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=15990792;
 //BA.debugLineNum = 15990792;BA.debugLine="pnlCobranza.Visible = True";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15990793;
 //BA.debugLineNum = 15990793;BA.debugLine="pnlTotal.Visible = True";
__ref._pnltotal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15990794;
 //BA.debugLineNum = 15990794;BA.debugLine="Dim ct As Cursor = B4XPages.MainPage.skmt.ExecQue";
_ct = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ct = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(sum(IFNULL(a.a_abono,0)),0) as suma_abono FROM kmt_info2 ki LEFT JOIN ABONOSP ap ON ki.CAT_CL_CODIGO = ap.CLIENTE LEFT JOIN ABONOS a ON ki.CAT_CL_CODIGO = a.a_cliente WHERE CAST(ap.SALDO_PENDIENTE AS REAL) > 0"))));
RDebugUtils.currentLine=15990795;
 //BA.debugLineNum = 15990795;BA.debugLine="ct.Position = 0";
_ct.setPosition((int) (0));
RDebugUtils.currentLine=15990796;
 //BA.debugLineNum = 15990796;BA.debugLine="If ct.RowCount > 0 Then";
if (_ct.getRowCount()>0) { 
RDebugUtils.currentLine=15990797;
 //BA.debugLineNum = 15990797;BA.debugLine="lblTotal.Text = \"El total abonado es: $\" & ct.ge";
__ref._lbltotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("El total abonado es: $"+_ct.GetString("suma_abono")));
 };
RDebugUtils.currentLine=15990799;
 //BA.debugLineNum = 15990799;BA.debugLine="lblVersion.Text = Application.VersionName";
__ref._lblversion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
RDebugUtils.currentLine=15990800;
 //BA.debugLineNum = 15990800;BA.debugLine="ct.Close";
_ct.Close();
RDebugUtils.currentLine=15990801;
 //BA.debugLineNum = 15990801;BA.debugLine="CargarDatosCobranza";
__ref._cargardatoscobranza /*String*/ (null);
RDebugUtils.currentLine=15990802;
 //BA.debugLineNum = 15990802;BA.debugLine="End Sub";
return "";
}
public String  _cargardatoscobranza(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargardatoscobranza", false))
	 {return ((String) Debug.delegate(ba, "cargardatoscobranza", null));}
int _i = 0;
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pitem = null;
String _codigo = "";
String _nombre = "";
anywheresoftware.b4a.objects.LabelWrapper _lblempty = null;
RDebugUtils.currentLine=16056320;
 //BA.debugLineNum = 16056320;BA.debugLine="Private Sub CargarDatosCobranza";
RDebugUtils.currentLine=16056321;
 //BA.debugLineNum = 16056321;BA.debugLine="For i = pnlCobranza.NumberOfViews - 1 To 0 Step -";
{
final int step1 = -1;
final int limit1 = (int) (0);
_i = (int) (__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .getNumberOfViews()-1) ;
for (;_i >= limit1 ;_i = _i + step1 ) {
RDebugUtils.currentLine=16056322;
 //BA.debugLineNum = 16056322;BA.debugLine="Dim v As View = pnlCobranza.GetView(i)";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
_v = __ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .GetView(_i);
RDebugUtils.currentLine=16056323;
 //BA.debugLineNum = 16056323;BA.debugLine="If v Is Label Then";
if (_v.getObjectOrNull() instanceof android.widget.TextView) { 
RDebugUtils.currentLine=16056324;
 //BA.debugLineNum = 16056324;BA.debugLine="Dim lbl As Label = v";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
_lbl = (anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_v.getObject()));
RDebugUtils.currentLine=16056325;
 //BA.debugLineNum = 16056325;BA.debugLine="If lbl.Text = \"No hay cuentas por cobrar\" Then";
if ((_lbl.getText()).equals("No hay cuentas por cobrar")) { 
RDebugUtils.currentLine=16056326;
 //BA.debugLineNum = 16056326;BA.debugLine="pnlCobranza.RemoveViewAt(i)";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .RemoveViewAt(_i);
 };
 };
 }
};
RDebugUtils.currentLine=16056330;
 //BA.debugLineNum = 16056330;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"SELECT ROW";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT ROW_NUMBER() OVER (ORDER BY ki.CAT_CL_NOMBRE) AS Secuencia, ki.CAT_CL_CODIGO, ki.CAT_CL_NOMBRE, ap.SALDO_PENDIENTE, IFNULL(a.a_abono,0) as a_abono FROM kmt_info2 ki LEFT JOIN ABONOSP ap ON ki.CAT_CL_CODIGO = ap.CLIENTE LEFT JOIN ABONOS a ON ki.CAT_CL_CODIGO = a.a_cliente WHERE CAST(ap.SALDO_PENDIENTE AS REAL) > 0"))));
RDebugUtils.currentLine=16056331;
 //BA.debugLineNum = 16056331;BA.debugLine="Log(\"Número de registros: \" & c.RowCount)";
__c.LogImpl("516056331","Número de registros: "+BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=16056333;
 //BA.debugLineNum = 16056333;BA.debugLine="clvCobranza.Clear";
__ref._clvcobranza /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=16056335;
 //BA.debugLineNum = 16056335;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step13 = 1;
final int limit13 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit13 ;_i = _i + step13 ) {
RDebugUtils.currentLine=16056336;
 //BA.debugLineNum = 16056336;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16056338;
 //BA.debugLineNum = 16056338;BA.debugLine="Dim pItem As B4XView = xui.CreatePanel(\"\")";
_pitem = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pitem = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=16056339;
 //BA.debugLineNum = 16056339;BA.debugLine="pItem.LoadLayout(\"C_CuentasXCobrar\")";
_pitem.LoadLayout("C_CuentasXCobrar",ba);
RDebugUtils.currentLine=16056340;
 //BA.debugLineNum = 16056340;BA.debugLine="pItem.SetLayoutAnimated(0, 0, 0, Root.Width, 100";
_pitem.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__c.DipToCurrent((int) (100)));
RDebugUtils.currentLine=16056341;
 //BA.debugLineNum = 16056341;BA.debugLine="pItem.Color = Colors.White";
_pitem.setColor(__c.Colors.White);
RDebugUtils.currentLine=16056343;
 //BA.debugLineNum = 16056343;BA.debugLine="pnlContenedorCobranza.SetLayoutAnimated(0, 0, 0,";
__ref._pnlcontenedorcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_pitem.getWidth(),_pitem.getHeight());
RDebugUtils.currentLine=16056344;
 //BA.debugLineNum = 16056344;BA.debugLine="pnlContenedorCobranza.Color = xui.Color_Transpar";
__ref._pnlcontenedorcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent);
RDebugUtils.currentLine=16056346;
 //BA.debugLineNum = 16056346;BA.debugLine="l_Secuencia.Text = c.GetString(\"Secuencia\")";
__ref._l_secuencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Secuencia")));
RDebugUtils.currentLine=16056349;
 //BA.debugLineNum = 16056349;BA.debugLine="Dim codigo As String = c.GetString(\"CAT_CL_CODIG";
_codigo = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO");
RDebugUtils.currentLine=16056350;
 //BA.debugLineNum = 16056350;BA.debugLine="Dim nombre As String = c.GetString(\"CAT_CL_NOMBR";
_nombre = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE");
RDebugUtils.currentLine=16056351;
 //BA.debugLineNum = 16056351;BA.debugLine="If codigo = Null Then codigo = \"\"";
if (_codigo== null) { 
_codigo = "";};
RDebugUtils.currentLine=16056352;
 //BA.debugLineNum = 16056352;BA.debugLine="If nombre = Null Then nombre = \"\"";
if (_nombre== null) { 
_nombre = "";};
RDebugUtils.currentLine=16056353;
 //BA.debugLineNum = 16056353;BA.debugLine="l_Nombre.SingleLine = False";
__ref._l_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setSingleLine(__c.False);
RDebugUtils.currentLine=16056354;
 //BA.debugLineNum = 16056354;BA.debugLine="l_Nombre.Text = codigo & \" \" & nombre";
__ref._l_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_codigo+" "+_nombre));
RDebugUtils.currentLine=16056356;
 //BA.debugLineNum = 16056356;BA.debugLine="l_CuentaXCobrar.Text = \"$\" & NumberFormat(c.GetD";
__ref._l_cuentaxcobrar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("$"+__c.NumberFormat(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SALDO_PENDIENTE"),(int) (1),(int) (2))));
RDebugUtils.currentLine=16056357;
 //BA.debugLineNum = 16056357;BA.debugLine="l_Abono.Text = \"$\" & NumberFormat(c.GetDouble(\"a";
__ref._l_abono /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("$"+__c.NumberFormat(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("a_abono"),(int) (1),(int) (2))));
RDebugUtils.currentLine=16056359;
 //BA.debugLineNum = 16056359;BA.debugLine="clvCobranza.Add(pItem, \"Item-\" & i)";
__ref._clvcobranza /*b4a.example3.customlistview*/ ._add(_pitem,(Object)("Item-"+BA.NumberToString(_i)));
 }
};
RDebugUtils.currentLine=16056362;
 //BA.debugLineNum = 16056362;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16056363;
 //BA.debugLineNum = 16056363;BA.debugLine="pnlCobranza.Invalidate";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .Invalidate();
RDebugUtils.currentLine=16056365;
 //BA.debugLineNum = 16056365;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=16056366;
 //BA.debugLineNum = 16056366;BA.debugLine="Dim lblEmpty As Label";
_lblempty = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16056367;
 //BA.debugLineNum = 16056367;BA.debugLine="lblEmpty.Initialize(\"\")";
_lblempty.Initialize(ba,"");
RDebugUtils.currentLine=16056368;
 //BA.debugLineNum = 16056368;BA.debugLine="lblEmpty.Text = \"No hay cuentas por cobrar\"";
_lblempty.setText(BA.ObjectToCharSequence("No hay cuentas por cobrar"));
RDebugUtils.currentLine=16056369;
 //BA.debugLineNum = 16056369;BA.debugLine="lblEmpty.TextSize = 16";
_lblempty.setTextSize((float) (16));
RDebugUtils.currentLine=16056370;
 //BA.debugLineNum = 16056370;BA.debugLine="lblEmpty.TextColor = Colors.Gray";
_lblempty.setTextColor(__c.Colors.Gray);
RDebugUtils.currentLine=16056371;
 //BA.debugLineNum = 16056371;BA.debugLine="lblEmpty.Gravity = Gravity.CENTER";
_lblempty.setGravity(__c.Gravity.CENTER);
RDebugUtils.currentLine=16056372;
 //BA.debugLineNum = 16056372;BA.debugLine="pnlCobranza.AddView(lblEmpty, 0, 100dip, Root.Wi";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .AddView((android.view.View)(_lblempty.getObject()),(int) (0),__c.DipToCurrent((int) (100)),__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__c.DipToCurrent((int) (50)));
 };
RDebugUtils.currentLine=16056374;
 //BA.debugLineNum = 16056374;BA.debugLine="End Sub";
return "";
}
public String  _btnregresar_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "btnregresar_click", false))
	 {return ((String) Debug.delegate(ba, "btnregresar_click", null));}
RDebugUtils.currentLine=16121856;
 //BA.debugLineNum = 16121856;BA.debugLine="Private Sub btnRegresar_Click";
RDebugUtils.currentLine=16121857;
 //BA.debugLineNum = 16121857;BA.debugLine="pnlCobranza.Visible = False";
__ref._pnlcobranza /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=16121858;
 //BA.debugLineNum = 16121858;BA.debugLine="End Sub";
return "";
}
public String  _busca_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "busca_click", false))
	 {return ((String) Debug.delegate(ba, "busca_click", null));}
RDebugUtils.currentLine=14221312;
 //BA.debugLineNum = 14221312;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=14221313;
 //BA.debugLineNum = 14221313;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=14221314;
 //BA.debugLineNum = 14221314;BA.debugLine="End Sub";
return "";
}
public String  _carga_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "carga_click", false))
	 {return ((String) Debug.delegate(ba, "carga_click", null));}
RDebugUtils.currentLine=14876672;
 //BA.debugLineNum = 14876672;BA.debugLine="Sub CARGA_Click";
RDebugUtils.currentLine=14876673;
 //BA.debugLineNum = 14876673;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=14876674;
 //BA.debugLineNum = 14876674;BA.debugLine="End Sub";
return "";
}
public String  _cargar_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargar_click", false))
	 {return ((String) Debug.delegate(ba, "cargar_click", null));}
boolean _pedidodiaanterior = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null;
String[] _fecha2 = null;
String _dia = "";
String _dia2 = "";
RDebugUtils.currentLine=13959168;
 //BA.debugLineNum = 13959168;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=13959169;
 //BA.debugLineNum = 13959169;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=13959170;
 //BA.debugLineNum = 13959170;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 /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from PEDIDO")));
RDebugUtils.currentLine=13959171;
 //BA.debugLineNum = 13959171;BA.debugLine="If cp.RowCount > 0 Then";
if (_cp.getRowCount()>0) { 
RDebugUtils.currentLine=13959172;
 //BA.debugLineNum = 13959172;BA.debugLine="cp.Position = 0";
_cp.setPosition((int) (0));
RDebugUtils.currentLine=13959173;
 //BA.debugLineNum = 13959173;BA.debugLine="Private fecha As String = cp.GetString(\"PE_FECHA";
_fecha = _cp.GetString("PE_FECHA");
RDebugUtils.currentLine=13959174;
 //BA.debugLineNum = 13959174;BA.debugLine="Dim fecha2() As String = Regex.Split(\"/\",fecha)";
_fecha2 = __c.Regex.Split("/",__ref._fecha /*String*/ );
RDebugUtils.currentLine=13959175;
 //BA.debugLineNum = 13959175;BA.debugLine="Dim dia As String = fecha2(1)";
_dia = _fecha2[(int) (1)];
RDebugUtils.currentLine=13959176;
 //BA.debugLineNum = 13959176;BA.debugLine="Log(dia)";
__c.LogImpl("513959176",_dia,0);
RDebugUtils.currentLine=13959177;
 //BA.debugLineNum = 13959177;BA.debugLine="Dim dia2 As String = DateTime.GetDayOfMonth(Date";
_dia2 = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
RDebugUtils.currentLine=13959178;
 //BA.debugLineNum = 13959178;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("513959178",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=13959179;
 //BA.debugLineNum = 13959179;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=13959180;
 //BA.debugLineNum = 13959180;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=13959183;
 //BA.debugLineNum = 13959183;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=13959184;
 //BA.debugLineNum = 13959184;BA.debugLine="CARGA = \"CARGAR\"";
__ref._carga /*String*/  = "CARGAR";
RDebugUtils.currentLine=13959185;
 //BA.debugLineNum = 13959185;BA.debugLine="p_mandaInfo.Width = Root.Width";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=13959186;
 //BA.debugLineNum = 13959186;BA.debugLine="p_mandaInfo.Height = Root.Height";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=13959187;
 //BA.debugLineNum = 13959187;BA.debugLine="P1.Left = (p_mandaInfo.Width/2) - (P1.Width/2)";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) ((__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)-(__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=13959188;
 //BA.debugLineNum = 13959188;BA.debugLine="P1.top = (p_mandaInfo.Height/2) - (P1.Height/2)";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) ((__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()/(double)2)-(__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()/(double)2)));
RDebugUtils.currentLine=13959189;
 //BA.debugLineNum = 13959189;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959190;
 //BA.debugLineNum = 13959190;BA.debugLine="L_P_1.Visible = True";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959191;
 //BA.debugLineNum = 13959191;BA.debugLine="S_CC.Visible = True";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959192;
 //BA.debugLineNum = 13959192;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959193;
 //BA.debugLineNum = 13959193;BA.debugLine="P1.Visible = True";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959194;
 //BA.debugLineNum = 13959194;BA.debugLine="p_mandaInfo.Visible = True";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959195;
 //BA.debugLineNum = 13959195;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959196;
 //BA.debugLineNum = 13959196;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=13959197;
 //BA.debugLineNum = 13959197;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=13959198;
 //BA.debugLineNum = 13959198;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
_subs._centrapanelv /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=13959200;
 //BA.debugLineNum = 13959200;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959201;
 //BA.debugLineNum = 13959201;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959202;
 //BA.debugLineNum = 13959202;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959203;
 //BA.debugLineNum = 13959203;BA.debugLine="L_P_3.Visible = True";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959204;
 //BA.debugLineNum = 13959204;BA.debugLine="S_CH.Visible = True";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959205;
 //BA.debugLineNum = 13959205;BA.debugLine="PB1.Visible = True";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13959206;
 //BA.debugLineNum = 13959206;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959208;
 //BA.debugLineNum = 13959208;BA.debugLine="L_P_1.Text = \"Catalogo de Clientes\"";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogo de Clientes"));
RDebugUtils.currentLine=13959209;
 //BA.debugLineNum = 13959209;BA.debugLine="L_P_2.Text = \"Catalogos de Productos\"";
__ref._l_p_2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogos de Productos"));
RDebugUtils.currentLine=13959210;
 //BA.debugLineNum = 13959210;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\"";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogos Historicos"));
RDebugUtils.currentLine=13959211;
 //BA.debugLineNum = 13959211;BA.debugLine="S_CC.Text = \"EN PROCESO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=13959212;
 //BA.debugLineNum = 13959212;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=13959213;
 //BA.debugLineNum = 13959213;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=13959214;
 //BA.debugLineNum = 13959214;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=13959215;
 //BA.debugLineNum = 13959215;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=13959216;
 //BA.debugLineNum = 13959216;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=13959219;
 //BA.debugLineNum = 13959219;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=13959221;
 //BA.debugLineNum = 13959221;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTA_SUPLENCIA");
RDebugUtils.currentLine=13959222;
 //BA.debugLineNum = 13959222;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=13959223;
 //BA.debugLineNum = 13959223;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM GEOCERCA");
RDebugUtils.currentLine=13959224;
 //BA.debugLineNum = 13959224;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM COORDS_ALMACEN");
RDebugUtils.currentLine=13959225;
 //BA.debugLineNum = 13959225;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CLIENTE_NUEVO");
RDebugUtils.currentLine=13959226;
 //BA.debugLineNum = 13959226;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=13959227;
 //BA.debugLineNum = 13959227;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info2");
RDebugUtils.currentLine=13959228;
 //BA.debugLineNum = 13959228;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=13959229;
 //BA.debugLineNum = 13959229;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=13959230;
 //BA.debugLineNum = 13959230;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=13959231;
 //BA.debugLineNum = 13959231;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=13959232;
 //BA.debugLineNum = 13959232;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=13959233;
 //BA.debugLineNum = 13959233;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod4");
RDebugUtils.currentLine=13959234;
 //BA.debugLineNum = 13959234;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=13959235;
 //BA.debugLineNum = 13959235;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=13959236;
 //BA.debugLineNum = 13959236;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=13959237;
 //BA.debugLineNum = 13959237;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=13959238;
 //BA.debugLineNum = 13959238;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=13959239;
 //BA.debugLineNum = 13959239;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=13959240;
 //BA.debugLineNum = 13959240;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=13959241;
 //BA.debugLineNum = 13959241;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_GIRO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_GIRO");
RDebugUtils.currentLine=13959242;
 //BA.debugLineNum = 13959242;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM MARCAS_RUTAS");
RDebugUtils.currentLine=13959243;
 //BA.debugLineNum = 13959243;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_STORE");
RDebugUtils.currentLine=13959244;
 //BA.debugLineNum = 13959244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GEOCERCA");
RDebugUtils.currentLine=13959245;
 //BA.debugLineNum = 13959245;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_MARCAS_CUOTAS");
RDebugUtils.currentLine=13959247;
 //BA.debugLineNum = 13959247;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
RDebugUtils.currentLine=13959249;
 //BA.debugLineNum = 13959249;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select co";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(CAT_VA_DESCRIPCION) as HoraIngreso from cat_variables where CAT_VA_DESCRIPCION = ? ",new String[]{"HoraIngreso"})));
RDebugUtils.currentLine=13959250;
 //BA.debugLineNum = 13959250;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13959251;
 //BA.debugLineNum = 13959251;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=13959253;
 //BA.debugLineNum = 13959253;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HoraIngreso")))>0) { 
RDebugUtils.currentLine=13959254;
 //BA.debugLineNum = 13959254;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update ca";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ?  WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"}));
 }else {
RDebugUtils.currentLine=13959256;
 //BA.debugLineNum = 13959256;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_VALOR,CAT_VA_DESCRIPCION)  VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"}));
 };
RDebugUtils.currentLine=13959258;
 //BA.debugLineNum = 13959258;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13959259;
 //BA.debugLineNum = 13959259;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=13959260;
 //BA.debugLineNum = 13959260;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=13959261;
 //BA.debugLineNum = 13959261;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13959262;
 //BA.debugLineNum = 13959262;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=13959263;
 //BA.debugLineNum = 13959263;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13959265;
 //BA.debugLineNum = 13959265;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=13959266;
 //BA.debugLineNum = 13959266;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=13959267;
 //BA.debugLineNum = 13959267;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=13959268;
 //BA.debugLineNum = 13959268;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=13959270;
 //BA.debugLineNum = 13959270;BA.debugLine="Dim P As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=13959272;
 //BA.debugLineNum = 13959272;BA.debugLine="imei = \"xxxx\"";
__ref._imei /*String*/  = "xxxx";
RDebugUtils.currentLine=13959273;
 //BA.debugLineNum = 13959273;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959274;
 //BA.debugLineNum = 13959274;BA.debugLine="cmd.Name =\"insert_drop_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_SHARK2";
RDebugUtils.currentLine=13959275;
 //BA.debugLineNum = 13959275;BA.debugLine="cmd.Parameters = Array As Object(usuario,e_ruta.";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ ),(Object)(__ref._imei /*String*/ ),(Object)(__ref._stime /*String*/ ),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("CARGA"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=13959277;
 //BA.debugLineNum = 13959277;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
RDebugUtils.currentLine=13959279;
 //BA.debugLineNum = 13959279;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959280;
 //BA.debugLineNum = 13959280;BA.debugLine="cmd.Name = \"select_cat_gunaprod_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_SHARK2";
RDebugUtils.currentLine=13959281;
 //BA.debugLineNum = 13959281;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959282;
 //BA.debugLineNum = 13959282;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=13959284;
 //BA.debugLineNum = 13959284;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959285;
 //BA.debugLineNum = 13959285;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod2_SHARK2";
RDebugUtils.currentLine=13959286;
 //BA.debugLineNum = 13959286;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ruta.";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=13959287;
 //BA.debugLineNum = 13959287;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod2\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod2"));
RDebugUtils.currentLine=13959294;
 //BA.debugLineNum = 13959294;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959295;
 //BA.debugLineNum = 13959295;BA.debugLine="cmd.Name = \"select_coords_almacen_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_SHARK2";
RDebugUtils.currentLine=13959296;
 //BA.debugLineNum = 13959296;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959297;
 //BA.debugLineNum = 13959297;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
RDebugUtils.currentLine=13959304;
 //BA.debugLineNum = 13959304;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959305;
 //BA.debugLineNum = 13959305;BA.debugLine="cmd.Name = \"select_cat_GIRO_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_GIRO_SHARK2";
RDebugUtils.currentLine=13959306;
 //BA.debugLineNum = 13959306;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"giro\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("giro"));
RDebugUtils.currentLine=13959313;
 //BA.debugLineNum = 13959313;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959314;
 //BA.debugLineNum = 13959314;BA.debugLine="cmd.Name = \"select_cat_paquetes_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_SHARK2";
RDebugUtils.currentLine=13959315;
 //BA.debugLineNum = 13959315;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959316;
 //BA.debugLineNum = 13959316;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprodp\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=13959319;
 //BA.debugLineNum = 13959319;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959320;
 //BA.debugLineNum = 13959320;BA.debugLine="cmd.Name = \"select_cat_paquetess_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetess_SHARK2";
RDebugUtils.currentLine=13959321;
 //BA.debugLineNum = 13959321;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959322;
 //BA.debugLineNum = 13959322;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprodp\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=13959324;
 //BA.debugLineNum = 13959324;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959325;
 //BA.debugLineNum = 13959325;BA.debugLine="cmd.Name = \"select_cat_detallepa_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_SHARK2";
RDebugUtils.currentLine=13959326;
 //BA.debugLineNum = 13959326;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959327;
 //BA.debugLineNum = 13959327;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"detallepaq\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=13959329;
 //BA.debugLineNum = 13959329;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959330;
 //BA.debugLineNum = 13959330;BA.debugLine="cmd.Name = \"select_cat_clientes_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_SHARK2";
RDebugUtils.currentLine=13959331;
 //BA.debugLineNum = 13959331;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959332;
 //BA.debugLineNum = 13959332;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=13959334;
 //BA.debugLineNum = 13959334;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959335;
 //BA.debugLineNum = 13959335;BA.debugLine="cmd.Name = \"select_cat_clientes_todos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_todos_SHARK2";
RDebugUtils.currentLine=13959336;
 //BA.debugLineNum = 13959336;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959337;
 //BA.debugLineNum = 13959337;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos_todo";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos_todos"));
RDebugUtils.currentLine=13959339;
 //BA.debugLineNum = 13959339;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959340;
 //BA.debugLineNum = 13959340;BA.debugLine="cmd.Name = \"select_hist_datos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_SHARK2";
RDebugUtils.currentLine=13959341;
 //BA.debugLineNum = 13959341;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959342;
 //BA.debugLineNum = 13959342;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=13959344;
 //BA.debugLineNum = 13959344;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959345;
 //BA.debugLineNum = 13959345;BA.debugLine="cmd.Name = \"select_hist_promos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_SHARK2";
RDebugUtils.currentLine=13959346;
 //BA.debugLineNum = 13959346;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959347;
 //BA.debugLineNum = 13959347;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_promos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=13959354;
 //BA.debugLineNum = 13959354;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959355;
 //BA.debugLineNum = 13959355;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_SHARK2";
RDebugUtils.currentLine=13959356;
 //BA.debugLineNum = 13959356;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959357;
 //BA.debugLineNum = 13959357;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_cliente_p";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
RDebugUtils.currentLine=13959359;
 //BA.debugLineNum = 13959359;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959360;
 //BA.debugLineNum = 13959360;BA.debugLine="cmd.Name = \"select_nom_user_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_nom_user_SHARK2";
RDebugUtils.currentLine=13959361;
 //BA.debugLineNum = 13959361;BA.debugLine="cmd.Parameters = Array As Object(usuario)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ )};
RDebugUtils.currentLine=13959362;
 //BA.debugLineNum = 13959362;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"nom_user\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("nom_user"));
RDebugUtils.currentLine=13959364;
 //BA.debugLineNum = 13959364;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959365;
 //BA.debugLineNum = 13959365;BA.debugLine="cmd.Name = \"select_telefono_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_telefono_SHARK2";
RDebugUtils.currentLine=13959366;
 //BA.debugLineNum = 13959366;BA.debugLine="cmd.Parameters = Array As Object(usuario)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ )};
RDebugUtils.currentLine=13959367;
 //BA.debugLineNum = 13959367;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"telefono\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("telefono"));
RDebugUtils.currentLine=13959375;
 //BA.debugLineNum = 13959375;BA.debugLine="If E_RUTA2.text <> \"\" Then";
if ((__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=13959379;
 //BA.debugLineNum = 13959379;BA.debugLine="E_RUTA2.Visible = False";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959380;
 //BA.debugLineNum = 13959380;BA.debugLine="Panel11.Visible = False";
__ref._panel11 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959382;
 //BA.debugLineNum = 13959382;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959383;
 //BA.debugLineNum = 13959383;BA.debugLine="cmd.Name = \"select_cat_clientes_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_SHARK2";
RDebugUtils.currentLine=13959384;
 //BA.debugLineNum = 13959384;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959385;
 //BA.debugLineNum = 13959385;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=13959387;
 //BA.debugLineNum = 13959387;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959388;
 //BA.debugLineNum = 13959388;BA.debugLine="cmd.Name = \"select_cat_clientes_todos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_todos_SHARK2";
RDebugUtils.currentLine=13959389;
 //BA.debugLineNum = 13959389;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959390;
 //BA.debugLineNum = 13959390;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos_tod";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos_todos"));
RDebugUtils.currentLine=13959392;
 //BA.debugLineNum = 13959392;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959393;
 //BA.debugLineNum = 13959393;BA.debugLine="cmd.Name = \"select_hist_datos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_SHARK2";
RDebugUtils.currentLine=13959394;
 //BA.debugLineNum = 13959394;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959395;
 //BA.debugLineNum = 13959395;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=13959397;
 //BA.debugLineNum = 13959397;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959398;
 //BA.debugLineNum = 13959398;BA.debugLine="cmd.Name = \"select_hist_promos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_SHARK2";
RDebugUtils.currentLine=13959399;
 //BA.debugLineNum = 13959399;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959400;
 //BA.debugLineNum = 13959400;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_promos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=13959402;
 //BA.debugLineNum = 13959402;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959403;
 //BA.debugLineNum = 13959403;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_SHARK2";
RDebugUtils.currentLine=13959404;
 //BA.debugLineNum = 13959404;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959405;
 //BA.debugLineNum = 13959405;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_cliente_";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
 };
RDebugUtils.currentLine=13959408;
 //BA.debugLineNum = 13959408;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959409;
 //BA.debugLineNum = 13959409;BA.debugLine="cmd.Name = \"select_promo_comp_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_promo_comp_SHARK2";
RDebugUtils.currentLine=13959410;
 //BA.debugLineNum = 13959410;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959411;
 //BA.debugLineNum = 13959411;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_comp_prom";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_comp_promos"));
RDebugUtils.currentLine=13959418;
 //BA.debugLineNum = 13959418;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959419;
 //BA.debugLineNum = 13959419;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=13959420;
 //BA.debugLineNum = 13959420;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=13959421;
 //BA.debugLineNum = 13959421;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=13959433;
 //BA.debugLineNum = 13959433;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13959434;
 //BA.debugLineNum = 13959434;BA.debugLine="cmd.Name = \"select_marcas_rutas_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_marcas_rutas_SHARK2";
RDebugUtils.currentLine=13959435;
 //BA.debugLineNum = 13959435;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=13959436;
 //BA.debugLineNum = 13959436;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"marcas_rutas\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("marcas_rutas"));
RDebugUtils.currentLine=13959459;
 //BA.debugLineNum = 13959459;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959460;
 //BA.debugLineNum = 13959460;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959461;
 //BA.debugLineNum = 13959461;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13959462;
 //BA.debugLineNum = 13959462;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);};
 }else {
RDebugUtils.currentLine=13959464;
 //BA.debugLineNum = 13959464;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("513959464","XXXX",0);
RDebugUtils.currentLine=13959465;
 //BA.debugLineNum = 13959465;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=13959467;
 //BA.debugLineNum = 13959467;BA.debugLine="End Sub";
return "";
}
public boolean  _chkiftableexists(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.sql.SQL _db,String _table) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "chkiftableexists", false))
	 {return ((Boolean) Debug.delegate(ba, "chkiftableexists", new Object[] {_db,_table}));}
boolean _t = false;
RDebugUtils.currentLine=13500416;
 //BA.debugLineNum = 13500416;BA.debugLine="Sub chkIfTableExists(db As SQL, table As String) A";
RDebugUtils.currentLine=13500417;
 //BA.debugLineNum = 13500417;BA.debugLine="Private t As Boolean = False 'ignore";
_t = __c.False;
RDebugUtils.currentLine=13500418;
 //BA.debugLineNum = 13500418;BA.debugLine="If db.IsInitialized Then";
if (_db.IsInitialized()) { 
RDebugUtils.currentLine=13500419;
 //BA.debugLineNum = 13500419;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"S";
_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 name FROM sqlite_master WHERE type='table' AND name='"+__c.SmartStringFormatter("",(Object)(_table))+"'"))));
RDebugUtils.currentLine=13500420;
 //BA.debugLineNum = 13500420;BA.debugLine="If c.RowCount > 0 Then t = True";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
_t = __c.True;};
RDebugUtils.currentLine=13500421;
 //BA.debugLineNum = 13500421;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=13500423;
 //BA.debugLineNum = 13500423;BA.debugLine="Return t";
if (true) return _t;
RDebugUtils.currentLine=13500424;
 //BA.debugLineNum = 13500424;BA.debugLine="End Sub";
return false;
}
public String  _class_globals(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=13303808;
 //BA.debugLineNum = 13303808;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=13303809;
 //BA.debugLineNum = 13303809;BA.debugLine="Public rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
RDebugUtils.currentLine=13303810;
 //BA.debugLineNum = 13303810;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=13303811;
 //BA.debugLineNum = 13303811;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=13303813;
 //BA.debugLineNum = 13303813;BA.debugLine="Dim rd As C_RespaldoDiario";
_rd = new SHARK2.keymon.com.mx.c_respaldodiario();
RDebugUtils.currentLine=13303814;
 //BA.debugLineNum = 13303814;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new SHARK2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=13303815;
 //BA.debugLineNum = 13303815;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=13303816;
 //BA.debugLineNum = 13303816;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=13303817;
 //BA.debugLineNum = 13303817;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=13303818;
 //BA.debugLineNum = 13303818;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=13303819;
 //BA.debugLineNum = 13303819;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=13303820;
 //BA.debugLineNum = 13303820;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=13303821;
 //BA.debugLineNum = 13303821;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303823;
 //BA.debugLineNum = 13303823;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303824;
 //BA.debugLineNum = 13303824;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303825;
 //BA.debugLineNum = 13303825;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303826;
 //BA.debugLineNum = 13303826;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303827;
 //BA.debugLineNum = 13303827;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303828;
 //BA.debugLineNum = 13303828;BA.debugLine="Dim D2 As Cursor";
_d2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13303829;
 //BA.debugLineNum = 13303829;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=13303830;
 //BA.debugLineNum = 13303830;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303831;
 //BA.debugLineNum = 13303831;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303832;
 //BA.debugLineNum = 13303832;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=13303833;
 //BA.debugLineNum = 13303833;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=13303834;
 //BA.debugLineNum = 13303834;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303835;
 //BA.debugLineNum = 13303835;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=13303836;
 //BA.debugLineNum = 13303836;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303837;
 //BA.debugLineNum = 13303837;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13303838;
 //BA.debugLineNum = 13303838;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=13303839;
 //BA.debugLineNum = 13303839;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=13303840;
 //BA.debugLineNum = 13303840;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=13303841;
 //BA.debugLineNum = 13303841;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=13303842;
 //BA.debugLineNum = 13303842;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=13303843;
 //BA.debugLineNum = 13303843;BA.debugLine="Dim L_MONTOD As Label";
_l_montod = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303844;
 //BA.debugLineNum = 13303844;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303845;
 //BA.debugLineNum = 13303845;BA.debugLine="Dim l_drop As Label";
_l_drop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303846;
 //BA.debugLineNum = 13303846;BA.debugLine="Dim l_efectiva As Label";
_l_efectiva = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303847;
 //BA.debugLineNum = 13303847;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303848;
 //BA.debugLineNum = 13303848;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303849;
 //BA.debugLineNum = 13303849;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=13303850;
 //BA.debugLineNum = 13303850;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303851;
 //BA.debugLineNum = 13303851;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13303852;
 //BA.debugLineNum = 13303852;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303853;
 //BA.debugLineNum = 13303853;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303854;
 //BA.debugLineNum = 13303854;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303855;
 //BA.debugLineNum = 13303855;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=13303856;
 //BA.debugLineNum = 13303856;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303857;
 //BA.debugLineNum = 13303857;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=13303858;
 //BA.debugLineNum = 13303858;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=13303859;
 //BA.debugLineNum = 13303859;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=13303860;
 //BA.debugLineNum = 13303860;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=13303861;
 //BA.debugLineNum = 13303861;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=13303862;
 //BA.debugLineNum = 13303862;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=13303863;
 //BA.debugLineNum = 13303863;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=13303864;
 //BA.debugLineNum = 13303864;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=13303865;
 //BA.debugLineNum = 13303865;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=13303866;
 //BA.debugLineNum = 13303866;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=13303867;
 //BA.debugLineNum = 13303867;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=13303868;
 //BA.debugLineNum = 13303868;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=13303869;
 //BA.debugLineNum = 13303869;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=13303870;
 //BA.debugLineNum = 13303870;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=13303872;
 //BA.debugLineNum = 13303872;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303873;
 //BA.debugLineNum = 13303873;BA.debugLine="Private P1 As Panel";
_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13303874;
 //BA.debugLineNum = 13303874;BA.debugLine="Private CLAVE As EditText";
_clave = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13303875;
 //BA.debugLineNum = 13303875;BA.debugLine="Private B_OK_PAS As Button";
_b_ok_pas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303876;
 //BA.debugLineNum = 13303876;BA.debugLine="Dim PASO As String";
_paso = "";
RDebugUtils.currentLine=13303877;
 //BA.debugLineNum = 13303877;BA.debugLine="Private USUARIO1 As EditText";
_usuario1 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13303878;
 //BA.debugLineNum = 13303878;BA.debugLine="Dim connecta1 As Double";
_connecta1 = 0;
RDebugUtils.currentLine=13303879;
 //BA.debugLineNum = 13303879;BA.debugLine="Dim armafolio As String";
_armafolio = "";
RDebugUtils.currentLine=13303880;
 //BA.debugLineNum = 13303880;BA.debugLine="Private NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303881;
 //BA.debugLineNum = 13303881;BA.debugLine="Private S_CC As Label";
_s_cc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303882;
 //BA.debugLineNum = 13303882;BA.debugLine="Private S_CP As Label";
_s_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303883;
 //BA.debugLineNum = 13303883;BA.debugLine="Private S_CH As Label";
_s_ch = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303884;
 //BA.debugLineNum = 13303884;BA.debugLine="Private PB2 As ProgressBar";
_pb2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=13303885;
 //BA.debugLineNum = 13303885;BA.debugLine="Private PB1 As ProgressBar";
_pb1 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=13303886;
 //BA.debugLineNum = 13303886;BA.debugLine="Private L_P_1 As Label";
_l_p_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303887;
 //BA.debugLineNum = 13303887;BA.debugLine="Private L_P_2 As Label";
_l_p_2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303888;
 //BA.debugLineNum = 13303888;BA.debugLine="Private L_P_3 As Label";
_l_p_3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303889;
 //BA.debugLineNum = 13303889;BA.debugLine="Private CARGA As String";
_carga = "";
RDebugUtils.currentLine=13303890;
 //BA.debugLineNum = 13303890;BA.debugLine="Private PORCENTAJE As String";
_porcentaje = "";
RDebugUtils.currentLine=13303891;
 //BA.debugLineNum = 13303891;BA.debugLine="Private P_RESUMEN As Panel";
_p_resumen = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13303892;
 //BA.debugLineNum = 13303892;BA.debugLine="Private B_OK_RES As Button";
_b_ok_res = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303893;
 //BA.debugLineNum = 13303893;BA.debugLine="Private Resumen As Button";
_resumen = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303894;
 //BA.debugLineNum = 13303894;BA.debugLine="Private L_CUANTOST As Label";
_l_cuantost = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303895;
 //BA.debugLineNum = 13303895;BA.debugLine="Private img3 As ImageView";
_img3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303896;
 //BA.debugLineNum = 13303896;BA.debugLine="Private ImageView3 As ImageView";
_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303897;
 //BA.debugLineNum = 13303897;BA.debugLine="Private ImageView5 As ImageView";
_imageview5 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303898;
 //BA.debugLineNum = 13303898;BA.debugLine="Private L_TICKPROM As Label";
_l_tickprom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303899;
 //BA.debugLineNum = 13303899;BA.debugLine="Private L_MARCAS As ListView";
_l_marcas = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=13303900;
 //BA.debugLineNum = 13303900;BA.debugLine="Private ImageView9 As ImageView";
_imageview9 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303901;
 //BA.debugLineNum = 13303901;BA.debugLine="Private E_RUTA2 As EditText";
_e_ruta2 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13303902;
 //BA.debugLineNum = 13303902;BA.debugLine="Private resdia As ImageView";
_resdia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303903;
 //BA.debugLineNum = 13303903;BA.debugLine="Private hacer_ped As ImageView";
_hacer_ped = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303904;
 //BA.debugLineNum = 13303904;BA.debugLine="Private nvo_cliente As ImageView";
_nvo_cliente = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303905;
 //BA.debugLineNum = 13303905;BA.debugLine="Private tickets_dia As ImageView";
_tickets_dia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=13303906;
 //BA.debugLineNum = 13303906;BA.debugLine="Private l_monto_ks As Label";
_l_monto_ks = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303907;
 //BA.debugLineNum = 13303907;BA.debugLine="Private l_monto_kp As Label";
_l_monto_kp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303908;
 //BA.debugLineNum = 13303908;BA.debugLine="Private l_monto_k As Label";
_l_monto_k = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303909;
 //BA.debugLineNum = 13303909;BA.debugLine="Private l_monto_c1 As Label";
_l_monto_c1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303910;
 //BA.debugLineNum = 13303910;BA.debugLine="Private l_monto_c2 As Label";
_l_monto_c2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303911;
 //BA.debugLineNum = 13303911;BA.debugLine="Private l_monto_c3 As Label";
_l_monto_c3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303912;
 //BA.debugLineNum = 13303912;BA.debugLine="Private l_encuesta As Label";
_l_encuesta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303913;
 //BA.debugLineNum = 13303913;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
RDebugUtils.currentLine=13303914;
 //BA.debugLineNum = 13303914;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=13303915;
 //BA.debugLineNum = 13303915;BA.debugLine="Private bu As BatteryUtilities";
_bu = new SHARK2.keymon.com.mx.batteryutilities();
RDebugUtils.currentLine=13303916;
 //BA.debugLineNum = 13303916;BA.debugLine="Private L_NES As Label";
_l_nes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303917;
 //BA.debugLineNum = 13303917;BA.debugLine="Private L_REAL As Label";
_l_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303918;
 //BA.debugLineNum = 13303918;BA.debugLine="Private L_ALCANCE As Label";
_l_alcance = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303919;
 //BA.debugLineNum = 13303919;BA.debugLine="Private L_VPLAN As Label";
_l_vplan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303920;
 //BA.debugLineNum = 13303920;BA.debugLine="Private L_VREAL As Label";
_l_vreal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303921;
 //BA.debugLineNum = 13303921;BA.debugLine="Private L_EFEC_VIS As Label";
_l_efec_vis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303922;
 //BA.debugLineNum = 13303922;BA.debugLine="Private L_VISITCC As Label";
_l_visitcc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303923;
 //BA.debugLineNum = 13303923;BA.debugLine="Private L_EFEC_PV As Label";
_l_efec_pv = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303924;
 //BA.debugLineNum = 13303924;BA.debugLine="Private L_EFEC_PURA As Label";
_l_efec_pura = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303925;
 //BA.debugLineNum = 13303925;BA.debugLine="Private L_CTE_PROMO As Label";
_l_cte_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303926;
 //BA.debugLineNum = 13303926;BA.debugLine="Private L_REDEN_PROMO As Label";
_l_reden_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303927;
 //BA.debugLineNum = 13303927;BA.debugLine="Private L_LIN_TICK As Label";
_l_lin_tick = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303928;
 //BA.debugLineNum = 13303928;BA.debugLine="Private SCROLL_RESDIA As ScrollView";
_scroll_resdia = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=13303929;
 //BA.debugLineNum = 13303929;BA.debugLine="Private L_ACUMULADO As Label";
_l_acumulado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303930;
 //BA.debugLineNum = 13303930;BA.debugLine="Private L_UNILEVER As Label";
_l_unilever = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303931;
 //BA.debugLineNum = 13303931;BA.debugLine="Private L_RECHAZOP As Label";
_l_rechazop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303932;
 //BA.debugLineNum = 13303932;BA.debugLine="Private L_RECHAZOM As Label";
_l_rechazom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303933;
 //BA.debugLineNum = 13303933;BA.debugLine="Private L_VTA_3MES As Label";
_l_vta_3mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303934;
 //BA.debugLineNum = 13303934;BA.debugLine="Private L_VTA_2MES As Label";
_l_vta_2mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303935;
 //BA.debugLineNum = 13303935;BA.debugLine="Private L_VTA_1MES As Label";
_l_vta_1mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303936;
 //BA.debugLineNum = 13303936;BA.debugLine="Private L_MES_PY As Label";
_l_mes_py = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303937;
 //BA.debugLineNum = 13303937;BA.debugLine="Private L_FREC_DE_CREAL As Label";
_l_frec_de_creal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303938;
 //BA.debugLineNum = 13303938;BA.debugLine="Private L_FREC_DE_COBJ As Label";
_l_frec_de_cobj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303939;
 //BA.debugLineNum = 13303939;BA.debugLine="Private L_COB_VISIT As Label";
_l_cob_visit = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303940;
 //BA.debugLineNum = 13303940;BA.debugLine="Private L_VISIT_REAL As Label";
_l_visit_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303941;
 //BA.debugLineNum = 13303941;BA.debugLine="Private L_VISIT_PLAN As Label";
_l_visit_plan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303942;
 //BA.debugLineNum = 13303942;BA.debugLine="Private L_ECO As Label";
_l_eco = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303943;
 //BA.debugLineNum = 13303943;BA.debugLine="Private L_COB_CCC As Label";
_l_cob_ccc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303944;
 //BA.debugLineNum = 13303944;BA.debugLine="Private L_CTES As Label";
_l_ctes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303945;
 //BA.debugLineNum = 13303945;BA.debugLine="Private L_VPO_VTA As Label";
_l_vpo_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303946;
 //BA.debugLineNum = 13303946;BA.debugLine="Private L_VPO_OBJ As Label";
_l_vpo_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303947;
 //BA.debugLineNum = 13303947;BA.debugLine="Private L_DS_VTA As Label";
_l_ds_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303948;
 //BA.debugLineNum = 13303948;BA.debugLine="Private L_DS_OBJ As Label";
_l_ds_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303949;
 //BA.debugLineNum = 13303949;BA.debugLine="Private L_DRA_VTA As Label";
_l_dra_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303950;
 //BA.debugLineNum = 13303950;BA.debugLine="Private L_DRA_OBJ As Label";
_l_dra_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303951;
 //BA.debugLineNum = 13303951;BA.debugLine="Private L_ALCANCEM As Label";
_l_alcancem = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303952;
 //BA.debugLineNum = 13303952;BA.debugLine="Private L_TENDENCIA As Label";
_l_tendencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303953;
 //BA.debugLineNum = 13303953;BA.debugLine="Private L_VTA_ACUM As Label";
_l_vta_acum = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303954;
 //BA.debugLineNum = 13303954;BA.debugLine="Private L_OBJ_MES As Label";
_l_obj_mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303955;
 //BA.debugLineNum = 13303955;BA.debugLine="Private L_DS_OBJD As Label";
_l_ds_objd = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303956;
 //BA.debugLineNum = 13303956;BA.debugLine="Private L_DS_VTAD As Label";
_l_ds_vtad = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303957;
 //BA.debugLineNum = 13303957;BA.debugLine="Private LPT As String";
_lpt = "";
RDebugUtils.currentLine=13303958;
 //BA.debugLineNum = 13303958;BA.debugLine="Private STEYIN As String";
_steyin = "";
RDebugUtils.currentLine=13303959;
 //BA.debugLineNum = 13303959;BA.debugLine="Private STEYOUT As String";
_steyout = "";
RDebugUtils.currentLine=13303960;
 //BA.debugLineNum = 13303960;BA.debugLine="Private L_PRIO As Label";
_l_prio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303961;
 //BA.debugLineNum = 13303961;BA.debugLine="Private L_SECUND As Label";
_l_secund = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303962;
 //BA.debugLineNum = 13303962;BA.debugLine="Private L_COMP As Label";
_l_comp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303963;
 //BA.debugLineNum = 13303963;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
RDebugUtils.currentLine=13303964;
 //BA.debugLineNum = 13303964;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
RDebugUtils.currentLine=13303965;
 //BA.debugLineNum = 13303965;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
RDebugUtils.currentLine=13303966;
 //BA.debugLineNum = 13303966;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=13303967;
 //BA.debugLineNum = 13303967;BA.debugLine="Dim HORAINGRESO As String";
_horaingreso = "";
RDebugUtils.currentLine=13303968;
 //BA.debugLineNum = 13303968;BA.debugLine="Private L_QUALA As Label";
_l_quala = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303969;
 //BA.debugLineNum = 13303969;BA.debugLine="Private L_FERRERO As Label";
_l_ferrero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303970;
 //BA.debugLineNum = 13303970;BA.debugLine="Private L_SANMARCOS As Label";
_l_sanmarcos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303971;
 //BA.debugLineNum = 13303971;BA.debugLine="Private L_CAMPARI As Label";
_l_campari = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303972;
 //BA.debugLineNum = 13303972;BA.debugLine="Private L_IBERIA As Label";
_l_iberia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303973;
 //BA.debugLineNum = 13303973;BA.debugLine="Private L_BEPENSA As Label";
_l_bepensa = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303974;
 //BA.debugLineNum = 13303974;BA.debugLine="Private L_SCJ As Label";
_l_scj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303975;
 //BA.debugLineNum = 13303975;BA.debugLine="Private L_MEDJ As Label";
_l_medj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303976;
 //BA.debugLineNum = 13303976;BA.debugLine="Private L_DURACELL As Label";
_l_duracell = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303977;
 //BA.debugLineNum = 13303977;BA.debugLine="Private L_GUNA As Label";
_l_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303978;
 //BA.debugLineNum = 13303978;BA.debugLine="Private L_KIMB As Label";
_l_kimb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303979;
 //BA.debugLineNum = 13303979;BA.debugLine="Private L_TRESM As Label";
_l_tresm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303980;
 //BA.debugLineNum = 13303980;BA.debugLine="Private L_REDB As Label";
_l_redb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303981;
 //BA.debugLineNum = 13303981;BA.debugLine="Private Btn_Ubicar As Button";
_btn_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303982;
 //BA.debugLineNum = 13303982;BA.debugLine="Private B_COMM As Button";
_b_comm = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303983;
 //BA.debugLineNum = 13303983;BA.debugLine="Private L_TOTAL_MM As Label";
_l_total_mm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303984;
 //BA.debugLineNum = 13303984;BA.debugLine="Private L_TOTAL_VIVE As Label";
_l_total_vive = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303985;
 //BA.debugLineNum = 13303985;BA.debugLine="Private L_TOTAL_GUNA As Label";
_l_total_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303986;
 //BA.debugLineNum = 13303986;BA.debugLine="Private L_TOTAL_BA As Label";
_l_total_ba = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303987;
 //BA.debugLineNum = 13303987;BA.debugLine="Private L_TOTAL_COMIS As Label";
_l_total_comis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303988;
 //BA.debugLineNum = 13303988;BA.debugLine="Private L_TOTAL_MM_1 As Label";
_l_total_mm_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303989;
 //BA.debugLineNum = 13303989;BA.debugLine="Private L_TOTAL_VIVE_1 As Label";
_l_total_vive_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303990;
 //BA.debugLineNum = 13303990;BA.debugLine="Private L_TOTAL_GUNA_1 As Label";
_l_total_guna_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303991;
 //BA.debugLineNum = 13303991;BA.debugLine="Private L_TOTAL_BA_1 As Label";
_l_total_ba_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303992;
 //BA.debugLineNum = 13303992;BA.debugLine="Private L_TOTAL_COMIS_1 As Label";
_l_total_comis_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13303993;
 //BA.debugLineNum = 13303993;BA.debugLine="Private B_OK_COMISS As Button";
_b_ok_comiss = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13303994;
 //BA.debugLineNum = 13303994;BA.debugLine="Private Panel_C As Panel";
_panel_c = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13303995;
 //BA.debugLineNum = 13303995;BA.debugLine="Private TitleHeight As Int = 50dip";
_titleheight = __c.DipToCurrent((int) (50));
RDebugUtils.currentLine=13303996;
 //BA.debugLineNum = 13303996;BA.debugLine="Private Title2Height As Int = 100dip";
_title2height = __c.DipToCurrent((int) (100));
RDebugUtils.currentLine=13303997;
 //BA.debugLineNum = 13303997;BA.debugLine="Private DividerHeight As Int = 5dip";
_dividerheight = __c.DipToCurrent((int) (5));
RDebugUtils.currentLine=13303998;
 //BA.debugLineNum = 13303998;BA.debugLine="Private CLV1 As CustomListView";
_clv1 = new b4a.example3.customlistview();
RDebugUtils.currentLine=13303999;
 //BA.debugLineNum = 13303999;BA.debugLine="Private pnlTitle As B4XView";
_pnltitle = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=13304000;
 //BA.debugLineNum = 13304000;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=13304001;
 //BA.debugLineNum = 13304001;BA.debugLine="Type TitleData (Title As String)";
;
RDebugUtils.currentLine=13304002;
 //BA.debugLineNum = 13304002;BA.debugLine="Private B_MARCAS As Button";
_b_marcas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304003;
 //BA.debugLineNum = 13304003;BA.debugLine="Private Panel5 As Panel";
_panel5 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304004;
 //BA.debugLineNum = 13304004;BA.debugLine="Private lblTitle As Label";
_lbltitle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304005;
 //BA.debugLineNum = 13304005;BA.debugLine="Private B_OK_PANEL5 As Button";
_b_ok_panel5 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304006;
 //BA.debugLineNum = 13304006;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304007;
 //BA.debugLineNum = 13304007;BA.debugLine="Private p_mandaInfo As Panel";
_p_mandainfo = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304008;
 //BA.debugLineNum = 13304008;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=13304009;
 //BA.debugLineNum = 13304009;BA.debugLine="Private Label22 As Label";
_label22 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304010;
 //BA.debugLineNum = 13304010;BA.debugLine="Private l_rutasuplencia As Label";
_l_rutasuplencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304011;
 //BA.debugLineNum = 13304011;BA.debugLine="Dim userpiezas As String";
_userpiezas = "";
RDebugUtils.currentLine=13304012;
 //BA.debugLineNum = 13304012;BA.debugLine="Private b_abordo As Button";
_b_abordo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304013;
 //BA.debugLineNum = 13304013;BA.debugLine="Private L_ABORDO As Label";
_l_abordo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304014;
 //BA.debugLineNum = 13304014;BA.debugLine="Private L_VENTA As Label";
_l_venta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304015;
 //BA.debugLineNum = 13304015;BA.debugLine="Private L_PREVENTA As Label";
_l_preventa = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304016;
 //BA.debugLineNum = 13304016;BA.debugLine="Private p_abordo As Panel";
_p_abordo = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304017;
 //BA.debugLineNum = 13304017;BA.debugLine="Private Panel11 As Panel";
_panel11 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304018;
 //BA.debugLineNum = 13304018;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
_clv_pick_ciego = new b4a.example3.customlistview();
RDebugUtils.currentLine=13304019;
 //BA.debugLineNum = 13304019;BA.debugLine="Private P_PICK_CIEGO As Panel";
_p_pick_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304020;
 //BA.debugLineNum = 13304020;BA.debugLine="Dim ET_PICK_CIEGO As EditText";
_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13304021;
 //BA.debugLineNum = 13304021;BA.debugLine="Private L_PICK_CIEGO As Label";
_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304022;
 //BA.debugLineNum = 13304022;BA.debugLine="Private P_CIEGO As Panel";
_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304023;
 //BA.debugLineNum = 13304023;BA.debugLine="Dim Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304024;
 //BA.debugLineNum = 13304024;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=13304025;
 //BA.debugLineNum = 13304025;BA.debugLine="Private et_buspc As EditText";
_et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=13304026;
 //BA.debugLineNum = 13304026;BA.debugLine="Private b_tabulador As Button";
_b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304027;
 //BA.debugLineNum = 13304027;BA.debugLine="Private p_b_tabulador As Panel";
_p_b_tabulador = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304028;
 //BA.debugLineNum = 13304028;BA.debugLine="Private pnlCobranza As Panel";
_pnlcobranza = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304029;
 //BA.debugLineNum = 13304029;BA.debugLine="Private clvCobranza As CustomListView";
_clvcobranza = new b4a.example3.customlistview();
RDebugUtils.currentLine=13304030;
 //BA.debugLineNum = 13304030;BA.debugLine="Private pnlBtnCobranza As Panel";
_pnlbtncobranza = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304031;
 //BA.debugLineNum = 13304031;BA.debugLine="Private btnCobranza As Button";
_btncobranza = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304032;
 //BA.debugLineNum = 13304032;BA.debugLine="Private pnlBtnRegresar As Panel";
_pnlbtnregresar = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304033;
 //BA.debugLineNum = 13304033;BA.debugLine="Private btnRegresar As Button";
_btnregresar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304034;
 //BA.debugLineNum = 13304034;BA.debugLine="Private l_Secuencia As Label";
_l_secuencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304035;
 //BA.debugLineNum = 13304035;BA.debugLine="Dim pnlContenedorCobranza As Panel";
_pnlcontenedorcobranza = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304036;
 //BA.debugLineNum = 13304036;BA.debugLine="Private l_Nombre As Label";
_l_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304037;
 //BA.debugLineNum = 13304037;BA.debugLine="Private l_CuentaXCobrar As Label";
_l_cuentaxcobrar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304038;
 //BA.debugLineNum = 13304038;BA.debugLine="Private l_Abono As Label";
_l_abono = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304039;
 //BA.debugLineNum = 13304039;BA.debugLine="Private pnlCabecero As Panel";
_pnlcabecero = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304040;
 //BA.debugLineNum = 13304040;BA.debugLine="Private lblAbono As Label";
_lblabono = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304041;
 //BA.debugLineNum = 13304041;BA.debugLine="Private lblSaldo As Label";
_lblsaldo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304042;
 //BA.debugLineNum = 13304042;BA.debugLine="Private lblCliente As Label";
_lblcliente = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304043;
 //BA.debugLineNum = 13304043;BA.debugLine="Private lblSec As Label";
_lblsec = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304044;
 //BA.debugLineNum = 13304044;BA.debugLine="Private pnlTotal As Panel";
_pnltotal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304045;
 //BA.debugLineNum = 13304045;BA.debugLine="Private lblTotal As Label";
_lbltotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304046;
 //BA.debugLineNum = 13304046;BA.debugLine="Private lblVersion As Label";
_lblversion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=13304047;
 //BA.debugLineNum = 13304047;BA.debugLine="Dim lista_punta As List";
_lista_punta = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=13304048;
 //BA.debugLineNum = 13304048;BA.debugLine="Private p_prod As Panel";
_p_prod = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=13304049;
 //BA.debugLineNum = 13304049;BA.debugLine="Private lv_prod_Prin As ListView";
_lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=13304050;
 //BA.debugLineNum = 13304050;BA.debugLine="Private b_regreso As Button";
_b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304051;
 //BA.debugLineNum = 13304051;BA.debugLine="Private b_productos As Button";
_b_productos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=13304053;
 //BA.debugLineNum = 13304053;BA.debugLine="End Sub";
return "";
}
public String  _connecta_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_click", false))
	 {return ((String) Debug.delegate(ba, "connecta_click", null));}
RDebugUtils.currentLine=14155776;
 //BA.debugLineNum = 14155776;BA.debugLine="Sub connecta_Click";
RDebugUtils.currentLine=14155777;
 //BA.debugLineNum = 14155777;BA.debugLine="Log( Starter.DBReqServer)";
__c.LogImpl("514155777",_starter._dbreqserver /*String*/ ,0);
RDebugUtils.currentLine=14155778;
 //BA.debugLineNum = 14155778;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_starter._dbreqserver /*String*/ );
RDebugUtils.currentLine=14155779;
 //BA.debugLineNum = 14155779;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=14155780;
 //BA.debugLineNum = 14155780;BA.debugLine="connecta1 = connecta1 + 1";
__ref._connecta1 /*double*/  = __ref._connecta1 /*double*/ +1;
RDebugUtils.currentLine=14155782;
 //BA.debugLineNum = 14155782;BA.debugLine="imei = \"xxxx\"";
__ref._imei /*String*/  = "xxxx";
RDebugUtils.currentLine=14155783;
 //BA.debugLineNum = 14155783;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=14155803;
 //BA.debugLineNum = 14155803;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14155804;
 //BA.debugLineNum = 14155804;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14155806;
 //BA.debugLineNum = 14155806;BA.debugLine="cmd.Name = \"select_ruta_SHARK23\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_SHARK23";
RDebugUtils.currentLine=14155807;
 //BA.debugLineNum = 14155807;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta.";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=14155809;
 //BA.debugLineNum = 14155809;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
RDebugUtils.currentLine=14155811;
 //BA.debugLineNum = 14155811;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
RDebugUtils.currentLine=14155812;
 //BA.debugLineNum = 14155812;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14155813;
 //BA.debugLineNum = 14155813;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14155814;
 //BA.debugLineNum = 14155814;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
RDebugUtils.currentLine=14155817;
 //BA.debugLineNum = 14155817;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("BERNA1")) { 
RDebugUtils.currentLine=14155818;
 //BA.debugLineNum = 14155818;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14155819;
 //BA.debugLineNum = 14155819;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14155820;
 //BA.debugLineNum = 14155820;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
RDebugUtils.currentLine=14155823;
 //BA.debugLineNum = 14155823;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
RDebugUtils.currentLine=14155839;
 //BA.debugLineNum = 14155839;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta_enterpressed", false))
	 {return ((String) Debug.delegate(ba, "e_ruta_enterpressed", null));}
RDebugUtils.currentLine=14352384;
 //BA.debugLineNum = 14352384;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=14352385;
 //BA.debugLineNum = 14352385;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=14352386;
 //BA.debugLineNum = 14352386;BA.debugLine="RES =  Msgbox2(\"Seguro que desea hacer el cierre";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=14352387;
 //BA.debugLineNum = 14352387;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=14352388;
 //BA.debugLineNum = 14352388;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=14352389;
 //BA.debugLineNum = 14352389;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_GIRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_GIRO");
RDebugUtils.currentLine=14352390;
 //BA.debugLineNum = 14352390;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CLIENTE_NUEVO");
RDebugUtils.currentLine=14352391;
 //BA.debugLineNum = 14352391;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM GEOCERCA");
RDebugUtils.currentLine=14352392;
 //BA.debugLineNum = 14352392;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ATIENDE");
RDebugUtils.currentLine=14352393;
 //BA.debugLineNum = 14352393;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM GIROS_ACTUAL");
RDebugUtils.currentLine=14352394;
 //BA.debugLineNum = 14352394;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM COORDS_ALMACEN");
RDebugUtils.currentLine=14352395;
 //BA.debugLineNum = 14352395;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from COORDENADAS");
RDebugUtils.currentLine=14352396;
 //BA.debugLineNum = 14352396;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICKCIEGO_HECHO");
RDebugUtils.currentLine=14352397;
 //BA.debugLineNum = 14352397;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=14352398;
 //BA.debugLineNum = 14352398;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=14352399;
 //BA.debugLineNum = 14352399;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
RDebugUtils.currentLine=14352400;
 //BA.debugLineNum = 14352400;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=14352401;
 //BA.debugLineNum = 14352401;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=14352402;
 //BA.debugLineNum = 14352402;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=14352403;
 //BA.debugLineNum = 14352403;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info2");
RDebugUtils.currentLine=14352404;
 //BA.debugLineNum = 14352404;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=14352405;
 //BA.debugLineNum = 14352405;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=14352406;
 //BA.debugLineNum = 14352406;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=14352407;
 //BA.debugLineNum = 14352407;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod4");
RDebugUtils.currentLine=14352408;
 //BA.debugLineNum = 14352408;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=14352409;
 //BA.debugLineNum = 14352409;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=14352410;
 //BA.debugLineNum = 14352410;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VERIFICACION");
RDebugUtils.currentLine=14352411;
 //BA.debugLineNum = 14352411;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA");
RDebugUtils.currentLine=14352412;
 //BA.debugLineNum = 14352412;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_OUT");
RDebugUtils.currentLine=14352413;
 //BA.debugLineNum = 14352413;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=14352414;
 //BA.debugLineNum = 14352414;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_FACE");
RDebugUtils.currentLine=14352415;
 //BA.debugLineNum = 14352415;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"INSERT INT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)");
RDebugUtils.currentLine=14352416;
 //BA.debugLineNum = 14352416;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_CODIGO_BARRAS");
RDebugUtils.currentLine=14352417;
 //BA.debugLineNum = 14352417;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
RDebugUtils.currentLine=14352418;
 //BA.debugLineNum = 14352418;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
RDebugUtils.currentLine=14352419;
 //BA.debugLineNum = 14352419;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PICK_CIEGO");
RDebugUtils.currentLine=14352420;
 //BA.debugLineNum = 14352420;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTA_SUPLENCIA");
RDebugUtils.currentLine=14352421;
 //BA.debugLineNum = 14352421;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=14352422;
 //BA.debugLineNum = 14352422;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CLIENTES_NUEVOS");
RDebugUtils.currentLine=14352423;
 //BA.debugLineNum = 14352423;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
RDebugUtils.currentLine=14352424;
 //BA.debugLineNum = 14352424;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
RDebugUtils.currentLine=14352425;
 //BA.debugLineNum = 14352425;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENV_MONTO_LIQ");
RDebugUtils.currentLine=14352426;
 //BA.debugLineNum = 14352426;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14352427;
 //BA.debugLineNum = 14352427;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14352428;
 //BA.debugLineNum = 14352428;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14352429;
 //BA.debugLineNum = 14352429;BA.debugLine="l_rutasuplencia.Text = \"\"";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
 };
RDebugUtils.currentLine=14352432;
 //BA.debugLineNum = 14352432;BA.debugLine="If e_ruta.Text = \"IWL\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("IWL")) { 
RDebugUtils.currentLine=14352434;
 //BA.debugLineNum = 14352434;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14352435;
 //BA.debugLineNum = 14352435;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14352436;
 //BA.debugLineNum = 14352436;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14352437;
 //BA.debugLineNum = 14352437;BA.debugLine="img3.Visible =True";
__ref._img3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14352438;
 //BA.debugLineNum = 14352438;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=14352440;
 //BA.debugLineNum = 14352440;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("SUPLENCIA")) { 
RDebugUtils.currentLine=14352441;
 //BA.debugLineNum = 14352441;BA.debugLine="E_RUTA2.Visible = True";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14352442;
 //BA.debugLineNum = 14352442;BA.debugLine="Panel11.Visible = True";
__ref._panel11 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14352444;
 //BA.debugLineNum = 14352444;BA.debugLine="e_ruta.Text= \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
RDebugUtils.currentLine=14352446;
 //BA.debugLineNum = 14352446;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_textchanged(SHARK2.keymon.com.mx.c_principal __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta_textchanged", false))
	 {return ((String) Debug.delegate(ba, "e_ruta_textchanged", new Object[] {_old,_new}));}
String _validchars = "";
RDebugUtils.currentLine=15335424;
 //BA.debugLineNum = 15335424;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri";
RDebugUtils.currentLine=15335425;
 //BA.debugLineNum = 15335425;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV";
_validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
RDebugUtils.currentLine=15335427;
 //BA.debugLineNum = 15335427;BA.debugLine="If Old <> \"KMTS1\" Then";
if ((_old).equals("KMTS1") == false) { 
RDebugUtils.currentLine=15335429;
 //BA.debugLineNum = 15335429;BA.debugLine="Try";
try {RDebugUtils.currentLine=15335430;
 //BA.debugLineNum = 15335430;BA.debugLine="If validChars.Contains(New.SubString(New.Length";
if (_validchars.contains(_new.substring((int) (_new.length()-1)))==__c.False) { 
RDebugUtils.currentLine=15335431;
 //BA.debugLineNum = 15335431;BA.debugLine="e_ruta.Text = New.SubString2(0, New.Length-1)";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_new.substring((int) (0),(int) (_new.length()-1))));
RDebugUtils.currentLine=15335432;
 //BA.debugLineNum = 15335432;BA.debugLine="e_ruta.SelectionStart = e_ruta.Text.Length";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setSelectionStart(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().length());
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=15335435;
 //BA.debugLineNum = 15335435;BA.debugLine="Log(LastException)";
__c.LogImpl("515335435",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=15335438;
 //BA.debugLineNum = 15335438;BA.debugLine="End Sub";
return "";
}
public String  _gettablecolumnlistname(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.sql.SQL _db,String _table) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "gettablecolumnlistname", false))
	 {return ((String) Debug.delegate(ba, "gettablecolumnlistname", new Object[] {_db,_table}));}
String _l = "";
int _i = 0;
RDebugUtils.currentLine=13565952;
 //BA.debugLineNum = 13565952;BA.debugLine="Sub getTableColumnListName(db As SQL, table As Str";
RDebugUtils.currentLine=13565953;
 //BA.debugLineNum = 13565953;BA.debugLine="Private l As String = \"\"";
_l = "";
RDebugUtils.currentLine=13565954;
 //BA.debugLineNum = 13565954;BA.debugLine="If chkIfTableExists(db, table) Then";
if (__ref._chkiftableexists /*boolean*/ (null,_db,_table)) { 
RDebugUtils.currentLine=13565955;
 //BA.debugLineNum = 13565955;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"p";
_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(("pragma table_info("+__c.SmartStringFormatter("",(Object)(_table))+")"))));
RDebugUtils.currentLine=13565956;
 //BA.debugLineNum = 13565956;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13565957;
 //BA.debugLineNum = 13565957;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step5 = 1;
final int limit5 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit5 ;_i = _i + step5 ) {
RDebugUtils.currentLine=13565958;
 //BA.debugLineNum = 13565958;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13565959;
 //BA.debugLineNum = 13565959;BA.debugLine="If l.Length = 0 Then";
if (_l.length()==0) { 
RDebugUtils.currentLine=13565960;
 //BA.debugLineNum = 13565960;BA.debugLine="l = $\"${c.GetString(\"name\")}\"$";
_l = (""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("name")))+"");
 }else {
RDebugUtils.currentLine=13565962;
 //BA.debugLineNum = 13565962;BA.debugLine="l = $\"${l}, ${c.GetString(\"name\")}\"$";
_l = (""+__c.SmartStringFormatter("",(Object)(_l))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("name")))+"");
 };
 }
};
 };
 }else {
RDebugUtils.currentLine=13565967;
 //BA.debugLineNum = 13565967;BA.debugLine="Return \"No existe la tabla.\"";
if (true) return "No existe la tabla.";
 };
RDebugUtils.currentLine=13565969;
 //BA.debugLineNum = 13565969;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13565970;
 //BA.debugLineNum = 13565970;BA.debugLine="Return l";
if (true) return _l;
RDebugUtils.currentLine=13565971;
 //BA.debugLineNum = 13565971;BA.debugLine="End Sub";
return "";
}
public String  _hacer_ped_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "hacer_ped_click", false))
	 {return ((String) Debug.delegate(ba, "hacer_ped_click", null));}
RDebugUtils.currentLine=15007744;
 //BA.debugLineNum = 15007744;BA.debugLine="Sub hacer_ped_Click";
RDebugUtils.currentLine=15007745;
 //BA.debugLineNum = 15007745;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
RDebugUtils.currentLine=15007746;
 //BA.debugLineNum = 15007746;BA.debugLine="End Sub";
return "";
}
public String  _inv_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "inv_click", false))
	 {return ((String) Debug.delegate(ba, "inv_click", null));}
RDebugUtils.currentLine=14417920;
 //BA.debugLineNum = 14417920;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=14417921;
 //BA.debugLineNum = 14417921;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14417922;
 //BA.debugLineNum = 14417922;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14417923;
 //BA.debugLineNum = 14417923;BA.debugLine="inve = 1";
__ref._inve /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14417924;
 //BA.debugLineNum = 14417924;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=14417925;
 //BA.debugLineNum = 14417925;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=14417926;
 //BA.debugLineNum = 14417926;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=14417927;
 //BA.debugLineNum = 14417927;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=14417928;
 //BA.debugLineNum = 14417928;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14417929;
 //BA.debugLineNum = 14417929;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=14417930;
 //BA.debugLineNum = 14417930;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14417931;
 //BA.debugLineNum = 14417931;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14417932;
 //BA.debugLineNum = 14417932;BA.debugLine="cmd.Name = \"select_cat_gunaprod_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_SHARK2";
RDebugUtils.currentLine=14417933;
 //BA.debugLineNum = 14417933;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14417934;
 //BA.debugLineNum = 14417934;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=14417935;
 //BA.debugLineNum = 14417935;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14417936;
 //BA.debugLineNum = 14417936;BA.debugLine="cmd.Name = \"select_cat_paquetes_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_SHARK2";
RDebugUtils.currentLine=14417937;
 //BA.debugLineNum = 14417937;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14417938;
 //BA.debugLineNum = 14417938;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprodp\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=14417940;
 //BA.debugLineNum = 14417940;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14417941;
 //BA.debugLineNum = 14417941;BA.debugLine="cmd.Name = \"select_cat_detallepa_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_SHARK2";
RDebugUtils.currentLine=14417942;
 //BA.debugLineNum = 14417942;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14417943;
 //BA.debugLineNum = 14417943;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"detallepaq\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=14417945;
 //BA.debugLineNum = 14417945;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14417946;
 //BA.debugLineNum = 14417946;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14417947;
 //BA.debugLineNum = 14417947;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14417948;
 //BA.debugLineNum = 14417948;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14417949;
 //BA.debugLineNum = 14417949;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);
RDebugUtils.currentLine=14417950;
 //BA.debugLineNum = 14417950;BA.debugLine="End Sub";
return "";
}
public String  _iv_abordo_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "iv_abordo_click", false))
	 {return ((String) Debug.delegate(ba, "iv_abordo_click", null));}
RDebugUtils.currentLine=15794176;
 //BA.debugLineNum = 15794176;BA.debugLine="Private Sub iv_abordo_Click";
RDebugUtils.currentLine=15794177;
 //BA.debugLineNum = 15794177;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=15794178;
 //BA.debugLineNum = 15794178;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("0")}));
RDebugUtils.currentLine=15794179;
 //BA.debugLineNum = 15794179;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "ABORDO";
RDebugUtils.currentLine=15794180;
 //BA.debugLineNum = 15794180;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=15794181;
 //BA.debugLineNum = 15794181;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(SHARK2.keymon.com.mx.c_principal __ref,SHARK2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
SHARK2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _k = "";
String _n = "";
String _giro = "";
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 = "";
String _cat_cl_mtocompra = "";
String _cat_cl_num_seriefisico = "";
String _cat_cl_bcredito = "";
String _cat_cl_limitecredito = "";
String _cat_cl_giro = "";
String _cat_cl_tipocliente = "";
String _cat_cl_bcoordenadas = "";
SHARK2.keymon.com.mx.dbrequestmanager._dbresult _resultado = null;
int _piezasexiste = 0;
String _pcnoarts = "";
String _pcmonto = "";
String _cat_cl_dias_visita = "";
String _hist_ra_objmes = "";
String _hist_ra_venta = "";
String _hist_ra_tendencia = "";
String _hist_ra_alcance = "";
String _hisr_ra_draobj = "";
String _hist_ra_dravta = "";
String _hist_ra_dsobj = "";
String _hist_ra_dsvta = "";
String _hist_ra_vpoobj = "";
String _hist_ra_vpovta = "";
String _hist_ra_ctes = "";
String _hist_ra_cobccc = "";
String _hist_ra_eco = "";
String _hist_ra_visitplan = "";
String _hist_ra_visireal = "";
String _hist_ra_cobvisit = "";
String _hist_ra_freccompobj = "";
String _hist_ra_freccomreal = "";
String _hist_ra_ventames1 = "";
String _hist_ra_ventames2 = "";
String _hist_ra_ventames3 = "";
String _hist_ra_ventames4 = "";
String _hist_ra_rechazo = "";
String _hist_ra_rechazoporcen = "";
String _hist_ra_semana1 = "";
String _hist_ra_semana1_dias = "";
String _hist_ra_semana1_dra = "";
String _hist_ra_semana2 = "";
String _hist_ra_semana2_dias = "";
String _hist_ra_semana2_dra = "";
String _hist_ra_semana3 = "";
String _hist_ra_semana3_dias = "";
String _hist_ra_semana3_dra = "";
String _hist_ra_semana4 = "";
String _hist_ra_semana4_dias = "";
String _hist_ra_semana4_dra = "";
String _hist_ra_semana5 = "";
String _hist_ra_semana5_dias = "";
String _hist_ra_semana5_dra = "";
String _hist_ra_semana1_lpt = "";
String _hist_ra_semana2_lpt = "";
String _hist_ra_semana3_lpt = "";
String _hist_ra_semana4_lpt = "";
String _hist_ra_semana5_lpt = "";
String _hist_ra_ruta = "";
String _hist_ra_idalmacen = "";
String _hp_cliente = "";
String _hp_codigo_promocion = "";
String _hccp_cliente = "";
String _hccp_promo = "";
String _hccp_cant = "";
String _cat_al_geocerca = "";
String _cat_al_latitud = "";
String _cat_al_longitud = "";
String _hmc_marca = "";
String _hmc_total = "";
String _cat_pa_id = "";
String _cat_pa_maxprom = "";
String _cat_pa_maxpromrec = "";
String _cat_pa_maxpromclie = "";
String _cat_ve_idprod = "";
String _cat_ve_nombre = "";
String _cat_ve_orden = "";
String _hvd_marca = "";
String _clientes = "";
String _hc_ruta = "";
String _hc_cuota1 = "";
String _hc_cuota2 = "";
String _hc_cuota3 = "";
String _hc_cuota4 = "";
String _hc_cuota5 = "";
String _hc_cuota6 = "";
String _hc_meta1 = "";
String _hc_meta2 = "";
String _hc_meta3 = "";
String _hc_meta4 = "";
String _hc_meta5 = "";
String _hc_meta6 = "";
String _cat_gp_id = "";
String _cat_gp_nombre = "";
String _cat_gp_imp1 = "";
String _cat_gp_imp2 = "";
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_gp_tipoprod2 = "";
String _cat_gp_precio1 = "";
String _cat_gp_precio2 = "";
String _cat_gp_precio3 = "";
String _cat_gp_precio4 = "";
String _cat_gp_precio5 = "";
String _cat_gp_precio6 = "";
String _cat_gp_precio7 = "";
String _cat_gp_precio8 = "";
String _cat_gp_precio9 = "";
String _cat_gp_precio10 = "";
String _cat_gp_precio11 = "";
String _cat_gp_presentacion1 = "";
String _cat_gp_presentacion2 = "";
String _cat_gp_presentacion3 = "";
String _cat_gp_presentacion4 = "";
String _cat_gp_presentacion5 = "";
String _cat_gp_presentacion6 = "";
String _cat_gp_presentacion7 = "";
String _cat_gp_presentacion8 = "";
String _cat_gp_presentacion9 = "";
String _cat_gp_presentacion10 = "";
String _cat_gp_presentacion11 = "";
String _cat_gp_umv1 = "";
String _cat_gp_umv2 = "";
String _cat_gp_umv3 = "";
String _cat_gp_umv4 = "";
String _cat_gp_umv5 = "";
String _cat_gp_umv6 = "";
String _cat_gp_umv7 = "";
String _cat_gp_umv8 = "";
String _cat_gp_umv9 = "";
String _cat_gp_umv10 = "";
String _cat_gp_umv11 = "";
String _cat_gp_dirigida1 = "";
String _cat_gp_dirigida2 = "";
String _cat_gp_dirigida3 = "";
String _cat_gp_dirigida4 = "";
String _cat_gp_dirigida5 = "";
String _cat_gp_dirigida6 = "";
String _cat_gp_dirigida7 = "";
String _cat_gp_dirigida8 = "";
String _cat_gp_dirigida9 = "";
String _cat_gp_dirigida10 = "";
String _cat_gp_dirigida11 = "";
String _cat_gp_precio = "";
float _cat_dp_precio4 = 0f;
int _cat_dp_conversion1 = 0;
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 = "";
String _hvd_cliente = "";
String _hvd_pronombre = "";
String _hvd_cant = "";
String _hvd_costo_tot = "";
String _cat_va_descripcion = "";
String _cat_va_valor = "";
int _cuantosp = 0;
int _cuantosc = 0;
int _cuantosn = 0;
String _cat_ve_version = "";
String _valido = "";
String _name2 = "";
String _fecha_hoy = "";
String _idcliente = "";
String _telefono = "";
int _index = 0;
String _nombre_user = "";
RDebugUtils.currentLine=14024704;
 //BA.debugLineNum = 14024704;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=14024705;
 //BA.debugLineNum = 14024705;BA.debugLine="Log(\"JOBDONE PRINCIPAL\")";
__c.LogImpl("514024705","JOBDONE PRINCIPAL",0);
RDebugUtils.currentLine=14024706;
 //BA.debugLineNum = 14024706;BA.debugLine="If reqManager.reqsList.IsInitialized Then 'Si ten";
if (__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
RDebugUtils.currentLine=14024707;
 //BA.debugLineNum = 14024707;BA.debugLine="If reqManager.reqsList.IndexOf(Job.tag) <> -1 Th";
if (__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ )!=-1) { 
RDebugUtils.currentLine=14024708;
 //BA.debugLineNum = 14024708;BA.debugLine="reqManager.reqsList.RemoveAt(reqManager.reqsLis";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ ));
RDebugUtils.currentLine=14024709;
 //BA.debugLineNum = 14024709;BA.debugLine="LogColor($\">>>>>> Quitamos ${Job.tag}\"$, Colors";
__c.LogImpl("514024709",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
 };
RDebugUtils.currentLine=14024711;
 //BA.debugLineNum = 14024711;BA.debugLine="LogColor(\">>>>>> \" & reqManager.reqsList.Size &";
__c.LogImpl("514024711",">>>>>> "+BA.NumberToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
 };
RDebugUtils.currentLine=14024713;
 //BA.debugLineNum = 14024713;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=14024714;
 //BA.debugLineNum = 14024714;BA.debugLine="Log(\"ERROR\")";
__c.LogImpl("514024714","ERROR",0);
RDebugUtils.currentLine=14024715;
 //BA.debugLineNum = 14024715;BA.debugLine="LogColor(\"Error: \" & reqManager.HandleJob(Job).t";
__c.LogImpl("514024715","Error: "+BA.ObjectToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
RDebugUtils.currentLine=14024716;
 //BA.debugLineNum = 14024716;BA.debugLine="Log(\"ex\")";
__c.LogImpl("514024716","ex",0);
RDebugUtils.currentLine=14024717;
 //BA.debugLineNum = 14024717;BA.debugLine="Log(2)";
__c.LogImpl("514024717",BA.NumberToString(2),0);
 }else {
RDebugUtils.currentLine=14024720;
 //BA.debugLineNum = 14024720;BA.debugLine="Log(3)";
__c.LogImpl("514024720",BA.NumberToString(3),0);
RDebugUtils.currentLine=14024721;
 //BA.debugLineNum = 14024721;BA.debugLine="Log(ALMACEN)";
__c.LogImpl("514024721",__ref._almacen /*String*/ ,0);
RDebugUtils.currentLine=14024722;
 //BA.debugLineNum = 14024722;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("514024722","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (0),(int) (160),(int) (0)));
RDebugUtils.currentLine=14024724;
 //BA.debugLineNum = 14024724;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024725;
 //BA.debugLineNum = 14024725;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024726;
 //BA.debugLineNum = 14024726;BA.debugLine="If RESULT.Tag = \"update_gps\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("update_gps"))) { 
RDebugUtils.currentLine=14024727;
 //BA.debugLineNum = 14024727;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group21 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen21 = group21.getSize()
;int index21 = 0;
;
for (; index21 < groupLen21;index21++){
_records = (Object[])(group21.Get(index21));
RDebugUtils.currentLine=14024728;
 //BA.debugLineNum = 14024728;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("514024728","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
RDebugUtils.currentLine=14024729;
 //BA.debugLineNum = 14024729;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group23 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen23 = group23.getSize()
;int index23 = 0;
;
for (; index23 < groupLen23;index23++){
_k = BA.ObjectToString(group23.Get(index23));
RDebugUtils.currentLine=14024730;
 //BA.debugLineNum = 14024730;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("514024730",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
RDebugUtils.currentLine=14024734;
 //BA.debugLineNum = 14024734;BA.debugLine="If RESULT.Tag = \"ins_pedidos\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedidos"))) { 
RDebugUtils.currentLine=14024735;
 //BA.debugLineNum = 14024735;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group29 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen29 = group29.getSize()
;int index29 = 0;
;
for (; index29 < groupLen29;index29++){
_records = (Object[])(group29.Get(index29));
RDebugUtils.currentLine=14024736;
 //BA.debugLineNum = 14024736;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("514024736","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
RDebugUtils.currentLine=14024737;
 //BA.debugLineNum = 14024737;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group31 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen31 = group31.getSize()
;int index31 = 0;
;
for (; index31 < groupLen31;index31++){
_k = BA.ObjectToString(group31.Get(index31));
RDebugUtils.currentLine=14024738;
 //BA.debugLineNum = 14024738;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("514024738",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
RDebugUtils.currentLine=14024742;
 //BA.debugLineNum = 14024742;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuarioA"))) { 
RDebugUtils.currentLine=14024743;
 //BA.debugLineNum = 14024743;BA.debugLine="Private n As String = \"Sin Usuario\"";
_n = "Sin Usuario";
RDebugUtils.currentLine=14024744;
 //BA.debugLineNum = 14024744;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group38 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen38 = group38.getSize()
;int index38 = 0;
;
for (; index38 < groupLen38;index38++){
_records = (Object[])(group38.Get(index38));
RDebugUtils.currentLine=14024745;
 //BA.debugLineNum = 14024745;BA.debugLine="n = records(RESULT.Columns.Get(\"USUARIO\"))";
_n = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
 }
};
RDebugUtils.currentLine=14024747;
 //BA.debugLineNum = 14024747;BA.debugLine="LogColor(\"**************************\"&n, Color";
__c.LogImpl("514024747","**************************"+_n,__c.Colors.Green);
RDebugUtils.currentLine=14024748;
 //BA.debugLineNum = 14024748;BA.debugLine="If n = \"OKActivo\"  Then";
if ((_n).equals("OKActivo")) { 
RDebugUtils.currentLine=14024749;
 //BA.debugLineNum = 14024749;BA.debugLine="Log(\"Usuario guardado en BD es 'Valido'\")";
__c.LogImpl("514024749","Usuario guardado en BD es 'Valido'",0);
 }else 
{RDebugUtils.currentLine=14024750;
 //BA.debugLineNum = 14024750;BA.debugLine="Else If n  = \"OKExpirado\" Then";
if ((_n).equals("OKExpirado")) { 
RDebugUtils.currentLine=14024751;
 //BA.debugLineNum = 14024751;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=14024752;
 //BA.debugLineNum = 14024752;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }else 
{RDebugUtils.currentLine=14024753;
 //BA.debugLineNum = 14024753;BA.debugLine="Else If n = \"OKCancelado\" Then";
if ((_n).equals("OKCancelado")) { 
RDebugUtils.currentLine=14024754;
 //BA.debugLineNum = 14024754;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=14024755;
 //BA.debugLineNum = 14024755;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }else {
RDebugUtils.currentLine=14024757;
 //BA.debugLineNum = 14024757;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=14024758;
 //BA.debugLineNum = 14024758;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }}}
;
RDebugUtils.currentLine=14024760;
 //BA.debugLineNum = 14024760;BA.debugLine="Log(\"*****************  \"&n)";
__c.LogImpl("514024760","*****************  "+_n,0);
 };
 };
RDebugUtils.currentLine=14024764;
 //BA.debugLineNum = 14024764;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024765;
 //BA.debugLineNum = 14024765;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024766;
 //BA.debugLineNum = 14024766;BA.debugLine="If RESULT.Tag = \"giro\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("giro"))) { 
RDebugUtils.currentLine=14024767;
 //BA.debugLineNum = 14024767;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group60 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen60 = group60.getSize()
;int index60 = 0;
;
for (; index60 < groupLen60;index60++){
_records = (Object[])(group60.Get(index60));
RDebugUtils.currentLine=14024768;
 //BA.debugLineNum = 14024768;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_DESC"))))]);
RDebugUtils.currentLine=14024770;
 //BA.debugLineNum = 14024770;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GIRO(GIRO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_giro)}));
 }
};
RDebugUtils.currentLine=14024772;
 //BA.debugLineNum = 14024772;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14024773;
 //BA.debugLineNum = 14024773;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14024774;
 //BA.debugLineNum = 14024774;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14024775;
 //BA.debugLineNum = 14024775;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14024776;
 //BA.debugLineNum = 14024776;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14024777;
 //BA.debugLineNum = 14024777;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14024778;
 //BA.debugLineNum = 14024778;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14024779;
 //BA.debugLineNum = 14024779;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14024781;
 //BA.debugLineNum = 14024781;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14024782;
 //BA.debugLineNum = 14024782;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14024783;
 //BA.debugLineNum = 14024783;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14024784;
 //BA.debugLineNum = 14024784;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14024785;
 //BA.debugLineNum = 14024785;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14024786;
 //BA.debugLineNum = 14024786;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14024787;
 //BA.debugLineNum = 14024787;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14024788;
 //BA.debugLineNum = 14024788;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14024789;
 //BA.debugLineNum = 14024789;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14024795;
 //BA.debugLineNum = 14024795;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024796;
 //BA.debugLineNum = 14024796;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024797;
 //BA.debugLineNum = 14024797;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=14024798;
 //BA.debugLineNum = 14024798;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=14024799;
 //BA.debugLineNum = 14024799;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group89 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen89 = group89.getSize()
;int index89 = 0;
;
for (; index89 < groupLen89;index89++){
_records = (Object[])(group89.Get(index89));
RDebugUtils.currentLine=14024800;
 //BA.debugLineNum = 14024800;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=14024801;
 //BA.debugLineNum = 14024801;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
RDebugUtils.currentLine=14024802;
 //BA.debugLineNum = 14024802;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
RDebugUtils.currentLine=14024803;
 //BA.debugLineNum = 14024803;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
RDebugUtils.currentLine=14024804;
 //BA.debugLineNum = 14024804;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
RDebugUtils.currentLine=14024805;
 //BA.debugLineNum = 14024805;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
RDebugUtils.currentLine=14024806;
 //BA.debugLineNum = 14024806;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
RDebugUtils.currentLine=14024807;
 //BA.debugLineNum = 14024807;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
RDebugUtils.currentLine=14024808;
 //BA.debugLineNum = 14024808;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
RDebugUtils.currentLine=14024809;
 //BA.debugLineNum = 14024809;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
RDebugUtils.currentLine=14024810;
 //BA.debugLineNum = 14024810;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
RDebugUtils.currentLine=14024811;
 //BA.debugLineNum = 14024811;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
RDebugUtils.currentLine=14024812;
 //BA.debugLineNum = 14024812;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
RDebugUtils.currentLine=14024813;
 //BA.debugLineNum = 14024813;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
RDebugUtils.currentLine=14024814;
 //BA.debugLineNum = 14024814;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
RDebugUtils.currentLine=14024815;
 //BA.debugLineNum = 14024815;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
RDebugUtils.currentLine=14024816;
 //BA.debugLineNum = 14024816;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
RDebugUtils.currentLine=14024817;
 //BA.debugLineNum = 14024817;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
RDebugUtils.currentLine=14024818;
 //BA.debugLineNum = 14024818;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]);
RDebugUtils.currentLine=14024819;
 //BA.debugLineNum = 14024819;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]);
RDebugUtils.currentLine=14024820;
 //BA.debugLineNum = 14024820;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=14024821;
 //BA.debugLineNum = 14024821;BA.debugLine="Dim CAT_CL_LIMITECREDITO As String = records(";
_cat_cl_limitecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LIMITECREDITO"))))]);
RDebugUtils.currentLine=14024822;
 //BA.debugLineNum = 14024822;BA.debugLine="Dim CAT_CL_GIRO As String = records(RESULT.Co";
_cat_cl_giro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_GIRO"))))]);
RDebugUtils.currentLine=14024824;
 //BA.debugLineNum = 14024824;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE";
_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]);
RDebugUtils.currentLine=14024826;
 //BA.debugLineNum = 14024826;BA.debugLine="Dim CAT_CL_BCOORDENADAS As String = 0";
_cat_cl_bcoordenadas = BA.NumberToString(0);
RDebugUtils.currentLine=14024827;
 //BA.debugLineNum = 14024827;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(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, CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO, gestion,CAT_CL_BCOORDENADAS, CAT_CL_GIRO,CAT_CL_TIPOCLIENTE) 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_limitecredito),(Object)(_cat_cl_bcoordenadas),(Object)(_cat_cl_giro),(Object)(_cat_cl_tipocliente)}));
RDebugUtils.currentLine=14024828;
 //BA.debugLineNum = 14024828;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)}));
 }
};
RDebugUtils.currentLine=14024830;
 //BA.debugLineNum = 14024830;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(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) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("0"),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("VENTA ABORDO"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("NULL"),(Object)("null"),(Object)("NULL")}));
RDebugUtils.currentLine=14024831;
 //BA.debugLineNum = 14024831;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(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) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1"),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("VENTA RECARGA"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("NULL"),(Object)("null"),(Object)("NULL")}));
RDebugUtils.currentLine=14024832;
 //BA.debugLineNum = 14024832;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14024833;
 //BA.debugLineNum = 14024833;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=14024834;
 //BA.debugLineNum = 14024834;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Catalogo Clientes Actualizados."),__c.True);};
RDebugUtils.currentLine=14024835;
 //BA.debugLineNum = 14024835;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14024836;
 //BA.debugLineNum = 14024836;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14024837;
 //BA.debugLineNum = 14024837;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14024838;
 //BA.debugLineNum = 14024838;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14024843;
 //BA.debugLineNum = 14024843;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024844;
 //BA.debugLineNum = 14024844;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024845;
 //BA.debugLineNum = 14024845;BA.debugLine="If resultado.Tag = \"piezas\" Then 'query tag";
if ((_resultado.Tag /*Object*/ ).equals((Object)("piezas"))) { 
RDebugUtils.currentLine=14024847;
 //BA.debugLineNum = 14024847;BA.debugLine="Dim piezasexiste As Int";
_piezasexiste = 0;
RDebugUtils.currentLine=14024849;
 //BA.debugLineNum = 14024849;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group134 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen134 = group134.getSize()
;int index134 = 0;
;
for (; index134 < groupLen134;index134++){
_records = (Object[])(group134.Get(index134));
RDebugUtils.currentLine=14024851;
 //BA.debugLineNum = 14024851;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
RDebugUtils.currentLine=14024852;
 //BA.debugLineNum = 14024852;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("514024852",BA.NumberToString(_piezasexiste),0);
RDebugUtils.currentLine=14024853;
 //BA.debugLineNum = 14024853;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=14024854;
 //BA.debugLineNum = 14024854;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=14024855;
 //BA.debugLineNum = 14024855;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14024856;
 //BA.debugLineNum = 14024856;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=14024858;
 //BA.debugLineNum = 14024858;BA.debugLine="If piezasexiste =  0 Then";
if (_piezasexiste==0) { 
RDebugUtils.currentLine=14024860;
 //BA.debugLineNum = 14024860;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=14024861;
 //BA.debugLineNum = 14024861;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=14024862;
 //BA.debugLineNum = 14024862;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"SELEC";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ? AND PC_CLIENTE <> 1",new String[]{__ref._userpiezas /*String*/ })));
RDebugUtils.currentLine=14024864;
 //BA.debugLineNum = 14024864;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14024865;
 //BA.debugLineNum = 14024865;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14024866;
 //BA.debugLineNum = 14024866;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=14024867;
 //BA.debugLineNum = 14024867;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
 };
RDebugUtils.currentLine=14024870;
 //BA.debugLineNum = 14024870;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14024871;
 //BA.debugLineNum = 14024871;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14024872;
 //BA.debugLineNum = 14024872;BA.debugLine="cmd.Name = \"insert_HVC_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_HVC_SHARK2";
RDebugUtils.currentLine=14024873;
 //BA.debugLineNum = 14024873;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._userpiezas /*String*/ ),(Object)(_pcnoarts),(Object)(_pcmonto),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=14024874;
 //BA.debugLineNum = 14024874;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insert_hvc\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_hvc"));
 };
 }
};
 };
 };
RDebugUtils.currentLine=14024886;
 //BA.debugLineNum = 14024886;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024887;
 //BA.debugLineNum = 14024887;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024888;
 //BA.debugLineNum = 14024888;BA.debugLine="If RESULT.Tag = \"kmt_datos_todos\" Then 'query t";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos_todos"))) { 
RDebugUtils.currentLine=14024889;
 //BA.debugLineNum = 14024889;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=14024890;
 //BA.debugLineNum = 14024890;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group163 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen163 = group163.getSize()
;int index163 = 0;
;
for (; index163 < groupLen163;index163++){
_records = (Object[])(group163.Get(index163));
RDebugUtils.currentLine=14024891;
 //BA.debugLineNum = 14024891;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=14024892;
 //BA.debugLineNum = 14024892;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
RDebugUtils.currentLine=14024893;
 //BA.debugLineNum = 14024893;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
RDebugUtils.currentLine=14024894;
 //BA.debugLineNum = 14024894;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
RDebugUtils.currentLine=14024895;
 //BA.debugLineNum = 14024895;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
RDebugUtils.currentLine=14024896;
 //BA.debugLineNum = 14024896;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
RDebugUtils.currentLine=14024897;
 //BA.debugLineNum = 14024897;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
RDebugUtils.currentLine=14024898;
 //BA.debugLineNum = 14024898;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
RDebugUtils.currentLine=14024899;
 //BA.debugLineNum = 14024899;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
RDebugUtils.currentLine=14024900;
 //BA.debugLineNum = 14024900;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
RDebugUtils.currentLine=14024901;
 //BA.debugLineNum = 14024901;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
RDebugUtils.currentLine=14024902;
 //BA.debugLineNum = 14024902;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
RDebugUtils.currentLine=14024903;
 //BA.debugLineNum = 14024903;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
RDebugUtils.currentLine=14024904;
 //BA.debugLineNum = 14024904;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
RDebugUtils.currentLine=14024905;
 //BA.debugLineNum = 14024905;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
RDebugUtils.currentLine=14024906;
 //BA.debugLineNum = 14024906;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
RDebugUtils.currentLine=14024907;
 //BA.debugLineNum = 14024907;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
RDebugUtils.currentLine=14024908;
 //BA.debugLineNum = 14024908;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
RDebugUtils.currentLine=14024909;
 //BA.debugLineNum = 14024909;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]);
RDebugUtils.currentLine=14024910;
 //BA.debugLineNum = 14024910;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]);
RDebugUtils.currentLine=14024911;
 //BA.debugLineNum = 14024911;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=14024912;
 //BA.debugLineNum = 14024912;BA.debugLine="Dim CAT_CL_LIMITECREDITO As String = records(";
_cat_cl_limitecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LIMITECREDITO"))))]);
RDebugUtils.currentLine=14024913;
 //BA.debugLineNum = 14024913;BA.debugLine="Dim CAT_CL_DIAS_VISITA As String = records(RE";
_cat_cl_dias_visita = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIAS_VISITA"))))]);
RDebugUtils.currentLine=14024914;
 //BA.debugLineNum = 14024914;BA.debugLine="Dim CAT_CL_GIRO As String = records(RESULT.Co";
_cat_cl_giro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_GIRO"))))]);
RDebugUtils.currentLine=14024915;
 //BA.debugLineNum = 14024915;BA.debugLine="Dim CAT_CL_GIRO As String = records(RESULT.Co";
_cat_cl_giro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_GIRO"))))]);
RDebugUtils.currentLine=14024916;
 //BA.debugLineNum = 14024916;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info2(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_DIAS_VISITA, CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO,CAT_CL_GIRO) 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_dias_visita),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_limitecredito),(Object)(_cat_cl_giro)}));
RDebugUtils.currentLine=14024917;
 //BA.debugLineNum = 14024917;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)}));
 }
};
RDebugUtils.currentLine=14024919;
 //BA.debugLineNum = 14024919;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14024920;
 //BA.debugLineNum = 14024920;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=14024921;
 //BA.debugLineNum = 14024921;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Catalogo Clientes Actualizados."),__c.True);};
RDebugUtils.currentLine=14024922;
 //BA.debugLineNum = 14024922;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14024923;
 //BA.debugLineNum = 14024923;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14024924;
 //BA.debugLineNum = 14024924;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14024925;
 //BA.debugLineNum = 14024925;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14024930;
 //BA.debugLineNum = 14024930;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024931;
 //BA.debugLineNum = 14024931;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024932;
 //BA.debugLineNum = 14024932;BA.debugLine="If RESULT.Tag = \"resum_apk\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("resum_apk"))) { 
RDebugUtils.currentLine=14024933;
 //BA.debugLineNum = 14024933;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group205 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen205 = group205.getSize()
;int index205 = 0;
;
for (; index205 < groupLen205;index205++){
_records = (Object[])(group205.Get(index205));
RDebugUtils.currentLine=14024934;
 //BA.debugLineNum = 14024934;BA.debugLine="Dim HIST_RA_OBJMES As String = records(RESULT";
_hist_ra_objmes = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_OBJMES"))))]);
RDebugUtils.currentLine=14024935;
 //BA.debugLineNum = 14024935;BA.debugLine="Dim HIST_RA_VENTA As String = records(RESULT.";
_hist_ra_venta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VENTA"))))]);
RDebugUtils.currentLine=14024936;
 //BA.debugLineNum = 14024936;BA.debugLine="Dim HIST_RA_TENDENCIA As String = records(RES";
_hist_ra_tendencia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_TENDENCIA"))))]);
RDebugUtils.currentLine=14024937;
 //BA.debugLineNum = 14024937;BA.debugLine="Dim HIST_RA_ALCANCE As String = records(RESUL";
_hist_ra_alcance = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_ALCANCE"))))]);
RDebugUtils.currentLine=14024938;
 //BA.debugLineNum = 14024938;BA.debugLine="Dim HISR_RA_DRAOBJ As String = records(RESULT";
_hisr_ra_draobj = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HISR_RA_DRAOBJ"))))]);
RDebugUtils.currentLine=14024939;
 //BA.debugLineNum = 14024939;BA.debugLine="Dim HIST_RA_DRAVTA As String = records(RESULT";
_hist_ra_dravta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_DRAVTA"))))]);
RDebugUtils.currentLine=14024940;
 //BA.debugLineNum = 14024940;BA.debugLine="Dim HIST_RA_DSOBJ As String = records(RESULT.";
_hist_ra_dsobj = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_DSOBJ"))))]);
RDebugUtils.currentLine=14024941;
 //BA.debugLineNum = 14024941;BA.debugLine="Dim HIST_RA_DSVTA As String = records(RESULT.";
_hist_ra_dsvta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_DSVTA"))))]);
RDebugUtils.currentLine=14024942;
 //BA.debugLineNum = 14024942;BA.debugLine="Dim HIST_RA_VPOOBJ As String = records(RESULT";
_hist_ra_vpoobj = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VPOOBJ"))))]);
RDebugUtils.currentLine=14024943;
 //BA.debugLineNum = 14024943;BA.debugLine="Dim HIST_RA_VPOVTA As String = records(RESULT";
_hist_ra_vpovta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VPOVTA"))))]);
RDebugUtils.currentLine=14024944;
 //BA.debugLineNum = 14024944;BA.debugLine="Dim HIST_RA_CTES As String = records(RESULT.C";
_hist_ra_ctes = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_CTES"))))]);
RDebugUtils.currentLine=14024945;
 //BA.debugLineNum = 14024945;BA.debugLine="Dim HIST_RA_COBCCC As String = records(RESULT";
_hist_ra_cobccc = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_COBCCC"))))]);
RDebugUtils.currentLine=14024946;
 //BA.debugLineNum = 14024946;BA.debugLine="Dim HIST_RA_ECO As String = records(RESULT.Co";
_hist_ra_eco = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_ECO"))))]);
RDebugUtils.currentLine=14024947;
 //BA.debugLineNum = 14024947;BA.debugLine="Dim HIST_RA_VISITPLAN As String = records(RES";
_hist_ra_visitplan = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VISITPLAN"))))]);
RDebugUtils.currentLine=14024948;
 //BA.debugLineNum = 14024948;BA.debugLine="Dim HIST_RA_VISIREAL As String = records(RESU";
_hist_ra_visireal = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VISIREAL"))))]);
RDebugUtils.currentLine=14024949;
 //BA.debugLineNum = 14024949;BA.debugLine="Dim HIST_RA_COBVISIT As String = records(RESU";
_hist_ra_cobvisit = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_COBVISIT"))))]);
RDebugUtils.currentLine=14024950;
 //BA.debugLineNum = 14024950;BA.debugLine="Dim HIST_RA_FRECCOMPOBJ As String = records(R";
_hist_ra_freccompobj = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_FRECCOMPOBJ"))))]);
RDebugUtils.currentLine=14024951;
 //BA.debugLineNum = 14024951;BA.debugLine="Dim HIST_RA_FRECCOMREAL As String = records(R";
_hist_ra_freccomreal = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_FRECCOMREAL"))))]);
RDebugUtils.currentLine=14024952;
 //BA.debugLineNum = 14024952;BA.debugLine="Dim HIST_RA_VENTAMES1 As String = records(RES";
_hist_ra_ventames1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VENTAMES1"))))]);
RDebugUtils.currentLine=14024953;
 //BA.debugLineNum = 14024953;BA.debugLine="Dim HIST_RA_VENTAMES2 As String = records(RES";
_hist_ra_ventames2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VENTAMES2"))))]);
RDebugUtils.currentLine=14024954;
 //BA.debugLineNum = 14024954;BA.debugLine="Dim HIST_RA_VENTAMES3 As String = records(RES";
_hist_ra_ventames3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VENTAMES3"))))]);
RDebugUtils.currentLine=14024955;
 //BA.debugLineNum = 14024955;BA.debugLine="Dim HIST_RA_VENTAMES4 As String = records(RES";
_hist_ra_ventames4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_VENTAMES4"))))]);
RDebugUtils.currentLine=14024956;
 //BA.debugLineNum = 14024956;BA.debugLine="Dim HIST_RA_RECHAZO As String = records(RESUL";
_hist_ra_rechazo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_RECHAZO"))))]);
RDebugUtils.currentLine=14024957;
 //BA.debugLineNum = 14024957;BA.debugLine="Dim HIST_RA_RECHAZOPORCEN As String = records";
_hist_ra_rechazoporcen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_RECHAZOPORCEN"))))]);
RDebugUtils.currentLine=14024958;
 //BA.debugLineNum = 14024958;BA.debugLine="Dim HIST_RA_SEMANA1 As String = records(RESUL";
_hist_ra_semana1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA1"))))]);
RDebugUtils.currentLine=14024959;
 //BA.debugLineNum = 14024959;BA.debugLine="Dim HIST_RA_SEMANA1_DIAS As String = records(";
_hist_ra_semana1_dias = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA1_DIAS"))))]);
RDebugUtils.currentLine=14024960;
 //BA.debugLineNum = 14024960;BA.debugLine="Dim HIST_RA_SEMANA1_DRA As String = records(R";
_hist_ra_semana1_dra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA1_DRA"))))]);
RDebugUtils.currentLine=14024961;
 //BA.debugLineNum = 14024961;BA.debugLine="Dim HIST_RA_SEMANA2 As String = records(RESUL";
_hist_ra_semana2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA2"))))]);
RDebugUtils.currentLine=14024962;
 //BA.debugLineNum = 14024962;BA.debugLine="Dim HIST_RA_SEMANA2_DIAS As String = records(";
_hist_ra_semana2_dias = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA2_DIAS"))))]);
RDebugUtils.currentLine=14024963;
 //BA.debugLineNum = 14024963;BA.debugLine="Dim HIST_RA_SEMANA2_DRA As String = records(R";
_hist_ra_semana2_dra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA2_DRA"))))]);
RDebugUtils.currentLine=14024964;
 //BA.debugLineNum = 14024964;BA.debugLine="Dim HIST_RA_SEMANA3 As String = records(RESUL";
_hist_ra_semana3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA3"))))]);
RDebugUtils.currentLine=14024965;
 //BA.debugLineNum = 14024965;BA.debugLine="Dim HIST_RA_SEMANA3_DIAS As String = records(";
_hist_ra_semana3_dias = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA3_DIAS"))))]);
RDebugUtils.currentLine=14024966;
 //BA.debugLineNum = 14024966;BA.debugLine="Dim HIST_RA_SEMANA3_DRA As String = records(R";
_hist_ra_semana3_dra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA3_DRA"))))]);
RDebugUtils.currentLine=14024967;
 //BA.debugLineNum = 14024967;BA.debugLine="Dim HIST_RA_SEMANA4 As String = records(RESUL";
_hist_ra_semana4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA4"))))]);
RDebugUtils.currentLine=14024968;
 //BA.debugLineNum = 14024968;BA.debugLine="Dim HIST_RA_SEMANA4_DIAS As String = records(";
_hist_ra_semana4_dias = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA4_DIAS"))))]);
RDebugUtils.currentLine=14024969;
 //BA.debugLineNum = 14024969;BA.debugLine="Dim HIST_RA_SEMANA4_DRA As String = records(R";
_hist_ra_semana4_dra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA4_DRA"))))]);
RDebugUtils.currentLine=14024970;
 //BA.debugLineNum = 14024970;BA.debugLine="Dim HIST_RA_SEMANA5 As String = records(RESUL";
_hist_ra_semana5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA5"))))]);
RDebugUtils.currentLine=14024971;
 //BA.debugLineNum = 14024971;BA.debugLine="Dim HIST_RA_SEMANA5_DIAS As String = records(";
_hist_ra_semana5_dias = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA5_DIAS"))))]);
RDebugUtils.currentLine=14024972;
 //BA.debugLineNum = 14024972;BA.debugLine="Dim HIST_RA_SEMANA5_DRA As String = records(R";
_hist_ra_semana5_dra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA5_DRA"))))]);
RDebugUtils.currentLine=14024973;
 //BA.debugLineNum = 14024973;BA.debugLine="Dim HIST_RA_SEMANA1_LPT As String = records(R";
_hist_ra_semana1_lpt = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA1_LPT"))))]);
RDebugUtils.currentLine=14024974;
 //BA.debugLineNum = 14024974;BA.debugLine="Dim HIST_RA_SEMANA2_LPT As String = records(R";
_hist_ra_semana2_lpt = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA2_LPT"))))]);
RDebugUtils.currentLine=14024975;
 //BA.debugLineNum = 14024975;BA.debugLine="Dim HIST_RA_SEMANA3_LPT As String = records(R";
_hist_ra_semana3_lpt = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA3_LPT"))))]);
RDebugUtils.currentLine=14024976;
 //BA.debugLineNum = 14024976;BA.debugLine="Dim HIST_RA_SEMANA4_LPT As String = records(R";
_hist_ra_semana4_lpt = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA4_LPT"))))]);
RDebugUtils.currentLine=14024977;
 //BA.debugLineNum = 14024977;BA.debugLine="Dim HIST_RA_SEMANA5_LPT As String = records(R";
_hist_ra_semana5_lpt = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_SEMANA5_LPT"))))]);
RDebugUtils.currentLine=14024978;
 //BA.debugLineNum = 14024978;BA.debugLine="Dim HIST_RA_RUTA As String = records(RESULT.C";
_hist_ra_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_RUTA"))))]);
RDebugUtils.currentLine=14024979;
 //BA.debugLineNum = 14024979;BA.debugLine="Dim HIST_RA_IDALMACEN As String = records(RES";
_hist_ra_idalmacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_RA_IDALMACEN"))))]);
RDebugUtils.currentLine=14024981;
 //BA.debugLineNum = 14024981;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_RESUM_APK(HIST_RA_OBJMES,HIST_RA_VENTA,HIST_RA_TENDENCIA,HIST_RA_ALCANCE,HISR_RA_DRAOBJ,HIST_RA_DRAVTA,HIST_RA_DSOBJ,HIST_RA_DSVTA,HIST_RA_VPOOBJ,HIST_RA_VPOVTA,HIST_RA_CTES,HIST_RA_COBCCC,HIST_RA_ECO,HIST_RA_VISITPLAN,HIST_RA_VISIREAL,HIST_RA_COBVISIT,HIST_RA_FRECCOMPOBJ,HIST_RA_FRECCOMREAL,HIST_RA_VENTAMES1,HIST_RA_VENTAMES2,HIST_RA_VENTAMES3,HIST_RA_VENTAMES4,HIST_RA_RECHAZO,HIST_RA_RECHAZOPORCEN,HIST_RA_SEMANA1,HIST_RA_SEMANA1_DIAS,HIST_RA_SEMANA1_DRA,HIST_RA_SEMANA2,HIST_RA_SEMANA2_DIAS,HIST_RA_SEMANA2_DRA,HIST_RA_SEMANA3,HIST_RA_SEMANA3_DIAS,HIST_RA_SEMANA3_DRA,HIST_RA_SEMANA4,HIST_RA_SEMANA4_DIAS,HIST_RA_SEMANA4_DRA,HIST_RA_SEMANA5,HIST_RA_SEMANA5_DIAS,HIST_RA_SEMANA5_DRA,HIST_RA_SEMANA1_LPT,HIST_RA_SEMANA2_LPT,HIST_RA_SEMANA3_LPT,HIST_RA_SEMANA4_LPT,HIST_RA_SEMANA5_LPT,HIST_RA_RUTA,HIST_RA_IDALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hist_ra_objmes),(Object)(_hist_ra_venta),(Object)(_hist_ra_tendencia),(Object)(_hist_ra_alcance),(Object)(_hisr_ra_draobj),(Object)(_hist_ra_dravta),(Object)(_hist_ra_dsobj),(Object)(_hist_ra_dsvta),(Object)(_hist_ra_vpoobj),(Object)(_hist_ra_vpovta),(Object)(_hist_ra_ctes),(Object)(_hist_ra_cobccc),(Object)(_hist_ra_eco),(Object)(_hist_ra_visitplan),(Object)(_hist_ra_visireal),(Object)(_hist_ra_cobvisit),(Object)(_hist_ra_freccompobj),(Object)(_hist_ra_freccomreal),(Object)(_hist_ra_ventames1),(Object)(_hist_ra_ventames2),(Object)(_hist_ra_ventames3),(Object)(_hist_ra_ventames4),(Object)(_hist_ra_rechazo),(Object)(_hist_ra_rechazoporcen),(Object)(_hist_ra_semana1),(Object)(_hist_ra_semana1_dias),(Object)(_hist_ra_semana1_dra),(Object)(_hist_ra_semana2),(Object)(_hist_ra_semana2_dias),(Object)(_hist_ra_semana2_dra),(Object)(_hist_ra_semana3),(Object)(_hist_ra_semana3_dias),(Object)(_hist_ra_semana3_dra),(Object)(_hist_ra_semana4),(Object)(_hist_ra_semana4_dias),(Object)(_hist_ra_semana4_dra),(Object)(_hist_ra_semana5),(Object)(_hist_ra_semana5_dias),(Object)(_hist_ra_semana5_dra),(Object)(_hist_ra_semana1_lpt),(Object)(_hist_ra_semana2_lpt),(Object)(_hist_ra_semana3_lpt),(Object)(_hist_ra_semana4_lpt),(Object)(_hist_ra_semana5_lpt),(Object)(_hist_ra_ruta),(Object)(_hist_ra_idalmacen)}));
 }
};
RDebugUtils.currentLine=14024984;
 //BA.debugLineNum = 14024984;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14024985;
 //BA.debugLineNum = 14024985;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=14024986;
 //BA.debugLineNum = 14024986;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Catalogo Resumen Actualizado."),__c.True);};
 };
 };
RDebugUtils.currentLine=14024990;
 //BA.debugLineNum = 14024990;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14024991;
 //BA.debugLineNum = 14024991;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14024992;
 //BA.debugLineNum = 14024992;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_promos"))) { 
RDebugUtils.currentLine=14024993;
 //BA.debugLineNum = 14024993;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group262 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen262 = group262.getSize()
;int index262 = 0;
;
for (; index262 < groupLen262;index262++){
_records = (Object[])(group262.Get(index262));
RDebugUtils.currentLine=14024994;
 //BA.debugLineNum = 14024994;BA.debugLine="Dim HP_CLIENTE As String = records(RESULT.Col";
_hp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CLIENTE"))))]);
RDebugUtils.currentLine=14024995;
 //BA.debugLineNum = 14024995;BA.debugLine="Dim HP_CODIGO_PROMOCION As String = records(R";
_hp_codigo_promocion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CODIGO_PROMOCION"))))]);
RDebugUtils.currentLine=14024996;
 //BA.debugLineNum = 14024996;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hp_cliente),(Object)(_hp_codigo_promocion)}));
 }
};
RDebugUtils.currentLine=14024998;
 //BA.debugLineNum = 14024998;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Historico Promociones Actualizado."),__c.True);};
RDebugUtils.currentLine=14024999;
 //BA.debugLineNum = 14024999;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025000;
 //BA.debugLineNum = 14025000;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025001;
 //BA.debugLineNum = 14025001;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025002;
 //BA.debugLineNum = 14025002;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025003;
 //BA.debugLineNum = 14025003;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025004;
 //BA.debugLineNum = 14025004;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025005;
 //BA.debugLineNum = 14025005;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025006;
 //BA.debugLineNum = 14025006;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=14025011;
 //BA.debugLineNum = 14025011;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025012;
 //BA.debugLineNum = 14025012;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025013;
 //BA.debugLineNum = 14025013;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_cliente_promos"))) { 
RDebugUtils.currentLine=14025014;
 //BA.debugLineNum = 14025014;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group282 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen282 = group282.getSize()
;int index282 = 0;
;
for (; index282 < groupLen282;index282++){
_records = (Object[])(group282.Get(index282));
RDebugUtils.currentLine=14025015;
 //BA.debugLineNum = 14025015;BA.debugLine="Dim HCCP_CLIENTE As String = records(RESULT.C";
_hccp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CLIENTE"))))]);
RDebugUtils.currentLine=14025016;
 //BA.debugLineNum = 14025016;BA.debugLine="Dim HCCP_PROMO As String = records(RESULT.Col";
_hccp_promo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_PROMO"))))]);
RDebugUtils.currentLine=14025017;
 //BA.debugLineNum = 14025017;BA.debugLine="Dim HCCP_CANT As String = records(RESULT.Colu";
_hccp_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CANT"))))]);
RDebugUtils.currentLine=14025018;
 //BA.debugLineNum = 14025018;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_CLIENTE_CANT_PROMOS(HCCP_CLIENTE, HCCP_PROMO, HCCP_CANT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hccp_cliente),(Object)(_hccp_promo),(Object)(_hccp_cant)}));
 }
};
RDebugUtils.currentLine=14025020;
 //BA.debugLineNum = 14025020;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence(" Historico Clientes Promociones Actualizado."),__c.True);};
 };
 };
RDebugUtils.currentLine=14025024;
 //BA.debugLineNum = 14025024;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025025;
 //BA.debugLineNum = 14025025;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025026;
 //BA.debugLineNum = 14025026;BA.debugLine="If RESULT.Tag = \"GEOCERCA\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("GEOCERCA"))) { 
RDebugUtils.currentLine=14025027;
 //BA.debugLineNum = 14025027;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group294 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen294 = group294.getSize()
;int index294 = 0;
;
for (; index294 < groupLen294;index294++){
_records = (Object[])(group294.Get(index294));
RDebugUtils.currentLine=14025028;
 //BA.debugLineNum = 14025028;BA.debugLine="Dim CAT_AL_GEOCERCA As String = records(RESUL";
_cat_al_geocerca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_GEOCERCA"))))]);
RDebugUtils.currentLine=14025029;
 //BA.debugLineNum = 14025029;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO GEOCERCA(ACTIVA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_al_geocerca)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025034;
 //BA.debugLineNum = 14025034;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025035;
 //BA.debugLineNum = 14025035;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025036;
 //BA.debugLineNum = 14025036;BA.debugLine="If RESULT.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
RDebugUtils.currentLine=14025037;
 //BA.debugLineNum = 14025037;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group303 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen303 = group303.getSize()
;int index303 = 0;
;
for (; index303 < groupLen303;index303++){
_records = (Object[])(group303.Get(index303));
RDebugUtils.currentLine=14025038;
 //BA.debugLineNum = 14025038;BA.debugLine="Dim CAT_AL_LATITUD As String = records(RESULT";
_cat_al_latitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]);
RDebugUtils.currentLine=14025039;
 //BA.debugLineNum = 14025039;BA.debugLine="Dim CAT_AL_LONGITUD As String = records(RESUL";
_cat_al_longitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]);
RDebugUtils.currentLine=14025040;
 //BA.debugLineNum = 14025040;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO COORDS_ALMACEN(LAT,LONG) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_al_latitud),(Object)(_cat_al_longitud)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025045;
 //BA.debugLineNum = 14025045;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025046;
 //BA.debugLineNum = 14025046;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025047;
 //BA.debugLineNum = 14025047;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_MARCAS_CUOTAS"))) { 
RDebugUtils.currentLine=14025048;
 //BA.debugLineNum = 14025048;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group313 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen313 = group313.getSize()
;int index313 = 0;
;
for (; index313 < groupLen313;index313++){
_records = (Object[])(group313.Get(index313));
RDebugUtils.currentLine=14025049;
 //BA.debugLineNum = 14025049;BA.debugLine="Dim HMC_MARCA As String = records(RESULT.Colu";
_hmc_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_MARCA"))))]);
RDebugUtils.currentLine=14025050;
 //BA.debugLineNum = 14025050;BA.debugLine="Dim HMC_TOTAL As String = records(RESULT.Colu";
_hmc_total = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_TOTAL"))))]);
RDebugUtils.currentLine=14025051;
 //BA.debugLineNum = 14025051;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_MARCAS_CUOTAS(HMC_MARCA, HMC_TOTAL) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hmc_marca),(Object)(_hmc_total)}));
 }
};
RDebugUtils.currentLine=14025053;
 //BA.debugLineNum = 14025053;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence(" Historico Marcas"),__c.True);};
 };
 };
RDebugUtils.currentLine=14025057;
 //BA.debugLineNum = 14025057;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025058;
 //BA.debugLineNum = 14025058;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025059;
 //BA.debugLineNum = 14025059;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_comp_promos"))) { 
RDebugUtils.currentLine=14025060;
 //BA.debugLineNum = 14025060;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group324 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen324 = group324.getSize()
;int index324 = 0;
;
for (; index324 < groupLen324;index324++){
_records = (Object[])(group324.Get(index324));
RDebugUtils.currentLine=14025061;
 //BA.debugLineNum = 14025061;BA.debugLine="Dim CAT_PA_ID As String = records(RESULT.Colu";
_cat_pa_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_ID"))))]);
RDebugUtils.currentLine=14025062;
 //BA.debugLineNum = 14025062;BA.debugLine="Dim CAT_PA_MAXPROM As String = records(RESULT";
_cat_pa_maxprom = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROM"))))]);
RDebugUtils.currentLine=14025063;
 //BA.debugLineNum = 14025063;BA.debugLine="Dim CAT_PA_MAXPROMREC As String = records(RES";
_cat_pa_maxpromrec = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMREC"))))]);
RDebugUtils.currentLine=14025064;
 //BA.debugLineNum = 14025064;BA.debugLine="Dim CAT_PA_MAXPROMCLIE As String = records(RE";
_cat_pa_maxpromclie = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMCLIE"))))]);
RDebugUtils.currentLine=14025065;
 //BA.debugLineNum = 14025065;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROMOS_COMP(CAT_PA_ID, CAT_PA_MAXPROM, CAT_PA_MAXPROMREC, CAT_PA_MAXPROMCLIE) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pa_id),(Object)(_cat_pa_maxprom),(Object)(_cat_pa_maxpromrec),(Object)(_cat_pa_maxpromclie)}));
 }
};
RDebugUtils.currentLine=14025067;
 //BA.debugLineNum = 14025067;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025068;
 //BA.debugLineNum = 14025068;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025069;
 //BA.debugLineNum = 14025069;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025070;
 //BA.debugLineNum = 14025070;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025071;
 //BA.debugLineNum = 14025071;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025072;
 //BA.debugLineNum = 14025072;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025073;
 //BA.debugLineNum = 14025073;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025074;
 //BA.debugLineNum = 14025074;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=14025079;
 //BA.debugLineNum = 14025079;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025080;
 //BA.debugLineNum = 14025080;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025081;
 //BA.debugLineNum = 14025081;BA.debugLine="If RESULT.Tag = \"cat_verificacion\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("cat_verificacion"))) { 
RDebugUtils.currentLine=14025082;
 //BA.debugLineNum = 14025082;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group345 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen345 = group345.getSize()
;int index345 = 0;
;
for (; index345 < groupLen345;index345++){
_records = (Object[])(group345.Get(index345));
RDebugUtils.currentLine=14025083;
 //BA.debugLineNum = 14025083;BA.debugLine="Dim CAT_VE_IDPROD As String = records(RESULT.";
_cat_ve_idprod = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_IDPROD"))))]);
RDebugUtils.currentLine=14025084;
 //BA.debugLineNum = 14025084;BA.debugLine="Dim CAT_VE_NOMBRE As String = records(RESULT.";
_cat_ve_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_NOMBRE"))))]);
RDebugUtils.currentLine=14025085;
 //BA.debugLineNum = 14025085;BA.debugLine="Dim CAT_VE_ORDEN As String = records(RESULT.C";
_cat_ve_orden = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_ORDEN"))))]);
RDebugUtils.currentLine=14025086;
 //BA.debugLineNum = 14025086;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VERIFICACION(CAT_VE_IDPROD, CAT_VE_NOMBRE,CAT_VE_ORDEN) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_idprod),(Object)(_cat_ve_nombre),(Object)(_cat_ve_orden)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025091;
 //BA.debugLineNum = 14025091;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025092;
 //BA.debugLineNum = 14025092;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025093;
 //BA.debugLineNum = 14025093;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("marcas_rutas"))) { 
RDebugUtils.currentLine=14025094;
 //BA.debugLineNum = 14025094;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group356 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen356 = group356.getSize()
;int index356 = 0;
;
for (; index356 < groupLen356;index356++){
_records = (Object[])(group356.Get(index356));
RDebugUtils.currentLine=14025095;
 //BA.debugLineNum = 14025095;BA.debugLine="Dim HVD_MARCA As String = records(RESULT.Colu";
_hvd_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_MARCA"))))]);
RDebugUtils.currentLine=14025096;
 //BA.debugLineNum = 14025096;BA.debugLine="Dim CLIENTES As String = records(RESULT.Colum";
_clientes = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTES"))))]);
RDebugUtils.currentLine=14025097;
 //BA.debugLineNum = 14025097;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO MARCAS_RUTAS(HVD_MARCA, CLIENTES) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_marca),(Object)(_clientes)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025103;
 //BA.debugLineNum = 14025103;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025104;
 //BA.debugLineNum = 14025104;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025105;
 //BA.debugLineNum = 14025105;BA.debugLine="If RESULT.Tag = \"CUOTAS\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUOTAS"))) { 
RDebugUtils.currentLine=14025106;
 //BA.debugLineNum = 14025106;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group366 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen366 = group366.getSize()
;int index366 = 0;
;
for (; index366 < groupLen366;index366++){
_records = (Object[])(group366.Get(index366));
RDebugUtils.currentLine=14025107;
 //BA.debugLineNum = 14025107;BA.debugLine="Dim HC_RUTA As String = records(RESULT.Column";
_hc_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_RUTA"))))]);
RDebugUtils.currentLine=14025108;
 //BA.debugLineNum = 14025108;BA.debugLine="Dim HC_CUOTA1 As String = records(RESULT.Colu";
_hc_cuota1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA1"))))]);
RDebugUtils.currentLine=14025109;
 //BA.debugLineNum = 14025109;BA.debugLine="Dim HC_CUOTA2 As String = records(RESULT.Colu";
_hc_cuota2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA2"))))]);
RDebugUtils.currentLine=14025110;
 //BA.debugLineNum = 14025110;BA.debugLine="Dim HC_CUOTA3 As String = records(RESULT.Colu";
_hc_cuota3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA3"))))]);
RDebugUtils.currentLine=14025111;
 //BA.debugLineNum = 14025111;BA.debugLine="Dim HC_CUOTA4 As String = records(RESULT.Colu";
_hc_cuota4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA4"))))]);
RDebugUtils.currentLine=14025112;
 //BA.debugLineNum = 14025112;BA.debugLine="Dim HC_CUOTA5 As String = records(RESULT.Colu";
_hc_cuota5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA5"))))]);
RDebugUtils.currentLine=14025113;
 //BA.debugLineNum = 14025113;BA.debugLine="Dim HC_CUOTA6 As String = records(RESULT.Colu";
_hc_cuota6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CUOTA6"))))]);
RDebugUtils.currentLine=14025114;
 //BA.debugLineNum = 14025114;BA.debugLine="Dim HC_META1 As String = records(RESULT.Colum";
_hc_meta1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META1"))))]);
RDebugUtils.currentLine=14025115;
 //BA.debugLineNum = 14025115;BA.debugLine="Dim HC_META2 As String = records(RESULT.Colum";
_hc_meta2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META2"))))]);
RDebugUtils.currentLine=14025116;
 //BA.debugLineNum = 14025116;BA.debugLine="Dim HC_META3 As String = records(RESULT.Colum";
_hc_meta3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META3"))))]);
RDebugUtils.currentLine=14025117;
 //BA.debugLineNum = 14025117;BA.debugLine="Dim HC_META4 As String = records(RESULT.Colum";
_hc_meta4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META4"))))]);
RDebugUtils.currentLine=14025118;
 //BA.debugLineNum = 14025118;BA.debugLine="Dim HC_META5 As String = records(RESULT.Colum";
_hc_meta5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META5"))))]);
RDebugUtils.currentLine=14025119;
 //BA.debugLineNum = 14025119;BA.debugLine="Dim HC_META6 As String = records(RESULT.Colum";
_hc_meta6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_META6"))))]);
RDebugUtils.currentLine=14025120;
 //BA.debugLineNum = 14025120;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_CUOTAS(HC_RUTA, HC_CUOTA1,HC_CUOTA2,HC_CUOTA3,HC_CUOTA4,HC_CUOTA5,HC_CUOTA6,HC_META1,HC_META2,HC_META3,HC_META4,HC_META5,HC_META6) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hc_ruta),(Object)(_hc_cuota1),(Object)(_hc_cuota2),(Object)(_hc_cuota3),(Object)(_hc_cuota4),(Object)(_hc_cuota5),(Object)(_hc_cuota6),(Object)(_hc_meta1),(Object)(_hc_meta2),(Object)(_hc_meta3),(Object)(_hc_meta4),(Object)(_hc_meta5),(Object)(_hc_meta6)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025140;
 //BA.debugLineNum = 14025140;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025141;
 //BA.debugLineNum = 14025141;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025142;
 //BA.debugLineNum = 14025142;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=14025143;
 //BA.debugLineNum = 14025143;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()<30) { 
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));};
RDebugUtils.currentLine=14025144;
 //BA.debugLineNum = 14025144;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group388 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen388 = group388.getSize()
;int index388 = 0;
;
for (; index388 < groupLen388;index388++){
_records = (Object[])(group388.Get(index388));
RDebugUtils.currentLine=14025145;
 //BA.debugLineNum = 14025145;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_DP_ID"))))]);
RDebugUtils.currentLine=14025146;
 //BA.debugLineNum = 14025146;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_DP_NOMBRE"))))]);
RDebugUtils.currentLine=14025147;
 //BA.debugLineNum = 14025147;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_DP_IMP1"))))]);
RDebugUtils.currentLine=14025148;
 //BA.debugLineNum = 14025148;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_DP_IMP2"))))]);
RDebugUtils.currentLine=14025149;
 //BA.debugLineNum = 14025149;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_DP_CLASIF"))))]);
RDebugUtils.currentLine=14025150;
 //BA.debugLineNum = 14025150;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_DP_STS"))))]);
RDebugUtils.currentLine=14025151;
 //BA.debugLineNum = 14025151;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_DP_TIPO"))))]);
RDebugUtils.currentLine=14025152;
 //BA.debugLineNum = 14025152;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_DP_SUBTIPO"))))]);
RDebugUtils.currentLine=14025153;
 //BA.debugLineNum = 14025153;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_DP_IMG"))))]);
RDebugUtils.currentLine=14025154;
 //BA.debugLineNum = 14025154;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_DP_ALMACEN"))))]));
RDebugUtils.currentLine=14025155;
 //BA.debugLineNum = 14025155;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_DP_DEV"))))]);
RDebugUtils.currentLine=14025156;
 //BA.debugLineNum = 14025156;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_DP_TIPOPROD"))))]));
RDebugUtils.currentLine=14025157;
 //BA.debugLineNum = 14025157;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_DP_INICIATIVA"))))]));
RDebugUtils.currentLine=14025159;
 //BA.debugLineNum = 14025159;BA.debugLine="Dim CAT_GP_TIPOPROD2 As String = 0";
_cat_gp_tipoprod2 = BA.NumberToString(0);
RDebugUtils.currentLine=14025162;
 //BA.debugLineNum = 14025162;BA.debugLine="Dim CAT_GP_PRECIO1 As String = records(RESULT";
_cat_gp_precio1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO1"))))]);
RDebugUtils.currentLine=14025163;
 //BA.debugLineNum = 14025163;BA.debugLine="Dim CAT_GP_PRECIO2 As String = records(RESULT";
_cat_gp_precio2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO2"))))]);
RDebugUtils.currentLine=14025164;
 //BA.debugLineNum = 14025164;BA.debugLine="Dim CAT_GP_PRECIO3 As String = records(RESULT";
_cat_gp_precio3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO3"))))]);
RDebugUtils.currentLine=14025165;
 //BA.debugLineNum = 14025165;BA.debugLine="Dim CAT_GP_PRECIO4 As String = records(RESULT";
_cat_gp_precio4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]);
RDebugUtils.currentLine=14025166;
 //BA.debugLineNum = 14025166;BA.debugLine="Dim CAT_GP_PRECIO5 As String = records(RESULT";
_cat_gp_precio5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO5"))))]);
RDebugUtils.currentLine=14025167;
 //BA.debugLineNum = 14025167;BA.debugLine="Dim CAT_GP_PRECIO6 As String = records(RESULT";
_cat_gp_precio6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO6"))))]);
RDebugUtils.currentLine=14025168;
 //BA.debugLineNum = 14025168;BA.debugLine="Dim CAT_GP_PRECIO7 As String = records(RESULT";
_cat_gp_precio7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO7"))))]);
RDebugUtils.currentLine=14025169;
 //BA.debugLineNum = 14025169;BA.debugLine="Dim CAT_GP_PRECIO8 As String = records(RESULT";
_cat_gp_precio8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO8"))))]);
RDebugUtils.currentLine=14025170;
 //BA.debugLineNum = 14025170;BA.debugLine="Dim CAT_GP_PRECIO9 As String = records(RESULT";
_cat_gp_precio9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO9"))))]);
RDebugUtils.currentLine=14025171;
 //BA.debugLineNum = 14025171;BA.debugLine="Dim CAT_GP_PRECIO10 As String = records(RESUL";
_cat_gp_precio10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO10"))))]);
RDebugUtils.currentLine=14025172;
 //BA.debugLineNum = 14025172;BA.debugLine="Dim CAT_GP_PRECIO11 As String = records(RESUL";
_cat_gp_precio11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO11"))))]);
RDebugUtils.currentLine=14025175;
 //BA.debugLineNum = 14025175;BA.debugLine="Dim CAT_GP_PRESENTACION1 As String = records(";
_cat_gp_presentacion1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION1"))))]);
RDebugUtils.currentLine=14025176;
 //BA.debugLineNum = 14025176;BA.debugLine="Dim CAT_GP_PRESENTACION2 As String = records(";
_cat_gp_presentacion2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION2"))))]);
RDebugUtils.currentLine=14025177;
 //BA.debugLineNum = 14025177;BA.debugLine="Dim CAT_GP_PRESENTACION3 As String = records(";
_cat_gp_presentacion3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION3"))))]);
RDebugUtils.currentLine=14025178;
 //BA.debugLineNum = 14025178;BA.debugLine="Dim CAT_GP_PRESENTACION4 As String = records(";
_cat_gp_presentacion4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION4"))))]);
RDebugUtils.currentLine=14025179;
 //BA.debugLineNum = 14025179;BA.debugLine="Dim CAT_GP_PRESENTACION5 As String = records(";
_cat_gp_presentacion5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION5"))))]);
RDebugUtils.currentLine=14025180;
 //BA.debugLineNum = 14025180;BA.debugLine="Dim CAT_GP_PRESENTACION6 As String = records(";
_cat_gp_presentacion6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION6"))))]);
RDebugUtils.currentLine=14025181;
 //BA.debugLineNum = 14025181;BA.debugLine="Dim CAT_GP_PRESENTACION7 As String = records(";
_cat_gp_presentacion7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION7"))))]);
RDebugUtils.currentLine=14025182;
 //BA.debugLineNum = 14025182;BA.debugLine="Dim CAT_GP_PRESENTACION8 As String = records(";
_cat_gp_presentacion8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION8"))))]);
RDebugUtils.currentLine=14025183;
 //BA.debugLineNum = 14025183;BA.debugLine="Dim CAT_GP_PRESENTACION9 As String = records(";
_cat_gp_presentacion9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION9"))))]);
RDebugUtils.currentLine=14025184;
 //BA.debugLineNum = 14025184;BA.debugLine="Dim CAT_GP_PRESENTACION10 As String = records";
_cat_gp_presentacion10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION10"))))]);
RDebugUtils.currentLine=14025185;
 //BA.debugLineNum = 14025185;BA.debugLine="Dim CAT_GP_PRESENTACION11 As String = records";
_cat_gp_presentacion11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION11"))))]);
RDebugUtils.currentLine=14025188;
 //BA.debugLineNum = 14025188;BA.debugLine="Dim CAT_GP_UMV1 As String = records(RESULT.Co";
_cat_gp_umv1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV1"))))]);
RDebugUtils.currentLine=14025189;
 //BA.debugLineNum = 14025189;BA.debugLine="Dim CAT_GP_UMV2 As String = records(RESULT.Co";
_cat_gp_umv2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV2"))))]);
RDebugUtils.currentLine=14025190;
 //BA.debugLineNum = 14025190;BA.debugLine="Dim CAT_GP_UMV3 As String = records(RESULT.Co";
_cat_gp_umv3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV3"))))]);
RDebugUtils.currentLine=14025191;
 //BA.debugLineNum = 14025191;BA.debugLine="Dim CAT_GP_UMV4 As String = records(RESULT.Co";
_cat_gp_umv4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV4"))))]);
RDebugUtils.currentLine=14025192;
 //BA.debugLineNum = 14025192;BA.debugLine="Dim CAT_GP_UMV5 As String = records(RESULT.Co";
_cat_gp_umv5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV5"))))]);
RDebugUtils.currentLine=14025193;
 //BA.debugLineNum = 14025193;BA.debugLine="Dim CAT_GP_UMV6 As String = records(RESULT.Co";
_cat_gp_umv6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV6"))))]);
RDebugUtils.currentLine=14025194;
 //BA.debugLineNum = 14025194;BA.debugLine="Dim CAT_GP_UMV7 As String = records(RESULT.Co";
_cat_gp_umv7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV7"))))]);
RDebugUtils.currentLine=14025195;
 //BA.debugLineNum = 14025195;BA.debugLine="Dim CAT_GP_UMV8 As String = records(RESULT.Co";
_cat_gp_umv8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV8"))))]);
RDebugUtils.currentLine=14025196;
 //BA.debugLineNum = 14025196;BA.debugLine="Dim CAT_GP_UMV9 As String = records(RESULT.Co";
_cat_gp_umv9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV9"))))]);
RDebugUtils.currentLine=14025197;
 //BA.debugLineNum = 14025197;BA.debugLine="Dim CAT_GP_UMV10 As String = records(RESULT.C";
_cat_gp_umv10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV10"))))]);
RDebugUtils.currentLine=14025198;
 //BA.debugLineNum = 14025198;BA.debugLine="Dim CAT_GP_UMV11 As String = records(RESULT.C";
_cat_gp_umv11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV11"))))]);
RDebugUtils.currentLine=14025201;
 //BA.debugLineNum = 14025201;BA.debugLine="Dim CAT_GP_DIRIGIDA1 As String = records(RESU";
_cat_gp_dirigida1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA1"))))]);
RDebugUtils.currentLine=14025202;
 //BA.debugLineNum = 14025202;BA.debugLine="Dim CAT_GP_DIRIGIDA2 As String = records(RESU";
_cat_gp_dirigida2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA2"))))]);
RDebugUtils.currentLine=14025203;
 //BA.debugLineNum = 14025203;BA.debugLine="Dim CAT_GP_DIRIGIDA3 As String = records(RESU";
_cat_gp_dirigida3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA3"))))]);
RDebugUtils.currentLine=14025204;
 //BA.debugLineNum = 14025204;BA.debugLine="Dim CAT_GP_DIRIGIDA4 As String = records(RESU";
_cat_gp_dirigida4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA4"))))]);
RDebugUtils.currentLine=14025205;
 //BA.debugLineNum = 14025205;BA.debugLine="Dim CAT_GP_DIRIGIDA5 As String = records(RESU";
_cat_gp_dirigida5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA5"))))]);
RDebugUtils.currentLine=14025206;
 //BA.debugLineNum = 14025206;BA.debugLine="Dim CAT_GP_DIRIGIDA6 As String = records(RESU";
_cat_gp_dirigida6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA6"))))]);
RDebugUtils.currentLine=14025207;
 //BA.debugLineNum = 14025207;BA.debugLine="Dim CAT_GP_DIRIGIDA7 As String = records(RESU";
_cat_gp_dirigida7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA7"))))]);
RDebugUtils.currentLine=14025208;
 //BA.debugLineNum = 14025208;BA.debugLine="Dim CAT_GP_DIRIGIDA8 As String = records(RESU";
_cat_gp_dirigida8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA8"))))]);
RDebugUtils.currentLine=14025209;
 //BA.debugLineNum = 14025209;BA.debugLine="Dim CAT_GP_DIRIGIDA9 As String = records(RESU";
_cat_gp_dirigida9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA9"))))]);
RDebugUtils.currentLine=14025210;
 //BA.debugLineNum = 14025210;BA.debugLine="Dim CAT_GP_DIRIGIDA10 As String = records(RES";
_cat_gp_dirigida10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA10"))))]);
RDebugUtils.currentLine=14025211;
 //BA.debugLineNum = 14025211;BA.debugLine="Dim CAT_GP_DIRIGIDA11 As String = records(RES";
_cat_gp_dirigida11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA11"))))]);
RDebugUtils.currentLine=14025214;
 //BA.debugLineNum = 14025214;BA.debugLine="Dim CAT_GP_NOMBRE As String = CAT_GP_NOMBRE.T";
_cat_gp_nombre = _cat_gp_nombre.trim();
RDebugUtils.currentLine=14025215;
 //BA.debugLineNum = 14025215;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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_CLASIF, CAT_GP_STS, CAT_GP_TIPO, CAT_GP_SUBTIPO, CAT_GP_IMG, CAT_GP_ALMACEN, CAT_GP_DEV, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA, CAT_GP_TIPOPROD2, CAT_GP_PRECIO1, CAT_GP_PRECIO2, CAT_GP_PRECIO3, CAT_GP_PRECIO4, CAT_GP_PRECIO5, CAT_GP_PRECIO6, CAT_GP_PRECIO7, CAT_GP_PRECIO8, CAT_GP_PRECIO9, CAT_GP_PRECIO10, CAT_GP_PRECIO11, CAT_GP_PRESENTACION1, CAT_GP_PRESENTACION2, CAT_GP_PRESENTACION3, CAT_GP_PRESENTACION4, CAT_GP_PRESENTACION5, CAT_GP_PRESENTACION6, CAT_GP_PRESENTACION7, CAT_GP_PRESENTACION8, CAT_GP_PRESENTACION9, CAT_GP_PRESENTACION10, CAT_GP_PRESENTACION11, CAT_GP_UMV1, CAT_GP_UMV2, CAT_GP_UMV3, CAT_GP_UMV4, CAT_GP_UMV5, CAT_GP_UMV6, CAT_GP_UMV7, CAT_GP_UMV8, CAT_GP_UMV9, CAT_GP_UMV10, CAT_GP_UMV11, CAT_GP_DIRIGIDA1, CAT_GP_DIRIGIDA2, CAT_GP_DIRIGIDA3, CAT_GP_DIRIGIDA4, CAT_GP_DIRIGIDA5, CAT_GP_DIRIGIDA6, CAT_GP_DIRIGIDA7, CAT_GP_DIRIGIDA8, CAT_GP_DIRIGIDA9, CAT_GP_DIRIGIDA10, CAT_GP_DIRIGIDA11) 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_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_dev),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_gp_tipoprod2),(Object)(_cat_gp_precio1),(Object)(_cat_gp_precio2),(Object)(_cat_gp_precio3),(Object)(_cat_gp_precio4),(Object)(_cat_gp_precio5),(Object)(_cat_gp_precio6),(Object)(_cat_gp_precio7),(Object)(_cat_gp_precio8),(Object)(_cat_gp_precio9),(Object)(_cat_gp_precio10),(Object)(_cat_gp_precio11),(Object)(_cat_gp_presentacion1),(Object)(_cat_gp_presentacion2),(Object)(_cat_gp_presentacion3),(Object)(_cat_gp_presentacion4),(Object)(_cat_gp_presentacion5),(Object)(_cat_gp_presentacion6),(Object)(_cat_gp_presentacion7),(Object)(_cat_gp_presentacion8),(Object)(_cat_gp_presentacion9),(Object)(_cat_gp_presentacion10),(Object)(_cat_gp_presentacion11),(Object)(_cat_gp_umv1),(Object)(_cat_gp_umv2),(Object)(_cat_gp_umv3),(Object)(_cat_gp_umv4),(Object)(_cat_gp_umv5),(Object)(_cat_gp_umv6),(Object)(_cat_gp_umv7),(Object)(_cat_gp_umv8),(Object)(_cat_gp_umv9),(Object)(_cat_gp_umv10),(Object)(_cat_gp_umv11),(Object)(_cat_gp_dirigida1),(Object)(_cat_gp_dirigida2),(Object)(_cat_gp_dirigida3),(Object)(_cat_gp_dirigida4),(Object)(_cat_gp_dirigida5),(Object)(_cat_gp_dirigida6),(Object)(_cat_gp_dirigida7),(Object)(_cat_gp_dirigida8),(Object)(_cat_gp_dirigida9),(Object)(_cat_gp_dirigida10),(Object)(_cat_gp_dirigida11)}));
 }
};
RDebugUtils.currentLine=14025218;
 //BA.debugLineNum = 14025218;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025219;
 //BA.debugLineNum = 14025219;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025220;
 //BA.debugLineNum = 14025220;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025221;
 //BA.debugLineNum = 14025221;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025222;
 //BA.debugLineNum = 14025222;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025223;
 //BA.debugLineNum = 14025223;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025224;
 //BA.debugLineNum = 14025224;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025225;
 //BA.debugLineNum = 14025225;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025226;
 //BA.debugLineNum = 14025226;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14025228;
 //BA.debugLineNum = 14025228;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Productos Actualizados."),__c.True);};
RDebugUtils.currentLine=14025229;
 //BA.debugLineNum = 14025229;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025230;
 //BA.debugLineNum = 14025230;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025231;
 //BA.debugLineNum = 14025231;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025232;
 //BA.debugLineNum = 14025232;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14025237;
 //BA.debugLineNum = 14025237;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025238;
 //BA.debugLineNum = 14025238;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025239;
 //BA.debugLineNum = 14025239;BA.debugLine="If RESULT.Tag = \"gunaprod3\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) { 
RDebugUtils.currentLine=14025240;
 //BA.debugLineNum = 14025240;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()<30) { 
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));};
RDebugUtils.currentLine=14025241;
 //BA.debugLineNum = 14025241;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group472 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen472 = group472.getSize()
;int index472 = 0;
;
for (; index472 < groupLen472;index472++){
_records = (Object[])(group472.Get(index472));
RDebugUtils.currentLine=14025242;
 //BA.debugLineNum = 14025242;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_DP_ID"))))]);
RDebugUtils.currentLine=14025243;
 //BA.debugLineNum = 14025243;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_DP_NOMBRE"))))]);
RDebugUtils.currentLine=14025244;
 //BA.debugLineNum = 14025244;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_DP_IMP1"))))]);
RDebugUtils.currentLine=14025245;
 //BA.debugLineNum = 14025245;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_DP_IMP2"))))]);
RDebugUtils.currentLine=14025246;
 //BA.debugLineNum = 14025246;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_DP_PRECIO"))))]);
RDebugUtils.currentLine=14025247;
 //BA.debugLineNum = 14025247;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_DP_CLASIF"))))]);
RDebugUtils.currentLine=14025248;
 //BA.debugLineNum = 14025248;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_DP_STS"))))]);
RDebugUtils.currentLine=14025249;
 //BA.debugLineNum = 14025249;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_DP_TIPO"))))]);
RDebugUtils.currentLine=14025250;
 //BA.debugLineNum = 14025250;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_DP_SUBTIPO"))))]);
RDebugUtils.currentLine=14025251;
 //BA.debugLineNum = 14025251;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_DP_IMG"))))]);
RDebugUtils.currentLine=14025252;
 //BA.debugLineNum = 14025252;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_DP_ALMACEN"))))]));
RDebugUtils.currentLine=14025254;
 //BA.debugLineNum = 14025254;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_DP_TIPOPROD"))))]));
RDebugUtils.currentLine=14025255;
 //BA.debugLineNum = 14025255;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_DP_INICIATIVA"))))]));
RDebugUtils.currentLine=14025256;
 //BA.debugLineNum = 14025256;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(RESULT.";
_cat_dp_precio4 = (float)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]));
RDebugUtils.currentLine=14025257;
 //BA.debugLineNum = 14025257;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(RESUL";
_cat_dp_conversion1 = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CONVERSION1"))))]));
RDebugUtils.currentLine=14025260;
 //BA.debugLineNum = 14025260;BA.debugLine="Dim CAT_GP_NOMBRE As String = CAT_GP_NOMBRE.T";
_cat_gp_nombre = _cat_gp_nombre.trim();
RDebugUtils.currentLine=14025261;
 //BA.debugLineNum = 14025261;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD3(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_DP_PRECIO4,CAT_DP_CONVERSION1) 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_dp_precio4),(Object)(_cat_dp_conversion1)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025266;
 //BA.debugLineNum = 14025266;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025267;
 //BA.debugLineNum = 14025267;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025268;
 //BA.debugLineNum = 14025268;BA.debugLine="If RESULT.Tag = \"gunaprod2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod2"))) { 
RDebugUtils.currentLine=14025269;
 //BA.debugLineNum = 14025269;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()<30) { 
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));};
RDebugUtils.currentLine=14025270;
 //BA.debugLineNum = 14025270;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group497 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen497 = group497.getSize()
;int index497 = 0;
;
for (; index497 < groupLen497;index497++){
_records = (Object[])(group497.Get(index497));
RDebugUtils.currentLine=14025271;
 //BA.debugLineNum = 14025271;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_DP_ID"))))]);
RDebugUtils.currentLine=14025272;
 //BA.debugLineNum = 14025272;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_DP_NOMBRE"))))]);
RDebugUtils.currentLine=14025273;
 //BA.debugLineNum = 14025273;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_DP_IMP1"))))]);
RDebugUtils.currentLine=14025274;
 //BA.debugLineNum = 14025274;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_DP_IMP2"))))]);
RDebugUtils.currentLine=14025275;
 //BA.debugLineNum = 14025275;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_DP_CLASIF"))))]);
RDebugUtils.currentLine=14025276;
 //BA.debugLineNum = 14025276;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_DP_STS"))))]);
RDebugUtils.currentLine=14025277;
 //BA.debugLineNum = 14025277;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_DP_TIPO"))))]);
RDebugUtils.currentLine=14025278;
 //BA.debugLineNum = 14025278;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_DP_SUBTIPO"))))]);
RDebugUtils.currentLine=14025279;
 //BA.debugLineNum = 14025279;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_DP_IMG"))))]);
RDebugUtils.currentLine=14025280;
 //BA.debugLineNum = 14025280;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_DP_ALMACEN"))))]));
RDebugUtils.currentLine=14025281;
 //BA.debugLineNum = 14025281;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_DP_DEV"))))]);
RDebugUtils.currentLine=14025282;
 //BA.debugLineNum = 14025282;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_DP_TIPOPROD"))))]));
RDebugUtils.currentLine=14025283;
 //BA.debugLineNum = 14025283;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_DP_INICIATIVA"))))]));
RDebugUtils.currentLine=14025284;
 //BA.debugLineNum = 14025284;BA.debugLine="Dim CAT_GP_TIPOPROD2 As String = records(RESU";
_cat_gp_tipoprod2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPOPROD2"))))]);
RDebugUtils.currentLine=14025287;
 //BA.debugLineNum = 14025287;BA.debugLine="Dim CAT_GP_PRECIO1 As String = records(RESULT";
_cat_gp_precio1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO1"))))]);
RDebugUtils.currentLine=14025288;
 //BA.debugLineNum = 14025288;BA.debugLine="Dim CAT_GP_PRECIO2 As String = records(RESULT";
_cat_gp_precio2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO2"))))]);
RDebugUtils.currentLine=14025289;
 //BA.debugLineNum = 14025289;BA.debugLine="Dim CAT_GP_PRECIO3 As String = records(RESULT";
_cat_gp_precio3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO3"))))]);
RDebugUtils.currentLine=14025290;
 //BA.debugLineNum = 14025290;BA.debugLine="Dim CAT_GP_PRECIO4 As String = records(RESULT";
_cat_gp_precio4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]);
RDebugUtils.currentLine=14025291;
 //BA.debugLineNum = 14025291;BA.debugLine="Dim CAT_GP_PRECIO5 As String = records(RESULT";
_cat_gp_precio5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO5"))))]);
RDebugUtils.currentLine=14025292;
 //BA.debugLineNum = 14025292;BA.debugLine="Dim CAT_GP_PRECIO6 As String = records(RESULT";
_cat_gp_precio6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO6"))))]);
RDebugUtils.currentLine=14025293;
 //BA.debugLineNum = 14025293;BA.debugLine="Dim CAT_GP_PRECIO7 As String = records(RESULT";
_cat_gp_precio7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO7"))))]);
RDebugUtils.currentLine=14025294;
 //BA.debugLineNum = 14025294;BA.debugLine="Dim CAT_GP_PRECIO8 As String = records(RESULT";
_cat_gp_precio8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO8"))))]);
RDebugUtils.currentLine=14025295;
 //BA.debugLineNum = 14025295;BA.debugLine="Dim CAT_GP_PRECIO9 As String = records(RESULT";
_cat_gp_precio9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO9"))))]);
RDebugUtils.currentLine=14025296;
 //BA.debugLineNum = 14025296;BA.debugLine="Dim CAT_GP_PRECIO10 As String = records(RESUL";
_cat_gp_precio10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO10"))))]);
RDebugUtils.currentLine=14025297;
 //BA.debugLineNum = 14025297;BA.debugLine="Dim CAT_GP_PRECIO11 As String = records(RESUL";
_cat_gp_precio11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO11"))))]);
RDebugUtils.currentLine=14025300;
 //BA.debugLineNum = 14025300;BA.debugLine="Dim CAT_GP_PRESENTACION1 As String = records(";
_cat_gp_presentacion1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION1"))))]);
RDebugUtils.currentLine=14025301;
 //BA.debugLineNum = 14025301;BA.debugLine="Dim CAT_GP_PRESENTACION2 As String = records(";
_cat_gp_presentacion2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION2"))))]);
RDebugUtils.currentLine=14025302;
 //BA.debugLineNum = 14025302;BA.debugLine="Dim CAT_GP_PRESENTACION3 As String = records(";
_cat_gp_presentacion3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION3"))))]);
RDebugUtils.currentLine=14025303;
 //BA.debugLineNum = 14025303;BA.debugLine="Dim CAT_GP_PRESENTACION4 As String = records(";
_cat_gp_presentacion4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION4"))))]);
RDebugUtils.currentLine=14025304;
 //BA.debugLineNum = 14025304;BA.debugLine="Dim CAT_GP_PRESENTACION5 As String = records(";
_cat_gp_presentacion5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION5"))))]);
RDebugUtils.currentLine=14025305;
 //BA.debugLineNum = 14025305;BA.debugLine="Dim CAT_GP_PRESENTACION6 As String = records(";
_cat_gp_presentacion6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION6"))))]);
RDebugUtils.currentLine=14025306;
 //BA.debugLineNum = 14025306;BA.debugLine="Dim CAT_GP_PRESENTACION7 As String = records(";
_cat_gp_presentacion7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION7"))))]);
RDebugUtils.currentLine=14025307;
 //BA.debugLineNum = 14025307;BA.debugLine="Dim CAT_GP_PRESENTACION8 As String = records(";
_cat_gp_presentacion8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION8"))))]);
RDebugUtils.currentLine=14025308;
 //BA.debugLineNum = 14025308;BA.debugLine="Dim CAT_GP_PRESENTACION9 As String = records(";
_cat_gp_presentacion9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION9"))))]);
RDebugUtils.currentLine=14025309;
 //BA.debugLineNum = 14025309;BA.debugLine="Dim CAT_GP_PRESENTACION10 As String = records";
_cat_gp_presentacion10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION10"))))]);
RDebugUtils.currentLine=14025310;
 //BA.debugLineNum = 14025310;BA.debugLine="Dim CAT_GP_PRESENTACION11 As String = records";
_cat_gp_presentacion11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRESENTACION11"))))]);
RDebugUtils.currentLine=14025313;
 //BA.debugLineNum = 14025313;BA.debugLine="Dim CAT_GP_UMV1 As String = records(RESULT.Co";
_cat_gp_umv1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV1"))))]);
RDebugUtils.currentLine=14025314;
 //BA.debugLineNum = 14025314;BA.debugLine="Dim CAT_GP_UMV2 As String = records(RESULT.Co";
_cat_gp_umv2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV2"))))]);
RDebugUtils.currentLine=14025315;
 //BA.debugLineNum = 14025315;BA.debugLine="Dim CAT_GP_UMV3 As String = records(RESULT.Co";
_cat_gp_umv3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV3"))))]);
RDebugUtils.currentLine=14025316;
 //BA.debugLineNum = 14025316;BA.debugLine="Dim CAT_GP_UMV4 As String = records(RESULT.Co";
_cat_gp_umv4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV4"))))]);
RDebugUtils.currentLine=14025317;
 //BA.debugLineNum = 14025317;BA.debugLine="Dim CAT_GP_UMV5 As String = records(RESULT.Co";
_cat_gp_umv5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV5"))))]);
RDebugUtils.currentLine=14025318;
 //BA.debugLineNum = 14025318;BA.debugLine="Dim CAT_GP_UMV6 As String = records(RESULT.Co";
_cat_gp_umv6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV6"))))]);
RDebugUtils.currentLine=14025319;
 //BA.debugLineNum = 14025319;BA.debugLine="Dim CAT_GP_UMV7 As String = records(RESULT.Co";
_cat_gp_umv7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV7"))))]);
RDebugUtils.currentLine=14025320;
 //BA.debugLineNum = 14025320;BA.debugLine="Dim CAT_GP_UMV8 As String = records(RESULT.Co";
_cat_gp_umv8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV8"))))]);
RDebugUtils.currentLine=14025321;
 //BA.debugLineNum = 14025321;BA.debugLine="Dim CAT_GP_UMV9 As String = records(RESULT.Co";
_cat_gp_umv9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV9"))))]);
RDebugUtils.currentLine=14025322;
 //BA.debugLineNum = 14025322;BA.debugLine="Dim CAT_GP_UMV10 As String = records(RESULT.C";
_cat_gp_umv10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV10"))))]);
RDebugUtils.currentLine=14025323;
 //BA.debugLineNum = 14025323;BA.debugLine="Dim CAT_GP_UMV11 As String = records(RESULT.C";
_cat_gp_umv11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_UMV11"))))]);
RDebugUtils.currentLine=14025326;
 //BA.debugLineNum = 14025326;BA.debugLine="Dim CAT_GP_DIRIGIDA1 As String = records(RESU";
_cat_gp_dirigida1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA1"))))]);
RDebugUtils.currentLine=14025327;
 //BA.debugLineNum = 14025327;BA.debugLine="Dim CAT_GP_DIRIGIDA2 As String = records(RESU";
_cat_gp_dirigida2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA2"))))]);
RDebugUtils.currentLine=14025328;
 //BA.debugLineNum = 14025328;BA.debugLine="Dim CAT_GP_DIRIGIDA3 As String = records(RESU";
_cat_gp_dirigida3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA3"))))]);
RDebugUtils.currentLine=14025329;
 //BA.debugLineNum = 14025329;BA.debugLine="Dim CAT_GP_DIRIGIDA4 As String = records(RESU";
_cat_gp_dirigida4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA4"))))]);
RDebugUtils.currentLine=14025330;
 //BA.debugLineNum = 14025330;BA.debugLine="Dim CAT_GP_DIRIGIDA5 As String = records(RESU";
_cat_gp_dirigida5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA5"))))]);
RDebugUtils.currentLine=14025331;
 //BA.debugLineNum = 14025331;BA.debugLine="Dim CAT_GP_DIRIGIDA6 As String = records(RESU";
_cat_gp_dirigida6 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA6"))))]);
RDebugUtils.currentLine=14025332;
 //BA.debugLineNum = 14025332;BA.debugLine="Dim CAT_GP_DIRIGIDA7 As String = records(RESU";
_cat_gp_dirigida7 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA7"))))]);
RDebugUtils.currentLine=14025333;
 //BA.debugLineNum = 14025333;BA.debugLine="Dim CAT_GP_DIRIGIDA8 As String = records(RESU";
_cat_gp_dirigida8 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA8"))))]);
RDebugUtils.currentLine=14025334;
 //BA.debugLineNum = 14025334;BA.debugLine="Dim CAT_GP_DIRIGIDA9 As String = records(RESU";
_cat_gp_dirigida9 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA9"))))]);
RDebugUtils.currentLine=14025335;
 //BA.debugLineNum = 14025335;BA.debugLine="Dim CAT_GP_DIRIGIDA10 As String = records(RES";
_cat_gp_dirigida10 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA10"))))]);
RDebugUtils.currentLine=14025336;
 //BA.debugLineNum = 14025336;BA.debugLine="Dim CAT_GP_DIRIGIDA11 As String = records(RES";
_cat_gp_dirigida11 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_DIRIGIDA11"))))]);
RDebugUtils.currentLine=14025339;
 //BA.debugLineNum = 14025339;BA.debugLine="Dim CAT_GP_NOMBRE As String = CAT_GP_NOMBRE.T";
_cat_gp_nombre = _cat_gp_nombre.trim();
RDebugUtils.currentLine=14025340;
 //BA.debugLineNum = 14025340;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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_CLASIF, CAT_GP_STS, CAT_GP_TIPO, CAT_GP_SUBTIPO, CAT_GP_IMG, CAT_GP_ALMACEN, CAT_GP_DEV, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA, CAT_GP_TIPOPROD2, CAT_GP_PRECIO1, CAT_GP_PRECIO2, CAT_GP_PRECIO3, CAT_GP_PRECIO4, CAT_GP_PRECIO5, CAT_GP_PRECIO6, CAT_GP_PRECIO7, CAT_GP_PRECIO8, CAT_GP_PRECIO9, CAT_GP_PRECIO10, CAT_GP_PRECIO11, CAT_GP_PRESENTACION1, CAT_GP_PRESENTACION2, CAT_GP_PRESENTACION3, CAT_GP_PRESENTACION4, CAT_GP_PRESENTACION5, CAT_GP_PRESENTACION6, CAT_GP_PRESENTACION7, CAT_GP_PRESENTACION8, CAT_GP_PRESENTACION9, CAT_GP_PRESENTACION10, CAT_GP_PRESENTACION11, CAT_GP_UMV1, CAT_GP_UMV2, CAT_GP_UMV3, CAT_GP_UMV4, CAT_GP_UMV5, CAT_GP_UMV6, CAT_GP_UMV7, CAT_GP_UMV8, CAT_GP_UMV9, CAT_GP_UMV10, CAT_GP_UMV11, CAT_GP_DIRIGIDA1, CAT_GP_DIRIGIDA2, CAT_GP_DIRIGIDA3, CAT_GP_DIRIGIDA4, CAT_GP_DIRIGIDA5, CAT_GP_DIRIGIDA6, CAT_GP_DIRIGIDA7, CAT_GP_DIRIGIDA8, CAT_GP_DIRIGIDA9, CAT_GP_DIRIGIDA10, CAT_GP_DIRIGIDA11) 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_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_dev),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_gp_tipoprod2),(Object)(_cat_gp_precio1),(Object)(_cat_gp_precio2),(Object)(_cat_gp_precio3),(Object)(_cat_gp_precio4),(Object)(_cat_gp_precio5),(Object)(_cat_gp_precio6),(Object)(_cat_gp_precio7),(Object)(_cat_gp_precio8),(Object)(_cat_gp_precio9),(Object)(_cat_gp_precio10),(Object)(_cat_gp_precio11),(Object)(_cat_gp_presentacion1),(Object)(_cat_gp_presentacion2),(Object)(_cat_gp_presentacion3),(Object)(_cat_gp_presentacion4),(Object)(_cat_gp_presentacion5),(Object)(_cat_gp_presentacion6),(Object)(_cat_gp_presentacion7),(Object)(_cat_gp_presentacion8),(Object)(_cat_gp_presentacion9),(Object)(_cat_gp_presentacion10),(Object)(_cat_gp_presentacion11),(Object)(_cat_gp_umv1),(Object)(_cat_gp_umv2),(Object)(_cat_gp_umv3),(Object)(_cat_gp_umv4),(Object)(_cat_gp_umv5),(Object)(_cat_gp_umv6),(Object)(_cat_gp_umv7),(Object)(_cat_gp_umv8),(Object)(_cat_gp_umv9),(Object)(_cat_gp_umv10),(Object)(_cat_gp_umv11),(Object)(_cat_gp_dirigida1),(Object)(_cat_gp_dirigida2),(Object)(_cat_gp_dirigida3),(Object)(_cat_gp_dirigida4),(Object)(_cat_gp_dirigida5),(Object)(_cat_gp_dirigida6),(Object)(_cat_gp_dirigida7),(Object)(_cat_gp_dirigida8),(Object)(_cat_gp_dirigida9),(Object)(_cat_gp_dirigida10),(Object)(_cat_gp_dirigida11)}));
 }
};
RDebugUtils.currentLine=14025343;
 //BA.debugLineNum = 14025343;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025344;
 //BA.debugLineNum = 14025344;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025345;
 //BA.debugLineNum = 14025345;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025346;
 //BA.debugLineNum = 14025346;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025347;
 //BA.debugLineNum = 14025347;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025348;
 //BA.debugLineNum = 14025348;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025349;
 //BA.debugLineNum = 14025349;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025350;
 //BA.debugLineNum = 14025350;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025351;
 //BA.debugLineNum = 14025351;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14025353;
 //BA.debugLineNum = 14025353;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Productos Actualizados."),__c.True);};
RDebugUtils.currentLine=14025354;
 //BA.debugLineNum = 14025354;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025355;
 //BA.debugLineNum = 14025355;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025356;
 //BA.debugLineNum = 14025356;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025357;
 //BA.debugLineNum = 14025357;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14025362;
 //BA.debugLineNum = 14025362;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025363;
 //BA.debugLineNum = 14025363;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025364;
 //BA.debugLineNum = 14025364;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=14025365;
 //BA.debugLineNum = 14025365;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group580 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen580 = group580.getSize()
;int index580 = 0;
;
for (; index580 < groupLen580;index580++){
_records = (Object[])(group580.Get(index580));
RDebugUtils.currentLine=14025366;
 //BA.debugLineNum = 14025366;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=14025367;
 //BA.debugLineNum = 14025367;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=14025368;
 //BA.debugLineNum = 14025368;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=14025369;
 //BA.debugLineNum = 14025369;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=14025370;
 //BA.debugLineNum = 14025370;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=14025371;
 //BA.debugLineNum = 14025371;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=14025372;
 //BA.debugLineNum = 14025372;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=14025373;
 //BA.debugLineNum = 14025373;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=14025374;
 //BA.debugLineNum = 14025374;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=14025375;
 //BA.debugLineNum = 14025375;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=14025376;
 //BA.debugLineNum = 14025376;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=14025377;
 //BA.debugLineNum = 14025377;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=14025378;
 //BA.debugLineNum = 14025378;BA.debugLine="CAT_GP_TIPOPROD = \"5\"";
_cat_gp_tipoprod = (int)(Double.parseDouble("5"));
RDebugUtils.currentLine=14025379;
 //BA.debugLineNum = 14025379;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then";
if ((_cat_gp_id).equals("PAQUNI003")) { 
RDebugUtils.currentLine=14025380;
 //BA.debugLineNum = 14025380;BA.debugLine="CAT_GP_ALMACEN = 60";
_cat_gp_almacen = (int) (60);
 };
RDebugUtils.currentLine=14025383;
 //BA.debugLineNum = 14025383;BA.debugLine="Dim CAT_GP_NOMBRE As String = CAT_GP_NOMBRE.T";
_cat_gp_nombre = _cat_gp_nombre.trim();
RDebugUtils.currentLine=14025384;
 //BA.debugLineNum = 14025384;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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_PRECIO1,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
RDebugUtils.currentLine=14025385;
 //BA.debugLineNum = 14025385;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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_PRECIO1,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
 }
};
RDebugUtils.currentLine=14025389;
 //BA.debugLineNum = 14025389;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025390;
 //BA.debugLineNum = 14025390;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025391;
 //BA.debugLineNum = 14025391;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025392;
 //BA.debugLineNum = 14025392;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025393;
 //BA.debugLineNum = 14025393;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025394;
 //BA.debugLineNum = 14025394;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025395;
 //BA.debugLineNum = 14025395;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025396;
 //BA.debugLineNum = 14025396;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14025398;
 //BA.debugLineNum = 14025398;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Promociones  Actualizados."),__c.True);};
RDebugUtils.currentLine=14025399;
 //BA.debugLineNum = 14025399;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025400;
 //BA.debugLineNum = 14025400;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025401;
 //BA.debugLineNum = 14025401;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025402;
 //BA.debugLineNum = 14025402;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025403;
 //BA.debugLineNum = 14025403;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14025404;
 //BA.debugLineNum = 14025404;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025405;
 //BA.debugLineNum = 14025405;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025406;
 //BA.debugLineNum = 14025406;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025407;
 //BA.debugLineNum = 14025407;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14025412;
 //BA.debugLineNum = 14025412;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025413;
 //BA.debugLineNum = 14025413;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025414;
 //BA.debugLineNum = 14025414;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodps"))) { 
RDebugUtils.currentLine=14025415;
 //BA.debugLineNum = 14025415;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group626 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen626 = group626.getSize()
;int index626 = 0;
;
for (; index626 < groupLen626;index626++){
_records = (Object[])(group626.Get(index626));
RDebugUtils.currentLine=14025417;
 //BA.debugLineNum = 14025417;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=14025418;
 //BA.debugLineNum = 14025418;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=14025419;
 //BA.debugLineNum = 14025419;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=14025420;
 //BA.debugLineNum = 14025420;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=14025421;
 //BA.debugLineNum = 14025421;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=14025422;
 //BA.debugLineNum = 14025422;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=14025423;
 //BA.debugLineNum = 14025423;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=14025424;
 //BA.debugLineNum = 14025424;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=14025425;
 //BA.debugLineNum = 14025425;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=14025426;
 //BA.debugLineNum = 14025426;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=14025427;
 //BA.debugLineNum = 14025427;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=14025428;
 //BA.debugLineNum = 14025428;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=14025429;
 //BA.debugLineNum = 14025429;BA.debugLine="Log(\"XXXXXXXX gunaprodps XXXXXXXX  \" & record";
__c.LogImpl("514025429","XXXXXXXX gunaprodps XXXXXXXX  "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))])+"|"+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]),0);
RDebugUtils.currentLine=14025430;
 //BA.debugLineNum = 14025430;BA.debugLine="Dim CAT_GP_NOMBRE As String = CAT_GP_NOMBRE.T";
_cat_gp_nombre = _cat_gp_nombre.trim();
RDebugUtils.currentLine=14025431;
 //BA.debugLineNum = 14025431;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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_PRECIO1,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
 }
};
RDebugUtils.currentLine=14025435;
 //BA.debugLineNum = 14025435;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025436;
 //BA.debugLineNum = 14025436;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025437;
 //BA.debugLineNum = 14025437;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=14025438;
 //BA.debugLineNum = 14025438;BA.debugLine="Log(\"C4\")";
__c.LogImpl("514025438","C4",0);
 }else 
{RDebugUtils.currentLine=14025439;
 //BA.debugLineNum = 14025439;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025440;
 //BA.debugLineNum = 14025440;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025441;
 //BA.debugLineNum = 14025441;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025442;
 //BA.debugLineNum = 14025442;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025443;
 //BA.debugLineNum = 14025443;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=14025444;
 //BA.debugLineNum = 14025444;BA.debugLine="Log(\"3\")";
__c.LogImpl("514025444","3",0);
 }}}
;
RDebugUtils.currentLine=14025446;
 //BA.debugLineNum = 14025446;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Promociones especiales  Actualizados."),__c.True);};
RDebugUtils.currentLine=14025448;
 //BA.debugLineNum = 14025448;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025449;
 //BA.debugLineNum = 14025449;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025450;
 //BA.debugLineNum = 14025450;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025451;
 //BA.debugLineNum = 14025451;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025452;
 //BA.debugLineNum = 14025452;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14025453;
 //BA.debugLineNum = 14025453;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025454;
 //BA.debugLineNum = 14025454;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025455;
 //BA.debugLineNum = 14025455;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025456;
 //BA.debugLineNum = 14025456;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14025461;
 //BA.debugLineNum = 14025461;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025462;
 //BA.debugLineNum = 14025462;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025463;
 //BA.debugLineNum = 14025463;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=14025464;
 //BA.debugLineNum = 14025464;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group670 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen670 = group670.getSize()
;int index670 = 0;
;
for (; index670 < groupLen670;index670++){
_records = (Object[])(group670.Get(index670));
RDebugUtils.currentLine=14025465;
 //BA.debugLineNum = 14025465;BA.debugLine="Dim CAT_DP_ALMACEN  As String = records(RESUL";
_cat_dp_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ALMACEN"))))]);
RDebugUtils.currentLine=14025466;
 //BA.debugLineNum = 14025466;BA.debugLine="Dim CAT_DP_ID As String = records(RESULT.Colu";
_cat_dp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]);
RDebugUtils.currentLine=14025467;
 //BA.debugLineNum = 14025467;BA.debugLine="Dim CAT_DP_IDPROD As String = records(RESULT.";
_cat_dp_idprod = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IDPROD"))))]);
RDebugUtils.currentLine=14025468;
 //BA.debugLineNum = 14025468;BA.debugLine="Dim CAT_DP_TIPO As String = records(RESULT.Co";
_cat_dp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]);
RDebugUtils.currentLine=14025469;
 //BA.debugLineNum = 14025469;BA.debugLine="Dim CAT_DP_PZAS As String = records(RESULT.Co";
_cat_dp_pzas = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PZAS"))))]);
RDebugUtils.currentLine=14025470;
 //BA.debugLineNum = 14025470;BA.debugLine="Dim CAT_DP_USUARIO  As String = records(RESUL";
_cat_dp_usuario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_USUARIO"))))]);
RDebugUtils.currentLine=14025471;
 //BA.debugLineNum = 14025471;BA.debugLine="Dim CAT_DP_FECHA As String = records(RESULT.C";
_cat_dp_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_FECHA"))))]);
RDebugUtils.currentLine=14025472;
 //BA.debugLineNum = 14025472;BA.debugLine="Dim CAT_DP_REGALO  As String = records(RESULT";
_cat_dp_regalo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_REGALO"))))]);
RDebugUtils.currentLine=14025473;
 //BA.debugLineNum = 14025473;BA.debugLine="Dim CAT_DP_CLASIF  As String = records(RESULT";
_cat_dp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]);
RDebugUtils.currentLine=14025474;
 //BA.debugLineNum = 14025474;BA.debugLine="Dim CAT_DP_PRECIO As String = records(RESULT.";
_cat_dp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]);
RDebugUtils.currentLine=14025475;
 //BA.debugLineNum = 14025475;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records";
_cat_dp_precio_simptos = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO_SIMPTOS"))))]);
RDebugUtils.currentLine=14025476;
 //BA.debugLineNum = 14025476;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_dp_almacen),(Object)(_cat_dp_id),(Object)(_cat_dp_idprod),(Object)(_cat_dp_tipo),(Object)(_cat_dp_pzas),(Object)(_cat_dp_usuario),(Object)(_cat_dp_fecha),(Object)(_cat_dp_regalo),(Object)(_cat_dp_clasif),(Object)(_cat_dp_precio),(Object)(_cat_dp_precio_simptos)}));
 }
};
RDebugUtils.currentLine=14025478;
 //BA.debugLineNum = 14025478;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025479;
 //BA.debugLineNum = 14025479;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025480;
 //BA.debugLineNum = 14025480;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025481;
 //BA.debugLineNum = 14025481;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025482;
 //BA.debugLineNum = 14025482;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025483;
 //BA.debugLineNum = 14025483;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025484;
 //BA.debugLineNum = 14025484;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025485;
 //BA.debugLineNum = 14025485;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14025487;
 //BA.debugLineNum = 14025487;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025488;
 //BA.debugLineNum = 14025488;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025489;
 //BA.debugLineNum = 14025489;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025490;
 //BA.debugLineNum = 14025490;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025491;
 //BA.debugLineNum = 14025491;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14025492;
 //BA.debugLineNum = 14025492;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025493;
 //BA.debugLineNum = 14025493;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025494;
 //BA.debugLineNum = 14025494;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025495;
 //BA.debugLineNum = 14025495;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14025501;
 //BA.debugLineNum = 14025501;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025502;
 //BA.debugLineNum = 14025502;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025503;
 //BA.debugLineNum = 14025503;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=14025504;
 //BA.debugLineNum = 14025504;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group708 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen708 = group708.getSize()
;int index708 = 0;
;
for (; index708 < groupLen708;index708++){
_records = (Object[])(group708.Get(index708));
RDebugUtils.currentLine=14025505;
 //BA.debugLineNum = 14025505;BA.debugLine="Dim HVD_CLIENTE As String = records(RESULT.Co";
_hvd_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]);
RDebugUtils.currentLine=14025506;
 //BA.debugLineNum = 14025506;BA.debugLine="Dim HVD_PRONOMBRE As String = records(RESULT.";
_hvd_pronombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PRONOMBRE"))))]);
RDebugUtils.currentLine=14025507;
 //BA.debugLineNum = 14025507;BA.debugLine="Dim HVD_CANT As String = records(RESULT.Colum";
_hvd_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CANT"))))]);
RDebugUtils.currentLine=14025508;
 //BA.debugLineNum = 14025508;BA.debugLine="Dim HVD_COSTO_TOT As String = records(RESULT.";
_hvd_costo_tot = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_COSTO_TOT"))))]);
RDebugUtils.currentLine=14025509;
 //BA.debugLineNum = 14025509;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot)}));
 }
};
RDebugUtils.currentLine=14025511;
 //BA.debugLineNum = 14025511;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14025512;
 //BA.debugLineNum = 14025512;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14025513;
 //BA.debugLineNum = 14025513;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=14025514;
 //BA.debugLineNum = 14025514;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=14025515;
 //BA.debugLineNum = 14025515;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=14025516;
 //BA.debugLineNum = 14025516;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=14025517;
 //BA.debugLineNum = 14025517;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=14025518;
 //BA.debugLineNum = 14025518;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025519;
 //BA.debugLineNum = 14025519;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=14025521;
 //BA.debugLineNum = 14025521;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Venta historico Actualizado."),__c.True);};
RDebugUtils.currentLine=14025522;
 //BA.debugLineNum = 14025522;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=14025523;
 //BA.debugLineNum = 14025523;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=14025524;
 //BA.debugLineNum = 14025524;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025525;
 //BA.debugLineNum = 14025525;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14025530;
 //BA.debugLineNum = 14025530;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025531;
 //BA.debugLineNum = 14025531;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025532;
 //BA.debugLineNum = 14025532;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=14025533;
 //BA.debugLineNum = 14025533;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group736 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen736 = group736.getSize()
;int index736 = 0;
;
for (; index736 < groupLen736;index736++){
_records = (Object[])(group736.Get(index736));
RDebugUtils.currentLine=14025534;
 //BA.debugLineNum = 14025534;BA.debugLine="Dim Cat_Va_Descripcion As String = records(RE";
_cat_va_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_DESCRIPCION"))))]);
RDebugUtils.currentLine=14025535;
 //BA.debugLineNum = 14025535;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
_cat_va_valor = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_VALOR"))))]);
RDebugUtils.currentLine=14025536;
 //BA.debugLineNum = 14025536;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_va_descripcion),(Object)(_cat_va_valor)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025541;
 //BA.debugLineNum = 14025541;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025542;
 //BA.debugLineNum = 14025542;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025543;
 //BA.debugLineNum = 14025543;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUESTIONARIO"))) { 
RDebugUtils.currentLine=14025544;
 //BA.debugLineNum = 14025544;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group746 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen746 = group746.getSize()
;int index746 = 0;
;
for (; index746 < groupLen746;index746++){
_records = (Object[])(group746.Get(index746));
RDebugUtils.currentLine=14025545;
 //BA.debugLineNum = 14025545;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
_cat_va_valor = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VALOR"))))]);
RDebugUtils.currentLine=14025546;
 //BA.debugLineNum = 14025546;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CUESTIONARIO")}));
RDebugUtils.currentLine=14025547;
 //BA.debugLineNum = 14025547;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CUESTIONARIO"),(Object)(_cat_va_valor)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025552;
 //BA.debugLineNum = 14025552;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025553;
 //BA.debugLineNum = 14025553;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025554;
 //BA.debugLineNum = 14025554;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=14025555;
 //BA.debugLineNum = 14025555;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group756 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen756 = group756.getSize()
;int index756 = 0;
;
for (; index756 < groupLen756;index756++){
_records = (Object[])(group756.Get(index756));
RDebugUtils.currentLine=14025556;
 //BA.debugLineNum = 14025556;BA.debugLine="Dim CUANTOSP As Int = records(RESULT.Columns.";
_cuantosp = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSP"))))]));
RDebugUtils.currentLine=14025557;
 //BA.debugLineNum = 14025557;BA.debugLine="If cuantos_pedido <= CUANTOSP Then";
if ((double)(Double.parseDouble(__ref._cuantos_pedido /*String*/ ))<=_cuantosp) { 
RDebugUtils.currentLine=14025559;
 //BA.debugLineNum = 14025559;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
RDebugUtils.currentLine=14025560;
 //BA.debugLineNum = 14025560;BA.debugLine="S_CP.Text = \"INFO OK\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("INFO OK"));
 }else {
RDebugUtils.currentLine=14025562;
 //BA.debugLineNum = 14025562;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+__ref._cuantos_pedido /*String*/ ),__c.True);};
RDebugUtils.currentLine=14025563;
 //BA.debugLineNum = 14025563;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-2)\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-2)"));
 };
 }
};
 };
 };
RDebugUtils.currentLine=14025569;
 //BA.debugLineNum = 14025569;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025570;
 //BA.debugLineNum = 14025570;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025571;
 //BA.debugLineNum = 14025571;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=14025572;
 //BA.debugLineNum = 14025572;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));
RDebugUtils.currentLine=14025573;
 //BA.debugLineNum = 14025573;BA.debugLine="Dim CUANTOSC As Int = records(RESULT.Columns.";
_cuantosc = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSC"))))]));
RDebugUtils.currentLine=14025574;
 //BA.debugLineNum = 14025574;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=14025576;
 //BA.debugLineNum = 14025576;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=14025578;
 //BA.debugLineNum = 14025578;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+__ref._cuantos_pedidosc /*String*/ ),__c.True);};
 };
 }
};
 };
 };
RDebugUtils.currentLine=14025584;
 //BA.debugLineNum = 14025584;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025585;
 //BA.debugLineNum = 14025585;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025586;
 //BA.debugLineNum = 14025586;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=14025587;
 //BA.debugLineNum = 14025587;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));
RDebugUtils.currentLine=14025588;
 //BA.debugLineNum = 14025588;BA.debugLine="Dim CUANTOSN As Int = records(RESULT.Columns.";
_cuantosn = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSN"))))]));
RDebugUtils.currentLine=14025589;
 //BA.debugLineNum = 14025589;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=14025591;
 //BA.debugLineNum = 14025591;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=14025593;
 //BA.debugLineNum = 14025593;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+__ref._cuantos_noventa /*String*/ ),__c.True);};
 };
 }
};
 };
 };
RDebugUtils.currentLine=14025599;
 //BA.debugLineNum = 14025599;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025600;
 //BA.debugLineNum = 14025600;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025601;
 //BA.debugLineNum = 14025601;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedido"))) { 
RDebugUtils.currentLine=14025602;
 //BA.debugLineNum = 14025602;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));
RDebugUtils.currentLine=14025603;
 //BA.debugLineNum = 14025603;BA.debugLine="PB2.Progress = PB2.Progress + 5";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()+5));
RDebugUtils.currentLine=14025604;
 //BA.debugLineNum = 14025604;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SUBIENDO"));
 }
};
RDebugUtils.currentLine=14025606;
 //BA.debugLineNum = 14025606;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14025607;
 //BA.debugLineNum = 14025607;BA.debugLine="S_CP.Text = \"REVISANDO ...\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("REVISANDO ..."));
RDebugUtils.currentLine=14025608;
 //BA.debugLineNum = 14025608;BA.debugLine="Log(\"5\")";
__c.LogImpl("514025608","5",0);
 };
 };
RDebugUtils.currentLine=14025612;
 //BA.debugLineNum = 14025612;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025613;
 //BA.debugLineNum = 14025613;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025614;
 //BA.debugLineNum = 14025614;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=14025615;
 //BA.debugLineNum = 14025615;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group809 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen809 = group809.getSize()
;int index809 = 0;
;
for (; index809 < groupLen809;index809++){
_records = (Object[])(group809.Get(index809));
RDebugUtils.currentLine=14025616;
 //BA.debugLineNum = 14025616;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=14025617;
 //BA.debugLineNum = 14025617;BA.debugLine="Dim CAT_VE_VERSION As String = records(RESULT";
_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
RDebugUtils.currentLine=14025618;
 //BA.debugLineNum = 14025618;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025623;
 //BA.debugLineNum = 14025623;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025624;
 //BA.debugLineNum = 14025624;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025625;
 //BA.debugLineNum = 14025625;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=14025626;
 //BA.debugLineNum = 14025626;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group819 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen819 = group819.getSize()
;int index819 = 0;
;
for (; index819 < groupLen819;index819++){
_records = (Object[])(group819.Get(index819));
RDebugUtils.currentLine=14025627;
 //BA.debugLineNum = 14025627;BA.debugLine="COUNT_CLIE = records(RESULT.Columns.Get(\"COUN";
__ref._count_clie /*int*/  = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT_CLIE"))))]));
 }
};
 };
 };
RDebugUtils.currentLine=14025632;
 //BA.debugLineNum = 14025632;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025633;
 //BA.debugLineNum = 14025633;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025634;
 //BA.debugLineNum = 14025634;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=14025635;
 //BA.debugLineNum = 14025635;BA.debugLine="Log(\"JOBDONE PRINCIPAL RUTA\")";
__c.LogImpl("514025635","JOBDONE PRINCIPAL RUTA",0);
RDebugUtils.currentLine=14025636;
 //BA.debugLineNum = 14025636;BA.debugLine="Log(RESULT.Rows.Size)";
__c.LogImpl("514025636",BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
RDebugUtils.currentLine=14025637;
 //BA.debugLineNum = 14025637;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group829 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen829 = group829.getSize()
;int index829 = 0;
;
for (; index829 < groupLen829;index829++){
_records = (Object[])(group829.Get(index829));
RDebugUtils.currentLine=14025638;
 //BA.debugLineNum = 14025638;BA.debugLine="Dim VALIDO As String = records(RESULT.Columns";
_valido = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
RDebugUtils.currentLine=14025639;
 //BA.debugLineNum = 14025639;BA.debugLine="Log(\"|\"&VALIDO)";
__c.LogImpl("514025639","|"+_valido,0);
RDebugUtils.currentLine=14025640;
 //BA.debugLineNum = 14025640;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=14025641;
 //BA.debugLineNum = 14025641;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14025642;
 //BA.debugLineNum = 14025642;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14025643;
 //BA.debugLineNum = 14025643;BA.debugLine="inv.Visible = True";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14025644;
 //BA.debugLineNum = 14025644;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025645;
 //BA.debugLineNum = 14025645;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=14025646;
 //BA.debugLineNum = 14025646;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=14025649;
 //BA.debugLineNum = 14025649;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025650;
 //BA.debugLineNum = 14025650;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025651;
 //BA.debugLineNum = 14025651;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025652;
 //BA.debugLineNum = 14025652;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025653;
 //BA.debugLineNum = 14025653;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Ruta invalida."),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=14025659;
 //BA.debugLineNum = 14025659;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025660;
 //BA.debugLineNum = 14025660;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025661;
 //BA.debugLineNum = 14025661;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=14025662;
 //BA.debugLineNum = 14025662;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group853 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen853 = group853.getSize()
;int index853 = 0;
;
for (; index853 < groupLen853;index853++){
_records = (Object[])(group853.Get(index853));
RDebugUtils.currentLine=14025663;
 //BA.debugLineNum = 14025663;BA.debugLine="Dim name2 As String = records(RESULT.Columns.";
_name2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
 }
};
RDebugUtils.currentLine=14025665;
 //BA.debugLineNum = 14025665;BA.debugLine="If name2 = \"OK\" Then";
if ((_name2).equals("OK")) { 
RDebugUtils.currentLine=14025666;
 //BA.debugLineNum = 14025666;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
 };
RDebugUtils.currentLine=14025668;
 //BA.debugLineNum = 14025668;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14025669;
 //BA.debugLineNum = 14025669;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=14025673;
 //BA.debugLineNum = 14025673;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025674;
 //BA.debugLineNum = 14025674;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025675;
 //BA.debugLineNum = 14025675;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
RDebugUtils.currentLine=14025676;
 //BA.debugLineNum = 14025676;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group866 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen866 = group866.getSize()
;int index866 = 0;
;
for (; index866 < groupLen866;index866++){
_records = (Object[])(group866.Get(index866));
RDebugUtils.currentLine=14025677;
 //BA.debugLineNum = 14025677;BA.debugLine="Dim FECHA_HOY As String = records(RESULT.Colu";
_fecha_hoy = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA"))))]);
RDebugUtils.currentLine=14025678;
 //BA.debugLineNum = 14025678;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA")}));
RDebugUtils.currentLine=14025679;
 //BA.debugLineNum = 14025679;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA"),(Object)(_fecha_hoy)}));
 }
};
 };
 };
 };
RDebugUtils.currentLine=14025722;
 //BA.debugLineNum = 14025722;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025723;
 //BA.debugLineNum = 14025723;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025724;
 //BA.debugLineNum = 14025724;BA.debugLine="If RESULT.Tag = \"ins_cuestionario\" Then 'query t";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_cuestionario"))) { 
RDebugUtils.currentLine=14025725;
 //BA.debugLineNum = 14025725;BA.debugLine="Subs.logJobDoneResultados(RESULT)";
_subs._logjobdoneresultados /*String*/ (ba,_result);
 };
RDebugUtils.currentLine=14025728;
 //BA.debugLineNum = 14025728;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025729;
 //BA.debugLineNum = 14025729;BA.debugLine="If RESULT.Tag = \"test\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("test"))) { 
RDebugUtils.currentLine=14025730;
 //BA.debugLineNum = 14025730;BA.debugLine="Log(\">>>>>>>>>>>>>  TEST\")";
__c.LogImpl("514025730",">>>>>>>>>>>>>  TEST",0);
RDebugUtils.currentLine=14025731;
 //BA.debugLineNum = 14025731;BA.debugLine="Subs.logJobDoneResultados(RESULT)";
_subs._logjobdoneresultados /*String*/ (ba,_result);
 };
RDebugUtils.currentLine=14025734;
 //BA.debugLineNum = 14025734;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025735;
 //BA.debugLineNum = 14025735;BA.debugLine="If RESULT.Tag = \"clientes_cuestionario\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("clientes_cuestionario"))) { 
RDebugUtils.currentLine=14025736;
 //BA.debugLineNum = 14025736;BA.debugLine="Log(\"Entramos a clientes_cuestionario - Regs:\"";
__c.LogImpl("514025736","Entramos a clientes_cuestionario - Regs:"+BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
RDebugUtils.currentLine=14025737;
 //BA.debugLineNum = 14025737;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_CUE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CUESTIONARIO");
RDebugUtils.currentLine=14025738;
 //BA.debugLineNum = 14025738;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group888 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen888 = group888.getSize()
;int index888 = 0;
;
for (; index888 < groupLen888;index888++){
_records = (Object[])(group888.Get(index888));
RDebugUtils.currentLine=14025739;
 //BA.debugLineNum = 14025739;BA.debugLine="Dim idCliente As String = records(RESULT.Colum";
_idcliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HC_CLIENTE"))))]);
RDebugUtils.currentLine=14025740;
 //BA.debugLineNum = 14025740;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_CUESTIONARIO(HC_CLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_idcliente)}));
 }
};
 };
 };
RDebugUtils.currentLine=14025745;
 //BA.debugLineNum = 14025745;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14025746;
 //BA.debugLineNum = 14025746;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14025747;
 //BA.debugLineNum = 14025747;BA.debugLine="If RESULT.Tag = \"telefono\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("telefono"))) { 
RDebugUtils.currentLine=14025749;
 //BA.debugLineNum = 14025749;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group897 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen897 = group897.getSize()
;int index897 = 0;
;
for (; index897 < groupLen897;index897++){
_records = (Object[])(group897.Get(index897));
RDebugUtils.currentLine=14025750;
 //BA.debugLineNum = 14025750;BA.debugLine="Dim TELEFONO As String = \"\"";
_telefono = "";
RDebugUtils.currentLine=14025752;
 //BA.debugLineNum = 14025752;BA.debugLine="If RESULT.Columns.Get(\"CAT_LO_IDTELEFONO\") <>";
if (_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))!= null) { 
RDebugUtils.currentLine=14025753;
 //BA.debugLineNum = 14025753;BA.debugLine="Dim index As Int = RESULT.Columns.Get(\"CAT_LO";
_index = (int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))));
RDebugUtils.currentLine=14025754;
 //BA.debugLineNum = 14025754;BA.debugLine="If records(index) <> Null Then";
if (_records[_index]!= null) { 
RDebugUtils.currentLine=14025755;
 //BA.debugLineNum = 14025755;BA.debugLine="TELEFONO = records(index)";
_telefono = BA.ObjectToString(_records[_index]);
 };
 };
RDebugUtils.currentLine=14025759;
 //BA.debugLineNum = 14025759;BA.debugLine="If TELEFONO <> \"\" Then";
if ((_telefono).equals("") == false) { 
RDebugUtils.currentLine=14025760;
 //BA.debugLineNum = 14025760;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE";
_b4xpages._mainpage /*SHARK2.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)("TELEFONO")}));
RDebugUtils.currentLine=14025761;
 //BA.debugLineNum = 14025761;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*SHARK2.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)("TELEFONO"),(Object)(_telefono)}));
 };
 }
};
 };
 };
RDebugUtils.currentLine=14025767;
 //BA.debugLineNum = 14025767;BA.debugLine="If resultado.Tag = \"nom_user\" Then";
if ((_resultado.Tag /*Object*/ ).equals((Object)("nom_user"))) { 
RDebugUtils.currentLine=14025768;
 //BA.debugLineNum = 14025768;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group913 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen913 = group913.getSize()
;int index913 = 0;
;
for (; index913 < groupLen913;index913++){
_records = (Object[])(group913.Get(index913));
RDebugUtils.currentLine=14025769;
 //BA.debugLineNum = 14025769;BA.debugLine="Dim nombre_user As String = records(resultado.C";
_nombre_user = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_NOMBRE"))))]);
RDebugUtils.currentLine=14025770;
 //BA.debugLineNum = 14025770;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FR";
_b4xpages._mainpage /*SHARK2.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)("nom_usuario")}));
RDebugUtils.currentLine=14025771;
 //BA.debugLineNum = 14025771;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*SHARK2.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)("nom_usuario"),(Object)(_nombre_user)}));
 }
};
 };
RDebugUtils.currentLine=14025775;
 //BA.debugLineNum = 14025775;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
RDebugUtils.currentLine=14025776;
 //BA.debugLineNum = 14025776;BA.debugLine="End Sub";
return "";
}
public String  _mapfragment1_longclick(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _mpoint) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "mapfragment1_longclick", false))
	 {return ((String) Debug.delegate(ba, "mapfragment1_longclick", new Object[] {_mpoint}));}
boolean _dentro = false;
RDebugUtils.currentLine=13828096;
 //BA.debugLineNum = 13828096;BA.debugLine="Sub MapFragment1_LongClick (mPoint As LatLng)";
RDebugUtils.currentLine=13828098;
 //BA.debugLineNum = 13828098;BA.debugLine="If lista_punta.Size > 0 Then";
if (__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>0) { 
RDebugUtils.currentLine=13828099;
 //BA.debugLineNum = 13828099;BA.debugLine="Dim dentro As Boolean = PointInPolygon(mPoint, l";
_dentro = __ref._pointinpolygon /*boolean*/ (null,_mpoint,__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ );
RDebugUtils.currentLine=13828101;
 //BA.debugLineNum = 13828101;BA.debugLine="If dentro Then";
if (_dentro) { 
RDebugUtils.currentLine=13828102;
 //BA.debugLineNum = 13828102;BA.debugLine="ToastMessageShow(\"El punto está DENTRO del polí";
__c.ToastMessageShow(BA.ObjectToCharSequence("El punto está DENTRO del polígono"),__c.True);
 }else {
RDebugUtils.currentLine=13828104;
 //BA.debugLineNum = 13828104;BA.debugLine="ToastMessageShow(\"El punto está FUERA del políg";
__c.ToastMessageShow(BA.ObjectToCharSequence("El punto está FUERA del polígono"),__c.True);
 };
 };
RDebugUtils.currentLine=13828107;
 //BA.debugLineNum = 13828107;BA.debugLine="End Sub";
return "";
}
public boolean  _pointinpolygon(SHARK2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _point,anywheresoftware.b4a.objects.collections.List _polygon) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "pointinpolygon", false))
	 {return ((Boolean) Debug.delegate(ba, "pointinpolygon", new Object[] {_point,_polygon}));}
double _x = 0;
double _y = 0;
boolean _inside = false;
int _i = 0;
int _j = 0;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p1_1 = null;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p2_1 = null;
double _xi = 0;
double _yi = 0;
double _xj = 0;
double _yj = 0;
boolean _intersect = false;
RDebugUtils.currentLine=13762560;
 //BA.debugLineNum = 13762560;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
RDebugUtils.currentLine=13762561;
 //BA.debugLineNum = 13762561;BA.debugLine="Dim x As Double = point.Longitude";
_x = _point.getLongitude();
RDebugUtils.currentLine=13762562;
 //BA.debugLineNum = 13762562;BA.debugLine="Dim y As Double = point.Latitude";
_y = _point.getLatitude();
RDebugUtils.currentLine=13762564;
 //BA.debugLineNum = 13762564;BA.debugLine="Dim inside As Boolean = False";
_inside = __c.False;
RDebugUtils.currentLine=13762565;
 //BA.debugLineNum = 13762565;BA.debugLine="For i = 0 To polygon.Size - 1";
{
final int step4 = 1;
final int limit4 = (int) (_polygon.getSize()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=13762566;
 //BA.debugLineNum = 13762566;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
_j = (int) ((_i+1)%_polygon.getSize());
RDebugUtils.currentLine=13762567;
 //BA.debugLineNum = 13762567;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)";
_p1_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p1_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_i)));
RDebugUtils.currentLine=13762568;
 //BA.debugLineNum = 13762568;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)";
_p2_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p2_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_j)));
RDebugUtils.currentLine=13762570;
 //BA.debugLineNum = 13762570;BA.debugLine="Dim xi As Double = p1_1.Longitude";
_xi = _p1_1.getLongitude();
RDebugUtils.currentLine=13762571;
 //BA.debugLineNum = 13762571;BA.debugLine="Dim yi As Double = p1_1.Latitude";
_yi = _p1_1.getLatitude();
RDebugUtils.currentLine=13762572;
 //BA.debugLineNum = 13762572;BA.debugLine="Dim xj As Double = p2_1.Longitude";
_xj = _p2_1.getLongitude();
RDebugUtils.currentLine=13762573;
 //BA.debugLineNum = 13762573;BA.debugLine="Dim yj As Double = p2_1.Latitude";
_yj = _p2_1.getLatitude();
RDebugUtils.currentLine=13762575;
 //BA.debugLineNum = 13762575;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)";
_intersect = ((_yi>_y)!=(_yj>_y)) && (_x<(_xj-_xi)*(_y-_yi)/(double)(_yj-_yi)+_xi);
RDebugUtils.currentLine=13762576;
 //BA.debugLineNum = 13762576;BA.debugLine="If intersect Then";
if (_intersect) { 
RDebugUtils.currentLine=13762577;
 //BA.debugLineNum = 13762577;BA.debugLine="inside = Not(inside)";
_inside = __c.Not(_inside);
 };
 }
};
RDebugUtils.currentLine=13762581;
 //BA.debugLineNum = 13762581;BA.debugLine="Return inside";
if (true) return _inside;
RDebugUtils.currentLine=13762584;
 //BA.debugLineNum = 13762584;BA.debugLine="End Sub";
return false;
}
public String  _nuevo_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nuevo_click", false))
	 {return ((String) Debug.delegate(ba, "nuevo_click", null));}
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _mpoint = null;
RDebugUtils.currentLine=14614528;
 //BA.debugLineNum = 14614528;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=14614532;
 //BA.debugLineNum = 14614532;BA.debugLine="Dim mPoint As LatLng";
_mpoint = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
RDebugUtils.currentLine=14614533;
 //BA.debugLineNum = 14614533;BA.debugLine="mPoint.Initialize(B4XPages.MainPage.lat_gps, B4XP";
_mpoint.Initialize((double)(Double.parseDouble(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )),(double)(Double.parseDouble(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )));
RDebugUtils.currentLine=14614540;
 //BA.debugLineNum = 14614540;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=14614546;
 //BA.debugLineNum = 14614546;BA.debugLine="End Sub";
return "";
}
public String  _nvo_cliente_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nvo_cliente_click", false))
	 {return ((String) Debug.delegate(ba, "nvo_cliente_click", null));}
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _mpoint = null;
RDebugUtils.currentLine=15073280;
 //BA.debugLineNum = 15073280;BA.debugLine="Sub nvo_cliente_Click";
RDebugUtils.currentLine=15073283;
 //BA.debugLineNum = 15073283;BA.debugLine="Dim mPoint As LatLng";
_mpoint = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
RDebugUtils.currentLine=15073284;
 //BA.debugLineNum = 15073284;BA.debugLine="mPoint.Initialize(B4XPages.MainPage.lat_gps, B4XP";
_mpoint.Initialize((double)(Double.parseDouble(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )),(double)(Double.parseDouble(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )));
RDebugUtils.currentLine=15073291;
 //BA.debugLineNum = 15073291;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=15073296;
 //BA.debugLineNum = 15073296;BA.debugLine="End Sub";
return "";
}
public String  _p_mandainfo_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_mandainfo_click", false))
	 {return ((String) Debug.delegate(ba, "p_mandainfo_click", null));}
RDebugUtils.currentLine=15728640;
 //BA.debugLineNum = 15728640;BA.debugLine="Private Sub p_mandaInfo_Click";
RDebugUtils.currentLine=15728642;
 //BA.debugLineNum = 15728642;BA.debugLine="End Sub";
return "";
}
public String  _p_prod_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_prod_click", false))
	 {return ((String) Debug.delegate(ba, "p_prod_click", null));}
RDebugUtils.currentLine=16318464;
 //BA.debugLineNum = 16318464;BA.debugLine="Private Sub p_prod_Click";
RDebugUtils.currentLine=16318466;
 //BA.debugLineNum = 16318466;BA.debugLine="End Sub";
return "";
}
public String  _p_resumen_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_resumen_click", false))
	 {return ((String) Debug.delegate(ba, "p_resumen_click", null));}
RDebugUtils.currentLine=14811136;
 //BA.debugLineNum = 14811136;BA.debugLine="Sub P_RESUMEN_click";
RDebugUtils.currentLine=14811138;
 //BA.debugLineNum = 14811138;BA.debugLine="End Sub";
return "";
}
public String  _pnlcobranza_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "pnlcobranza_click", false))
	 {return ((String) Debug.delegate(ba, "pnlcobranza_click", null));}
RDebugUtils.currentLine=16187392;
 //BA.debugLineNum = 16187392;BA.debugLine="Private Sub pnlCobranza_Click";
RDebugUtils.currentLine=16187394;
 //BA.debugLineNum = 16187394;BA.debugLine="End Sub";
return "";
}
public String  _resdia_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "resdia_click", false))
	 {return ((String) Debug.delegate(ba, "resdia_click", null));}
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
String _cuantos_obj = "";
RDebugUtils.currentLine=14942208;
 //BA.debugLineNum = 14942208;BA.debugLine="Sub resdia_Click";
RDebugUtils.currentLine=14942209;
 //BA.debugLineNum = 14942209;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942210;
 //BA.debugLineNum = 14942210;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942211;
 //BA.debugLineNum = 14942211;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14942212;
 //BA.debugLineNum = 14942212;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("RESDIA",ba);
RDebugUtils.currentLine=14942213;
 //BA.debugLineNum = 14942213;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel4.Height";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=14942214;
 //BA.debugLineNum = 14942214;BA.debugLine="Panel4.Visible = True";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14942216;
 //BA.debugLineNum = 14942216;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942217;
 //BA.debugLineNum = 14942217;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942218;
 //BA.debugLineNum = 14942218;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942219;
 //BA.debugLineNum = 14942219;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942220;
 //BA.debugLineNum = 14942220;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942221;
 //BA.debugLineNum = 14942221;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14942223;
 //BA.debugLineNum = 14942223;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select COUNT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS FROM HIST_ENCUESTA WHERE  HE_TIPO = ?",new String[]{"TELEFONO"})));
RDebugUtils.currentLine=14942224;
 //BA.debugLineNum = 14942224;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942225;
 //BA.debugLineNum = 14942225;BA.debugLine="l_encuesta.Text = d.GetString(\"CUANTOS\")";
__ref._l_encuesta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=14942226;
 //BA.debugLineNum = 14942226;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942228;
 //BA.debugLineNum = 14942228;BA.debugLine="L_MARCAS.CLEAR";
__ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=14942229;
 //BA.debugLineNum = 14942229;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select disti";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select distinct HE_CLIE AS CLIENTE FROM HIST_ENCUESTA WHERE  HE_TIPO = ?",new String[]{"TELEFONO"})));
RDebugUtils.currentLine=14942230;
 //BA.debugLineNum = 14942230;BA.debugLine="If D.RowCount>0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14942231;
 //BA.debugLineNum = 14942231;BA.debugLine="For i=0 To D.RowCount -1";
{
final int step20 = 1;
final int limit20 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit20 ;_i = _i + step20 ) {
RDebugUtils.currentLine=14942232;
 //BA.debugLineNum = 14942232;BA.debugLine="D.Position=i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14942233;
 //BA.debugLineNum = 14942233;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  HE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  HE_RES from HIST_ENCUESTA where  HE_CLIE = ?  AND HE_TIPO = ?",new String[]{__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE"),"TELEFONO"})));
RDebugUtils.currentLine=14942234;
 //BA.debugLineNum = 14942234;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942235;
 //BA.debugLineNum = 14942235;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14942236;
 //BA.debugLineNum = 14942236;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label";
_label1 = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=14942237;
 //BA.debugLineNum = 14942237;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=14942238;
 //BA.debugLineNum = 14942238;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=14942239;
 //BA.debugLineNum = 14942239;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14942240;
 //BA.debugLineNum = 14942240;BA.debugLine="label2 = L_MARCAS.TwoLinesLayout.SecondLabel";
_label2 = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=14942241;
 //BA.debugLineNum = 14942241;BA.debugLine="label2.TextSize = 13";
_label2.setTextSize((float) (13));
RDebugUtils.currentLine=14942242;
 //BA.debugLineNum = 14942242;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=14942243;
 //BA.debugLineNum = 14942243;BA.debugLine="L_MARCAS.AddTwoLines(d.GetString(\"CLIENTE\"),\"TE";
__ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")),BA.ObjectToCharSequence("TELEFONO :"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_RES")));
RDebugUtils.currentLine=14942244;
 //BA.debugLineNum = 14942244;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
 };
RDebugUtils.currentLine=14942247;
 //BA.debugLineNum = 14942247;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942249;
 //BA.debugLineNum = 14942249;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 cat_gunaprod where CAT_GP_TIPO = ? )",new String[]{"RTEC"})));
RDebugUtils.currentLine=14942250;
 //BA.debugLineNum = 14942250;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942251;
 //BA.debugLineNum = 14942251;BA.debugLine="l_monto_k.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=14942252;
 //BA.debugLineNum = 14942252;BA.debugLine="If l_monto_k.Text = \"null\" Then";
if ((__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942253;
 //BA.debugLineNum = 14942253;BA.debugLine="l_monto_k.Text = \"0\"";
__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=14942255;
 //BA.debugLineNum = 14942255;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942257;
 //BA.debugLineNum = 14942257;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 cat_gunaprod where CAT_GP_TIPO = ? )",new String[]{"PING"})));
RDebugUtils.currentLine=14942258;
 //BA.debugLineNum = 14942258;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942259;
 //BA.debugLineNum = 14942259;BA.debugLine="l_monto_kp.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=14942260;
 //BA.debugLineNum = 14942260;BA.debugLine="If l_monto_kp.Text = \"null\" Then";
if ((__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942261;
 //BA.debugLineNum = 14942261;BA.debugLine="l_monto_kp.Text = \"0\"";
__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=14942263;
 //BA.debugLineNum = 14942263;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942273;
 //BA.debugLineNum = 14942273;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 ")));
RDebugUtils.currentLine=14942274;
 //BA.debugLineNum = 14942274;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942275;
 //BA.debugLineNum = 14942275;BA.debugLine="l_monto_ks.Text = Subs.traeTotalCliente";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._traetotalcliente /*double*/ (ba)));
RDebugUtils.currentLine=14942277;
 //BA.debugLineNum = 14942277;BA.debugLine="If l_monto_ks.Text = \"null\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942278;
 //BA.debugLineNum = 14942278;BA.debugLine="l_monto_ks.Text = \"0\"";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=14942280;
 //BA.debugLineNum = 14942280;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942281;
 //BA.debugLineNum = 14942281;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  sum(PE_COSTO_TOT) As PREVENTA from pedido where PE_FOLIO = ? AND PE_CLIENTE <> 0",new String[]{"PREVENTA"})));
RDebugUtils.currentLine=14942282;
 //BA.debugLineNum = 14942282;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14942283;
 //BA.debugLineNum = 14942283;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942284;
 //BA.debugLineNum = 14942284;BA.debugLine="L_PREVENTA.Text = Subs.traeTotalClientepreventa";
__ref._l_preventa /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._traetotalclientepreventa /*double*/ (ba)));
RDebugUtils.currentLine=14942285;
 //BA.debugLineNum = 14942285;BA.debugLine="If L_PREVENTA.TEXT = \"null\" Then";
if ((__ref._l_preventa /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942286;
 //BA.debugLineNum = 14942286;BA.debugLine="L_PREVENTA.Text = \"0\"";
__ref._l_preventa /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
 };
RDebugUtils.currentLine=14942289;
 //BA.debugLineNum = 14942289;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942290;
 //BA.debugLineNum = 14942290;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  sum(PE_COSTO_TOT) As VENTA from pedido where PE_FOLIO = ? AND PE_CLIENTE <> 0",new String[]{"VENTA"})));
RDebugUtils.currentLine=14942291;
 //BA.debugLineNum = 14942291;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14942292;
 //BA.debugLineNum = 14942292;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942293;
 //BA.debugLineNum = 14942293;BA.debugLine="L_VENTA.Text = Subs.traeTotalClienteventa";
__ref._l_venta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._traetotalclienteventa /*double*/ (ba)));
RDebugUtils.currentLine=14942294;
 //BA.debugLineNum = 14942294;BA.debugLine="If L_VENTA.TEXT = \"null\" Then";
if ((__ref._l_venta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942295;
 //BA.debugLineNum = 14942295;BA.debugLine="L_VENTA.Text = \"0\"";
__ref._l_venta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
 };
RDebugUtils.currentLine=14942298;
 //BA.debugLineNum = 14942298;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942299;
 //BA.debugLineNum = 14942299;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  sum(PE_COSTO_TOT) As ABORDO from pedido where PE_FOLIO = ? AND PE_CLIENTE = ?",new String[]{"ABORDO","0"})));
RDebugUtils.currentLine=14942300;
 //BA.debugLineNum = 14942300;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14942301;
 //BA.debugLineNum = 14942301;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942302;
 //BA.debugLineNum = 14942302;BA.debugLine="L_ABORDO.Text = Subs.traeTotalClienteabordo";
__ref._l_abordo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._traetotalclienteabordo /*double*/ (ba)));
RDebugUtils.currentLine=14942303;
 //BA.debugLineNum = 14942303;BA.debugLine="If L_ABORDO.TEXT = \"null\" Then";
if ((__ref._l_abordo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=14942304;
 //BA.debugLineNum = 14942304;BA.debugLine="L_ABORDO.Text = \"0\"";
__ref._l_abordo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
 };
RDebugUtils.currentLine=14942307;
 //BA.debugLineNum = 14942307;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942308;
 //BA.debugLineNum = 14942308;BA.debugLine="Dim cuantos_obj As String";
_cuantos_obj = "";
RDebugUtils.currentLine=14942309;
 //BA.debugLineNum = 14942309;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=14942310;
 //BA.debugLineNum = 14942310;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942311;
 //BA.debugLineNum = 14942311;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")";
_cuantos_obj = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL");
RDebugUtils.currentLine=14942312;
 //BA.debugLineNum = 14942312;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942314;
 //BA.debugLineNum = 14942314;BA.debugLine="If cuantos_obj > 0 Then";
if ((double)(Double.parseDouble(_cuantos_obj))>0) { 
RDebugUtils.currentLine=14942315;
 //BA.debugLineNum = 14942315;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  SUM(";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  SUM( HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=14942316;
 //BA.debugLineNum = 14942316;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942317;
 //BA.debugLineNum = 14942317;BA.debugLine="L_NES.Text = c.GetString(\"TOTAL\")";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")));
RDebugUtils.currentLine=14942318;
 //BA.debugLineNum = 14942318;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14942320;
 //BA.debugLineNum = 14942320;BA.debugLine="L_REAL.Text = l_monto_ks.Text";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=14942321;
 //BA.debugLineNum = 14942321;BA.debugLine="L_ALCANCE.Text = Round2((L_NES.Text / L_REAL.Text";
__ref._l_alcance /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(((double)(Double.parseDouble(__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+1),(int) (2))));
RDebugUtils.currentLine=14942322;
 //BA.debugLineNum = 14942322;BA.debugLine="L_VPLAN.Text = l_porvisitar.Text";
__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=14942323;
 //BA.debugLineNum = 14942323;BA.debugLine="L_VREAL.Text = L_CUANTOST.text";
__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=14942324;
 //BA.debugLineNum = 14942324;BA.debugLine="L_EFEC_VIS.Text = Round2(L_VREAL.text / L_VPLAN.T";
__ref._l_efec_vis /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=14942325;
 //BA.debugLineNum = 14942325;BA.debugLine="L_VISITCC.Text = l_cuantosc.text";
__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=14942326;
 //BA.debugLineNum = 14942326;BA.debugLine="L_EFEC_PV.Text = Round2(L_VISITCC.Text / L_VREAL.";
__ref._l_efec_pv /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=14942327;
 //BA.debugLineNum = 14942327;BA.debugLine="L_EFEC_PURA.Text = Round2(L_VISITCC.Text / L_VPLA";
__ref._l_efec_pura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=14942328;
 //BA.debugLineNum = 14942328;BA.debugLine="L_LIN_TICK.Text = LPT";
__ref._l_lin_tick /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._lpt /*String*/ ));
RDebugUtils.currentLine=14942329;
 //BA.debugLineNum = 14942329;BA.debugLine="If l_monto_ks.Text <> \"0\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=14942331;
 //BA.debugLineNum = 14942331;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  COU";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  COUNT(DISTINCT(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS =  ? ",new String[]{__ref._almacen /*String*/ })));
RDebugUtils.currentLine=14942332;
 //BA.debugLineNum = 14942332;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942333;
 //BA.debugLineNum = 14942333;BA.debugLine="L_CTE_PROMO.Text = c.GetString(\"CUANTOS\")";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=14942334;
 //BA.debugLineNum = 14942334;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942335;
 //BA.debugLineNum = 14942335;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 cat_gunaprod where  CAT_GP_TIPOPROD = ?) ",new String[]{"PRIORITARIO"})));
RDebugUtils.currentLine=14942336;
 //BA.debugLineNum = 14942336;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942343;
 //BA.debugLineNum = 14942343;BA.debugLine="Log(\"|\"&d.GetString(\"MONTO_DIA\")&\"|\")";
__c.LogImpl("514942343","|"+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")+"|",0);
RDebugUtils.currentLine=14942345;
 //BA.debugLineNum = 14942345;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")";
__ref._l_prio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=14942346;
 //BA.debugLineNum = 14942346;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942348;
 //BA.debugLineNum = 14942348;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 cat_gunaprod where  CAT_GP_TIPOPROD = ?) ",new String[]{"ESTRATEGICO"})));
RDebugUtils.currentLine=14942349;
 //BA.debugLineNum = 14942349;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942350;
 //BA.debugLineNum = 14942350;BA.debugLine="L_SECUND.Text =d.GetString(\"MONTO_DIA\")";
__ref._l_secund /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=14942351;
 //BA.debugLineNum = 14942351;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942353;
 //BA.debugLineNum = 14942353;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.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 cat_gunaprod where  CAT_GP_TIPOPROD = ?) ",new String[]{"COMPLEMENTARIO"})));
RDebugUtils.currentLine=14942354;
 //BA.debugLineNum = 14942354;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942355;
 //BA.debugLineNum = 14942355;BA.debugLine="L_COMP.Text =d.GetString(\"MONTO_DIA\")";
__ref._l_comp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=14942356;
 //BA.debugLineNum = 14942356;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=14942358;
 //BA.debugLineNum = 14942358;BA.debugLine="L_PRIO.Text = \"0\"";
__ref._l_prio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=14942359;
 //BA.debugLineNum = 14942359;BA.debugLine="L_SECUND.Text = \"0\"";
__ref._l_secund /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=14942360;
 //BA.debugLineNum = 14942360;BA.debugLine="L_COMP.Text = \"0\"";
__ref._l_comp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=14942363;
 //BA.debugLineNum = 14942363;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=14942364;
 //BA.debugLineNum = 14942364;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942365;
 //BA.debugLineNum = 14942365;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=14942366;
 //BA.debugLineNum = 14942366;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(pe_cant) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=14942367;
 //BA.debugLineNum = 14942367;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942368;
 //BA.debugLineNum = 14942368;BA.debugLine="L_CTE_PROMO.Text = d.GetString(\"CUANTOS\")";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=14942369;
 //BA.debugLineNum = 14942369;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942370;
 //BA.debugLineNum = 14942370;BA.debugLine="L_REDEN_PROMO.TEXT = Round2(L_VISITCC.Text / L_C";
__ref._l_reden_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
 }else {
RDebugUtils.currentLine=14942372;
 //BA.debugLineNum = 14942372;BA.debugLine="L_CTE_PROMO.Text = 0";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14942373;
 //BA.debugLineNum = 14942373;BA.debugLine="L_REDEN_PROMO.Text = 0";
__ref._l_reden_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=14942375;
 //BA.debugLineNum = 14942375;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942376;
 //BA.debugLineNum = 14942376;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO ")));
RDebugUtils.currentLine=14942377;
 //BA.debugLineNum = 14942377;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942378;
 //BA.debugLineNum = 14942378;BA.debugLine="L_LIN_TICK.Text = Round2(d.GetString(\"CUANTOS\") /";
__ref._l_lin_tick /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))/(double)(double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=14942379;
 //BA.debugLineNum = 14942379;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942381;
 //BA.debugLineNum = 14942381;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) as CUANTOS  from HIST_CUOTAS ")));
RDebugUtils.currentLine=14942382;
 //BA.debugLineNum = 14942382;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14942383;
 //BA.debugLineNum = 14942383;BA.debugLine="If d.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
 }else {
RDebugUtils.currentLine=14942391;
 //BA.debugLineNum = 14942391;BA.debugLine="l_monto_c1.Text = 4000";
__ref._l_monto_c1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(4000));
RDebugUtils.currentLine=14942392;
 //BA.debugLineNum = 14942392;BA.debugLine="l_monto_c2.Text = 2000";
__ref._l_monto_c2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(2000));
RDebugUtils.currentLine=14942393;
 //BA.debugLineNum = 14942393;BA.debugLine="l_monto_c3.Text = 1000";
__ref._l_monto_c3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(1000));
 };
RDebugUtils.currentLine=14942395;
 //BA.debugLineNum = 14942395;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14942396;
 //BA.debugLineNum = 14942396;BA.debugLine="End Sub";
return "";
}
public String  _resumen_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "resumen_click", false))
	 {return ((String) Debug.delegate(ba, "resumen_click", null));}
RDebugUtils.currentLine=14745600;
 //BA.debugLineNum = 14745600;BA.debugLine="Sub Resumen_Click";
RDebugUtils.currentLine=14745601;
 //BA.debugLineNum = 14745601;BA.debugLine="P_RESUMEN.Visible = True";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14745609;
 //BA.debugLineNum = 14745609;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "subir_click", false))
	 {return ((String) Debug.delegate(ba, "subir_click", null));}
int _i = 0;
int _dia = 0;
String _dialetra = "";
String _pcnoarts = "";
String _pcmonto = "";
RDebugUtils.currentLine=13893632;
 //BA.debugLineNum = 13893632;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=13893633;
 //BA.debugLineNum = 13893633;BA.debugLine="CARGA = \"SUBIR\"";
__ref._carga /*String*/  = "SUBIR";
RDebugUtils.currentLine=13893634;
 //BA.debugLineNum = 13893634;BA.debugLine="p_mandaInfo.Width = Root.Width";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=13893635;
 //BA.debugLineNum = 13893635;BA.debugLine="p_mandaInfo.Height = Root.Height";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=13893636;
 //BA.debugLineNum = 13893636;BA.debugLine="P1.Visible = True";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13893637;
 //BA.debugLineNum = 13893637;BA.debugLine="P1.Left = (p_mandaInfo.Width/2) - (P1.Width/2)";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) ((__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)-(__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=13893638;
 //BA.debugLineNum = 13893638;BA.debugLine="P1.top = (p_mandaInfo.Height/2) - (P1.Height/2)";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) ((__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()/(double)2)-(__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()/(double)2)));
RDebugUtils.currentLine=13893639;
 //BA.debugLineNum = 13893639;BA.debugLine="p_mandaInfo.Visible = True";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13893640;
 //BA.debugLineNum = 13893640;BA.debugLine="P1.BringToFront";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=13893641;
 //BA.debugLineNum = 13893641;BA.debugLine="p_mandaInfo.BringToFront";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=13893643;
 //BA.debugLineNum = 13893643;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893644;
 //BA.debugLineNum = 13893644;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893645;
 //BA.debugLineNum = 13893645;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893646;
 //BA.debugLineNum = 13893646;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893647;
 //BA.debugLineNum = 13893647;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893648;
 //BA.debugLineNum = 13893648;BA.debugLine="L_P_1.Visible = False";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893649;
 //BA.debugLineNum = 13893649;BA.debugLine="S_CC.Visible = False";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893650;
 //BA.debugLineNum = 13893650;BA.debugLine="L_P_3.Visible = False";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893651;
 //BA.debugLineNum = 13893651;BA.debugLine="S_CH.Visible = False";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893652;
 //BA.debugLineNum = 13893652;BA.debugLine="PB1.Visible = False";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893653;
 //BA.debugLineNum = 13893653;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=13893654;
 //BA.debugLineNum = 13893654;BA.debugLine="L_P_2.Text = \"Envio de Pedidos\"";
__ref._l_p_2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Envio de Pedidos"));
RDebugUtils.currentLine=13893655;
 //BA.debugLineNum = 13893655;BA.debugLine="L_P_3.Text = \"Envio de Pedidos\"";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Envio de Pedidos"));
RDebugUtils.currentLine=13893656;
 //BA.debugLineNum = 13893656;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=13893657;
 //BA.debugLineNum = 13893657;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=13893658;
 //BA.debugLineNum = 13893658;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=13893659;
 //BA.debugLineNum = 13893659;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=13893665;
 //BA.debugLineNum = 13893665;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=13893667;
 //BA.debugLineNum = 13893667;BA.debugLine="If PASO = 1 Then";
if ((__ref._paso /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=13893668;
 //BA.debugLineNum = 13893668;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from PEDIDO WHERE PE_PRONOMBRE = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("N/A")}));
RDebugUtils.currentLine=13893669;
 //BA.debugLineNum = 13893669;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE not In (select PE_CLIENTE from pedido)");
RDebugUtils.currentLine=13893670;
 //BA.debugLineNum = 13893670;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=13893671;
 //BA.debugLineNum = 13893671;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13893672;
 //BA.debugLineNum = 13893672;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=13893673;
 //BA.debugLineNum = 13893673;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893674;
 //BA.debugLineNum = 13893674;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HGDAT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
RDebugUtils.currentLine=13893675;
 //BA.debugLineNum = 13893675;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13893676;
 //BA.debugLineNum = 13893676;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step37 = 1;
final int limit37 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit37 ;_i = _i + step37 ) {
RDebugUtils.currentLine=13893677;
 //BA.debugLineNum = 13893677;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13893678;
 //BA.debugLineNum = 13893678;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893679;
 //BA.debugLineNum = 13893679;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893680;
 //BA.debugLineNum = 13893680;BA.debugLine="cmd.Name = \"UPDATE_SHARK2_ACTUAL2_GPS\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "UPDATE_SHARK2_ACTUAL2_GPS";
RDebugUtils.currentLine=13893681;
 //BA.debugLineNum = 13893681;BA.debugLine="cmd.Parameters = Array As String(B4XPages.Main";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = (Object[])(new String[]{_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientestotal /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientesventa /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._clientesvisitados /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._batt /*int*/ ),BA.NumberToString(0),BA.NumberToString(0),BA.NumberToString(0),_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._almacen /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._rutapreventa /*String*/ });
RDebugUtils.currentLine=13893682;
 //BA.debugLineNum = 13893682;BA.debugLine="reqManager.ExecuteCommand(cmd , \"update_gps\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("update_gps"));
 }
};
 };
RDebugUtils.currentLine=13893685;
 //BA.debugLineNum = 13893685;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893755;
 //BA.debugLineNum = 13893755;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CN_ID, CN_FECHA";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS")));
RDebugUtils.currentLine=13893756;
 //BA.debugLineNum = 13893756;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13893757;
 //BA.debugLineNum = 13893757;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step49 = 1;
final int limit49 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit49 ;_i = _i + step49 ) {
RDebugUtils.currentLine=13893758;
 //BA.debugLineNum = 13893758;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13893759;
 //BA.debugLineNum = 13893759;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTim";
_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow());
RDebugUtils.currentLine=13893760;
 //BA.debugLineNum = 13893760;BA.debugLine="If dia = 2  Then";
if (_dia==2) { 
RDebugUtils.currentLine=13893761;
 //BA.debugLineNum = 13893761;BA.debugLine="Dim dialetra As String = \"LUNES\"";
_dialetra = "LUNES";
 }else 
{RDebugUtils.currentLine=13893762;
 //BA.debugLineNum = 13893762;BA.debugLine="Else If dia = 3  Then";
if (_dia==3) { 
RDebugUtils.currentLine=13893763;
 //BA.debugLineNum = 13893763;BA.debugLine="Dim dialetra As String = \"MARTES\"";
_dialetra = "MARTES";
 }else 
{RDebugUtils.currentLine=13893764;
 //BA.debugLineNum = 13893764;BA.debugLine="Else If dia = 4  Then";
if (_dia==4) { 
RDebugUtils.currentLine=13893765;
 //BA.debugLineNum = 13893765;BA.debugLine="Dim dialetra As String = \"MIERCOLES\"";
_dialetra = "MIERCOLES";
 }else 
{RDebugUtils.currentLine=13893766;
 //BA.debugLineNum = 13893766;BA.debugLine="Else If dia = 5  Then";
if (_dia==5) { 
RDebugUtils.currentLine=13893767;
 //BA.debugLineNum = 13893767;BA.debugLine="Dim dialetra As String = \"JUEVES\"";
_dialetra = "JUEVES";
 }else 
{RDebugUtils.currentLine=13893768;
 //BA.debugLineNum = 13893768;BA.debugLine="Else If dia = 6  Then";
if (_dia==6) { 
RDebugUtils.currentLine=13893769;
 //BA.debugLineNum = 13893769;BA.debugLine="Dim dialetra As String = \"VIERNES\"";
_dialetra = "VIERNES";
 }else 
{RDebugUtils.currentLine=13893770;
 //BA.debugLineNum = 13893770;BA.debugLine="Else If dia = 7  Then";
if (_dia==7) { 
RDebugUtils.currentLine=13893771;
 //BA.debugLineNum = 13893771;BA.debugLine="Dim dialetra As String = \"SABADO\"";
_dialetra = "SABADO";
 }}}}}}
;
RDebugUtils.currentLine=13893773;
 //BA.debugLineNum = 13893773;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893774;
 //BA.debugLineNum = 13893774;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893775;
 //BA.debugLineNum = 13893775;BA.debugLine="cmd.Name = \"insert_clientesnuevos_SHARK24\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_clientesnuevos_SHARK24";
RDebugUtils.currentLine=13893776;
 //BA.debugLineNum = 13893776;BA.debugLine="Log(c.GetString(\"CN_ID\")&\"    ,\"& c.GetString(";
__c.LogImpl("513893776",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")+"    ,"+__ref._almacen /*String*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")+"    ,"+"En espera"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")+"    ,"+_dialetra+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO"),0);
RDebugUtils.currentLine=13893777;
 //BA.debugLineNum = 13893777;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")),(Object)("En espera"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")),(Object)(_dialetra),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CP"))};
RDebugUtils.currentLine=13893778;
 //BA.debugLineNum = 13893778;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_clientes";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_clientesn"));
 }
};
 };
RDebugUtils.currentLine=13893781;
 //BA.debugLineNum = 13893781;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893797;
 //BA.debugLineNum = 13893797;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=13893798;
 //BA.debugLineNum = 13893798;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=13893799;
 //BA.debugLineNum = 13893799;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .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 WHERE PC_CLIENTE <> '1' ")));
RDebugUtils.currentLine=13893800;
 //BA.debugLineNum = 13893800;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery(\"SELECT COU";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDOSC FROM PEDIDO_CLIENTE WHERE PC_CLIENTE <> 1 ")));
RDebugUtils.currentLine=13893801;
 //BA.debugLineNum = 13893801;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13893802;
 //BA.debugLineNum = 13893802;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step79 = 1;
final int limit79 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit79 ;_i = _i + step79 ) {
RDebugUtils.currentLine=13893803;
 //BA.debugLineNum = 13893803;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13893804;
 //BA.debugLineNum = 13893804;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893805;
 //BA.debugLineNum = 13893805;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893806;
 //BA.debugLineNum = 13893806;BA.debugLine="cmd.Name = \"insert_pedidos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedidos_SHARK2";
RDebugUtils.currentLine=13893807;
 //BA.debugLineNum = 13893807;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=13893808;
 //BA.debugLineNum = 13893808;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
RDebugUtils.currentLine=13893809;
 //BA.debugLineNum = 13893809;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE"))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA"))};
RDebugUtils.currentLine=13893810;
 //BA.debugLineNum = 13893810;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedidos\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedidos"));
RDebugUtils.currentLine=13893811;
 //BA.debugLineNum = 13893811;BA.debugLine="Log(\">>>>>>  INSERT PEDIDO_CLIENTE\")";
__c.LogImpl("513893811",">>>>>>  INSERT PEDIDO_CLIENTE",0);
 }
};
 };
RDebugUtils.currentLine=13893814;
 //BA.debugLineNum = 13893814;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893815;
 //BA.debugLineNum = 13893815;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13893816;
 //BA.debugLineNum = 13893816;BA.debugLine="cuantos_pedidosc = d.GetString(\"CUANTOS_PEDIDOSC";
__ref._cuantos_pedidosc /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDOSC");
RDebugUtils.currentLine=13893817;
 //BA.debugLineNum = 13893817;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893820;
 //BA.debugLineNum = 13893820;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT PE_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("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, PE_CANTC, PE_BCAJAS, PE_DIRIGIDA, PE_PRESENTACION, PE_UVM FROM PEDIDO WHERE PE_FOLIO <> 'RECARGA'")));
RDebugUtils.currentLine=13893821;
 //BA.debugLineNum = 13893821;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery(\"SELECT COU";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO")));
RDebugUtils.currentLine=13893822;
 //BA.debugLineNum = 13893822;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13893823;
 //BA.debugLineNum = 13893823;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step98 = 1;
final int limit98 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit98 ;_i = _i + step98 ) {
RDebugUtils.currentLine=13893824;
 //BA.debugLineNum = 13893824;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13893825;
 //BA.debugLineNum = 13893825;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893826;
 //BA.debugLineNum = 13893826;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893827;
 //BA.debugLineNum = 13893827;BA.debugLine="cmd.Name = \"insert_pedido4_SHARK2\" 'CON TOTALE";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido4_SHARK2";
RDebugUtils.currentLine=13893829;
 //BA.debugLineNum = 13893829;BA.debugLine="If c.GetString(\"PE_FOLIO\") = \"PREVENTA_CONTADO";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")).equals("PREVENTA_CONTADO")) { 
RDebugUtils.currentLine=13893830;
 //BA.debugLineNum = 13893830;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,c.Ge";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)("PREVENTA"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DIRIGIDA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRESENTACION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))};
 }else 
{RDebugUtils.currentLine=13893831;
 //BA.debugLineNum = 13893831;BA.debugLine="Else If c.GetString(\"PE_FOLIO\") = \"PREVENTA_CR";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")).equals("PREVENTA_CREDITO")) { 
RDebugUtils.currentLine=13893832;
 //BA.debugLineNum = 13893832;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,c.Ge";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)("PREVENTA"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DIRIGIDA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRESENTACION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))};
 }else 
{RDebugUtils.currentLine=13893833;
 //BA.debugLineNum = 13893833;BA.debugLine="Else If c.GetString(\"PE_FOLIO\") = \"ABORDO\" The";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")).equals("ABORDO")) { 
RDebugUtils.currentLine=13893834;
 //BA.debugLineNum = 13893834;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,c.Ge";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)("ABORDO"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DIRIGIDA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRESENTACION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))};
 }else {
RDebugUtils.currentLine=13893836;
 //BA.debugLineNum = 13893836;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,c.Ge";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)("VENTA"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DIRIGIDA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRESENTACION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_UVM"))};
 }}}
;
RDebugUtils.currentLine=13893838;
 //BA.debugLineNum = 13893838;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_pedidosPendientes_prods_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")))+"_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"")));
 }
};
 };
RDebugUtils.currentLine=13893841;
 //BA.debugLineNum = 13893841;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893842;
 //BA.debugLineNum = 13893842;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13893843;
 //BA.debugLineNum = 13893843;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
__ref._cuantos_pedido /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDO");
RDebugUtils.currentLine=13893844;
 //BA.debugLineNum = 13893844;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893847;
 //BA.debugLineNum = 13893847;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  NV_C";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON FROM NOVENTA")));
RDebugUtils.currentLine=13893848;
 //BA.debugLineNum = 13893848;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  COUN";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=13893849;
 //BA.debugLineNum = 13893849;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=13893850;
 //BA.debugLineNum = 13893850;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step122 = 1;
final int limit122 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit122 ;_i = _i + step122 ) {
RDebugUtils.currentLine=13893851;
 //BA.debugLineNum = 13893851;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=13893852;
 //BA.debugLineNum = 13893852;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893853;
 //BA.debugLineNum = 13893853;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893854;
 //BA.debugLineNum = 13893854;BA.debugLine="cmd.Name = \"insert_noventa_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_noventa_SHARK2";
RDebugUtils.currentLine=13893855;
 //BA.debugLineNum = 13893855;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LON")),(Object)(__ref._almacen /*String*/ ),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")))};
RDebugUtils.currentLine=13893856;
 //BA.debugLineNum = 13893856;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=13893859;
 //BA.debugLineNum = 13893859;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893860;
 //BA.debugLineNum = 13893860;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=13893861;
 //BA.debugLineNum = 13893861;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=13893862;
 //BA.debugLineNum = 13893862;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893918;
 //BA.debugLineNum = 13893918;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=13893984;
 //BA.debugLineNum = 13893984;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"T1",(long) (30000));
RDebugUtils.currentLine=13893985;
 //BA.debugLineNum = 13893985;BA.debugLine="t1.Enabled = True";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
RDebugUtils.currentLine=13893986;
 //BA.debugLineNum = 13893986;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=13893987;
 //BA.debugLineNum = 13893987;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=13893988;
 //BA.debugLineNum = 13893988;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=13893989;
 //BA.debugLineNum = 13893989;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=13893990;
 //BA.debugLineNum = 13893990;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=13893991;
 //BA.debugLineNum = 13893991;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=13893992;
 //BA.debugLineNum = 13893992;BA.debugLine="cmd.Name =\"insert_drop_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_SHARK2";
RDebugUtils.currentLine=13893993;
 //BA.debugLineNum = 13893993;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)("ENVIO"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=13893994;
 //BA.debugLineNum = 13893994;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
RDebugUtils.currentLine=13893995;
 //BA.debugLineNum = 13893995;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=13893996;
 //BA.debugLineNum = 13893996;BA.debugLine="PORCENTAJE = Round(100/ (cuantos_noventa + cuant";
__ref._porcentaje /*String*/  = BA.NumberToString(__c.Round(100/(double)((double)(Double.parseDouble(__ref._cuantos_noventa /*String*/ ))+(double)(Double.parseDouble(__ref._cuantos_pedido /*String*/ ))+(double)(Double.parseDouble(__ref._cuantos_pedidosc /*String*/ ))+1)));
RDebugUtils.currentLine=13893997;
 //BA.debugLineNum = 13893997;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),__c.True);};
 };
RDebugUtils.currentLine=13894030;
 //BA.debugLineNum = 13894030;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "t1_tick", false))
	 {return ((String) Debug.delegate(ba, "t1_tick", null));}
RDebugUtils.currentLine=14483456;
 //BA.debugLineNum = 14483456;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=14483457;
 //BA.debugLineNum = 14483457;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14483458;
 //BA.debugLineNum = 14483458;BA.debugLine="cmd.Name = \"select_cuantos_pedido_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido_SHARK2";
RDebugUtils.currentLine=14483459;
 //BA.debugLineNum = 14483459;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=14483460;
 //BA.debugLineNum = 14483460;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=14483462;
 //BA.debugLineNum = 14483462;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14483463;
 //BA.debugLineNum = 14483463;BA.debugLine="cmd.Name = \"select_cuantos_noventa_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_SHARK2";
RDebugUtils.currentLine=14483464;
 //BA.debugLineNum = 14483464;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=14483465;
 //BA.debugLineNum = 14483465;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=14483467;
 //BA.debugLineNum = 14483467;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14483468;
 //BA.debugLineNum = 14483468;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc_SHARK2";
RDebugUtils.currentLine=14483469;
 //BA.debugLineNum = 14483469;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=14483470;
 //BA.debugLineNum = 14483470;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=14483472;
 //BA.debugLineNum = 14483472;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=14483473;
 //BA.debugLineNum = 14483473;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-1)\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-1)"));
 };
RDebugUtils.currentLine=14483475;
 //BA.debugLineNum = 14483475;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14483476;
 //BA.debugLineNum = 14483476;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=14483477;
 //BA.debugLineNum = 14483477;BA.debugLine="End Sub";
return "";
}
public String  _tickets_dia_click(SHARK2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "tickets_dia_click", false))
	 {return ((String) Debug.delegate(ba, "tickets_dia_click", null));}
RDebugUtils.currentLine=15138816;
 //BA.debugLineNum = 15138816;BA.debugLine="Sub tickets_dia_Click";
RDebugUtils.currentLine=15138817;
 //BA.debugLineNum = 15138817;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=15138818;
 //BA.debugLineNum = 15138818;BA.debugLine="End Sub";
return "";
}
}