package keymon.lat.medicomed;


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, "keymon.lat.medicomed.c_principal");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", keymon.lat.medicomed.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 keymon.lat.medicomed.dbrequestmanager _reqmanager = null;
public String _conectado = "";
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.sql.SQL.CursorWrapper _dd = 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 keymon.lat.medicomed.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 keymon.lat.medicomed.batteryutilities _bu = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_nes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_real = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_alcance = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vplan = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vreal = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_vis = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visitcc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pv = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pura = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cte_promo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_reden_promo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_lin_tick = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _scroll_resdia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_acumulado = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_unilever = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rechazop = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rechazom = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_3mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_2mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_1mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_mes_py = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_creal = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_cobj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cob_visit = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visit_real = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visit_plan = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_eco = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cob_ccc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ctes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_dra_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_dra_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_alcancem = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tendencia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_acum = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_obj_mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_objd = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vtad = null;
public String _lpt = "";
public String _steyin = "";
public String _steyout = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_prio = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_secund = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_comp = null;
public String _stay_hh = "";
public String _stay_mi = "";
public String _stay_ss = "";
public String _sdate = "";
public String _stime = "";
public String _horaingreso = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_quala = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ferrero = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_sanmarcos = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_campari = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_iberia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_bepensa = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_scj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_medj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_duracell = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_guna = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_kimb = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tresm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_redb = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btn_ubicar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_comm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis_1 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_comiss = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel_c = null;
public int _titleheight = 0;
public int _title2height = 0;
public int _dividerheight = 0;
public b4a.example3.customlistview _clv1 = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _pnltitle = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_marcas = null;
public anywheresoftware.b4a.objects.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 b4a.example.dateutils _dateutils = null;
public keymon.lat.medicomed.main _main = null;
public keymon.lat.medicomed.starter _starter = null;
public keymon.lat.medicomed.subs _subs = null;
public keymon.lat.medicomed.appupdater _appupdater = null;
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
public keymon.lat.medicomed.tracker _tracker = null;
public keymon.lat.medicomed.newinst2 _newinst2 = null;
public keymon.lat.medicomed.b4xpages _b4xpages = null;
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
public keymon.lat.medicomed.httputils2service _httputils2service = null;
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(keymon.lat.medicomed.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=3080192;
 //BA.debugLineNum = 3080192;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=3080193;
 //BA.debugLineNum = 3080193;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=3080194;
 //BA.debugLineNum = 3080194;BA.debugLine="End Sub";
return null;
}
public String  _addtitle(keymon.lat.medicomed.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;
keymon.lat.medicomed.c_principal._titledata _td = null;
RDebugUtils.currentLine=4980736;
 //BA.debugLineNum = 4980736;BA.debugLine="Sub AddTitle (Title As String)";
RDebugUtils.currentLine=4980737;
 //BA.debugLineNum = 4980737;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=4980738;
 //BA.debugLineNum = 4980738;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=4980739;
 //BA.debugLineNum = 4980739;BA.debugLine="p_MARCAS.LoadLayout(\"CellTitle\")";
_p_marcas.LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=4980740;
 //BA.debugLineNum = 4980740;BA.debugLine="lblTitle.Text = Title";
__ref._lbltitle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_title));
RDebugUtils.currentLine=4980741;
 //BA.debugLineNum = 4980741;BA.debugLine="Dim td As TitleData";
_td = new keymon.lat.medicomed.c_principal._titledata();
RDebugUtils.currentLine=4980742;
 //BA.debugLineNum = 4980742;BA.debugLine="td.Title = Title";
_td.Title /*String*/  = _title;
RDebugUtils.currentLine=4980743;
 //BA.debugLineNum = 4980743;BA.debugLine="CLV1.Add(p_MARCAS, td)";
__ref._clv1 /*b4a.example3.customlistview*/ ._add(_p_marcas,(Object)(_td));
RDebugUtils.currentLine=4980744;
 //BA.debugLineNum = 4980744;BA.debugLine="End Sub";
return "";
}
public String  _b_comm_click(keymon.lat.medicomed.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));}
int _i = 0;
RDebugUtils.currentLine=4784128;
 //BA.debugLineNum = 4784128;BA.debugLine="Sub B_COMM_Click";
RDebugUtils.currentLine=4784131;
 //BA.debugLineNum = 4784131;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784132;
 //BA.debugLineNum = 4784132;BA.debugLine="Panel5.Visible = True";
__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784133;
 //BA.debugLineNum = 4784133;BA.debugLine="pnlTitle.Visible = False";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784134;
 //BA.debugLineNum = 4784134;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=4784135;
 //BA.debugLineNum = 4784135;BA.debugLine="pnlTitle.LoadLayout(\"CellTitle\")";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=4784136;
 //BA.debugLineNum = 4784136;BA.debugLine="CLV1.Clear";
__ref._clv1 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=4784138;
 //BA.debugLineNum = 4784138;BA.debugLine="dd=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM(P";
__ref._dd /*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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS CUANTOS, PE_PRONOMBRE FROM PEDIDO GROUP BY PE_PRONOMBRE")));
RDebugUtils.currentLine=4784139;
 //BA.debugLineNum = 4784139;BA.debugLine="If dd.RowCount>0 Then";
if (__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4784140;
 //BA.debugLineNum = 4784140;BA.debugLine="For i=0 To dd.RowCount -1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=4784141;
 //BA.debugLineNum = 4784141;BA.debugLine="dd.Position = i";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=4784142;
 //BA.debugLineNum = 4784142;BA.debugLine="CLV1.AddTextItem(dd.GetString(\"PE_PRONOMBRE\"),\"";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)(__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)("1"));
RDebugUtils.currentLine=4784143;
 //BA.debugLineNum = 4784143;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD  = \" & dd.GetString(";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CANTIDAD  = "+__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
 }
};
 };
RDebugUtils.currentLine=4784146;
 //BA.debugLineNum = 4784146;BA.debugLine="dd.Close";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784174;
 //BA.debugLineNum = 4784174;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click(keymon.lat.medicomed.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=3670016;
 //BA.debugLineNum = 3670016;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=3670017;
 //BA.debugLineNum = 3670017;BA.debugLine="Log(\"mapClic\")";
__c.LogImpl("33670017","mapClic",0);
RDebugUtils.currentLine=3670018;
 //BA.debugLineNum = 3670018;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
_b4xpages._getpage /*Object*/ (ba,"Mapas");
RDebugUtils.currentLine=3670019;
 //BA.debugLineNum = 3670019;BA.debugLine="End Sub";
return "";
}
public String  _b_marcas_click(keymon.lat.medicomed.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=4915200;
 //BA.debugLineNum = 4915200;BA.debugLine="Sub B_MARCAS_Click";
RDebugUtils.currentLine=4915225;
 //BA.debugLineNum = 4915225;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4915226;
 //BA.debugLineNum = 4915226;BA.debugLine="Panel5.Visible = True";
__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4915227;
 //BA.debugLineNum = 4915227;BA.debugLine="pnlTitle.Visible = False";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4915228;
 //BA.debugLineNum = 4915228;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=4915229;
 //BA.debugLineNum = 4915229;BA.debugLine="pnlTitle.LoadLayout(\"CellTitle\")";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=4915230;
 //BA.debugLineNum = 4915230;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 /*keymon.lat.medicomed.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=4915231;
 //BA.debugLineNum = 4915231;BA.debugLine="CLV1.Clear";
__ref._clv1 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=4915232;
 //BA.debugLineNum = 4915232;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4915233;
 //BA.debugLineNum = 4915233;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=4915234;
 //BA.debugLineNum = 4915234;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=4915235;
 //BA.debugLineNum = 4915235;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=4915236;
 //BA.debugLineNum = 4915236;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=4915237;
 //BA.debugLineNum = 4915237;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID")));
RDebugUtils.currentLine=4915238;
 //BA.debugLineNum = 4915238;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4915239;
 //BA.debugLineNum = 4915239;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=4915240;
 //BA.debugLineNum = 4915240;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=4915242;
 //BA.debugLineNum = 4915242;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 /*keymon.lat.medicomed.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=4915243;
 //BA.debugLineNum = 4915243;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4915244;
 //BA.debugLineNum = 4915244;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=4915245;
 //BA.debugLineNum = 4915245;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 /*keymon.lat.medicomed.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=4915246;
 //BA.debugLineNum = 4915246;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4915247;
 //BA.debugLineNum = 4915247;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 /*keymon.lat.medicomed.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=4915248;
 //BA.debugLineNum = 4915248;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4915249;
 //BA.debugLineNum = 4915249;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=4915250;
 //BA.debugLineNum = 4915250;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=4915251;
 //BA.debugLineNum = 4915251;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=4915252;
 //BA.debugLineNum = 4915252;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=4915253;
 //BA.debugLineNum = 4915253;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4915254;
 //BA.debugLineNum = 4915254;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=4915256;
 //BA.debugLineNum = 4915256;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 /*keymon.lat.medicomed.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=4915257;
 //BA.debugLineNum = 4915257;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4915258;
 //BA.debugLineNum = 4915258;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=4915259;
 //BA.debugLineNum = 4915259;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=4915260;
 //BA.debugLineNum = 4915260;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=4915261;
 //BA.debugLineNum = 4915261;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=4915262;
 //BA.debugLineNum = 4915262;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=4915267;
 //BA.debugLineNum = 4915267;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
 }
};
 };
RDebugUtils.currentLine=4915271;
 //BA.debugLineNum = 4915271;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4915272;
 //BA.debugLineNum = 4915272;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 /*keymon.lat.medicomed.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=4915273;
 //BA.debugLineNum = 4915273;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4915274;
 //BA.debugLineNum = 4915274;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=4915275;
 //BA.debugLineNum = 4915275;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=4915276;
 //BA.debugLineNum = 4915276;BA.debugLine="AddTitle(c.GetString(\"HMC_MARCA\"))";
__ref._addtitle /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_MARCA"));
RDebugUtils.currentLine=4915277;
 //BA.debugLineNum = 4915277;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $ 0.00\",\"1\"";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $ 0.00"),(Object)("1"));
RDebugUtils.currentLine=4915278;
 //BA.debugLineNum = 4915278;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=4915279;
 //BA.debugLineNum = 4915279;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = 0\",\"1\")";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = 0"),(Object)("1"));
 }
};
 };
RDebugUtils.currentLine=4915282;
 //BA.debugLineNum = 4915282;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4915285;
 //BA.debugLineNum = 4915285;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_comiss_click(keymon.lat.medicomed.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=4849664;
 //BA.debugLineNum = 4849664;BA.debugLine="Sub B_OK_COMISS_Click";
RDebugUtils.currentLine=4849665;
 //BA.debugLineNum = 4849665;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4849666;
 //BA.debugLineNum = 4849666;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4849667;
 //BA.debugLineNum = 4849667;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4849668;
 //BA.debugLineNum = 4849668;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4849669;
 //BA.debugLineNum = 4849669;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4849670;
 //BA.debugLineNum = 4849670;BA.debugLine="Panel_C.Visible = False";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4849671;
 //BA.debugLineNum = 4849671;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4849672;
 //BA.debugLineNum = 4849672;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4849673;
 //BA.debugLineNum = 4849673;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_panel5_click(keymon.lat.medicomed.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=5046272;
 //BA.debugLineNum = 5046272;BA.debugLine="Sub B_OK_PANEL5_Click";
RDebugUtils.currentLine=5046273;
 //BA.debugLineNum = 5046273;BA.debugLine="Panel5.Visible = False";
__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5046274;
 //BA.debugLineNum = 5046274;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046275;
 //BA.debugLineNum = 5046275;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046276;
 //BA.debugLineNum = 5046276;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046277;
 //BA.debugLineNum = 5046277;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046278;
 //BA.debugLineNum = 5046278;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5046279;
 //BA.debugLineNum = 5046279;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5046280;
 //BA.debugLineNum = 5046280;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5046281;
 //BA.debugLineNum = 5046281;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046282;
 //BA.debugLineNum = 5046282;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5046284;
 //BA.debugLineNum = 5046284;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_pas_click(keymon.lat.medicomed.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));}
RDebugUtils.currentLine=3932160;
 //BA.debugLineNum = 3932160;BA.debugLine="Sub B_OK_PAS_Click";
RDebugUtils.currentLine=3932161;
 //BA.debugLineNum = 3932161;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=3932162;
 //BA.debugLineNum = 3932162;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932163;
 //BA.debugLineNum = 3932163;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932164;
 //BA.debugLineNum = 3932164;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932166;
 //BA.debugLineNum = 3932166;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932167;
 //BA.debugLineNum = 3932167;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932168;
 //BA.debugLineNum = 3932168;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932169;
 //BA.debugLineNum = 3932169;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932170;
 //BA.debugLineNum = 3932170;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932171;
 //BA.debugLineNum = 3932171;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=3932172;
 //BA.debugLineNum = 3932172;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=3932173;
 //BA.debugLineNum = 3932173;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=3932174;
 //BA.debugLineNum = 3932174;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932175;
 //BA.debugLineNum = 3932175;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932177;
 //BA.debugLineNum = 3932177;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932178;
 //BA.debugLineNum = 3932178;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932179;
 //BA.debugLineNum = 3932179;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932180;
 //BA.debugLineNum = 3932180;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932181;
 //BA.debugLineNum = 3932181;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932182;
 //BA.debugLineNum = 3932182;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=3932183;
 //BA.debugLineNum = 3932183;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=3932184;
 //BA.debugLineNum = 3932184;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=3932185;
 //BA.debugLineNum = 3932185;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=3932186;
 //BA.debugLineNum = 3932186;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932188;
 //BA.debugLineNum = 3932188;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932189;
 //BA.debugLineNum = 3932189;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932190;
 //BA.debugLineNum = 3932190;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932191;
 //BA.debugLineNum = 3932191;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932192;
 //BA.debugLineNum = 3932192;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932193;
 //BA.debugLineNum = 3932193;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=3932194;
 //BA.debugLineNum = 3932194;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}}
;
RDebugUtils.currentLine=3932197;
 //BA.debugLineNum = 3932197;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=3932198;
 //BA.debugLineNum = 3932198;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932199;
 //BA.debugLineNum = 3932199;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932200;
 //BA.debugLineNum = 3932200;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932201;
 //BA.debugLineNum = 3932201;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932203;
 //BA.debugLineNum = 3932203;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932204;
 //BA.debugLineNum = 3932204;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932205;
 //BA.debugLineNum = 3932205;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932206;
 //BA.debugLineNum = 3932206;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932207;
 //BA.debugLineNum = 3932207;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932208;
 //BA.debugLineNum = 3932208;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=3932209;
 //BA.debugLineNum = 3932209;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3932210;
 //BA.debugLineNum = 3932210;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now),usu";
_subs._bitacora /*String*/ (ba,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),__ref._usuario /*String*/ ,__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),"Carga día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","");
 }else 
{RDebugUtils.currentLine=3932211;
 //BA.debugLineNum = 3932211;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=3932212;
 //BA.debugLineNum = 3932212;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=3932213;
 //BA.debugLineNum = 3932213;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=3932214;
 //BA.debugLineNum = 3932214;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932215;
 //BA.debugLineNum = 3932215;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932217;
 //BA.debugLineNum = 3932217;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932218;
 //BA.debugLineNum = 3932218;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932219;
 //BA.debugLineNum = 3932219;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932220;
 //BA.debugLineNum = 3932220;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3932221;
 //BA.debugLineNum = 3932221;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3932222;
 //BA.debugLineNum = 3932222;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=3932223;
 //BA.debugLineNum = 3932223;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=3932224;
 //BA.debugLineNum = 3932224;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=3932225;
 //BA.debugLineNum = 3932225;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=3932226;
 //BA.debugLineNum = 3932226;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=3932227;
 //BA.debugLineNum = 3932227;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=3932228;
 //BA.debugLineNum = 3932228;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=3932229;
 //BA.debugLineNum = 3932229;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=3932230;
 //BA.debugLineNum = 3932230;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=3932231;
 //BA.debugLineNum = 3932231;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=3932232;
 //BA.debugLineNum = 3932232;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=3932233;
 //BA.debugLineNum = 3932233;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=3932234;
 //BA.debugLineNum = 3932234;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}
;
RDebugUtils.currentLine=3932237;
 //BA.debugLineNum = 3932237;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear(keymon.lat.medicomed.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(keymon.lat.medicomed.c_principal parent,keymon.lat.medicomed.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.c_principal __ref;
keymon.lat.medicomed.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=3211266;
 //BA.debugLineNum = 3211266;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
RDebugUtils.currentLine=3211267;
 //BA.debugLineNum = 3211267;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b4xpage_appear"), null);
this.state = 68;
return;
case 68:
//C
this.state = 1;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=3211268;
 //BA.debugLineNum = 3211268;BA.debugLine="If Result Then";
if (true) break;

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

case 3:
//C
this.state = 6;
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=3211271;
 //BA.debugLineNum = 3211271;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
parent.__c.LogImpl("33211271","SIN permisos de ubicacion",0);
 if (true) break;

case 6:
//C
this.state = 7;
;
RDebugUtils.currentLine=3211273;
 //BA.debugLineNum = 3211273;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_READ_PHONE_STATE);
RDebugUtils.currentLine=3211274;
 //BA.debugLineNum = 3211274;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b4xpage_appear"), null);
this.state = 69;
return;
case 69:
//C
this.state = 7;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=3211275;
 //BA.debugLineNum = 3211275;BA.debugLine="If Result Then";
if (true) break;

case 7:
//if
this.state = 10;
if (_result) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 if (true) break;

case 10:
//C
this.state = 11;
;
RDebugUtils.currentLine=3211281;
 //BA.debugLineNum = 3211281;BA.debugLine="HORAINGRESO =\"000000\"";
__ref._horaingreso /*String*/  = "000000";
RDebugUtils.currentLine=3211282;
 //BA.debugLineNum = 3211282;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=3211284;
 //BA.debugLineNum = 3211284;BA.debugLine="PASO =0";
__ref._paso /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211285;
 //BA.debugLineNum = 3211285;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (true) break;

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

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

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

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

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

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=3211289;
 //BA.debugLineNum = 3211289;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=3211290;
 //BA.debugLineNum = 3211290;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211291;
 //BA.debugLineNum = 3211291;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if (true) break;

case 21:
//if
this.state = 30;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 23;
}else {
this.state = 25;
}if (true) break;

case 23:
//C
this.state = 30;
RDebugUtils.currentLine=3211292;
 //BA.debugLineNum = 3211292;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3211293;
 //BA.debugLineNum = 3211293;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=3211294;
 //BA.debugLineNum = 3211294;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=3211295;
 //BA.debugLineNum = 3211295;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=3211296;
 //BA.debugLineNum = 3211296;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

case 25:
//C
this.state = 26;
RDebugUtils.currentLine=3211298;
 //BA.debugLineNum = 3211298;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=3211299;
 //BA.debugLineNum = 3211299;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211300;
 //BA.debugLineNum = 3211300;BA.debugLine="Dim sDate,sTime As String";
parent._sdate = "";
parent._stime = "";
RDebugUtils.currentLine=3211301;
 //BA.debugLineNum = 3211301;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
parent.__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=3211302;
 //BA.debugLineNum = 3211302;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=3211303;
 //BA.debugLineNum = 3211303;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if (true) break;

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

case 28:
//C
this.state = 29;
RDebugUtils.currentLine=3211304;
 //BA.debugLineNum = 3211304;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=3211305;
 //BA.debugLineNum = 3211305;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211306;
 //BA.debugLineNum = 3211306;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

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

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

case 31:
//if
this.state = 34;
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
this.state = 33;
}if (true) break;

case 33:
//C
this.state = 34;
RDebugUtils.currentLine=3211312;
 //BA.debugLineNum = 3211312;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211313;
 //BA.debugLineNum = 3211313;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211314;
 //BA.debugLineNum = 3211314;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211315;
 //BA.debugLineNum = 3211315;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211316;
 //BA.debugLineNum = 3211316;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211317;
 //BA.debugLineNum = 3211317;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3211318;
 //BA.debugLineNum = 3211318;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 34:
//C
this.state = 35;
;
RDebugUtils.currentLine=3211320;
 //BA.debugLineNum = 3211320;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3211321;
 //BA.debugLineNum = 3211321;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=3211322;
 //BA.debugLineNum = 3211322;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=3211323;
 //BA.debugLineNum = 3211323;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211324;
 //BA.debugLineNum = 3211324;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=3211325;
 //BA.debugLineNum = 3211325;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211327;
 //BA.debugLineNum = 3211327;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0")));
RDebugUtils.currentLine=3211328;
 //BA.debugLineNum = 3211328;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211329;
 //BA.debugLineNum = 3211329;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info")));
RDebugUtils.currentLine=3211330;
 //BA.debugLineNum = 3211330;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211331;
 //BA.debugLineNum = 3211331;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3211332;
 //BA.debugLineNum = 3211332;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211333;
 //BA.debugLineNum = 3211333;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=3211334;
 //BA.debugLineNum = 3211334;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211335;
 //BA.debugLineNum = 3211335;BA.debugLine="If l_ruta.Text = 0 Then";
if (true) break;

case 35:
//if
this.state = 40;
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
this.state = 37;
}else {
this.state = 39;
}if (true) break;

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

case 39:
//C
this.state = 40;
RDebugUtils.currentLine=3211338;
 //BA.debugLineNum = 3211338;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3211339;
 //BA.debugLineNum = 3211339;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211340;
 //BA.debugLineNum = 3211340;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=3211341;
 //BA.debugLineNum = 3211341;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;
;
RDebugUtils.currentLine=3211343;
 //BA.debugLineNum = 3211343;BA.debugLine="If Cuantos  = 0 Then";

case 40:
//if
this.state = 61;
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
this.state = 42;
}else {
this.state = 44;
}if (true) break;

case 42:
//C
this.state = 61;
RDebugUtils.currentLine=3211344;
 //BA.debugLineNum = 3211344;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211345;
 //BA.debugLineNum = 3211345;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211346;
 //BA.debugLineNum = 3211346;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211347;
 //BA.debugLineNum = 3211347;BA.debugLine="L_CUANTOST.Text = 0";
__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211348;
 //BA.debugLineNum = 3211348;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=3211349;
 //BA.debugLineNum = 3211349;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211350;
 //BA.debugLineNum = 3211350;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=3211351;
 //BA.debugLineNum = 3211351;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3211352;
 //BA.debugLineNum = 3211352;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=3211353;
 //BA.debugLineNum = 3211353;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=3211354;
 //BA.debugLineNum = 3211354;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211355;
 //BA.debugLineNum = 3211355;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211356;
 //BA.debugLineNum = 3211356;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=3211357;
 //BA.debugLineNum = 3211357;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211358;
 //BA.debugLineNum = 3211358;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=3211359;
 //BA.debugLineNum = 3211359;BA.debugLine="b.close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=3211361;
 //BA.debugLineNum = 3211361;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  SUM(PE_COSTO_TOT) as MONTO_DIA, COUNT(DISTINCT(PE_CLIENTE)) AS CLIENTES_DIA  from PEDIDO ")));
RDebugUtils.currentLine=3211362;
 //BA.debugLineNum = 3211362;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=3211363;
 //BA.debugLineNum = 3211363;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211364;
 //BA.debugLineNum = 3211364;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211365;
 //BA.debugLineNum = 3211365;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=3211366;
 //BA.debugLineNum = 3211366;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=3211368;
 //BA.debugLineNum = 3211368;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  COUNT(*) AS CUANTOS   from PEDIDO ")));
RDebugUtils.currentLine=3211369;
 //BA.debugLineNum = 3211369;BA.debugLine="D2.Position = 0";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211370;
 //BA.debugLineNum = 3211370;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=3211371;
 //BA.debugLineNum = 3211371;BA.debugLine="D2.Close";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211373;
 //BA.debugLineNum = 3211373;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=3211374;
 //BA.debugLineNum = 3211374;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=3211375;
 //BA.debugLineNum = 3211375;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=3211376;
 //BA.debugLineNum = 3211376;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=3211377;
 //BA.debugLineNum = 3211377;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211378;
 //BA.debugLineNum = 3211378;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=3211379;
 //BA.debugLineNum = 3211379;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=3211380;
 //BA.debugLineNum = 3211380;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=3211381;
 //BA.debugLineNum = 3211381;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=3211382;
 //BA.debugLineNum = 3211382;BA.debugLine="If L_CUANTOST.Text < 40 Then";
if (true) break;

case 45:
//if
this.state = 52;
if ((double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))<40) { 
this.state = 47;
}else 
{RDebugUtils.currentLine=3211384;
 //BA.debugLineNum = 3211384;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 = 49;
}else {
this.state = 51;
}}
if (true) break;

case 47:
//C
this.state = 52;
RDebugUtils.currentLine=3211383;
 //BA.debugLineNum = 3211383;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 49:
//C
this.state = 52;
RDebugUtils.currentLine=3211385;
 //BA.debugLineNum = 3211385;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 51:
//C
this.state = 52;
RDebugUtils.currentLine=3211387;
 //BA.debugLineNum = 3211387;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 52:
//C
this.state = 53;
;
RDebugUtils.currentLine=3211389;
 //BA.debugLineNum = 3211389;BA.debugLine="L_TICKPROM.Text =  Round2((c.GetString(\"MONTO_DI";
__ref._l_tickprom /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Round2(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")))),(int) (2))));
RDebugUtils.currentLine=3211390;
 //BA.debugLineNum = 3211390;BA.debugLine="If c.GetString(\"MONTO_DIA\") < 4000 Then";
if (true) break;

case 53:
//if
this.state = 60;
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))<4000) { 
this.state = 55;
}else 
{RDebugUtils.currentLine=3211392;
 //BA.debugLineNum = 3211392;BA.debugLine="Else if c.GetString(\"MONTO_DIA\") > =  4000  And";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))>=4000 && (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))<6250) { 
this.state = 57;
}else {
this.state = 59;
}}
if (true) break;

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

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

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

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

case 61:
//C
this.state = 62;
;
RDebugUtils.currentLine=3211400;
 //BA.debugLineNum = 3211400;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211401;
 //BA.debugLineNum = 3211401;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211402;
 //BA.debugLineNum = 3211402;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211403;
 //BA.debugLineNum = 3211403;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3211404;
 //BA.debugLineNum = 3211404;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211405;
 //BA.debugLineNum = 3211405;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=3211406;
 //BA.debugLineNum = 3211406;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211407;
 //BA.debugLineNum = 3211407;BA.debugLine="bu.Initialize";
__ref._bu /*keymon.lat.medicomed.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=3211408;
 //BA.debugLineNum = 3211408;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*keymon.lat.medicomed.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=3211411;
 //BA.debugLineNum = 3211411;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3211412;
 //BA.debugLineNum = 3211412;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211413;
 //BA.debugLineNum = 3211413;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3211414;
 //BA.debugLineNum = 3211414;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211415;
 //BA.debugLineNum = 3211415;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._batt /*int*/  = __ref._batterystatus /*int[]*/ [(int) (0)];
RDebugUtils.currentLine=3211416;
 //BA.debugLineNum = 3211416;BA.debugLine="B4XPages.MainPage.montoActual = L_MONTOD.Text";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._montoactual /*String*/  = __ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3211417;
 //BA.debugLineNum = 3211417;BA.debugLine="B4XPages.MainPage.clientestotal = L_CUANTOST.Text";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._clientestotal /*String*/  = __ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3211418;
 //BA.debugLineNum = 3211418;BA.debugLine="B4XPages.MainPage.clientesventa =  l_cuantosc.Tex";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._clientesventa /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3211419;
 //BA.debugLineNum = 3211419;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3211420;
 //BA.debugLineNum = 3211420;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=3211421;
 //BA.debugLineNum = 3211421;BA.debugLine="B4XPages.MainPage.rutapreventa =  l_ruta.text";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3211424;
 //BA.debugLineNum = 3211424;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3211425;
 //BA.debugLineNum = 3211425;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3211426;
 //BA.debugLineNum = 3211426;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3211427;
 //BA.debugLineNum = 3211427;BA.debugLine="B4XPages.MainPage.usuario = usuario";
parent._b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._usuario /*String*/  = __ref._usuario /*String*/ ;
RDebugUtils.currentLine=3211428;
 //BA.debugLineNum = 3211428;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3211430;
 //BA.debugLineNum = 3211430;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")";
parent.__c.CallSubDebug(ba,(Object)(parent._starter.getObject()),"ENVIA_ULTIMA_GPS");
RDebugUtils.currentLine=3211432;
 //BA.debugLineNum = 3211432;BA.debugLine="If l_ruta.Text = 0 Then";
if (true) break;

case 62:
//if
this.state = 67;
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
this.state = 64;
}else {
this.state = 66;
}if (true) break;

case 64:
//C
this.state = 67;
RDebugUtils.currentLine=3211433;
 //BA.debugLineNum = 3211433;BA.debugLine="resdia.Enabled = False";
__ref._resdia /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.False);
RDebugUtils.currentLine=3211434;
 //BA.debugLineNum = 3211434;BA.debugLine="hacer_ped.Enabled = False";
__ref._hacer_ped /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.False);
RDebugUtils.currentLine=3211435;
 //BA.debugLineNum = 3211435;BA.debugLine="nvo_cliente.Enabled = False";
__ref._nvo_cliente /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.False);
RDebugUtils.currentLine=3211436;
 //BA.debugLineNum = 3211436;BA.debugLine="Btn_Ubicar.Enabled = False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(parent.__c.False);
RDebugUtils.currentLine=3211437;
 //BA.debugLineNum = 3211437;BA.debugLine="tickets_dia.Enabled = False";
__ref._tickets_dia /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.False);
 if (true) break;

case 66:
//C
this.state = 67;
RDebugUtils.currentLine=3211439;
 //BA.debugLineNum = 3211439;BA.debugLine="resdia.Enabled = True";
__ref._resdia /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.True);
RDebugUtils.currentLine=3211440;
 //BA.debugLineNum = 3211440;BA.debugLine="hacer_ped.Enabled = True";
__ref._hacer_ped /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.True);
RDebugUtils.currentLine=3211441;
 //BA.debugLineNum = 3211441;BA.debugLine="nvo_cliente.Enabled = True";
__ref._nvo_cliente /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.True);
RDebugUtils.currentLine=3211442;
 //BA.debugLineNum = 3211442;BA.debugLine="Btn_Ubicar.Enabled = True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(parent.__c.True);
RDebugUtils.currentLine=3211443;
 //BA.debugLineNum = 3211443;BA.debugLine="tickets_dia.Enabled = True";
__ref._tickets_dia /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setEnabled(parent.__c.True);
 if (true) break;

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

            }
        }
    }
}
public String  _b_ok_res_click(keymon.lat.medicomed.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=4063232;
 //BA.debugLineNum = 4063232;BA.debugLine="Sub B_OK_RES_Click";
RDebugUtils.currentLine=4063234;
 //BA.debugLineNum = 4063234;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063235;
 //BA.debugLineNum = 4063235;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063236;
 //BA.debugLineNum = 4063236;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063237;
 //BA.debugLineNum = 4063237;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063238;
 //BA.debugLineNum = 4063238;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4063239;
 //BA.debugLineNum = 4063239;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4063240;
 //BA.debugLineNum = 4063240;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4063241;
 //BA.debugLineNum = 4063241;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063242;
 //BA.debugLineNum = 4063242;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4063243;
 //BA.debugLineNum = 4063243;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(keymon.lat.medicomed.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(keymon.lat.medicomed.c_principal parent,keymon.lat.medicomed.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.c_principal __ref;
keymon.lat.medicomed.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=3473410;
 //BA.debugLineNum = 3473410;BA.debugLine="If SCROLL_RESDIA.Visible Then";
if (true) break;

case 1:
//if
this.state = 8;
if (__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=3473414;
 //BA.debugLineNum = 3473414;BA.debugLine="Else if Panel5.Visible Then";
if (__ref._panel5 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else {
this.state = 7;
}}
if (true) break;

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

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

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

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

            }
        }
    }
}
public String  _b4xpage_created(keymon.lat.medicomed.c_principal __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
String _ruta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _ds = null;
RDebugUtils.currentLine=3145728;
 //BA.debugLineNum = 3145728;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=3145729;
 //BA.debugLineNum = 3145729;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=3145731;
 //BA.debugLineNum = 3145731;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=3145732;
 //BA.debugLineNum = 3145732;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3145733;
 //BA.debugLineNum = 3145733;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=3145734;
 //BA.debugLineNum = 3145734;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3145735;
 //BA.debugLineNum = 3145735;BA.debugLine="ruta = File.DirInternal";
_ruta = __c.File.getDirInternal();
RDebugUtils.currentLine=3145736;
 //BA.debugLineNum = 3145736;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=3145737;
 //BA.debugLineNum = 3145737;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");
 };
RDebugUtils.currentLine=3145739;
 //BA.debugLineNum = 3145739;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3145740;
 //BA.debugLineNum = 3145740;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3145741;
 //BA.debugLineNum = 3145741;BA.debugLine="B4XPages.MainPage.skmt.Initialize(ruta,\"kmt.db\",";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_ruta,"kmt.db",__c.True);
RDebugUtils.currentLine=3145742;
 //BA.debugLineNum = 3145742;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=3145743;
 //BA.debugLineNum = 3145743;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145744;
 //BA.debugLineNum = 3145744;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=3145745;
 //BA.debugLineNum = 3145745;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145746;
 //BA.debugLineNum = 3145746;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0")));
RDebugUtils.currentLine=3145747;
 //BA.debugLineNum = 3145747;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145748;
 //BA.debugLineNum = 3145748;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info")));
RDebugUtils.currentLine=3145749;
 //BA.debugLineNum = 3145749;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145750;
 //BA.debugLineNum = 3145750;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3145751;
 //BA.debugLineNum = 3145751;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145752;
 //BA.debugLineNum = 3145752;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=3145753;
 //BA.debugLineNum = 3145753;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145754;
 //BA.debugLineNum = 3145754;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3145755;
 //BA.debugLineNum = 3145755;BA.debugLine="l_ruta.Text =0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=3145757;
 //BA.debugLineNum = 3145757;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3145758;
 //BA.debugLineNum = 3145758;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145759;
 //BA.debugLineNum = 3145759;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=3145760;
 //BA.debugLineNum = 3145760;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3145762;
 //BA.debugLineNum = 3145762;BA.debugLine="If Cuantos  = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3145763;
 //BA.debugLineNum = 3145763;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3145764;
 //BA.debugLineNum = 3145764;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3145765;
 //BA.debugLineNum = 3145765;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3145766;
 //BA.debugLineNum = 3145766;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=3145767;
 //BA.debugLineNum = 3145767;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3145768;
 //BA.debugLineNum = 3145768;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=3145769;
 //BA.debugLineNum = 3145769;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3145770;
 //BA.debugLineNum = 3145770;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=3145771;
 //BA.debugLineNum = 3145771;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=3145773;
 //BA.debugLineNum = 3145773;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA  from pedido_cliente ")));
RDebugUtils.currentLine=3145774;
 //BA.debugLineNum = 3145774;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS from noventa")));
RDebugUtils.currentLine=3145776;
 //BA.debugLineNum = 3145776;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145777;
 //BA.debugLineNum = 3145777;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3145778;
 //BA.debugLineNum = 3145778;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=3145779;
 //BA.debugLineNum = 3145779;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=3145780;
 //BA.debugLineNum = 3145780;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=3145781;
 //BA.debugLineNum = 3145781;BA.debugLine="drop = c.GetString(\"MONTO_DIA\") / c.GetString(\"C";
__ref._drop /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=3145782;
 //BA.debugLineNum = 3145782;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=3145783;
 //BA.debugLineNum = 3145783;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=3145784;
 //BA.debugLineNum = 3145784;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=3145785;
 //BA.debugLineNum = 3145785;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=3145786;
 //BA.debugLineNum = 3145786;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=3145787;
 //BA.debugLineNum = 3145787;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145788;
 //BA.debugLineNum = 3145788;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3145790;
 //BA.debugLineNum = 3145790;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145791;
 //BA.debugLineNum = 3145791;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145792;
 //BA.debugLineNum = 3145792;BA.debugLine="Private ds As Cursor = B4XPages.MainPage.skmt.Exe";
_ds = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ds = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cat_cl_diasemana from kmt_info")));
RDebugUtils.currentLine=3145793;
 //BA.debugLineNum = 3145793;BA.debugLine="If ds.RowCount > 0 Then";
if (_ds.getRowCount()>0) { 
RDebugUtils.currentLine=3145794;
 //BA.debugLineNum = 3145794;BA.debugLine="ds.Position = 0";
_ds.setPosition((int) (0));
RDebugUtils.currentLine=3145795;
 //BA.debugLineNum = 3145795;BA.debugLine="Starter.dia_semana = ds.GetString(\"CAT_CL_DIASEM";
_starter._dia_semana /*String*/  = _ds.GetString("CAT_CL_DIASEMANA");
 };
RDebugUtils.currentLine=3145800;
 //BA.debugLineNum = 3145800;BA.debugLine="End Sub";
return "";
}
public void  _btn_ubicar_click(keymon.lat.medicomed.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(keymon.lat.medicomed.c_principal parent,keymon.lat.medicomed.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.c_principal __ref;
keymon.lat.medicomed.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=4653057;
 //BA.debugLineNum = 4653057;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=4653058;
 //BA.debugLineNum = 4653058;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=4653059;
 //BA.debugLineNum = 4653059;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=4653060;
 //BA.debugLineNum = 4653060;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=4653062;
 //BA.debugLineNum = 4653062;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _busca_click(keymon.lat.medicomed.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=3604480;
 //BA.debugLineNum = 3604480;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=3604481;
 //BA.debugLineNum = 3604481;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=3604482;
 //BA.debugLineNum = 3604482;BA.debugLine="End Sub";
return "";
}
public String  _carga_click(keymon.lat.medicomed.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=4259840;
 //BA.debugLineNum = 4259840;BA.debugLine="Sub CARGA_Click";
RDebugUtils.currentLine=4259841;
 //BA.debugLineNum = 4259841;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=4259842;
 //BA.debugLineNum = 4259842;BA.debugLine="End Sub";
return "";
}
public String  _cargar_click(keymon.lat.medicomed.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));}
RDebugUtils.currentLine=3342336;
 //BA.debugLineNum = 3342336;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=3342337;
 //BA.debugLineNum = 3342337;BA.debugLine="CARGA = \"CARGAR\"";
__ref._carga /*String*/  = "CARGAR";
RDebugUtils.currentLine=3342338;
 //BA.debugLineNum = 3342338;BA.debugLine="p_mandaInfo.Width = Root.Width";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3342339;
 //BA.debugLineNum = 3342339;BA.debugLine="p_mandaInfo.Height = Root.Height";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3342340;
 //BA.debugLineNum = 3342340;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=3342341;
 //BA.debugLineNum = 3342341;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=3342342;
 //BA.debugLineNum = 3342342;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342343;
 //BA.debugLineNum = 3342343;BA.debugLine="L_P_1.Visible = True";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342344;
 //BA.debugLineNum = 3342344;BA.debugLine="S_CC.Visible = True";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342345;
 //BA.debugLineNum = 3342345;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342346;
 //BA.debugLineNum = 3342346;BA.debugLine="P1.Visible = True";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342347;
 //BA.debugLineNum = 3342347;BA.debugLine="p_mandaInfo.Visible = True";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342348;
 //BA.debugLineNum = 3342348;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342349;
 //BA.debugLineNum = 3342349;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=3342350;
 //BA.debugLineNum = 3342350;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=3342351;
 //BA.debugLineNum = 3342351;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=3342353;
 //BA.debugLineNum = 3342353;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342354;
 //BA.debugLineNum = 3342354;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342355;
 //BA.debugLineNum = 3342355;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342356;
 //BA.debugLineNum = 3342356;BA.debugLine="L_P_3.Visible = True";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342357;
 //BA.debugLineNum = 3342357;BA.debugLine="S_CH.Visible = True";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342358;
 //BA.debugLineNum = 3342358;BA.debugLine="PB1.Visible = True";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3342359;
 //BA.debugLineNum = 3342359;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342361;
 //BA.debugLineNum = 3342361;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=3342362;
 //BA.debugLineNum = 3342362;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=3342363;
 //BA.debugLineNum = 3342363;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\"";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogos Historicos"));
RDebugUtils.currentLine=3342364;
 //BA.debugLineNum = 3342364;BA.debugLine="S_CC.Text = \"EN PROCESO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3342365;
 //BA.debugLineNum = 3342365;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3342366;
 //BA.debugLineNum = 3342366;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3342367;
 //BA.debugLineNum = 3342367;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3342368;
 //BA.debugLineNum = 3342368;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3342369;
 //BA.debugLineNum = 3342369;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3342372;
 //BA.debugLineNum = 3342372;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=3342375;
 //BA.debugLineNum = 3342375;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=3342376;
 //BA.debugLineNum = 3342376;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=3342377;
 //BA.debugLineNum = 3342377;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=3342378;
 //BA.debugLineNum = 3342378;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=3342379;
 //BA.debugLineNum = 3342379;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=3342380;
 //BA.debugLineNum = 3342380;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=3342381;
 //BA.debugLineNum = 3342381;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=3342382;
 //BA.debugLineNum = 3342382;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=3342383;
 //BA.debugLineNum = 3342383;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=3342384;
 //BA.debugLineNum = 3342384;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=3342385;
 //BA.debugLineNum = 3342385;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=3342386;
 //BA.debugLineNum = 3342386;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM MARCAS_RUTAS");
RDebugUtils.currentLine=3342387;
 //BA.debugLineNum = 3342387;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_STORE");
RDebugUtils.currentLine=3342388;
 //BA.debugLineNum = 3342388;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GEOCERCA");
RDebugUtils.currentLine=3342389;
 //BA.debugLineNum = 3342389;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_MARCAS_CUOTAS");
RDebugUtils.currentLine=3342390;
 //BA.debugLineNum = 3342390;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_AVANCE");
RDebugUtils.currentLine=3342392;
 //BA.debugLineNum = 3342392;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 /*keymon.lat.medicomed.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=3342393;
 //BA.debugLineNum = 3342393;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3342394;
 //BA.debugLineNum = 3342394;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=3342396;
 //BA.debugLineNum = 3342396;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HoraIngreso")))>0) { 
RDebugUtils.currentLine=3342397;
 //BA.debugLineNum = 3342397;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update cat";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3342399;
 //BA.debugLineNum = 3342399;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3342401;
 //BA.debugLineNum = 3342401;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3342402;
 //BA.debugLineNum = 3342402;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=3342403;
 //BA.debugLineNum = 3342403;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3342404;
 //BA.debugLineNum = 3342404;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3342405;
 //BA.debugLineNum = 3342405;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3342406;
 //BA.debugLineNum = 3342406;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3342408;
 //BA.debugLineNum = 3342408;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3342409;
 //BA.debugLineNum = 3342409;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3342410;
 //BA.debugLineNum = 3342410;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3342411;
 //BA.debugLineNum = 3342411;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3342413;
 //BA.debugLineNum = 3342413;BA.debugLine="Dim P As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=3342415;
 //BA.debugLineNum = 3342415;BA.debugLine="imei = \"yyyy\"";
__ref._imei /*String*/  = "yyyy";
RDebugUtils.currentLine=3342416;
 //BA.debugLineNum = 3342416;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342417;
 //BA.debugLineNum = 3342417;BA.debugLine="cmd.Name =\"insert_drop_MEDI_2\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_MEDI_2";
RDebugUtils.currentLine=3342418;
 //BA.debugLineNum = 3342418;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.T";
__ref._cmd /*keymon.lat.medicomed.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)("CARGA"),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342419;
 //BA.debugLineNum = 3342419;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
RDebugUtils.currentLine=3342421;
 //BA.debugLineNum = 3342421;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342422;
 //BA.debugLineNum = 3342422;BA.debugLine="cmd.Name = \"select_cat_gunaprod_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_MEDI";
RDebugUtils.currentLine=3342423;
 //BA.debugLineNum = 3342423;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342424;
 //BA.debugLineNum = 3342424;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=3342431;
 //BA.debugLineNum = 3342431;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342432;
 //BA.debugLineNum = 3342432;BA.debugLine="cmd.Name = \"select_cat_paquetes_MEDI3\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_MEDI3";
RDebugUtils.currentLine=3342433;
 //BA.debugLineNum = 3342433;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342434;
 //BA.debugLineNum = 3342434;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=3342436;
 //BA.debugLineNum = 3342436;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342437;
 //BA.debugLineNum = 3342437;BA.debugLine="cmd.Name = \"select_cat_paquetess_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetess_MEDI";
RDebugUtils.currentLine=3342438;
 //BA.debugLineNum = 3342438;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342439;
 //BA.debugLineNum = 3342439;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=3342441;
 //BA.debugLineNum = 3342441;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342442;
 //BA.debugLineNum = 3342442;BA.debugLine="cmd.Name = \"select_cat_detallepa_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_MEDI";
RDebugUtils.currentLine=3342443;
 //BA.debugLineNum = 3342443;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342444;
 //BA.debugLineNum = 3342444;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=3342446;
 //BA.debugLineNum = 3342446;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342447;
 //BA.debugLineNum = 3342447;BA.debugLine="cmd.Name = \"select_cat_clientes_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_MEDI";
RDebugUtils.currentLine=3342448;
 //BA.debugLineNum = 3342448;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342449;
 //BA.debugLineNum = 3342449;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=3342451;
 //BA.debugLineNum = 3342451;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342452;
 //BA.debugLineNum = 3342452;BA.debugLine="cmd.Name = \"select_hist_datos_MEDI_2\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_MEDI_2";
RDebugUtils.currentLine=3342453;
 //BA.debugLineNum = 3342453;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.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=3342454;
 //BA.debugLineNum = 3342454;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=3342456;
 //BA.debugLineNum = 3342456;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342457;
 //BA.debugLineNum = 3342457;BA.debugLine="cmd.Name = \"select_hist_promos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_MEDI";
RDebugUtils.currentLine=3342458;
 //BA.debugLineNum = 3342458;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342459;
 //BA.debugLineNum = 3342459;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=3342461;
 //BA.debugLineNum = 3342461;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342462;
 //BA.debugLineNum = 3342462;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_MEDI";
RDebugUtils.currentLine=3342463;
 //BA.debugLineNum = 3342463;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342464;
 //BA.debugLineNum = 3342464;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
RDebugUtils.currentLine=3342471;
 //BA.debugLineNum = 3342471;BA.debugLine="If E_RUTA2.text <> \"\" Then";
if ((__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=3342472;
 //BA.debugLineNum = 3342472;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342473;
 //BA.debugLineNum = 3342473;BA.debugLine="cmd.Name = \"select_cat_clientes_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_MEDI";
RDebugUtils.currentLine=3342474;
 //BA.debugLineNum = 3342474;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342475;
 //BA.debugLineNum = 3342475;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=3342477;
 //BA.debugLineNum = 3342477;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342478;
 //BA.debugLineNum = 3342478;BA.debugLine="cmd.Name = \"select_hist_datos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_MEDI";
RDebugUtils.currentLine=3342479;
 //BA.debugLineNum = 3342479;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342480;
 //BA.debugLineNum = 3342480;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=3342482;
 //BA.debugLineNum = 3342482;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342483;
 //BA.debugLineNum = 3342483;BA.debugLine="cmd.Name = \"select_hist_promos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_MEDI";
RDebugUtils.currentLine=3342484;
 //BA.debugLineNum = 3342484;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342485;
 //BA.debugLineNum = 3342485;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=3342487;
 //BA.debugLineNum = 3342487;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342488;
 //BA.debugLineNum = 3342488;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_MEDI";
RDebugUtils.currentLine=3342489;
 //BA.debugLineNum = 3342489;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342490;
 //BA.debugLineNum = 3342490;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
 };
RDebugUtils.currentLine=3342493;
 //BA.debugLineNum = 3342493;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342494;
 //BA.debugLineNum = 3342494;BA.debugLine="cmd.Name = \"select_promo_comp_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_promo_comp_MEDI";
RDebugUtils.currentLine=3342495;
 //BA.debugLineNum = 3342495;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342496;
 //BA.debugLineNum = 3342496;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_comp_promos"));
RDebugUtils.currentLine=3342503;
 //BA.debugLineNum = 3342503;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342504;
 //BA.debugLineNum = 3342504;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=3342505;
 //BA.debugLineNum = 3342505;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342506;
 //BA.debugLineNum = 3342506;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=3342508;
 //BA.debugLineNum = 3342508;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342509;
 //BA.debugLineNum = 3342509;BA.debugLine="cmd.Name = \"select_folio_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_folio_MEDI";
RDebugUtils.currentLine=3342510;
 //BA.debugLineNum = 3342510;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3342511;
 //BA.debugLineNum = 3342511;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("folio"));
RDebugUtils.currentLine=3342513;
 //BA.debugLineNum = 3342513;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3342514;
 //BA.debugLineNum = 3342514;BA.debugLine="cmd.Name = \"select_marcas_rutas_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_marcas_rutas_MEDI";
RDebugUtils.currentLine=3342515;
 //BA.debugLineNum = 3342515;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_ruta";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3342516;
 //BA.debugLineNum = 3342516;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("marcas_rutas"));
RDebugUtils.currentLine=3342539;
 //BA.debugLineNum = 3342539;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342540;
 //BA.debugLineNum = 3342540;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342541;
 //BA.debugLineNum = 3342541;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3342542;
 //BA.debugLineNum = 3342542;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageSh";
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);};
RDebugUtils.currentLine=3342543;
 //BA.debugLineNum = 3342543;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(keymon.lat.medicomed.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=3014656;
 //BA.debugLineNum = 3014656;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=3014657;
 //BA.debugLineNum = 3014657;BA.debugLine="Public rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
RDebugUtils.currentLine=3014658;
 //BA.debugLineNum = 3014658;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=3014659;
 //BA.debugLineNum = 3014659;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=3014660;
 //BA.debugLineNum = 3014660;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new keymon.lat.medicomed.dbrequestmanager();
RDebugUtils.currentLine=3014661;
 //BA.debugLineNum = 3014661;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=3014662;
 //BA.debugLineNum = 3014662;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=3014663;
 //BA.debugLineNum = 3014663;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=3014664;
 //BA.debugLineNum = 3014664;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=3014665;
 //BA.debugLineNum = 3014665;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=3014666;
 //BA.debugLineNum = 3014666;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014668;
 //BA.debugLineNum = 3014668;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014669;
 //BA.debugLineNum = 3014669;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014670;
 //BA.debugLineNum = 3014670;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014671;
 //BA.debugLineNum = 3014671;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014672;
 //BA.debugLineNum = 3014672;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014673;
 //BA.debugLineNum = 3014673;BA.debugLine="Dim D2 As Cursor";
_d2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014674;
 //BA.debugLineNum = 3014674;BA.debugLine="Dim dd As Cursor";
_dd = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3014675;
 //BA.debugLineNum = 3014675;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=3014676;
 //BA.debugLineNum = 3014676;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014677;
 //BA.debugLineNum = 3014677;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014678;
 //BA.debugLineNum = 3014678;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=3014679;
 //BA.debugLineNum = 3014679;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=3014680;
 //BA.debugLineNum = 3014680;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014681;
 //BA.debugLineNum = 3014681;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=3014682;
 //BA.debugLineNum = 3014682;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014683;
 //BA.debugLineNum = 3014683;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3014684;
 //BA.debugLineNum = 3014684;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=3014685;
 //BA.debugLineNum = 3014685;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=3014686;
 //BA.debugLineNum = 3014686;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=3014687;
 //BA.debugLineNum = 3014687;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=3014688;
 //BA.debugLineNum = 3014688;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=3014689;
 //BA.debugLineNum = 3014689;BA.debugLine="Dim L_MONTOD As Label";
_l_montod = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014690;
 //BA.debugLineNum = 3014690;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014691;
 //BA.debugLineNum = 3014691;BA.debugLine="Dim l_drop As Label";
_l_drop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014692;
 //BA.debugLineNum = 3014692;BA.debugLine="Dim l_efectiva As Label";
_l_efectiva = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014693;
 //BA.debugLineNum = 3014693;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014694;
 //BA.debugLineNum = 3014694;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014695;
 //BA.debugLineNum = 3014695;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=3014696;
 //BA.debugLineNum = 3014696;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014697;
 //BA.debugLineNum = 3014697;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3014698;
 //BA.debugLineNum = 3014698;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014699;
 //BA.debugLineNum = 3014699;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014700;
 //BA.debugLineNum = 3014700;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014701;
 //BA.debugLineNum = 3014701;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=3014702;
 //BA.debugLineNum = 3014702;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014703;
 //BA.debugLineNum = 3014703;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=3014704;
 //BA.debugLineNum = 3014704;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=3014705;
 //BA.debugLineNum = 3014705;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=3014706;
 //BA.debugLineNum = 3014706;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=3014707;
 //BA.debugLineNum = 3014707;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=3014708;
 //BA.debugLineNum = 3014708;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=3014709;
 //BA.debugLineNum = 3014709;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=3014710;
 //BA.debugLineNum = 3014710;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=3014711;
 //BA.debugLineNum = 3014711;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=3014712;
 //BA.debugLineNum = 3014712;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=3014713;
 //BA.debugLineNum = 3014713;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=3014714;
 //BA.debugLineNum = 3014714;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=3014715;
 //BA.debugLineNum = 3014715;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=3014716;
 //BA.debugLineNum = 3014716;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=3014719;
 //BA.debugLineNum = 3014719;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014720;
 //BA.debugLineNum = 3014720;BA.debugLine="Private P1 As Panel";
_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014721;
 //BA.debugLineNum = 3014721;BA.debugLine="Private CLAVE As EditText";
_clave = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3014722;
 //BA.debugLineNum = 3014722;BA.debugLine="Private B_OK_PAS As Button";
_b_ok_pas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014723;
 //BA.debugLineNum = 3014723;BA.debugLine="Dim PASO As String";
_paso = "";
RDebugUtils.currentLine=3014724;
 //BA.debugLineNum = 3014724;BA.debugLine="Private USUARIO1 As EditText";
_usuario1 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3014725;
 //BA.debugLineNum = 3014725;BA.debugLine="Dim connecta1 As Double";
_connecta1 = 0;
RDebugUtils.currentLine=3014726;
 //BA.debugLineNum = 3014726;BA.debugLine="Dim armafolio As String";
_armafolio = "";
RDebugUtils.currentLine=3014727;
 //BA.debugLineNum = 3014727;BA.debugLine="Private NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014728;
 //BA.debugLineNum = 3014728;BA.debugLine="Private S_CC As Label";
_s_cc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014729;
 //BA.debugLineNum = 3014729;BA.debugLine="Private S_CP As Label";
_s_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014730;
 //BA.debugLineNum = 3014730;BA.debugLine="Private S_CH As Label";
_s_ch = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014731;
 //BA.debugLineNum = 3014731;BA.debugLine="Private PB2 As ProgressBar";
_pb2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=3014732;
 //BA.debugLineNum = 3014732;BA.debugLine="Private PB1 As ProgressBar";
_pb1 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=3014733;
 //BA.debugLineNum = 3014733;BA.debugLine="Private L_P_1 As Label";
_l_p_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014734;
 //BA.debugLineNum = 3014734;BA.debugLine="Private L_P_2 As Label";
_l_p_2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014735;
 //BA.debugLineNum = 3014735;BA.debugLine="Private L_P_3 As Label";
_l_p_3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014736;
 //BA.debugLineNum = 3014736;BA.debugLine="Private CARGA As String";
_carga = "";
RDebugUtils.currentLine=3014737;
 //BA.debugLineNum = 3014737;BA.debugLine="Private PORCENTAJE As String";
_porcentaje = "";
RDebugUtils.currentLine=3014738;
 //BA.debugLineNum = 3014738;BA.debugLine="Private P_RESUMEN As Panel";
_p_resumen = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014739;
 //BA.debugLineNum = 3014739;BA.debugLine="Private B_OK_RES As Button";
_b_ok_res = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014740;
 //BA.debugLineNum = 3014740;BA.debugLine="Private Resumen As Button";
_resumen = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014741;
 //BA.debugLineNum = 3014741;BA.debugLine="Private L_CUANTOST As Label";
_l_cuantost = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014742;
 //BA.debugLineNum = 3014742;BA.debugLine="Private img3 As ImageView";
_img3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014744;
 //BA.debugLineNum = 3014744;BA.debugLine="Private ImageView3 As ImageView";
_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014745;
 //BA.debugLineNum = 3014745;BA.debugLine="Private ImageView5 As ImageView";
_imageview5 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014746;
 //BA.debugLineNum = 3014746;BA.debugLine="Private L_TICKPROM As Label";
_l_tickprom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014747;
 //BA.debugLineNum = 3014747;BA.debugLine="Private L_MARCAS As ListView";
_l_marcas = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=3014748;
 //BA.debugLineNum = 3014748;BA.debugLine="Private ImageView9 As ImageView";
_imageview9 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014749;
 //BA.debugLineNum = 3014749;BA.debugLine="Private E_RUTA2 As EditText";
_e_ruta2 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3014750;
 //BA.debugLineNum = 3014750;BA.debugLine="Private resdia As ImageView";
_resdia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014751;
 //BA.debugLineNum = 3014751;BA.debugLine="Private hacer_ped As ImageView";
_hacer_ped = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014752;
 //BA.debugLineNum = 3014752;BA.debugLine="Private nvo_cliente As ImageView";
_nvo_cliente = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014753;
 //BA.debugLineNum = 3014753;BA.debugLine="Private tickets_dia As ImageView";
_tickets_dia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3014755;
 //BA.debugLineNum = 3014755;BA.debugLine="Private l_monto_ks As Label";
_l_monto_ks = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014756;
 //BA.debugLineNum = 3014756;BA.debugLine="Private l_monto_kp As Label";
_l_monto_kp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014757;
 //BA.debugLineNum = 3014757;BA.debugLine="Private l_monto_k As Label";
_l_monto_k = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014759;
 //BA.debugLineNum = 3014759;BA.debugLine="Private l_monto_c1 As Label";
_l_monto_c1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014760;
 //BA.debugLineNum = 3014760;BA.debugLine="Private l_monto_c2 As Label";
_l_monto_c2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014761;
 //BA.debugLineNum = 3014761;BA.debugLine="Private l_monto_c3 As Label";
_l_monto_c3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014763;
 //BA.debugLineNum = 3014763;BA.debugLine="Private l_encuesta As Label";
_l_encuesta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014766;
 //BA.debugLineNum = 3014766;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
RDebugUtils.currentLine=3014767;
 //BA.debugLineNum = 3014767;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=3014768;
 //BA.debugLineNum = 3014768;BA.debugLine="Private bu As BatteryUtilities";
_bu = new keymon.lat.medicomed.batteryutilities();
RDebugUtils.currentLine=3014771;
 //BA.debugLineNum = 3014771;BA.debugLine="Private Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014772;
 //BA.debugLineNum = 3014772;BA.debugLine="Private L_NES As Label";
_l_nes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014773;
 //BA.debugLineNum = 3014773;BA.debugLine="Private L_REAL As Label";
_l_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014774;
 //BA.debugLineNum = 3014774;BA.debugLine="Private L_ALCANCE As Label";
_l_alcance = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014775;
 //BA.debugLineNum = 3014775;BA.debugLine="Private L_VPLAN As Label";
_l_vplan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014776;
 //BA.debugLineNum = 3014776;BA.debugLine="Private L_VREAL As Label";
_l_vreal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014777;
 //BA.debugLineNum = 3014777;BA.debugLine="Private L_EFEC_VIS As Label";
_l_efec_vis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014778;
 //BA.debugLineNum = 3014778;BA.debugLine="Private L_VISITCC As Label";
_l_visitcc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014779;
 //BA.debugLineNum = 3014779;BA.debugLine="Private L_EFEC_PV As Label";
_l_efec_pv = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014780;
 //BA.debugLineNum = 3014780;BA.debugLine="Private L_EFEC_PURA As Label";
_l_efec_pura = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014781;
 //BA.debugLineNum = 3014781;BA.debugLine="Private L_CTE_PROMO As Label";
_l_cte_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014782;
 //BA.debugLineNum = 3014782;BA.debugLine="Private L_REDEN_PROMO As Label";
_l_reden_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014783;
 //BA.debugLineNum = 3014783;BA.debugLine="Private L_LIN_TICK As Label";
_l_lin_tick = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014784;
 //BA.debugLineNum = 3014784;BA.debugLine="Private SCROLL_RESDIA As ScrollView";
_scroll_resdia = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=3014785;
 //BA.debugLineNum = 3014785;BA.debugLine="Private L_ACUMULADO As Label";
_l_acumulado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014786;
 //BA.debugLineNum = 3014786;BA.debugLine="Private L_UNILEVER As Label";
_l_unilever = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014787;
 //BA.debugLineNum = 3014787;BA.debugLine="Private L_RECHAZOP As Label";
_l_rechazop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014788;
 //BA.debugLineNum = 3014788;BA.debugLine="Private L_RECHAZOM As Label";
_l_rechazom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014789;
 //BA.debugLineNum = 3014789;BA.debugLine="Private L_VTA_3MES As Label";
_l_vta_3mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014790;
 //BA.debugLineNum = 3014790;BA.debugLine="Private L_VTA_2MES As Label";
_l_vta_2mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014791;
 //BA.debugLineNum = 3014791;BA.debugLine="Private L_VTA_1MES As Label";
_l_vta_1mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014792;
 //BA.debugLineNum = 3014792;BA.debugLine="Private L_MES_PY As Label";
_l_mes_py = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014793;
 //BA.debugLineNum = 3014793;BA.debugLine="Private L_FREC_DE_CREAL As Label";
_l_frec_de_creal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014794;
 //BA.debugLineNum = 3014794;BA.debugLine="Private L_FREC_DE_COBJ As Label";
_l_frec_de_cobj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014795;
 //BA.debugLineNum = 3014795;BA.debugLine="Private L_COB_VISIT As Label";
_l_cob_visit = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014796;
 //BA.debugLineNum = 3014796;BA.debugLine="Private L_VISIT_REAL As Label";
_l_visit_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014797;
 //BA.debugLineNum = 3014797;BA.debugLine="Private L_VISIT_PLAN As Label";
_l_visit_plan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014798;
 //BA.debugLineNum = 3014798;BA.debugLine="Private L_ECO As Label";
_l_eco = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014799;
 //BA.debugLineNum = 3014799;BA.debugLine="Private L_COB_CCC As Label";
_l_cob_ccc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014800;
 //BA.debugLineNum = 3014800;BA.debugLine="Private L_CTES As Label";
_l_ctes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014801;
 //BA.debugLineNum = 3014801;BA.debugLine="Private L_VPO_VTA As Label";
_l_vpo_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014802;
 //BA.debugLineNum = 3014802;BA.debugLine="Private L_VPO_OBJ As Label";
_l_vpo_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014803;
 //BA.debugLineNum = 3014803;BA.debugLine="Private L_DS_VTA As Label";
_l_ds_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014804;
 //BA.debugLineNum = 3014804;BA.debugLine="Private L_DS_OBJ As Label";
_l_ds_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014805;
 //BA.debugLineNum = 3014805;BA.debugLine="Private L_DRA_VTA As Label";
_l_dra_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014806;
 //BA.debugLineNum = 3014806;BA.debugLine="Private L_DRA_OBJ As Label";
_l_dra_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014807;
 //BA.debugLineNum = 3014807;BA.debugLine="Private L_ALCANCEM As Label";
_l_alcancem = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014808;
 //BA.debugLineNum = 3014808;BA.debugLine="Private L_TENDENCIA As Label";
_l_tendencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014809;
 //BA.debugLineNum = 3014809;BA.debugLine="Private L_VTA_ACUM As Label";
_l_vta_acum = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014810;
 //BA.debugLineNum = 3014810;BA.debugLine="Private L_OBJ_MES As Label";
_l_obj_mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014811;
 //BA.debugLineNum = 3014811;BA.debugLine="Private L_DS_OBJD As Label";
_l_ds_objd = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014812;
 //BA.debugLineNum = 3014812;BA.debugLine="Private L_DS_VTAD As Label";
_l_ds_vtad = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014813;
 //BA.debugLineNum = 3014813;BA.debugLine="Private LPT As String";
_lpt = "";
RDebugUtils.currentLine=3014814;
 //BA.debugLineNum = 3014814;BA.debugLine="Private STEYIN As String";
_steyin = "";
RDebugUtils.currentLine=3014815;
 //BA.debugLineNum = 3014815;BA.debugLine="Private STEYOUT As String";
_steyout = "";
RDebugUtils.currentLine=3014817;
 //BA.debugLineNum = 3014817;BA.debugLine="Private L_PRIO As Label";
_l_prio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014818;
 //BA.debugLineNum = 3014818;BA.debugLine="Private L_SECUND As Label";
_l_secund = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014819;
 //BA.debugLineNum = 3014819;BA.debugLine="Private L_COMP As Label";
_l_comp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014822;
 //BA.debugLineNum = 3014822;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
RDebugUtils.currentLine=3014823;
 //BA.debugLineNum = 3014823;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
RDebugUtils.currentLine=3014824;
 //BA.debugLineNum = 3014824;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
RDebugUtils.currentLine=3014826;
 //BA.debugLineNum = 3014826;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3014827;
 //BA.debugLineNum = 3014827;BA.debugLine="Dim HORAINGRESO As String";
_horaingreso = "";
RDebugUtils.currentLine=3014829;
 //BA.debugLineNum = 3014829;BA.debugLine="Private L_QUALA As Label";
_l_quala = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014830;
 //BA.debugLineNum = 3014830;BA.debugLine="Private L_FERRERO As Label";
_l_ferrero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014831;
 //BA.debugLineNum = 3014831;BA.debugLine="Private L_SANMARCOS As Label";
_l_sanmarcos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014832;
 //BA.debugLineNum = 3014832;BA.debugLine="Private L_CAMPARI As Label";
_l_campari = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014833;
 //BA.debugLineNum = 3014833;BA.debugLine="Private L_IBERIA As Label";
_l_iberia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014834;
 //BA.debugLineNum = 3014834;BA.debugLine="Private L_BEPENSA As Label";
_l_bepensa = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014835;
 //BA.debugLineNum = 3014835;BA.debugLine="Private L_SCJ As Label";
_l_scj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014836;
 //BA.debugLineNum = 3014836;BA.debugLine="Private L_MEDJ As Label";
_l_medj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014837;
 //BA.debugLineNum = 3014837;BA.debugLine="Private L_DURACELL As Label";
_l_duracell = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014838;
 //BA.debugLineNum = 3014838;BA.debugLine="Private L_GUNA As Label";
_l_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014839;
 //BA.debugLineNum = 3014839;BA.debugLine="Private L_KIMB As Label";
_l_kimb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014840;
 //BA.debugLineNum = 3014840;BA.debugLine="Private L_TRESM As Label";
_l_tresm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014841;
 //BA.debugLineNum = 3014841;BA.debugLine="Private L_REDB As Label";
_l_redb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014842;
 //BA.debugLineNum = 3014842;BA.debugLine="Private Btn_Ubicar As Button";
_btn_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014843;
 //BA.debugLineNum = 3014843;BA.debugLine="Private B_COMM As Button";
_b_comm = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014844;
 //BA.debugLineNum = 3014844;BA.debugLine="Private L_TOTAL_MM As Label";
_l_total_mm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014845;
 //BA.debugLineNum = 3014845;BA.debugLine="Private L_TOTAL_VIVE As Label";
_l_total_vive = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014846;
 //BA.debugLineNum = 3014846;BA.debugLine="Private L_TOTAL_GUNA As Label";
_l_total_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014847;
 //BA.debugLineNum = 3014847;BA.debugLine="Private L_TOTAL_BA As Label";
_l_total_ba = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014848;
 //BA.debugLineNum = 3014848;BA.debugLine="Private L_TOTAL_COMIS As Label";
_l_total_comis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014849;
 //BA.debugLineNum = 3014849;BA.debugLine="Private L_TOTAL_MM_1 As Label";
_l_total_mm_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014850;
 //BA.debugLineNum = 3014850;BA.debugLine="Private L_TOTAL_VIVE_1 As Label";
_l_total_vive_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014851;
 //BA.debugLineNum = 3014851;BA.debugLine="Private L_TOTAL_GUNA_1 As Label";
_l_total_guna_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014852;
 //BA.debugLineNum = 3014852;BA.debugLine="Private L_TOTAL_BA_1 As Label";
_l_total_ba_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014853;
 //BA.debugLineNum = 3014853;BA.debugLine="Private L_TOTAL_COMIS_1 As Label";
_l_total_comis_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014854;
 //BA.debugLineNum = 3014854;BA.debugLine="Private B_OK_COMISS As Button";
_b_ok_comiss = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014855;
 //BA.debugLineNum = 3014855;BA.debugLine="Private Panel_C As Panel";
_panel_c = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014857;
 //BA.debugLineNum = 3014857;BA.debugLine="Private TitleHeight As Int = 50dip";
_titleheight = __c.DipToCurrent((int) (50));
RDebugUtils.currentLine=3014858;
 //BA.debugLineNum = 3014858;BA.debugLine="Private Title2Height As Int = 100dip";
_title2height = __c.DipToCurrent((int) (100));
RDebugUtils.currentLine=3014860;
 //BA.debugLineNum = 3014860;BA.debugLine="Private DividerHeight As Int = 5dip";
_dividerheight = __c.DipToCurrent((int) (5));
RDebugUtils.currentLine=3014861;
 //BA.debugLineNum = 3014861;BA.debugLine="Private CLV1 As CustomListView";
_clv1 = new b4a.example3.customlistview();
RDebugUtils.currentLine=3014862;
 //BA.debugLineNum = 3014862;BA.debugLine="Private pnlTitle As B4XView";
_pnltitle = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=3014863;
 //BA.debugLineNum = 3014863;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=3014864;
 //BA.debugLineNum = 3014864;BA.debugLine="Type TitleData (Title As String)";
;
RDebugUtils.currentLine=3014866;
 //BA.debugLineNum = 3014866;BA.debugLine="Private B_MARCAS As Button";
_b_marcas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014867;
 //BA.debugLineNum = 3014867;BA.debugLine="Private Panel5 As Panel";
_panel5 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014868;
 //BA.debugLineNum = 3014868;BA.debugLine="Private lblTitle As Label";
_lbltitle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3014869;
 //BA.debugLineNum = 3014869;BA.debugLine="Private B_OK_PANEL5 As Button";
_b_ok_panel5 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3014872;
 //BA.debugLineNum = 3014872;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014873;
 //BA.debugLineNum = 3014873;BA.debugLine="Private p_mandaInfo As Panel";
_p_mandainfo = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3014874;
 //BA.debugLineNum = 3014874;BA.debugLine="End Sub";
return "";
}
public String  _connecta_click(keymon.lat.medicomed.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));}
String _usrt = "";
String _passt = "";
RDebugUtils.currentLine=3538944;
 //BA.debugLineNum = 3538944;BA.debugLine="Sub connecta_Click";
RDebugUtils.currentLine=3538945;
 //BA.debugLineNum = 3538945;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, Start";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_starter._server /*String*/ );
RDebugUtils.currentLine=3538946;
 //BA.debugLineNum = 3538946;BA.debugLine="Log(Starter.server)";
__c.LogImpl("33538946",_starter._server /*String*/ ,0);
RDebugUtils.currentLine=3538947;
 //BA.debugLineNum = 3538947;BA.debugLine="connecta1 = connecta1 + 1";
__ref._connecta1 /*double*/  = __ref._connecta1 /*double*/ +1;
RDebugUtils.currentLine=3538949;
 //BA.debugLineNum = 3538949;BA.debugLine="imei = \"\"";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=3538950;
 //BA.debugLineNum = 3538950;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=3538951;
 //BA.debugLineNum = 3538951;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3538952;
 //BA.debugLineNum = 3538952;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3538953;
 //BA.debugLineNum = 3538953;BA.debugLine="cmd.Name = \"select_version_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_MEDI";
RDebugUtils.currentLine=3538954;
 //BA.debugLineNum = 3538954;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
RDebugUtils.currentLine=3538957;
 //BA.debugLineNum = 3538957;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select USUA";
__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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO, PASS from usuarioa")));
RDebugUtils.currentLine=3538958;
 //BA.debugLineNum = 3538958;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3538959;
 //BA.debugLineNum = 3538959;BA.debugLine="If c.RowCount > 0  And c.GetString(\"USUARIO\") <>";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0 && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")).equals("KMTS1") == false) { 
RDebugUtils.currentLine=3538960;
 //BA.debugLineNum = 3538960;BA.debugLine="Private usrT As String = c.GetString(\"USUARIO\")";
_usrt = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3538961;
 //BA.debugLineNum = 3538961;BA.debugLine="Private passT As String = c.GetString(\"PASS\")";
_passt = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PASS");
RDebugUtils.currentLine=3538962;
 //BA.debugLineNum = 3538962;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3538963;
 //BA.debugLineNum = 3538963;BA.debugLine="cmd.Name = \"select_usuario_guna_MEDI_1\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_guna_MEDI_1";
RDebugUtils.currentLine=3538964;
 //BA.debugLineNum = 3538964;BA.debugLine="cmd.Parameters = Array As Object(usrT, passT)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_usrt),(Object)(_passt)};
RDebugUtils.currentLine=3538965;
 //BA.debugLineNum = 3538965;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuarioA"));
 };
RDebugUtils.currentLine=3538967;
 //BA.debugLineNum = 3538967;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3538970;
 //BA.debugLineNum = 3538970;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3538971;
 //BA.debugLineNum = 3538971;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3538972;
 //BA.debugLineNum = 3538972;BA.debugLine="cmd.Name = \"select_ruta_MEDI_6\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_MEDI_6";
RDebugUtils.currentLine=3538973;
 //BA.debugLineNum = 3538973;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ruta.t";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3538974;
 //BA.debugLineNum = 3538974;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
RDebugUtils.currentLine=3538976;
 //BA.debugLineNum = 3538976;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
RDebugUtils.currentLine=3538977;
 //BA.debugLineNum = 3538977;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3538978;
 //BA.debugLineNum = 3538978;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3538979;
 //BA.debugLineNum = 3538979;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
RDebugUtils.currentLine=3538982;
 //BA.debugLineNum = 3538982;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("BERNA1")) { 
RDebugUtils.currentLine=3538983;
 //BA.debugLineNum = 3538983;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3538984;
 //BA.debugLineNum = 3538984;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3538985;
 //BA.debugLineNum = 3538985;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
RDebugUtils.currentLine=3538988;
 //BA.debugLineNum = 3538988;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
RDebugUtils.currentLine=3539004;
 //BA.debugLineNum = 3539004;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(keymon.lat.medicomed.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=3735552;
 //BA.debugLineNum = 3735552;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=3735553;
 //BA.debugLineNum = 3735553;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=3735554;
 //BA.debugLineNum = 3735554;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=3735555;
 //BA.debugLineNum = 3735555;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=3735556;
 //BA.debugLineNum = 3735556;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=3735557;
 //BA.debugLineNum = 3735557;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=3735558;
 //BA.debugLineNum = 3735558;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=3735559;
 //BA.debugLineNum = 3735559;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=3735560;
 //BA.debugLineNum = 3735560;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=3735561;
 //BA.debugLineNum = 3735561;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=3735562;
 //BA.debugLineNum = 3735562;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=3735563;
 //BA.debugLineNum = 3735563;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=3735564;
 //BA.debugLineNum = 3735564;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=3735565;
 //BA.debugLineNum = 3735565;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VERIFICACION");
RDebugUtils.currentLine=3735566;
 //BA.debugLineNum = 3735566;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA");
RDebugUtils.currentLine=3735567;
 //BA.debugLineNum = 3735567;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_OUT");
RDebugUtils.currentLine=3735568;
 //BA.debugLineNum = 3735568;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=3735569;
 //BA.debugLineNum = 3735569;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_FACE");
RDebugUtils.currentLine=3735570;
 //BA.debugLineNum = 3735570;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"INSERT INT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)");
RDebugUtils.currentLine=3735571;
 //BA.debugLineNum = 3735571;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_CODIGO_BARRAS");
RDebugUtils.currentLine=3735572;
 //BA.debugLineNum = 3735572;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_FOTO_CLIENTE");
RDebugUtils.currentLine=3735573;
 //BA.debugLineNum = 3735573;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CLIENTES_NUEVOS");
RDebugUtils.currentLine=3735574;
 //BA.debugLineNum = 3735574;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BITACORAGPS");
RDebugUtils.currentLine=3735575;
 //BA.debugLineNum = 3735575;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM VENTA_No_VENTA");
RDebugUtils.currentLine=3735576;
 //BA.debugLineNum = 3735576;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now),us";
_subs._bitacora /*String*/ (ba,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),__ref._usuario /*String*/ ,__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),"Fin Día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","");
RDebugUtils.currentLine=3735577;
 //BA.debugLineNum = 3735577;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 };
 };
RDebugUtils.currentLine=3735580;
 //BA.debugLineNum = 3735580;BA.debugLine="If e_ruta.Text = \"IWL\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("IWL")) { 
RDebugUtils.currentLine=3735582;
 //BA.debugLineNum = 3735582;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735583;
 //BA.debugLineNum = 3735583;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735584;
 //BA.debugLineNum = 3735584;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735585;
 //BA.debugLineNum = 3735585;BA.debugLine="img3.Visible =True";
__ref._img3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3735586;
 //BA.debugLineNum = 3735586;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=3735588;
 //BA.debugLineNum = 3735588;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("SUPLENCIA")) { 
RDebugUtils.currentLine=3735589;
 //BA.debugLineNum = 3735589;BA.debugLine="E_RUTA2.Visible = True";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3735590;
 //BA.debugLineNum = 3735590;BA.debugLine="ImageView9.Visible = True";
__ref._imageview9 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=3735592;
 //BA.debugLineNum = 3735592;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_textchanged(keymon.lat.medicomed.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=4718592;
 //BA.debugLineNum = 4718592;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri";
RDebugUtils.currentLine=4718593;
 //BA.debugLineNum = 4718593;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV";
_validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
RDebugUtils.currentLine=4718595;
 //BA.debugLineNum = 4718595;BA.debugLine="If Old <> \"KMTS1\" Then";
if ((_old).equals("KMTS1") == false) { 
RDebugUtils.currentLine=4718597;
 //BA.debugLineNum = 4718597;BA.debugLine="Try";
try {RDebugUtils.currentLine=4718598;
 //BA.debugLineNum = 4718598;BA.debugLine="If validChars.Contains(New.SubString(New.Length";
if (_validchars.contains(_new.substring((int) (_new.length()-1)))==__c.False) { 
RDebugUtils.currentLine=4718599;
 //BA.debugLineNum = 4718599;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=4718600;
 //BA.debugLineNum = 4718600;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=4718603;
 //BA.debugLineNum = 4718603;BA.debugLine="Log(LastException)";
__c.LogImpl("34718603",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=4718606;
 //BA.debugLineNum = 4718606;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(keymon.lat.medicomed.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=4587520;
 //BA.debugLineNum = 4587520;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=4587522;
 //BA.debugLineNum = 4587522;BA.debugLine="End Sub";
return "";
}
public String  _hacer_ped_click(keymon.lat.medicomed.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=4390912;
 //BA.debugLineNum = 4390912;BA.debugLine="Sub hacer_ped_Click";
RDebugUtils.currentLine=4390913;
 //BA.debugLineNum = 4390913;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
RDebugUtils.currentLine=4390914;
 //BA.debugLineNum = 4390914;BA.debugLine="End Sub";
return "";
}
public String  _inv_click(keymon.lat.medicomed.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=3801088;
 //BA.debugLineNum = 3801088;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=3801089;
 //BA.debugLineNum = 3801089;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3801090;
 //BA.debugLineNum = 3801090;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3801091;
 //BA.debugLineNum = 3801091;BA.debugLine="inve = 1";
__ref._inve /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3801092;
 //BA.debugLineNum = 3801092;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=3801093;
 //BA.debugLineNum = 3801093;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=3801094;
 //BA.debugLineNum = 3801094;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3801095;
 //BA.debugLineNum = 3801095;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3801096;
 //BA.debugLineNum = 3801096;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3801097;
 //BA.debugLineNum = 3801097;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3801098;
 //BA.debugLineNum = 3801098;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3801099;
 //BA.debugLineNum = 3801099;BA.debugLine="cmd.Name = \"select_cat_gunaprod_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_MEDI";
RDebugUtils.currentLine=3801100;
 //BA.debugLineNum = 3801100;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3801101;
 //BA.debugLineNum = 3801101;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=3801102;
 //BA.debugLineNum = 3801102;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3801103;
 //BA.debugLineNum = 3801103;BA.debugLine="cmd.Name = \"select_cat_paquetes_MARDS\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_MARDS";
RDebugUtils.currentLine=3801104;
 //BA.debugLineNum = 3801104;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3801105;
 //BA.debugLineNum = 3801105;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=3801107;
 //BA.debugLineNum = 3801107;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3801108;
 //BA.debugLineNum = 3801108;BA.debugLine="cmd.Name = \"select_cat_detallepa_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_MEDI";
RDebugUtils.currentLine=3801109;
 //BA.debugLineNum = 3801109;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3801110;
 //BA.debugLineNum = 3801110;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=3801112;
 //BA.debugLineNum = 3801112;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3801113;
 //BA.debugLineNum = 3801113;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3801114;
 //BA.debugLineNum = 3801114;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3801115;
 //BA.debugLineNum = 3801115;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3801116;
 //BA.debugLineNum = 3801116;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=3801117;
 //BA.debugLineNum = 3801117;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(keymon.lat.medicomed.c_principal __ref,keymon.lat.medicomed.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}));}
keymon.lat.medicomed.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _k = "";
String _n = "";
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_diasemana = "";
int _cat_cl_secuencia = 0;
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 _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 _hcm_total_v = "";
String _hcm_total_vive = "";
String _hcm_total_guna = "";
String _hcm_total_beb = "";
String _cat_gp_id = "";
String _cat_gp_nombre = "";
String _cat_gp_imp1 = "";
String _cat_gp_imp2 = "";
String _cat_gp_precio = "";
String _cat_gp_clasif = "";
String _cat_gp_sts = "";
String _cat_gp_tipo = "";
String _cat_gp_subtipo = "";
byte[] _cat_gp_img = null;
int _cat_gp_almacen = 0;
int _cat_gp_tipoprod = 0;
int _cat_gp_iniciativa = 0;
String _cat_gp_tipoprod2 = "";
int _i = 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 _folio = "";
String _marca = "";
String _avance = "";
String _objetivo = "";
String _porcentaje1 = "";
RDebugUtils.currentLine=3407872;
 //BA.debugLineNum = 3407872;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=3407878;
 //BA.debugLineNum = 3407878;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=3407880;
 //BA.debugLineNum = 3407880;BA.debugLine="If Job.ErrorMessage = \"STREAM\" Then";
if ((_job._errormessage /*String*/ ).equals("STREAM")) { 
RDebugUtils.currentLine=3407881;
 //BA.debugLineNum = 3407881;BA.debugLine="If CARGA = \"SUBIR\" Then";
if ((__ref._carga /*String*/ ).equals("SUBIR")) { 
RDebugUtils.currentLine=3407882;
 //BA.debugLineNum = 3407882;BA.debugLine="PB2.Progress = PB2.Progress + PORCENTAJE";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()+(double)(Double.parseDouble(__ref._porcentaje /*String*/ ))));
RDebugUtils.currentLine=3407883;
 //BA.debugLineNum = 3407883;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SUBIENDO"));
RDebugUtils.currentLine=3407884;
 //BA.debugLineNum = 3407884;BA.debugLine="If PB2.Progress > 99 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()>99) { 
RDebugUtils.currentLine=3407885;
 //BA.debugLineNum = 3407885;BA.debugLine="S_CP.Text = \"VALIDANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO"));
 };
 };
 };
 }else {
RDebugUtils.currentLine=3407890;
 //BA.debugLineNum = 3407890;BA.debugLine="LogColor(\"JobDone: '\" & B4XPages.MainPage.reqMan";
__c.LogImpl("33407890","JobDone: '"+BA.ObjectToString(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=3407892;
 //BA.debugLineNum = 3407892;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3407893;
 //BA.debugLineNum = 3407893;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3407895;
 //BA.debugLineNum = 3407895;BA.debugLine="If RESULT.Tag = \"update_gps\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("update_gps"))) { 
RDebugUtils.currentLine=3407896;
 //BA.debugLineNum = 3407896;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group16 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen16 = group16.getSize()
;int index16 = 0;
;
for (; index16 < groupLen16;index16++){
_records = (Object[])(group16.Get(index16));
RDebugUtils.currentLine=3407897;
 //BA.debugLineNum = 3407897;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("33407897","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
RDebugUtils.currentLine=3407898;
 //BA.debugLineNum = 3407898;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group18 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen18 = group18.getSize()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_k = BA.ObjectToString(group18.Get(index18));
RDebugUtils.currentLine=3407899;
 //BA.debugLineNum = 3407899;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("33407899",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=3407903;
 //BA.debugLineNum = 3407903;BA.debugLine="If RESULT.Tag = \"ins_pedidos\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedidos"))) { 
RDebugUtils.currentLine=3407904;
 //BA.debugLineNum = 3407904;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group24 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen24 = group24.getSize()
;int index24 = 0;
;
for (; index24 < groupLen24;index24++){
_records = (Object[])(group24.Get(index24));
RDebugUtils.currentLine=3407905;
 //BA.debugLineNum = 3407905;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("33407905","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
RDebugUtils.currentLine=3407906;
 //BA.debugLineNum = 3407906;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group26 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen26 = group26.getSize()
;int index26 = 0;
;
for (; index26 < groupLen26;index26++){
_k = BA.ObjectToString(group26.Get(index26));
RDebugUtils.currentLine=3407907;
 //BA.debugLineNum = 3407907;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("33407907",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=3407911;
 //BA.debugLineNum = 3407911;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuarioA"))) { 
RDebugUtils.currentLine=3407912;
 //BA.debugLineNum = 3407912;BA.debugLine="Private n As String = \"Sin Usuario\"";
_n = "Sin Usuario";
RDebugUtils.currentLine=3407913;
 //BA.debugLineNum = 3407913;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group33 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen33 = group33.getSize()
;int index33 = 0;
;
for (; index33 < groupLen33;index33++){
_records = (Object[])(group33.Get(index33));
RDebugUtils.currentLine=3407914;
 //BA.debugLineNum = 3407914;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=3407916;
 //BA.debugLineNum = 3407916;BA.debugLine="LogColor(\"**************************\"&n, Color";
__c.LogImpl("33407916","**************************"+_n,__c.Colors.Green);
RDebugUtils.currentLine=3407917;
 //BA.debugLineNum = 3407917;BA.debugLine="If n = \"OKActivo\"  Then";
if ((_n).equals("OKActivo")) { 
RDebugUtils.currentLine=3407918;
 //BA.debugLineNum = 3407918;BA.debugLine="Log(\"Usuario guardado en BD es 'Valido'\")";
__c.LogImpl("33407918","Usuario guardado en BD es 'Valido'",0);
 }else 
{RDebugUtils.currentLine=3407919;
 //BA.debugLineNum = 3407919;BA.debugLine="Else If n  = \"OKExpirado\" Then";
if ((_n).equals("OKExpirado")) { 
RDebugUtils.currentLine=3407920;
 //BA.debugLineNum = 3407920;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=3407921;
 //BA.debugLineNum = 3407921;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }else 
{RDebugUtils.currentLine=3407922;
 //BA.debugLineNum = 3407922;BA.debugLine="Else If n = \"OKCancelado\" Then";
if ((_n).equals("OKCancelado")) { 
RDebugUtils.currentLine=3407923;
 //BA.debugLineNum = 3407923;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=3407924;
 //BA.debugLineNum = 3407924;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }else {
RDebugUtils.currentLine=3407926;
 //BA.debugLineNum = 3407926;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=3407927;
 //BA.debugLineNum = 3407927;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
 }}}
;
RDebugUtils.currentLine=3407929;
 //BA.debugLineNum = 3407929;BA.debugLine="Log(\"*****************  \"&n)";
__c.LogImpl("33407929","*****************  "+_n,0);
 };
 };
RDebugUtils.currentLine=3407933;
 //BA.debugLineNum = 3407933;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3407934;
 //BA.debugLineNum = 3407934;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3407935;
 //BA.debugLineNum = 3407935;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=3407936;
 //BA.debugLineNum = 3407936;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=3407937;
 //BA.debugLineNum = 3407937;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group56 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen56 = group56.getSize()
;int index56 = 0;
;
for (; index56 < groupLen56;index56++){
_records = (Object[])(group56.Get(index56));
RDebugUtils.currentLine=3407938;
 //BA.debugLineNum = 3407938;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=3407939;
 //BA.debugLineNum = 3407939;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=3407940;
 //BA.debugLineNum = 3407940;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=3407941;
 //BA.debugLineNum = 3407941;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=3407942;
 //BA.debugLineNum = 3407942;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=3407943;
 //BA.debugLineNum = 3407943;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=3407944;
 //BA.debugLineNum = 3407944;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=3407945;
 //BA.debugLineNum = 3407945;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=3407946;
 //BA.debugLineNum = 3407946;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=3407947;
 //BA.debugLineNum = 3407947;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=3407948;
 //BA.debugLineNum = 3407948;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=3407949;
 //BA.debugLineNum = 3407949;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=3407950;
 //BA.debugLineNum = 3407950;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=3407951;
 //BA.debugLineNum = 3407951;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=3407952;
 //BA.debugLineNum = 3407952;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=3407953;
 //BA.debugLineNum = 3407953;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=3407954;
 //BA.debugLineNum = 3407954;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=3407955;
 //BA.debugLineNum = 3407955;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=3407956;
 //BA.debugLineNum = 3407956;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=3407957;
 //BA.debugLineNum = 3407957;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=3407958;
 //BA.debugLineNum = 3407958;BA.debugLine="Dim CAT_CL_DIASEMANA As String = records(RESU";
_cat_cl_diasemana = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIAS_VISITA"))))]);
RDebugUtils.currentLine=3407959;
 //BA.debugLineNum = 3407959;BA.debugLine="Dim CAT_CL_SECUENCIA As Int = records(RESULT.";
_cat_cl_secuencia = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_SECUENCIA"))))]));
RDebugUtils.currentLine=3407960;
 //BA.debugLineNum = 3407960;BA.debugLine="Starter.dia_semana = CAT_CL_DIASEMANA";
_starter._dia_semana /*String*/  = _cat_cl_diasemana;
RDebugUtils.currentLine=3407961;
 //BA.debugLineNum = 3407961;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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, gestion, CAT_CL_DIASEMANA, CAT_CL_SECUENCIA) 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_diasemana),(Object)(_cat_cl_secuencia)}));
RDebugUtils.currentLine=3407962;
 //BA.debugLineNum = 3407962;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3407964;
 //BA.debugLineNum = 3407964;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3407965;
 //BA.debugLineNum = 3407965;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3407966;
 //BA.debugLineNum = 3407966;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=3407967;
 //BA.debugLineNum = 3407967;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An";
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=3407968;
 //BA.debugLineNum = 3407968;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3407969;
 //BA.debugLineNum = 3407969;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3407970;
 //BA.debugLineNum = 3407970;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3407975;
 //BA.debugLineNum = 3407975;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3407976;
 //BA.debugLineNum = 3407976;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3407977;
 //BA.debugLineNum = 3407977;BA.debugLine="If RESULT.Tag = \"resum_apk\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("resum_apk"))) { 
RDebugUtils.currentLine=3407978;
 //BA.debugLineNum = 3407978;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group96 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen96 = group96.getSize()
;int index96 = 0;
;
for (; index96 < groupLen96;index96++){
_records = (Object[])(group96.Get(index96));
RDebugUtils.currentLine=3407979;
 //BA.debugLineNum = 3407979;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=3407980;
 //BA.debugLineNum = 3407980;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=3407981;
 //BA.debugLineNum = 3407981;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=3407982;
 //BA.debugLineNum = 3407982;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=3407983;
 //BA.debugLineNum = 3407983;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=3407984;
 //BA.debugLineNum = 3407984;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=3407985;
 //BA.debugLineNum = 3407985;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=3407986;
 //BA.debugLineNum = 3407986;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=3407987;
 //BA.debugLineNum = 3407987;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=3407988;
 //BA.debugLineNum = 3407988;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=3407989;
 //BA.debugLineNum = 3407989;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=3407990;
 //BA.debugLineNum = 3407990;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=3407991;
 //BA.debugLineNum = 3407991;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=3407992;
 //BA.debugLineNum = 3407992;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=3407993;
 //BA.debugLineNum = 3407993;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=3407994;
 //BA.debugLineNum = 3407994;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=3407995;
 //BA.debugLineNum = 3407995;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=3407996;
 //BA.debugLineNum = 3407996;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=3407997;
 //BA.debugLineNum = 3407997;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=3407998;
 //BA.debugLineNum = 3407998;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=3407999;
 //BA.debugLineNum = 3407999;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=3408000;
 //BA.debugLineNum = 3408000;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=3408001;
 //BA.debugLineNum = 3408001;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=3408002;
 //BA.debugLineNum = 3408002;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=3408003;
 //BA.debugLineNum = 3408003;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=3408004;
 //BA.debugLineNum = 3408004;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=3408005;
 //BA.debugLineNum = 3408005;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=3408006;
 //BA.debugLineNum = 3408006;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=3408007;
 //BA.debugLineNum = 3408007;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=3408008;
 //BA.debugLineNum = 3408008;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=3408009;
 //BA.debugLineNum = 3408009;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=3408010;
 //BA.debugLineNum = 3408010;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=3408011;
 //BA.debugLineNum = 3408011;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=3408012;
 //BA.debugLineNum = 3408012;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=3408013;
 //BA.debugLineNum = 3408013;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=3408014;
 //BA.debugLineNum = 3408014;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=3408015;
 //BA.debugLineNum = 3408015;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=3408016;
 //BA.debugLineNum = 3408016;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=3408017;
 //BA.debugLineNum = 3408017;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=3408018;
 //BA.debugLineNum = 3408018;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=3408019;
 //BA.debugLineNum = 3408019;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=3408020;
 //BA.debugLineNum = 3408020;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=3408021;
 //BA.debugLineNum = 3408021;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=3408022;
 //BA.debugLineNum = 3408022;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=3408023;
 //BA.debugLineNum = 3408023;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=3408024;
 //BA.debugLineNum = 3408024;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=3408026;
 //BA.debugLineNum = 3408026;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408029;
 //BA.debugLineNum = 3408029;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408030;
 //BA.debugLineNum = 3408030;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3408031;
 //BA.debugLineNum = 3408031;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=3408035;
 //BA.debugLineNum = 3408035;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408036;
 //BA.debugLineNum = 3408036;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408037;
 //BA.debugLineNum = 3408037;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_promos"))) { 
RDebugUtils.currentLine=3408038;
 //BA.debugLineNum = 3408038;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group153 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen153 = group153.getSize()
;int index153 = 0;
;
for (; index153 < groupLen153;index153++){
_records = (Object[])(group153.Get(index153));
RDebugUtils.currentLine=3408039;
 //BA.debugLineNum = 3408039;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=3408040;
 //BA.debugLineNum = 3408040;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=3408041;
 //BA.debugLineNum = 3408041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408043;
 //BA.debugLineNum = 3408043;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=3408044;
 //BA.debugLineNum = 3408044;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408045;
 //BA.debugLineNum = 3408045;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408046;
 //BA.debugLineNum = 3408046;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408047;
 //BA.debugLineNum = 3408047;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408048;
 //BA.debugLineNum = 3408048;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408049;
 //BA.debugLineNum = 3408049;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408050;
 //BA.debugLineNum = 3408050;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408051;
 //BA.debugLineNum = 3408051;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=3408056;
 //BA.debugLineNum = 3408056;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408057;
 //BA.debugLineNum = 3408057;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408058;
 //BA.debugLineNum = 3408058;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_cliente_promos"))) { 
RDebugUtils.currentLine=3408059;
 //BA.debugLineNum = 3408059;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group173 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen173 = group173.getSize()
;int index173 = 0;
;
for (; index173 < groupLen173;index173++){
_records = (Object[])(group173.Get(index173));
RDebugUtils.currentLine=3408060;
 //BA.debugLineNum = 3408060;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=3408061;
 //BA.debugLineNum = 3408061;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=3408062;
 //BA.debugLineNum = 3408062;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=3408063;
 //BA.debugLineNum = 3408063;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408065;
 //BA.debugLineNum = 3408065;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=3408069;
 //BA.debugLineNum = 3408069;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408070;
 //BA.debugLineNum = 3408070;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408071;
 //BA.debugLineNum = 3408071;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_MARCAS_CUOTAS"))) { 
RDebugUtils.currentLine=3408072;
 //BA.debugLineNum = 3408072;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group185 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen185 = group185.getSize()
;int index185 = 0;
;
for (; index185 < groupLen185;index185++){
_records = (Object[])(group185.Get(index185));
RDebugUtils.currentLine=3408073;
 //BA.debugLineNum = 3408073;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=3408074;
 //BA.debugLineNum = 3408074;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=3408075;
 //BA.debugLineNum = 3408075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408077;
 //BA.debugLineNum = 3408077;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=3408081;
 //BA.debugLineNum = 3408081;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408082;
 //BA.debugLineNum = 3408082;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408083;
 //BA.debugLineNum = 3408083;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_comp_promos"))) { 
RDebugUtils.currentLine=3408084;
 //BA.debugLineNum = 3408084;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group196 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen196 = group196.getSize()
;int index196 = 0;
;
for (; index196 < groupLen196;index196++){
_records = (Object[])(group196.Get(index196));
RDebugUtils.currentLine=3408085;
 //BA.debugLineNum = 3408085;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=3408086;
 //BA.debugLineNum = 3408086;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=3408087;
 //BA.debugLineNum = 3408087;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=3408088;
 //BA.debugLineNum = 3408088;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=3408089;
 //BA.debugLineNum = 3408089;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408091;
 //BA.debugLineNum = 3408091;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408092;
 //BA.debugLineNum = 3408092;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408093;
 //BA.debugLineNum = 3408093;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408094;
 //BA.debugLineNum = 3408094;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408095;
 //BA.debugLineNum = 3408095;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408096;
 //BA.debugLineNum = 3408096;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408097;
 //BA.debugLineNum = 3408097;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408098;
 //BA.debugLineNum = 3408098;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=3408103;
 //BA.debugLineNum = 3408103;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408104;
 //BA.debugLineNum = 3408104;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408105;
 //BA.debugLineNum = 3408105;BA.debugLine="If RESULT.Tag = \"cat_verificacion\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("cat_verificacion"))) { 
RDebugUtils.currentLine=3408106;
 //BA.debugLineNum = 3408106;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group217 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen217 = group217.getSize()
;int index217 = 0;
;
for (; index217 < groupLen217;index217++){
_records = (Object[])(group217.Get(index217));
RDebugUtils.currentLine=3408107;
 //BA.debugLineNum = 3408107;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=3408108;
 //BA.debugLineNum = 3408108;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=3408109;
 //BA.debugLineNum = 3408109;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=3408110;
 //BA.debugLineNum = 3408110;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408115;
 //BA.debugLineNum = 3408115;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408116;
 //BA.debugLineNum = 3408116;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408117;
 //BA.debugLineNum = 3408117;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("marcas_rutas"))) { 
RDebugUtils.currentLine=3408118;
 //BA.debugLineNum = 3408118;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group228 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen228 = group228.getSize()
;int index228 = 0;
;
for (; index228 < groupLen228;index228++){
_records = (Object[])(group228.Get(index228));
RDebugUtils.currentLine=3408119;
 //BA.debugLineNum = 3408119;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=3408120;
 //BA.debugLineNum = 3408120;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=3408121;
 //BA.debugLineNum = 3408121;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408127;
 //BA.debugLineNum = 3408127;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408128;
 //BA.debugLineNum = 3408128;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408129;
 //BA.debugLineNum = 3408129;BA.debugLine="If RESULT.Tag = \"CUOTAS\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUOTAS"))) { 
RDebugUtils.currentLine=3408130;
 //BA.debugLineNum = 3408130;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group238 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen238 = group238.getSize()
;int index238 = 0;
;
for (; index238 < groupLen238;index238++){
_records = (Object[])(group238.Get(index238));
RDebugUtils.currentLine=3408131;
 //BA.debugLineNum = 3408131;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=3408132;
 //BA.debugLineNum = 3408132;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=3408133;
 //BA.debugLineNum = 3408133;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=3408134;
 //BA.debugLineNum = 3408134;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=3408135;
 //BA.debugLineNum = 3408135;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=3408136;
 //BA.debugLineNum = 3408136;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=3408137;
 //BA.debugLineNum = 3408137;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=3408138;
 //BA.debugLineNum = 3408138;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=3408139;
 //BA.debugLineNum = 3408139;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=3408140;
 //BA.debugLineNum = 3408140;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=3408141;
 //BA.debugLineNum = 3408141;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=3408142;
 //BA.debugLineNum = 3408142;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=3408143;
 //BA.debugLineNum = 3408143;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=3408144;
 //BA.debugLineNum = 3408144;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408151;
 //BA.debugLineNum = 3408151;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408152;
 //BA.debugLineNum = 3408152;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408153;
 //BA.debugLineNum = 3408153;BA.debugLine="If RESULT.Tag = \"COMISIONES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("COMISIONES"))) { 
RDebugUtils.currentLine=3408154;
 //BA.debugLineNum = 3408154;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group259 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen259 = group259.getSize()
;int index259 = 0;
;
for (; index259 < groupLen259;index259++){
_records = (Object[])(group259.Get(index259));
RDebugUtils.currentLine=3408155;
 //BA.debugLineNum = 3408155;BA.debugLine="Dim HCM_TOTAL_V As String = records(RESULT.Co";
_hcm_total_v = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_V"))))]);
RDebugUtils.currentLine=3408156;
 //BA.debugLineNum = 3408156;BA.debugLine="Dim HCM_TOTAL_VIVE As String = records(RESULT";
_hcm_total_vive = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_VIVE"))))]);
RDebugUtils.currentLine=3408157;
 //BA.debugLineNum = 3408157;BA.debugLine="Dim HCM_TOTAL_GUNA As String = records(RESULT";
_hcm_total_guna = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_GUNA"))))]);
RDebugUtils.currentLine=3408158;
 //BA.debugLineNum = 3408158;BA.debugLine="Dim HCM_TOTAL_BEB As String = records(RESULT.";
_hcm_total_beb = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_BEB"))))]);
RDebugUtils.currentLine=3408159;
 //BA.debugLineNum = 3408159;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_COMISIONES_MOVIL (HCM_TOTAL_V , HCM_TOTAL_VIVE , HCM_TOTAL_GUNA ,	HCM_TOTAL_BEB) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hcm_total_v),(Object)(_hcm_total_vive),(Object)(_hcm_total_guna),(Object)(_hcm_total_beb)}));
 }
};
 };
 };
RDebugUtils.currentLine=3408164;
 //BA.debugLineNum = 3408164;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408165;
 //BA.debugLineNum = 3408165;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408166;
 //BA.debugLineNum = 3408166;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=3408167;
 //BA.debugLineNum = 3408167;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=3408168;
 //BA.debugLineNum = 3408168;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group272 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen272 = group272.getSize()
;int index272 = 0;
;
for (; index272 < groupLen272;index272++){
_records = (Object[])(group272.Get(index272));
RDebugUtils.currentLine=3408169;
 //BA.debugLineNum = 3408169;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=3408170;
 //BA.debugLineNum = 3408170;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=3408171;
 //BA.debugLineNum = 3408171;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=3408172;
 //BA.debugLineNum = 3408172;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=3408173;
 //BA.debugLineNum = 3408173;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=3408174;
 //BA.debugLineNum = 3408174;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=3408175;
 //BA.debugLineNum = 3408175;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=3408176;
 //BA.debugLineNum = 3408176;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=3408177;
 //BA.debugLineNum = 3408177;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=3408178;
 //BA.debugLineNum = 3408178;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=3408179;
 //BA.debugLineNum = 3408179;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=3408181;
 //BA.debugLineNum = 3408181;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=3408182;
 //BA.debugLineNum = 3408182;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(RESULT";
_cat_gp_iniciativa = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_INICIATIVA"))))]));
RDebugUtils.currentLine=3408185;
 //BA.debugLineNum = 3408185;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=3408188;
 //BA.debugLineNum = 3408188;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_GP_TIPOPROD2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_gp_tipoprod2)}));
 }
};
RDebugUtils.currentLine=3408190;
 //BA.debugLineNum = 3408190;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQUERY(\"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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE <> 0")));
RDebugUtils.currentLine=3408191;
 //BA.debugLineNum = 3408191;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3408193;
 //BA.debugLineNum = 3408193;BA.debugLine="cuantos_pedidosc = c.GetString(\"CUANTOS\")";
__ref._cuantos_pedidosc /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=3408194;
 //BA.debugLineNum = 3408194;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3408195;
 //BA.debugLineNum = 3408195;BA.debugLine="If cuantos_pedidosc > 0 Then";
if ((double)(Double.parseDouble(__ref._cuantos_pedidosc /*String*/ ))>0) { 
RDebugUtils.currentLine=3408196;
 //BA.debugLineNum = 3408196;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_PROID, SUM(PE_CANT) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTE <> 0 GROUP BY PE_PROID")));
RDebugUtils.currentLine=3408197;
 //BA.debugLineNum = 3408197;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3408198;
 //BA.debugLineNum = 3408198;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step296 = 1;
final int limit296 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit296 ;_i = _i + step296 ) {
RDebugUtils.currentLine=3408199;
 //BA.debugLineNum = 3408199;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3408200;
 //BA.debugLineNum = 3408200;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"updat";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update CAT_GUNAPROD set CAT_GP_ALMACEN = CAT_GP_ALMACEN - ? where CAT_GP_ID = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"))}));
 }
};
 };
 };
RDebugUtils.currentLine=3408205;
 //BA.debugLineNum = 3408205;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408206;
 //BA.debugLineNum = 3408206;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408207;
 //BA.debugLineNum = 3408207;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408208;
 //BA.debugLineNum = 3408208;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408209;
 //BA.debugLineNum = 3408209;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408210;
 //BA.debugLineNum = 3408210;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408211;
 //BA.debugLineNum = 3408211;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408212;
 //BA.debugLineNum = 3408212;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408213;
 //BA.debugLineNum = 3408213;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3408215;
 //BA.debugLineNum = 3408215;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=3408216;
 //BA.debugLineNum = 3408216;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=3408217;
 //BA.debugLineNum = 3408217;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408218;
 //BA.debugLineNum = 3408218;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408219;
 //BA.debugLineNum = 3408219;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3408224;
 //BA.debugLineNum = 3408224;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408225;
 //BA.debugLineNum = 3408225;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408226;
 //BA.debugLineNum = 3408226;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=3408227;
 //BA.debugLineNum = 3408227;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group323 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen323 = group323.getSize()
;int index323 = 0;
;
for (; index323 < groupLen323;index323++){
_records = (Object[])(group323.Get(index323));
RDebugUtils.currentLine=3408228;
 //BA.debugLineNum = 3408228;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=3408229;
 //BA.debugLineNum = 3408229;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=3408230;
 //BA.debugLineNum = 3408230;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=3408231;
 //BA.debugLineNum = 3408231;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=3408232;
 //BA.debugLineNum = 3408232;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=3408233;
 //BA.debugLineNum = 3408233;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=3408234;
 //BA.debugLineNum = 3408234;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=3408235;
 //BA.debugLineNum = 3408235;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=3408236;
 //BA.debugLineNum = 3408236;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=3408237;
 //BA.debugLineNum = 3408237;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=3408238;
 //BA.debugLineNum = 3408238;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=3408239;
 //BA.debugLineNum = 3408239;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=3408240;
 //BA.debugLineNum = 3408240;BA.debugLine="CAT_GP_TIPOPROD = \"5\"";
_cat_gp_tipoprod = (int)(Double.parseDouble("5"));
RDebugUtils.currentLine=3408241;
 //BA.debugLineNum = 3408241;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then";
if ((_cat_gp_id).equals("PAQUNI003")) { 
RDebugUtils.currentLine=3408242;
 //BA.debugLineNum = 3408242;BA.debugLine="CAT_GP_ALMACEN = 60";
_cat_gp_almacen = (int) (60);
 };
RDebugUtils.currentLine=3408244;
 //BA.debugLineNum = 3408244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
 }
};
RDebugUtils.currentLine=3408246;
 //BA.debugLineNum = 3408246;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408247;
 //BA.debugLineNum = 3408247;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408248;
 //BA.debugLineNum = 3408248;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408249;
 //BA.debugLineNum = 3408249;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408250;
 //BA.debugLineNum = 3408250;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408251;
 //BA.debugLineNum = 3408251;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408252;
 //BA.debugLineNum = 3408252;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408253;
 //BA.debugLineNum = 3408253;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3408255;
 //BA.debugLineNum = 3408255;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=3408256;
 //BA.debugLineNum = 3408256;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408257;
 //BA.debugLineNum = 3408257;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=3408258;
 //BA.debugLineNum = 3408258;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408259;
 //BA.debugLineNum = 3408259;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408260;
 //BA.debugLineNum = 3408260;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3408261;
 //BA.debugLineNum = 3408261;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=3408262;
 //BA.debugLineNum = 3408262;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408263;
 //BA.debugLineNum = 3408263;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408264;
 //BA.debugLineNum = 3408264;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3408269;
 //BA.debugLineNum = 3408269;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408270;
 //BA.debugLineNum = 3408270;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408271;
 //BA.debugLineNum = 3408271;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodps"))) { 
RDebugUtils.currentLine=3408272;
 //BA.debugLineNum = 3408272;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group367 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen367 = group367.getSize()
;int index367 = 0;
;
for (; index367 < groupLen367;index367++){
_records = (Object[])(group367.Get(index367));
RDebugUtils.currentLine=3408274;
 //BA.debugLineNum = 3408274;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=3408275;
 //BA.debugLineNum = 3408275;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=3408276;
 //BA.debugLineNum = 3408276;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=3408277;
 //BA.debugLineNum = 3408277;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=3408278;
 //BA.debugLineNum = 3408278;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=3408279;
 //BA.debugLineNum = 3408279;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=3408280;
 //BA.debugLineNum = 3408280;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=3408281;
 //BA.debugLineNum = 3408281;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=3408282;
 //BA.debugLineNum = 3408282;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=3408283;
 //BA.debugLineNum = 3408283;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=3408284;
 //BA.debugLineNum = 3408284;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=3408285;
 //BA.debugLineNum = 3408285;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=3408287;
 //BA.debugLineNum = 3408287;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
 }
};
RDebugUtils.currentLine=3408289;
 //BA.debugLineNum = 3408289;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408290;
 //BA.debugLineNum = 3408290;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408291;
 //BA.debugLineNum = 3408291;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=3408292;
 //BA.debugLineNum = 3408292;BA.debugLine="Log(\"C4\")";
__c.LogImpl("33408292","C4",0);
 }else 
{RDebugUtils.currentLine=3408293;
 //BA.debugLineNum = 3408293;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408294;
 //BA.debugLineNum = 3408294;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408295;
 //BA.debugLineNum = 3408295;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408296;
 //BA.debugLineNum = 3408296;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408297;
 //BA.debugLineNum = 3408297;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3408298;
 //BA.debugLineNum = 3408298;BA.debugLine="Log(\"3\")";
__c.LogImpl("33408298","3",0);
 }}}
;
RDebugUtils.currentLine=3408300;
 //BA.debugLineNum = 3408300;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=3408302;
 //BA.debugLineNum = 3408302;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408303;
 //BA.debugLineNum = 3408303;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=3408304;
 //BA.debugLineNum = 3408304;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408305;
 //BA.debugLineNum = 3408305;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408306;
 //BA.debugLineNum = 3408306;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3408307;
 //BA.debugLineNum = 3408307;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=3408308;
 //BA.debugLineNum = 3408308;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408309;
 //BA.debugLineNum = 3408309;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408310;
 //BA.debugLineNum = 3408310;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3408315;
 //BA.debugLineNum = 3408315;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408316;
 //BA.debugLineNum = 3408316;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408317;
 //BA.debugLineNum = 3408317;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=3408318;
 //BA.debugLineNum = 3408318;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group409 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen409 = group409.getSize()
;int index409 = 0;
;
for (; index409 < groupLen409;index409++){
_records = (Object[])(group409.Get(index409));
RDebugUtils.currentLine=3408319;
 //BA.debugLineNum = 3408319;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=3408320;
 //BA.debugLineNum = 3408320;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=3408321;
 //BA.debugLineNum = 3408321;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=3408322;
 //BA.debugLineNum = 3408322;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=3408323;
 //BA.debugLineNum = 3408323;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=3408324;
 //BA.debugLineNum = 3408324;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=3408325;
 //BA.debugLineNum = 3408325;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=3408326;
 //BA.debugLineNum = 3408326;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=3408327;
 //BA.debugLineNum = 3408327;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=3408328;
 //BA.debugLineNum = 3408328;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=3408329;
 //BA.debugLineNum = 3408329;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=3408330;
 //BA.debugLineNum = 3408330;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408332;
 //BA.debugLineNum = 3408332;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408333;
 //BA.debugLineNum = 3408333;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408334;
 //BA.debugLineNum = 3408334;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408335;
 //BA.debugLineNum = 3408335;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408336;
 //BA.debugLineNum = 3408336;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408337;
 //BA.debugLineNum = 3408337;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408338;
 //BA.debugLineNum = 3408338;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408339;
 //BA.debugLineNum = 3408339;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3408341;
 //BA.debugLineNum = 3408341;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408342;
 //BA.debugLineNum = 3408342;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=3408343;
 //BA.debugLineNum = 3408343;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408344;
 //BA.debugLineNum = 3408344;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408345;
 //BA.debugLineNum = 3408345;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3408346;
 //BA.debugLineNum = 3408346;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=3408347;
 //BA.debugLineNum = 3408347;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408348;
 //BA.debugLineNum = 3408348;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408349;
 //BA.debugLineNum = 3408349;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3408355;
 //BA.debugLineNum = 3408355;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408356;
 //BA.debugLineNum = 3408356;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408357;
 //BA.debugLineNum = 3408357;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=3408358;
 //BA.debugLineNum = 3408358;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group447 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen447 = group447.getSize()
;int index447 = 0;
;
for (; index447 < groupLen447;index447++){
_records = (Object[])(group447.Get(index447));
RDebugUtils.currentLine=3408359;
 //BA.debugLineNum = 3408359;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=3408360;
 //BA.debugLineNum = 3408360;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=3408361;
 //BA.debugLineNum = 3408361;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=3408362;
 //BA.debugLineNum = 3408362;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=3408363;
 //BA.debugLineNum = 3408363;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408365;
 //BA.debugLineNum = 3408365;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3408366;
 //BA.debugLineNum = 3408366;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3408367;
 //BA.debugLineNum = 3408367;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3408368;
 //BA.debugLineNum = 3408368;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3408369;
 //BA.debugLineNum = 3408369;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3408370;
 //BA.debugLineNum = 3408370;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3408371;
 //BA.debugLineNum = 3408371;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3408372;
 //BA.debugLineNum = 3408372;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408373;
 //BA.debugLineNum = 3408373;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3408375;
 //BA.debugLineNum = 3408375;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=3408376;
 //BA.debugLineNum = 3408376;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=3408377;
 //BA.debugLineNum = 3408377;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
RDebugUtils.currentLine=3408378;
 //BA.debugLineNum = 3408378;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408379;
 //BA.debugLineNum = 3408379;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3408384;
 //BA.debugLineNum = 3408384;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408385;
 //BA.debugLineNum = 3408385;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408386;
 //BA.debugLineNum = 3408386;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=3408387;
 //BA.debugLineNum = 3408387;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group475 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen475 = group475.getSize()
;int index475 = 0;
;
for (; index475 < groupLen475;index475++){
_records = (Object[])(group475.Get(index475));
RDebugUtils.currentLine=3408388;
 //BA.debugLineNum = 3408388;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=3408389;
 //BA.debugLineNum = 3408389;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=3408390;
 //BA.debugLineNum = 3408390;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408395;
 //BA.debugLineNum = 3408395;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408396;
 //BA.debugLineNum = 3408396;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408397;
 //BA.debugLineNum = 3408397;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUESTIONARIO"))) { 
RDebugUtils.currentLine=3408398;
 //BA.debugLineNum = 3408398;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group485 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen485 = group485.getSize()
;int index485 = 0;
;
for (; index485 < groupLen485;index485++){
_records = (Object[])(group485.Get(index485));
RDebugUtils.currentLine=3408399;
 //BA.debugLineNum = 3408399;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=3408400;
 //BA.debugLineNum = 3408400;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408401;
 //BA.debugLineNum = 3408401;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408406;
 //BA.debugLineNum = 3408406;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408407;
 //BA.debugLineNum = 3408407;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408408;
 //BA.debugLineNum = 3408408;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=3408409;
 //BA.debugLineNum = 3408409;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group495 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen495 = group495.getSize()
;int index495 = 0;
;
for (; index495 < groupLen495;index495++){
_records = (Object[])(group495.Get(index495));
RDebugUtils.currentLine=3408411;
 //BA.debugLineNum = 3408411;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=3408413;
 //BA.debugLineNum = 3408413;BA.debugLine="If cuantos_pedido < = CUANTOSP Then";
if ((double)(Double.parseDouble(__ref._cuantos_pedido /*String*/ ))<=_cuantosp) { 
RDebugUtils.currentLine=3408415;
 //BA.debugLineNum = 3408415;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
RDebugUtils.currentLine=3408416;
 //BA.debugLineNum = 3408416;BA.debugLine="S_CP.Text = \"INFO OK\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("INFO OK"));
 }else {
RDebugUtils.currentLine=3408418;
 //BA.debugLineNum = 3408418;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=3408419;
 //BA.debugLineNum = 3408419;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=3408420;
 //BA.debugLineNum = 3408420;BA.debugLine="Log(\"No se cargo bien la info P. Sync Nuevam";
__c.LogImpl("33408420","No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+__ref._cuantos_pedido /*String*/ ,0);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3408428;
 //BA.debugLineNum = 3408428;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408429;
 //BA.debugLineNum = 3408429;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408430;
 //BA.debugLineNum = 3408430;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=3408431;
 //BA.debugLineNum = 3408431;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group511 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen511 = group511.getSize()
;int index511 = 0;
;
for (; index511 < groupLen511;index511++){
_records = (Object[])(group511.Get(index511));
RDebugUtils.currentLine=3408433;
 //BA.debugLineNum = 3408433;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=3408435;
 //BA.debugLineNum = 3408435;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=3408437;
 //BA.debugLineNum = 3408437;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=3408439;
 //BA.debugLineNum = 3408439;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=3408440;
 //BA.debugLineNum = 3408440;BA.debugLine="Log(\"No se cargo bien la info C. Sync Nuevam";
__c.LogImpl("33408440","No se cargo bien la info C. Sync Nuevamente "+BA.NumberToString(_cuantosc)+" "+__ref._cuantos_pedidosc /*String*/ ,0);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3408446;
 //BA.debugLineNum = 3408446;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408447;
 //BA.debugLineNum = 3408447;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408448;
 //BA.debugLineNum = 3408448;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=3408449;
 //BA.debugLineNum = 3408449;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group525 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen525 = group525.getSize()
;int index525 = 0;
;
for (; index525 < groupLen525;index525++){
_records = (Object[])(group525.Get(index525));
RDebugUtils.currentLine=3408450;
 //BA.debugLineNum = 3408450;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=3408451;
 //BA.debugLineNum = 3408451;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=3408453;
 //BA.debugLineNum = 3408453;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=3408455;
 //BA.debugLineNum = 3408455;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=3408456;
 //BA.debugLineNum = 3408456;BA.debugLine="Log(\"No se cargo bien la info N. Sync Nuevam";
__c.LogImpl("33408456","No se cargo bien la info N. Sync Nuevamente "+BA.NumberToString(_cuantosn)+" "+__ref._cuantos_noventa /*String*/ ,0);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3408462;
 //BA.debugLineNum = 3408462;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408463;
 //BA.debugLineNum = 3408463;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408464;
 //BA.debugLineNum = 3408464;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedido"))) { 
RDebugUtils.currentLine=3408465;
 //BA.debugLineNum = 3408465;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group539 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen539 = group539.getSize()
;int index539 = 0;
;
for (; index539 < groupLen539;index539++){
_records = (Object[])(group539.Get(index539));
RDebugUtils.currentLine=3408466;
 //BA.debugLineNum = 3408466;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=3408467;
 //BA.debugLineNum = 3408467;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SUBIENDO"));
 }
};
RDebugUtils.currentLine=3408469;
 //BA.debugLineNum = 3408469;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3408470;
 //BA.debugLineNum = 3408470;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3408471;
 //BA.debugLineNum = 3408471;BA.debugLine="Log(\"5\")";
__c.LogImpl("33408471","5",0);
 };
 };
RDebugUtils.currentLine=3408475;
 //BA.debugLineNum = 3408475;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408476;
 //BA.debugLineNum = 3408476;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408477;
 //BA.debugLineNum = 3408477;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=3408478;
 //BA.debugLineNum = 3408478;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group551 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen551 = group551.getSize()
;int index551 = 0;
;
for (; index551 < groupLen551;index551++){
_records = (Object[])(group551.Get(index551));
RDebugUtils.currentLine=3408479;
 //BA.debugLineNum = 3408479;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=3408480;
 //BA.debugLineNum = 3408480;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=3408481;
 //BA.debugLineNum = 3408481;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408486;
 //BA.debugLineNum = 3408486;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408487;
 //BA.debugLineNum = 3408487;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408488;
 //BA.debugLineNum = 3408488;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=3408489;
 //BA.debugLineNum = 3408489;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group561 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen561 = group561.getSize()
;int index561 = 0;
;
for (; index561 < groupLen561;index561++){
_records = (Object[])(group561.Get(index561));
RDebugUtils.currentLine=3408490;
 //BA.debugLineNum = 3408490;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=3408495;
 //BA.debugLineNum = 3408495;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408496;
 //BA.debugLineNum = 3408496;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408497;
 //BA.debugLineNum = 3408497;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=3408498;
 //BA.debugLineNum = 3408498;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group569 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen569 = group569.getSize()
;int index569 = 0;
;
for (; index569 < groupLen569;index569++){
_records = (Object[])(group569.Get(index569));
RDebugUtils.currentLine=3408499;
 //BA.debugLineNum = 3408499;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=3408500;
 //BA.debugLineNum = 3408500;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=3408501;
 //BA.debugLineNum = 3408501;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3408502;
 //BA.debugLineNum = 3408502;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3408503;
 //BA.debugLineNum = 3408503;BA.debugLine="inv.Visible = True";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3408504;
 //BA.debugLineNum = 3408504;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408505;
 //BA.debugLineNum = 3408505;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=3408506;
 //BA.debugLineNum = 3408506;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=3408509;
 //BA.debugLineNum = 3408509;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408510;
 //BA.debugLineNum = 3408510;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408511;
 //BA.debugLineNum = 3408511;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408512;
 //BA.debugLineNum = 3408512;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408513;
 //BA.debugLineNum = 3408513;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Ruta invalida."),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3408519;
 //BA.debugLineNum = 3408519;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408520;
 //BA.debugLineNum = 3408520;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408521;
 //BA.debugLineNum = 3408521;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=3408522;
 //BA.debugLineNum = 3408522;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group592 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen592 = group592.getSize()
;int index592 = 0;
;
for (; index592 < groupLen592;index592++){
_records = (Object[])(group592.Get(index592));
RDebugUtils.currentLine=3408523;
 //BA.debugLineNum = 3408523;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=3408525;
 //BA.debugLineNum = 3408525;BA.debugLine="If name2 = \"OK\" Then";
if ((_name2).equals("OK")) { 
RDebugUtils.currentLine=3408526;
 //BA.debugLineNum = 3408526;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
 };
RDebugUtils.currentLine=3408528;
 //BA.debugLineNum = 3408528;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3408529;
 //BA.debugLineNum = 3408529;BA.debugLine="p_mandaInfo.Visible = False";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=3408533;
 //BA.debugLineNum = 3408533;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408534;
 //BA.debugLineNum = 3408534;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408535;
 //BA.debugLineNum = 3408535;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
RDebugUtils.currentLine=3408536;
 //BA.debugLineNum = 3408536;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group605 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen605 = group605.getSize()
;int index605 = 0;
;
for (; index605 < groupLen605;index605++){
_records = (Object[])(group605.Get(index605));
RDebugUtils.currentLine=3408537;
 //BA.debugLineNum = 3408537;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=3408538;
 //BA.debugLineNum = 3408538;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408539;
 //BA.debugLineNum = 3408539;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3408544;
 //BA.debugLineNum = 3408544;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408545;
 //BA.debugLineNum = 3408545;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408546;
 //BA.debugLineNum = 3408546;BA.debugLine="If RESULT.Tag = \"folio\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("folio"))) { 
RDebugUtils.currentLine=3408547;
 //BA.debugLineNum = 3408547;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group615 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen615 = group615.getSize()
;int index615 = 0;
;
for (; index615 < groupLen615;index615++){
_records = (Object[])(group615.Get(index615));
RDebugUtils.currentLine=3408548;
 //BA.debugLineNum = 3408548;BA.debugLine="Dim FOLIO As String = records(RESULT.Columns.";
_folio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FOLIO"))))]);
RDebugUtils.currentLine=3408549;
 //BA.debugLineNum = 3408549;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FOLIO")}));
RDebugUtils.currentLine=3408550;
 //BA.debugLineNum = 3408550;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.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)("FOLIO"),(Object)(_folio)}));
 }
};
 };
 };
RDebugUtils.currentLine=3408555;
 //BA.debugLineNum = 3408555;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3408556;
 //BA.debugLineNum = 3408556;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._handlejob /*keymon.lat.medicomed.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3408557;
 //BA.debugLineNum = 3408557;BA.debugLine="If RESULT.Tag = \"hist_avance\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_avance"))) { 
RDebugUtils.currentLine=3408558;
 //BA.debugLineNum = 3408558;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group625 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen625 = group625.getSize()
;int index625 = 0;
;
for (; index625 < groupLen625;index625++){
_records = (Object[])(group625.Get(index625));
RDebugUtils.currentLine=3408559;
 //BA.debugLineNum = 3408559;BA.debugLine="Dim marca As String = records(RESULT.Columns.";
_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_AM_MARCA"))))]);
RDebugUtils.currentLine=3408560;
 //BA.debugLineNum = 3408560;BA.debugLine="Dim avance As String = records(RESULT.Columns";
_avance = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_AM_AVANCE"))))]);
RDebugUtils.currentLine=3408561;
 //BA.debugLineNum = 3408561;BA.debugLine="Dim objetivo As String = records(RESULT.Colum";
_objetivo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_AM_OBJETIVO"))))]);
RDebugUtils.currentLine=3408562;
 //BA.debugLineNum = 3408562;BA.debugLine="Dim porcentaje1 As String = records(RESULT.Co";
_porcentaje1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HIST_AM_PORCENTAJE"))))]);
RDebugUtils.currentLine=3408563;
 //BA.debugLineNum = 3408563;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_AVANCE(HA_MARCA, HA_AVANCE, HA_OBJETIVO, HA_PORCENTAJE) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_marca),(Object)(_avance),(Object)(_objetivo),(Object)(_porcentaje1)}));
 }
};
 };
 };
 };
RDebugUtils.currentLine=3408569;
 //BA.debugLineNum = 3408569;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
RDebugUtils.currentLine=3408570;
 //BA.debugLineNum = 3408570;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click(keymon.lat.medicomed.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nuevo_click", false))
	 {return ((String) Debug.delegate(ba, "nuevo_click", null));}
RDebugUtils.currentLine=3997696;
 //BA.debugLineNum = 3997696;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=3997697;
 //BA.debugLineNum = 3997697;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=3997698;
 //BA.debugLineNum = 3997698;BA.debugLine="End Sub";
return "";
}
public String  _nvo_cliente_click(keymon.lat.medicomed.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nvo_cliente_click", false))
	 {return ((String) Debug.delegate(ba, "nvo_cliente_click", null));}
RDebugUtils.currentLine=4456448;
 //BA.debugLineNum = 4456448;BA.debugLine="Sub nvo_cliente_Click";
RDebugUtils.currentLine=4456449;
 //BA.debugLineNum = 4456449;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=4456450;
 //BA.debugLineNum = 4456450;BA.debugLine="End Sub";
return "";
}
public String  _p_mandainfo_click(keymon.lat.medicomed.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=5111808;
 //BA.debugLineNum = 5111808;BA.debugLine="Private Sub p_mandaInfo_Click";
RDebugUtils.currentLine=5111810;
 //BA.debugLineNum = 5111810;BA.debugLine="End Sub";
return "";
}
public String  _p_resumen_click(keymon.lat.medicomed.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=4194304;
 //BA.debugLineNum = 4194304;BA.debugLine="Sub P_RESUMEN_click";
RDebugUtils.currentLine=4194306;
 //BA.debugLineNum = 4194306;BA.debugLine="End Sub";
return "";
}
public String  _resdia_click(keymon.lat.medicomed.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=4325376;
 //BA.debugLineNum = 4325376;BA.debugLine="Sub resdia_Click";
RDebugUtils.currentLine=4325377;
 //BA.debugLineNum = 4325377;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325378;
 //BA.debugLineNum = 4325378;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325379;
 //BA.debugLineNum = 4325379;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4325380;
 //BA.debugLineNum = 4325380;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("RESDIA",ba);
RDebugUtils.currentLine=4325381;
 //BA.debugLineNum = 4325381;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=4325382;
 //BA.debugLineNum = 4325382;BA.debugLine="Panel4.Visible = True";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4325384;
 //BA.debugLineNum = 4325384;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325385;
 //BA.debugLineNum = 4325385;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325386;
 //BA.debugLineNum = 4325386;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325387;
 //BA.debugLineNum = 4325387;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325388;
 //BA.debugLineNum = 4325388;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325389;
 //BA.debugLineNum = 4325389;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325391;
 //BA.debugLineNum = 4325391;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS FROM HIST_ENCUESTA WHERE  HE_TIPO = ?",new String[]{"TELEFONO"})));
RDebugUtils.currentLine=4325392;
 //BA.debugLineNum = 4325392;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325393;
 //BA.debugLineNum = 4325393;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=4325394;
 //BA.debugLineNum = 4325394;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325396;
 //BA.debugLineNum = 4325396;BA.debugLine="L_MARCAS.CLEAR";
__ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=4325397;
 //BA.debugLineNum = 4325397;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 /*keymon.lat.medicomed.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=4325398;
 //BA.debugLineNum = 4325398;BA.debugLine="If D.RowCount>0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4325399;
 //BA.debugLineNum = 4325399;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=4325400;
 //BA.debugLineNum = 4325400;BA.debugLine="D.Position=i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=4325401;
 //BA.debugLineNum = 4325401;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 /*keymon.lat.medicomed.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=4325402;
 //BA.debugLineNum = 4325402;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325403;
 //BA.debugLineNum = 4325403;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4325404;
 //BA.debugLineNum = 4325404;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label";
_label1 = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=4325405;
 //BA.debugLineNum = 4325405;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=4325406;
 //BA.debugLineNum = 4325406;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=4325407;
 //BA.debugLineNum = 4325407;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4325408;
 //BA.debugLineNum = 4325408;BA.debugLine="label2 = L_MARCAS.TwoLinesLayout.SecondLabel";
_label2 = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=4325409;
 //BA.debugLineNum = 4325409;BA.debugLine="label2.TextSize = 13";
_label2.setTextSize((float) (13));
RDebugUtils.currentLine=4325410;
 //BA.debugLineNum = 4325410;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=4325411;
 //BA.debugLineNum = 4325411;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=4325412;
 //BA.debugLineNum = 4325412;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
 };
RDebugUtils.currentLine=4325415;
 //BA.debugLineNum = 4325415;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325417;
 //BA.debugLineNum = 4325417;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 /*keymon.lat.medicomed.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=4325418;
 //BA.debugLineNum = 4325418;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325419;
 //BA.debugLineNum = 4325419;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=4325420;
 //BA.debugLineNum = 4325420;BA.debugLine="If l_monto_k.Text = \"null\" Then";
if ((__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4325421;
 //BA.debugLineNum = 4325421;BA.debugLine="l_monto_k.Text = \"0\"";
__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4325423;
 //BA.debugLineNum = 4325423;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325425;
 //BA.debugLineNum = 4325425;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 /*keymon.lat.medicomed.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=4325426;
 //BA.debugLineNum = 4325426;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325427;
 //BA.debugLineNum = 4325427;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=4325428;
 //BA.debugLineNum = 4325428;BA.debugLine="If l_monto_kp.Text = \"null\" Then";
if ((__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4325429;
 //BA.debugLineNum = 4325429;BA.debugLine="l_monto_kp.Text = \"0\"";
__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4325431;
 //BA.debugLineNum = 4325431;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325441;
 //BA.debugLineNum = 4325441;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 ")));
RDebugUtils.currentLine=4325442;
 //BA.debugLineNum = 4325442;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325443;
 //BA.debugLineNum = 4325443;BA.debugLine="l_monto_ks.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4325444;
 //BA.debugLineNum = 4325444;BA.debugLine="If l_monto_ks.Text = \"null\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4325445;
 //BA.debugLineNum = 4325445;BA.debugLine="l_monto_ks.Text = \"0\"";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4325447;
 //BA.debugLineNum = 4325447;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325448;
 //BA.debugLineNum = 4325448;BA.debugLine="Dim cuantos_obj As String";
_cuantos_obj = "";
RDebugUtils.currentLine=4325449;
 //BA.debugLineNum = 4325449;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=4325450;
 //BA.debugLineNum = 4325450;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325451;
 //BA.debugLineNum = 4325451;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")";
_cuantos_obj = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL");
RDebugUtils.currentLine=4325452;
 //BA.debugLineNum = 4325452;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325454;
 //BA.debugLineNum = 4325454;BA.debugLine="If cuantos_obj > 0 Then";
if ((double)(Double.parseDouble(_cuantos_obj))>0) { 
RDebugUtils.currentLine=4325455;
 //BA.debugLineNum = 4325455;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  SUM( HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=4325456;
 //BA.debugLineNum = 4325456;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325457;
 //BA.debugLineNum = 4325457;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=4325458;
 //BA.debugLineNum = 4325458;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=4325460;
 //BA.debugLineNum = 4325460;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=4325461;
 //BA.debugLineNum = 4325461;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=4325462;
 //BA.debugLineNum = 4325462;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=4325463;
 //BA.debugLineNum = 4325463;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=4325464;
 //BA.debugLineNum = 4325464;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=4325465;
 //BA.debugLineNum = 4325465;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=4325466;
 //BA.debugLineNum = 4325466;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=4325467;
 //BA.debugLineNum = 4325467;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=4325468;
 //BA.debugLineNum = 4325468;BA.debugLine="L_LIN_TICK.Text = LPT";
__ref._l_lin_tick /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._lpt /*String*/ ));
RDebugUtils.currentLine=4325469;
 //BA.debugLineNum = 4325469;BA.debugLine="If l_monto_ks.Text <> \"0\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=4325471;
 //BA.debugLineNum = 4325471;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 /*keymon.lat.medicomed.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=4325472;
 //BA.debugLineNum = 4325472;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325473;
 //BA.debugLineNum = 4325473;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=4325474;
 //BA.debugLineNum = 4325474;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325475;
 //BA.debugLineNum = 4325475;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 /*keymon.lat.medicomed.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=4325476;
 //BA.debugLineNum = 4325476;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325483;
 //BA.debugLineNum = 4325483;BA.debugLine="Log(\"|\"&d.GetString(\"MONTO_DIA\")&\"|\")";
__c.LogImpl("34325483","|"+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")+"|",0);
RDebugUtils.currentLine=4325485;
 //BA.debugLineNum = 4325485;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=4325486;
 //BA.debugLineNum = 4325486;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325488;
 //BA.debugLineNum = 4325488;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 /*keymon.lat.medicomed.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=4325489;
 //BA.debugLineNum = 4325489;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325490;
 //BA.debugLineNum = 4325490;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=4325491;
 //BA.debugLineNum = 4325491;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325493;
 //BA.debugLineNum = 4325493;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 /*keymon.lat.medicomed.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=4325494;
 //BA.debugLineNum = 4325494;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325495;
 //BA.debugLineNum = 4325495;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=4325496;
 //BA.debugLineNum = 4325496;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=4325498;
 //BA.debugLineNum = 4325498;BA.debugLine="L_PRIO.Text = \"0\"";
__ref._l_prio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=4325499;
 //BA.debugLineNum = 4325499;BA.debugLine="L_SECUND.Text = \"0\"";
__ref._l_secund /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=4325500;
 //BA.debugLineNum = 4325500;BA.debugLine="L_COMP.Text = \"0\"";
__ref._l_comp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4325503;
 //BA.debugLineNum = 4325503;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=4325504;
 //BA.debugLineNum = 4325504;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325505;
 //BA.debugLineNum = 4325505;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=4325506;
 //BA.debugLineNum = 4325506;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(pe_cant) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=4325507;
 //BA.debugLineNum = 4325507;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325508;
 //BA.debugLineNum = 4325508;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=4325509;
 //BA.debugLineNum = 4325509;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325510;
 //BA.debugLineNum = 4325510;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=4325512;
 //BA.debugLineNum = 4325512;BA.debugLine="L_CTE_PROMO.Text = 0";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4325513;
 //BA.debugLineNum = 4325513;BA.debugLine="L_REDEN_PROMO.Text = 0";
__ref._l_reden_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4325515;
 //BA.debugLineNum = 4325515;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325516;
 //BA.debugLineNum = 4325516;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO ")));
RDebugUtils.currentLine=4325517;
 //BA.debugLineNum = 4325517;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325518;
 //BA.debugLineNum = 4325518;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=4325519;
 //BA.debugLineNum = 4325519;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325521;
 //BA.debugLineNum = 4325521;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) as CUANTOS  from HIST_CUOTAS ")));
RDebugUtils.currentLine=4325522;
 //BA.debugLineNum = 4325522;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4325523;
 //BA.debugLineNum = 4325523;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=4325531;
 //BA.debugLineNum = 4325531;BA.debugLine="l_monto_c1.Text = 4000";
__ref._l_monto_c1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(4000));
RDebugUtils.currentLine=4325532;
 //BA.debugLineNum = 4325532;BA.debugLine="l_monto_c2.Text = 2000";
__ref._l_monto_c2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(2000));
RDebugUtils.currentLine=4325533;
 //BA.debugLineNum = 4325533;BA.debugLine="l_monto_c3.Text = 1000";
__ref._l_monto_c3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(1000));
 };
RDebugUtils.currentLine=4325535;
 //BA.debugLineNum = 4325535;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4325536;
 //BA.debugLineNum = 4325536;BA.debugLine="End Sub";
return "";
}
public String  _resumen_click(keymon.lat.medicomed.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=4128768;
 //BA.debugLineNum = 4128768;BA.debugLine="Sub Resumen_Click";
RDebugUtils.currentLine=4128769;
 //BA.debugLineNum = 4128769;BA.debugLine="P_RESUMEN.Visible = True";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4128777;
 //BA.debugLineNum = 4128777;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(keymon.lat.medicomed.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;
anywheresoftware.b4a.sql.SQL.ResultSetWrapper _h = null;
String _eventob = "";
String _clienteb = "";
String _finb = "";
String _nombrecliente = "";
String _eventov = "";
String _clientev = "";
String _nombreclientev = "";
RDebugUtils.currentLine=3276800;
 //BA.debugLineNum = 3276800;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=3276801;
 //BA.debugLineNum = 3276801;BA.debugLine="CARGA = \"SUBIR\"";
__ref._carga /*String*/  = "SUBIR";
RDebugUtils.currentLine=3276802;
 //BA.debugLineNum = 3276802;BA.debugLine="p_mandaInfo.Width = Root.Width";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3276803;
 //BA.debugLineNum = 3276803;BA.debugLine="p_mandaInfo.Height = Root.Height";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3276804;
 //BA.debugLineNum = 3276804;BA.debugLine="P1.Visible = True";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3276805;
 //BA.debugLineNum = 3276805;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=3276806;
 //BA.debugLineNum = 3276806;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=3276807;
 //BA.debugLineNum = 3276807;BA.debugLine="p_mandaInfo.Visible = True";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3276808;
 //BA.debugLineNum = 3276808;BA.debugLine="P1.BringToFront";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=3276809;
 //BA.debugLineNum = 3276809;BA.debugLine="p_mandaInfo.BringToFront";
__ref._p_mandainfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=3276811;
 //BA.debugLineNum = 3276811;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276812;
 //BA.debugLineNum = 3276812;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276813;
 //BA.debugLineNum = 3276813;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276814;
 //BA.debugLineNum = 3276814;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276815;
 //BA.debugLineNum = 3276815;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276816;
 //BA.debugLineNum = 3276816;BA.debugLine="L_P_1.Visible = False";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276817;
 //BA.debugLineNum = 3276817;BA.debugLine="S_CC.Visible = False";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276818;
 //BA.debugLineNum = 3276818;BA.debugLine="L_P_3.Visible = False";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276819;
 //BA.debugLineNum = 3276819;BA.debugLine="S_CH.Visible = False";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276820;
 //BA.debugLineNum = 3276820;BA.debugLine="PB1.Visible = False";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276821;
 //BA.debugLineNum = 3276821;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3276823;
 //BA.debugLineNum = 3276823;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=3276824;
 //BA.debugLineNum = 3276824;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=3276825;
 //BA.debugLineNum = 3276825;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3276826;
 //BA.debugLineNum = 3276826;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3276827;
 //BA.debugLineNum = 3276827;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3276828;
 //BA.debugLineNum = 3276828;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3276834;
 //BA.debugLineNum = 3276834;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3276836;
 //BA.debugLineNum = 3276836;BA.debugLine="If PASO =1 Then";
if ((__ref._paso /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3276837;
 //BA.debugLineNum = 3276837;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fro";
_b4xpages._mainpage /*keymon.lat.medicomed.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=3276838;
 //BA.debugLineNum = 3276838;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE not In (select PE_CLIENTE from pedido)");
RDebugUtils.currentLine=3276839;
 //BA.debugLineNum = 3276839;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3276840;
 //BA.debugLineNum = 3276840;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3276841;
 //BA.debugLineNum = 3276841;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3276842;
 //BA.debugLineNum = 3276842;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276843;
 //BA.debugLineNum = 3276843;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
RDebugUtils.currentLine=3276844;
 //BA.debugLineNum = 3276844;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276845;
 //BA.debugLineNum = 3276845;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=3276846;
 //BA.debugLineNum = 3276846;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276847;
 //BA.debugLineNum = 3276847;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276848;
 //BA.debugLineNum = 3276848;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276849;
 //BA.debugLineNum = 3276849;BA.debugLine="cmd.Name = \"UPDATE_MEDI_ACTUAL2_GPS\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "UPDATE_MEDI_ACTUAL2_GPS";
RDebugUtils.currentLine=3276850;
 //BA.debugLineNum = 3276850;BA.debugLine="cmd.Parameters = Array As Object(L_MONTOD.Text";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglat")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglon")),(Object)(__ref._batterystatus /*int[]*/ [(int) (0)]),(Object)(__ref._lpt /*String*/ ),(Object)(__ref._steyin /*String*/ ),(Object)(__ref._steyout /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3276851;
 //BA.debugLineNum = 3276851;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("update_gps"));
 }
};
 };
RDebugUtils.currentLine=3276854;
 //BA.debugLineNum = 3276854;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276857;
 //BA.debugLineNum = 3276857;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CL";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT, PC_COSTO_SIN, PC_RUTA, PC_ALMACEN, PC_FACTURA FROM PEDIDO_CLIENTE ")));
RDebugUtils.currentLine=3276858;
 //BA.debugLineNum = 3276858;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDOSC FROM PEDIDO_CLIENTE ")));
RDebugUtils.currentLine=3276859;
 //BA.debugLineNum = 3276859;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276860;
 //BA.debugLineNum = 3276860;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step50 = 1;
final int limit50 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit50 ;_i = _i + step50 ) {
RDebugUtils.currentLine=3276861;
 //BA.debugLineNum = 3276861;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276862;
 //BA.debugLineNum = 3276862;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276863;
 //BA.debugLineNum = 3276863;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276864;
 //BA.debugLineNum = 3276864;BA.debugLine="cmd.Name = \"insert_pedidos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedidos_MEDI";
RDebugUtils.currentLine=3276865;
 //BA.debugLineNum = 3276865;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA"))};
RDebugUtils.currentLine=3276866;
 //BA.debugLineNum = 3276866;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedidos"));
 }
};
 };
RDebugUtils.currentLine=3276869;
 //BA.debugLineNum = 3276869;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276870;
 //BA.debugLineNum = 3276870;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3276871;
 //BA.debugLineNum = 3276871;BA.debugLine="cuantos_pedidosc = D.GetString(\"CUANTOS_PEDIDOSC";
__ref._cuantos_pedidosc /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDOSC");
RDebugUtils.currentLine=3276872;
 //BA.debugLineNum = 3276872;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276878;
 //BA.debugLineNum = 3276878;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CODIG";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CODIGOKMTS, CODIGOB, LAT, LON FROM HIST_CODIGO_BARRAS")));
RDebugUtils.currentLine=3276879;
 //BA.debugLineNum = 3276879;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276880;
 //BA.debugLineNum = 3276880;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step65 = 1;
final int limit65 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit65 ;_i = _i + step65 ) {
RDebugUtils.currentLine=3276881;
 //BA.debugLineNum = 3276881;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276882;
 //BA.debugLineNum = 3276882;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276883;
 //BA.debugLineNum = 3276883;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276884;
 //BA.debugLineNum = 3276884;BA.debugLine="cmd.Name = \"insert_QR_2_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_QR_2_MEDI";
RDebugUtils.currentLine=3276885;
 //BA.debugLineNum = 3276885;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CODIGOKMTS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CODIGOB")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3276886;
 //BA.debugLineNum = 3276886;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("ins_QR"));
 }
};
 };
RDebugUtils.currentLine=3276889;
 //BA.debugLineNum = 3276889;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276893;
 //BA.debugLineNum = 3276893;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt.";
_h = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_h = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from bitacoraGPS"))));
RDebugUtils.currentLine=3276894;
 //BA.debugLineNum = 3276894;BA.debugLine="Do While h.nextrow";
while (_h.NextRow()) {
RDebugUtils.currentLine=3276895;
 //BA.debugLineNum = 3276895;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276896;
 //BA.debugLineNum = 3276896;BA.debugLine="Private eventob As String = h.GetString(\"evento";
_eventob = _h.GetString("eventob");
RDebugUtils.currentLine=3276897;
 //BA.debugLineNum = 3276897;BA.debugLine="cmd.Name = \"mandaBitacora_MEDICOMED\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "mandaBitacora_MEDICOMED";
RDebugUtils.currentLine=3276898;
 //BA.debugLineNum = 3276898;BA.debugLine="Log(\"BITACORA3\")";
__c.LogImpl("33276898","BITACORA3",0);
RDebugUtils.currentLine=3276899;
 //BA.debugLineNum = 3276899;BA.debugLine="Private clienteb As String = h.GetString(\"clien";
_clienteb = _h.GetString("clienteb");
RDebugUtils.currentLine=3276900;
 //BA.debugLineNum = 3276900;BA.debugLine="Private finb As String = h.GetString(\"finb\")";
_finb = _h.GetString("finb");
RDebugUtils.currentLine=3276901;
 //BA.debugLineNum = 3276901;BA.debugLine="Private nombreCliente As String =Subs. traeNomb";
_nombrecliente = _subs._traenombrecliente /*String*/ (ba,_h.GetString("clienteb"));
RDebugUtils.currentLine=3276902;
 //BA.debugLineNum = 3276902;BA.debugLine="If eventob = \"Llega a almacen\" Then";
if ((_eventob).equals("Llega a almacen")) { 
RDebugUtils.currentLine=3276903;
 //BA.debugLineNum = 3276903;BA.debugLine="nombreCliente = \"BOLETA\"";
_nombrecliente = "BOLETA";
RDebugUtils.currentLine=3276904;
 //BA.debugLineNum = 3276904;BA.debugLine="clienteb = \"\"";
_clienteb = "";
RDebugUtils.currentLine=3276905;
 //BA.debugLineNum = 3276905;BA.debugLine="finb = h.GetString(\"iniciob\")";
_finb = _h.GetString("iniciob");
 };
RDebugUtils.currentLine=3276907;
 //BA.debugLineNum = 3276907;BA.debugLine="If eventob = \"Salida almacen\" Then nombreClient";
if ((_eventob).equals("Salida almacen")) { 
_nombrecliente = "CHECKLIST";};
RDebugUtils.currentLine=3276908;
 //BA.debugLineNum = 3276908;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FI";
if ((_eventob).equals("Fin Día")) { 
_nombrecliente = "FIN DIA";};
RDebugUtils.currentLine=3276909;
 //BA.debugLineNum = 3276909;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"";
if ((_eventob).equals("Carga día")) { 
_nombrecliente = "CARGA DIA";};
RDebugUtils.currentLine=3276912;
 //BA.debugLineNum = 3276912;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"a";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_h.GetString("almacenb")),(Object)(_h.GetString("usuariob")),(Object)(_h.GetString("rutab")),(Object)(_eventob),(Object)(_clienteb),(Object)(_nombrecliente),(Object)(_h.GetString("iniciob")),(Object)(_finb),(Object)(_h.GetString("latitudb")),(Object)(_h.GetString("longitudb")),(Object)(_h.GetString("precision")),(Object)(_h.GetString("motivonoventa")),(Object)(_h.GetString("motivonovisita")),(Object)(_h.GetString("fechab"))};
RDebugUtils.currentLine=3276913;
 //BA.debugLineNum = 3276913;BA.debugLine="reqManager.ExecuteCommand(cmd , \"mandaBitacora\"";
__ref._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("mandaBitacora"));
 }
;
RDebugUtils.currentLine=3276915;
 //BA.debugLineNum = 3276915;BA.debugLine="Log(\"MANDAMOS BITACORA\")";
__c.LogImpl("33276915","MANDAMOS BITACORA",0);
RDebugUtils.currentLine=3276920;
 //BA.debugLineNum = 3276920;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt.";
_h = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_h = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from VENTA_No_VENTA"))));
RDebugUtils.currentLine=3276921;
 //BA.debugLineNum = 3276921;BA.debugLine="Do While h.nextrow";
while (_h.NextRow()) {
RDebugUtils.currentLine=3276922;
 //BA.debugLineNum = 3276922;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276923;
 //BA.debugLineNum = 3276923;BA.debugLine="Private eventov As String = h.GetString(\"evento";
_eventov = _h.GetString("eventov");
RDebugUtils.currentLine=3276924;
 //BA.debugLineNum = 3276924;BA.debugLine="cmd.Name = \"insert_venta_no_venta_MEDICOMED\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_venta_no_venta_MEDICOMED";
RDebugUtils.currentLine=3276925;
 //BA.debugLineNum = 3276925;BA.debugLine="Private clientev As String = h.GetString(\"clien";
_clientev = _h.GetString("clientev");
RDebugUtils.currentLine=3276926;
 //BA.debugLineNum = 3276926;BA.debugLine="Private nombreClientev As String =Subs. traeNom";
_nombreclientev = _subs._traenombrecliente /*String*/ (ba,_h.GetString("clientev"));
RDebugUtils.currentLine=3276927;
 //BA.debugLineNum = 3276927;BA.debugLine="If eventov = \"Llega a almacen\" Then";
if ((_eventov).equals("Llega a almacen")) { 
RDebugUtils.currentLine=3276928;
 //BA.debugLineNum = 3276928;BA.debugLine="nombreClientev = \"BOLETA\"";
_nombreclientev = "BOLETA";
RDebugUtils.currentLine=3276929;
 //BA.debugLineNum = 3276929;BA.debugLine="clientev = \"\"";
_clientev = "";
 };
RDebugUtils.currentLine=3276931;
 //BA.debugLineNum = 3276931;BA.debugLine="If eventov = \"Salida almacen\" Then nombreClient";
if ((_eventov).equals("Salida almacen")) { 
_nombreclientev = "CHECKLIST";};
RDebugUtils.currentLine=3276932;
 //BA.debugLineNum = 3276932;BA.debugLine="If eventov = \"Fin Día\" Then nombreClientev = \"F";
if ((_eventov).equals("Fin Día")) { 
_nombreclientev = "FIN DIA";};
RDebugUtils.currentLine=3276933;
 //BA.debugLineNum = 3276933;BA.debugLine="If eventov = \"Carga día\" Then nombreClientev =";
if ((_eventov).equals("Carga día")) { 
_nombreclientev = "CARGA DIA";};
RDebugUtils.currentLine=3276934;
 //BA.debugLineNum = 3276934;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"u";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_h.GetString("usuariov")),(Object)(_h.GetString("almacenv")),(Object)(_h.GetString("rutav")),(Object)(_eventov),(Object)(_clientev),(Object)(_h.GetString("iniciov")),(Object)(_finb),(Object)(_h.GetString("latitudv")),(Object)(_h.GetString("longitudv")),(Object)(_nombreclientev)};
RDebugUtils.currentLine=3276935;
 //BA.debugLineNum = 3276935;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ventaNoVenta\")";
__ref._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("ventaNoVenta"));
 }
;
RDebugUtils.currentLine=3276956;
 //BA.debugLineNum = 3276956;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  HE_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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  HE_CLIE, HE_RES, HE_FECHA, HE_TIPO FROM HIST_ENCUESTA")));
RDebugUtils.currentLine=3276957;
 //BA.debugLineNum = 3276957;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276958;
 //BA.debugLineNum = 3276958;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step115 = 1;
final int limit115 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit115 ;_i = _i + step115 ) {
RDebugUtils.currentLine=3276959;
 //BA.debugLineNum = 3276959;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276960;
 //BA.debugLineNum = 3276960;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276961;
 //BA.debugLineNum = 3276961;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276962;
 //BA.debugLineNum = 3276962;BA.debugLine="cmd.Name = \"insert_encuesta_MARDS\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_encuesta_MARDS";
RDebugUtils.currentLine=3276963;
 //BA.debugLineNum = 3276963;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_CLIE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_RES")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_TIPO"))};
RDebugUtils.currentLine=3276964;
 //BA.debugLineNum = 3276964;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=3276967;
 //BA.debugLineNum = 3276967;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276969;
 //BA.debugLineNum = 3276969;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PE_CE";
__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 /*keymon.lat.medicomed.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 FROM PEDIDO")));
RDebugUtils.currentLine=3276970;
 //BA.debugLineNum = 3276970;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO")));
RDebugUtils.currentLine=3276971;
 //BA.debugLineNum = 3276971;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276972;
 //BA.debugLineNum = 3276972;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step128 = 1;
final int limit128 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit128 ;_i = _i + step128 ) {
RDebugUtils.currentLine=3276973;
 //BA.debugLineNum = 3276973;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276974;
 //BA.debugLineNum = 3276974;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276975;
 //BA.debugLineNum = 3276975;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276976;
 //BA.debugLineNum = 3276976;BA.debugLine="cmd.Name = \"insert_pedido_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_MEDI";
RDebugUtils.currentLine=3276977;
 //BA.debugLineNum = 3276977;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3276978;
 //BA.debugLineNum = 3276978;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
 }
};
 };
RDebugUtils.currentLine=3276981;
 //BA.debugLineNum = 3276981;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276982;
 //BA.debugLineNum = 3276982;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3276983;
 //BA.debugLineNum = 3276983;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
__ref._cuantos_pedido /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDO");
RDebugUtils.currentLine=3276984;
 //BA.debugLineNum = 3276984;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3276987;
 //BA.debugLineNum = 3276987;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_NOMBRE, NV_DIRECCION FROM NOVENTA")));
RDebugUtils.currentLine=3276988;
 //BA.debugLineNum = 3276988;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=3276989;
 //BA.debugLineNum = 3276989;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3276990;
 //BA.debugLineNum = 3276990;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step144 = 1;
final int limit144 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit144 ;_i = _i + step144 ) {
RDebugUtils.currentLine=3276991;
 //BA.debugLineNum = 3276991;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3276992;
 //BA.debugLineNum = 3276992;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276993;
 //BA.debugLineNum = 3276993;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3276994;
 //BA.debugLineNum = 3276994;BA.debugLine="cmd.Name = \"insert_noventa_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_noventa_MEDI";
RDebugUtils.currentLine=3276995;
 //BA.debugLineNum = 3276995;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LON")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_NOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_DIRECCION"))};
RDebugUtils.currentLine=3276996;
 //BA.debugLineNum = 3276996;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=3276999;
 //BA.debugLineNum = 3276999;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3277000;
 //BA.debugLineNum = 3277000;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3277001;
 //BA.debugLineNum = 3277001;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=3277002;
 //BA.debugLineNum = 3277002;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3277007;
 //BA.debugLineNum = 3277007;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  CN_I";
__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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, COLONIA, CP, CN_ALMACEN, CN_RUTA FROM CLIENTES_NUEVOS")));
RDebugUtils.currentLine=3277008;
 //BA.debugLineNum = 3277008;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3277009;
 //BA.debugLineNum = 3277009;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step159 = 1;
final int limit159 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit159 ;_i = _i + step159 ) {
RDebugUtils.currentLine=3277010;
 //BA.debugLineNum = 3277010;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3277012;
 //BA.debugLineNum = 3277012;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3277013;
 //BA.debugLineNum = 3277013;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3277014;
 //BA.debugLineNum = 3277014;BA.debugLine="cmd.Name = \"insert_clientesnuevos_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_clientesnuevos_MEDI";
RDebugUtils.currentLine=3277015;
 //BA.debugLineNum = 3277015;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.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._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("COLONIA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CP")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA"))};
RDebugUtils.currentLine=3277016;
 //BA.debugLineNum = 3277016;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_clientesn"));
 }
};
 };
RDebugUtils.currentLine=3277019;
 //BA.debugLineNum = 3277019;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3277023;
 //BA.debugLineNum = 3277023;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HGCLI";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HGCLIENTE, HGDATE, HGLAT, HGLON from HIST_GEOCERCA")));
RDebugUtils.currentLine=3277024;
 //BA.debugLineNum = 3277024;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3277025;
 //BA.debugLineNum = 3277025;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step171 = 1;
final int limit171 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit171 ;_i = _i + step171 ) {
RDebugUtils.currentLine=3277026;
 //BA.debugLineNum = 3277026;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3277027;
 //BA.debugLineNum = 3277027;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3277028;
 //BA.debugLineNum = 3277028;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3277029;
 //BA.debugLineNum = 3277029;BA.debugLine="cmd.Name = \"insert_geocerca_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_geocerca_MEDI";
RDebugUtils.currentLine=3277030;
 //BA.debugLineNum = 3277030;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGCLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGDATE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGLAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGLON"))};
RDebugUtils.currentLine=3277031;
 //BA.debugLineNum = 3277031;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=3277034;
 //BA.debugLineNum = 3277034;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3277038;
 //BA.debugLineNum = 3277038;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HFCLI";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN from HIST_FACE")));
RDebugUtils.currentLine=3277039;
 //BA.debugLineNum = 3277039;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3277040;
 //BA.debugLineNum = 3277040;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step183 = 1;
final int limit183 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit183 ;_i = _i + step183 ) {
RDebugUtils.currentLine=3277041;
 //BA.debugLineNum = 3277041;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3277042;
 //BA.debugLineNum = 3277042;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3277043;
 //BA.debugLineNum = 3277043;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3277044;
 //BA.debugLineNum = 3277044;BA.debugLine="cmd.Name = \"insert_face_like_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_face_like_MEDI";
RDebugUtils.currentLine=3277045;
 //BA.debugLineNum = 3277045;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFCLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFALIAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFRUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFALMACEN"))};
RDebugUtils.currentLine=3277046;
 //BA.debugLineNum = 3277046;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=3277076;
 //BA.debugLineNum = 3277076;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"T1",(long) (30000));
RDebugUtils.currentLine=3277077;
 //BA.debugLineNum = 3277077;BA.debugLine="t1.Enabled = True";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
RDebugUtils.currentLine=3277078;
 //BA.debugLineNum = 3277078;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3277079;
 //BA.debugLineNum = 3277079;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3277080;
 //BA.debugLineNum = 3277080;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3277081;
 //BA.debugLineNum = 3277081;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3277082;
 //BA.debugLineNum = 3277082;BA.debugLine="Dim cmd As DBCommand";
_cmd = new keymon.lat.medicomed.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3277083;
 //BA.debugLineNum = 3277083;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3277084;
 //BA.debugLineNum = 3277084;BA.debugLine="cmd.Name =\"insert_drop_MEDI_2\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_MEDI_2";
RDebugUtils.currentLine=3277085;
 //BA.debugLineNum = 3277085;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.";
__ref._cmd /*keymon.lat.medicomed.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*/ )};
RDebugUtils.currentLine=3277086;
 //BA.debugLineNum = 3277086;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
RDebugUtils.currentLine=3277087;
 //BA.debugLineNum = 3277087;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3277088;
 //BA.debugLineNum = 3277088;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=3277089;
 //BA.debugLineNum = 3277089;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=3277091;
 //BA.debugLineNum = 3277091;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(keymon.lat.medicomed.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=3866624;
 //BA.debugLineNum = 3866624;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=3866625;
 //BA.debugLineNum = 3866625;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3866626;
 //BA.debugLineNum = 3866626;BA.debugLine="cmd.Name = \"select_cuantos_pedido_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido_MEDI";
RDebugUtils.currentLine=3866627;
 //BA.debugLineNum = 3866627;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3866628;
 //BA.debugLineNum = 3866628;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=3866630;
 //BA.debugLineNum = 3866630;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3866631;
 //BA.debugLineNum = 3866631;BA.debugLine="cmd.Name = \"select_cuantos_noventa_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_MEDI";
RDebugUtils.currentLine=3866632;
 //BA.debugLineNum = 3866632;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3866633;
 //BA.debugLineNum = 3866633;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=3866635;
 //BA.debugLineNum = 3866635;BA.debugLine="cmd.Initialize";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3866636;
 //BA.debugLineNum = 3866636;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_MEDI\"";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc_MEDI";
RDebugUtils.currentLine=3866637;
 //BA.debugLineNum = 3866637;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3866638;
 //BA.debugLineNum = 3866638;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._reqmanager /*keymon.lat.medicomed.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*keymon.lat.medicomed.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=3866640;
 //BA.debugLineNum = 3866640;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3866641;
 //BA.debugLineNum = 3866641;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=3866643;
 //BA.debugLineNum = 3866643;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3866644;
 //BA.debugLineNum = 3866644;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=3866645;
 //BA.debugLineNum = 3866645;BA.debugLine="End Sub";
return "";
}
public String  _tickets_dia_click(keymon.lat.medicomed.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=4521984;
 //BA.debugLineNum = 4521984;BA.debugLine="Sub tickets_dia_Click";
RDebugUtils.currentLine=4521985;
 //BA.debugLineNum = 4521985;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=4521986;
 //BA.debugLineNum = 4521986;BA.debugLine="End Sub";
return "";
}
}