package reparto_intmex.keymon.lat;


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, "reparto_intmex.keymon.lat.c_principal");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_intmex.keymon.lat.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 anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public reparto_intmex.keymon.lat.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.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 _f1 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f2 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f3 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f4 = 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 reparto_intmex.keymon.lat.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.sql.SQL.CursorWrapper _l = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_aliquidar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_montosalida = 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.LabelWrapper _l_montoe = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_clieprod = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regresa = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
public String _estatus = "";
public int[] _batterystatus = null;
public reparto_intmex.keymon.lat.batteryutilities _bu = null;
public String _ruta_t = "";
public anywheresoftware.b4a.objects.collections.List _reqs = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btn_ubicar_ru = null;
public String _cargo = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public anywheresoftware.b4a.objects.IME _ime = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_tabulador = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rutasp = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rechazo = null;
public anywheresoftware.b4a.objects.LabelWrapper _label9 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_check = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_rechazos = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prod = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regreso = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_prod_prin = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_venta_emp = null;
public b4a.example.dateutils _dateutils = null;
public reparto_intmex.keymon.lat.main _main = null;
public reparto_intmex.keymon.lat.appupdater _appupdater = null;
public reparto_intmex.keymon.lat.foto _foto = null;
public reparto_intmex.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_intmex.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_intmex.keymon.lat.starter _starter = null;
public reparto_intmex.keymon.lat.subs _subs = null;
public reparto_intmex.keymon.lat.tracker _tracker = null;
public reparto_intmex.keymon.lat.newinst2 _newinst2 = null;
public reparto_intmex.keymon.lat.b4xpages _b4xpages = null;
public reparto_intmex.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_intmex.keymon.lat.httputils2service _httputils2service = null;
public reparto_intmex.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_intmex.keymon.lat.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=51773440;
 //BA.debugLineNum = 51773440;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=51773441;
 //BA.debugLineNum = 51773441;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=51773442;
 //BA.debugLineNum = 51773442;BA.debugLine="End Sub";
return null;
}
public String  _checachek(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "checachek", false))
	 {return ((String) Debug.delegate(ba, "checachek", null));}
RDebugUtils.currentLine=51970048;
 //BA.debugLineNum = 51970048;BA.debugLine="Sub checachek";
RDebugUtils.currentLine=51970049;
 //BA.debugLineNum = 51970049;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT CHECADO FROM";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CHECADO FROM CHECADO_CHECK")));
RDebugUtils.currentLine=51970050;
 //BA.debugLineNum = 51970050;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51970051;
 //BA.debugLineNum = 51970051;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51970052;
 //BA.debugLineNum = 51970052;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then";
if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=51970053;
 //BA.debugLineNum = 51970053;BA.debugLine="b_check.Visible = True";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=51970054;
 //BA.debugLineNum = 51970054;BA.debugLine="Else If b.GetString(\"CHECADO\") = 1 Then";
if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=51970055;
 //BA.debugLineNum = 51970055;BA.debugLine="b_check.Visible =False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=51970057;
 //BA.debugLineNum = 51970057;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=51970059;
 //BA.debugLineNum = 51970059;BA.debugLine="End Sub";
return "";
}
public String  _b_check_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_check_click", false))
	 {return ((String) Debug.delegate(ba, "b_check_click", null));}
RDebugUtils.currentLine=53280768;
 //BA.debugLineNum = 53280768;BA.debugLine="Private Sub b_check_Click";
RDebugUtils.currentLine=53280770;
 //BA.debugLineNum = 53280770;BA.debugLine="B4XPages.ShowPage(\"checklist\")";
_b4xpages._showpage /*String*/ (ba,"checklist");
RDebugUtils.currentLine=53280772;
 //BA.debugLineNum = 53280772;BA.debugLine="End Sub";
return "";
}
public String  _b_clieprod_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_clieprod_click", false))
	 {return ((String) Debug.delegate(ba, "b_clieprod_click", null));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
String _cuenta0 = "";
String _arti = "";
int _a = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null;
String _cuenta1 = "";
String _arti1 = "";
int _h = 0;
float _preu = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null;
String _cuenta2 = "";
String _arti2 = "";
int _k = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
String _cuenta3 = "";
String _arti3 = "";
int _x = 0;
String _totalmonto = "";
String _totalcantidad = "";
RDebugUtils.currentLine=53018624;
 //BA.debugLineNum = 53018624;BA.debugLine="Sub B_CLIEPROD_Click";
RDebugUtils.currentLine=53018625;
 //BA.debugLineNum = 53018625;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=53018626;
 //BA.debugLineNum = 53018626;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=53018628;
 //BA.debugLineNum = 53018628;BA.debugLine="BUSCA.Visible = False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53018629;
 //BA.debugLineNum = 53018629;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53018630;
 //BA.debugLineNum = 53018630;BA.debugLine="trabajar.Visible = False";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53018631;
 //BA.debugLineNum = 53018631;BA.debugLine="B_CLIEPROD.Visible = False";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53018632;
 //BA.debugLineNum = 53018632;BA.debugLine="Panel1.Visible = True";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53018633;
 //BA.debugLineNum = 53018633;BA.debugLine="Panel1.BringToFront";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=53018634;
 //BA.debugLineNum = 53018634;BA.debugLine="Btn_Ubicar_Ru.Visible=False";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53018635;
 //BA.debugLineNum = 53018635;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from kmt_info";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from kmt_info WHERE gestion <> 0 order by HORAENT")));
RDebugUtils.currentLine=53018636;
 //BA.debugLineNum = 53018636;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2));
RDebugUtils.currentLine=53018637;
 //BA.debugLineNum = 53018637;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=53018638;
 //BA.debugLineNum = 53018638;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=53018639;
 //BA.debugLineNum = 53018639;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=53018640;
 //BA.debugLineNum = 53018640;BA.debugLine="label1.TextSize = 10";
_label1.setTextSize((float) (10));
RDebugUtils.currentLine=53018641;
 //BA.debugLineNum = 53018641;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=53018642;
 //BA.debugLineNum = 53018642;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=53018643;
 //BA.debugLineNum = 53018643;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=53018644;
 //BA.debugLineNum = 53018644;BA.debugLine="label2.TextSize = 10";
_label2.setTextSize((float) (10));
RDebugUtils.currentLine=53018645;
 //BA.debugLineNum = 53018645;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=53018647;
 //BA.debugLineNum = 53018647;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=53018648;
 //BA.debugLineNum = 53018648;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step23 = 1;
final int limit23 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit23 ;_i = _i + step23 ) {
RDebugUtils.currentLine=53018649;
 //BA.debugLineNum = 53018649;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=53018650;
 //BA.debugLineNum = 53018650;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("2")) { 
RDebugUtils.currentLine=53018651;
 //BA.debugLineNum = 53018651;BA.debugLine="ESTATUS = \"ENTREGADO\"";
__ref._estatus /*String*/  = "ENTREGADO";
RDebugUtils.currentLine=53018652;
 //BA.debugLineNum = 53018652;BA.debugLine="Log(\"entrega\")";
__c.LogImpl("253018652","entrega",0);
 }else 
{RDebugUtils.currentLine=53018653;
 //BA.debugLineNum = 53018653;BA.debugLine="ELSE IF c.GetString(\"gestion\") = \"3\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("3")) { 
RDebugUtils.currentLine=53018654;
 //BA.debugLineNum = 53018654;BA.debugLine="Log(\"no entrega\")";
__c.LogImpl("253018654","no entrega",0);
RDebugUtils.currentLine=53018655;
 //BA.debugLineNum = 53018655;BA.debugLine="ESTATUS = \"RECHAZADO\"";
__ref._estatus /*String*/  = "RECHAZADO";
 }else {
RDebugUtils.currentLine=53018657;
 //BA.debugLineNum = 53018657;BA.debugLine="ESTATUS = \"SIN ESTATUS\"";
__ref._estatus /*String*/  = "SIN ESTATUS";
 }}
;
RDebugUtils.currentLine=53018662;
 //BA.debugLineNum = 53018662;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then";
if ((__ref._estatus /*String*/ ).equals("ENTREGADO")) { 
RDebugUtils.currentLine=53018663;
 //BA.debugLineNum = 53018663;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'"))));
RDebugUtils.currentLine=53018665;
 //BA.debugLineNum = 53018665;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=53018666;
 //BA.debugLineNum = 53018666;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=53018667;
 //BA.debugLineNum = 53018667;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=53018668;
 //BA.debugLineNum = 53018668;BA.debugLine="For a = 0 To vc.RowCount - 1";
{
final int step39 = 1;
final int limit39 = (int) (_vc.getRowCount()-1);
_a = (int) (0) ;
for (;_a <= limit39 ;_a = _a + step39 ) {
RDebugUtils.currentLine=53018669;
 //BA.debugLineNum = 53018669;BA.debugLine="vc.Position = a";
_vc.setPosition(_a);
RDebugUtils.currentLine=53018671;
 //BA.debugLineNum = 53018671;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - v";
_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=53018672;
 //BA.debugLineNum = 53018672;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CAN";
_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))))));
 }
};
 };
RDebugUtils.currentLine=53018677;
 //BA.debugLineNum = 53018677;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1"))));
RDebugUtils.currentLine=53018678;
 //BA.debugLineNum = 53018678;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=53018679;
 //BA.debugLineNum = 53018679;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=53018680;
 //BA.debugLineNum = 53018680;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=53018681;
 //BA.debugLineNum = 53018681;BA.debugLine="For h = 0 To vc2.RowCount - 1";
{
final int step49 = 1;
final int limit49 = (int) (_vc2.getRowCount()-1);
_h = (int) (0) ;
for (;_h <= limit49 ;_h = _h + step49 ) {
RDebugUtils.currentLine=53018682;
 //BA.debugLineNum = 53018682;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=53018683;
 //BA.debugLineNum = 53018683;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=53018684;
 //BA.debugLineNum = 53018684;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=53018685;
 //BA.debugLineNum = 53018685;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=53018686;
 //BA.debugLineNum = 53018686;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=53018687;
 //BA.debugLineNum = 53018687;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC";
_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu));
RDebugUtils.currentLine=53018688;
 //BA.debugLineNum = 53018688;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\")";
_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))));
 };
 }
};
 };
RDebugUtils.currentLine=53018694;
 //BA.debugLineNum = 53018694;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
RDebugUtils.currentLine=53018695;
 //BA.debugLineNum = 53018695;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=53018696;
 //BA.debugLineNum = 53018696;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=53018697;
 //BA.debugLineNum = 53018697;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=53018699;
 //BA.debugLineNum = 53018699;BA.debugLine="For k = 0 To vc4.RowCount - 1";
{
final int step64 = 1;
final int limit64 = (int) (_vc4.getRowCount()-1);
_k = (int) (0) ;
for (;_k <= limit64 ;_k = _k + step64 ) {
RDebugUtils.currentLine=53018700;
 //BA.debugLineNum = 53018700;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=53018701;
 //BA.debugLineNum = 53018701;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=53018702;
 //BA.debugLineNum = 53018702;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=53018703;
 //BA.debugLineNum = 53018703;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
RDebugUtils.currentLine=53018704;
 //BA.debugLineNum = 53018704;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))));
 }else {
RDebugUtils.currentLine=53018706;
 //BA.debugLineNum = 53018706;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=53018707;
 //BA.debugLineNum = 53018707;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=53018708;
 //BA.debugLineNum = 53018708;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=53018710;
 //BA.debugLineNum = 53018710;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO")))));
RDebugUtils.currentLine=53018711;
 //BA.debugLineNum = 53018711;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\"";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT")))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=53018720;
 //BA.debugLineNum = 53018720;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'"))));
RDebugUtils.currentLine=53018721;
 //BA.debugLineNum = 53018721;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=53018722;
 //BA.debugLineNum = 53018722;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=53018723;
 //BA.debugLineNum = 53018723;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=53018724;
 //BA.debugLineNum = 53018724;BA.debugLine="For x = 0 To c4.RowCount -1";
{
final int step85 = 1;
final int limit85 = (int) (_c4.getRowCount()-1);
_x = (int) (0) ;
for (;_x <= limit85 ;_x = _x + step85 ) {
RDebugUtils.currentLine=53018725;
 //BA.debugLineNum = 53018725;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=53018726;
 //BA.debugLineNum = 53018726;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=53018727;
 //BA.debugLineNum = 53018727;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
 }
};
 };
RDebugUtils.currentLine=53018732;
 //BA.debugLineNum = 53018732;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3)));
RDebugUtils.currentLine=53018733;
 //BA.debugLineNum = 53018733;BA.debugLine="Private TOTALcantidad As String = arti + arti";
_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3)));
RDebugUtils.currentLine=53018735;
 //BA.debugLineNum = 53018735;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")+" - "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+"   "+__ref._estatus /*String*/ ));
RDebugUtils.currentLine=53018736;
 //BA.debugLineNum = 53018736;BA.debugLine="Log(\"si entre2\")";
__c.LogImpl("253018736","si entre2",0);
 }else 
{RDebugUtils.currentLine=53018738;
 //BA.debugLineNum = 53018738;BA.debugLine="Else If ESTATUS = \"RECHAZADO\" Then";
if ((__ref._estatus /*String*/ ).equals("RECHAZADO")) { 
RDebugUtils.currentLine=53018740;
 //BA.debugLineNum = 53018740;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO, HVD_COSTO_TOT from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'"))));
RDebugUtils.currentLine=53018742;
 //BA.debugLineNum = 53018742;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=53018743;
 //BA.debugLineNum = 53018743;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=53018744;
 //BA.debugLineNum = 53018744;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=53018745;
 //BA.debugLineNum = 53018745;BA.debugLine="For a = 0 To vc.RowCount - 1";
{
final int step100 = 1;
final int limit100 = (int) (_vc.getRowCount()-1);
_a = (int) (0) ;
for (;_a <= limit100 ;_a = _a + step100 ) {
RDebugUtils.currentLine=53018746;
 //BA.debugLineNum = 53018746;BA.debugLine="vc.Position = a";
_vc.setPosition(_a);
RDebugUtils.currentLine=53018747;
 //BA.debugLineNum = 53018747;BA.debugLine="Dim preu As Float = NumberFormat2(vc.GetStr";
_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=53018749;
 //BA.debugLineNum = 53018749;BA.debugLine="arti = arti + (vc.GetString(\"HVD_RECHAZOCAN";
_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=53018750;
 //BA.debugLineNum = 53018750;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_REC";
_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+((double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT"))))*_preu));
 }
};
 };
RDebugUtils.currentLine=53018755;
 //BA.debugLineNum = 53018755;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1"))));
RDebugUtils.currentLine=53018756;
 //BA.debugLineNum = 53018756;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=53018757;
 //BA.debugLineNum = 53018757;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=53018758;
 //BA.debugLineNum = 53018758;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=53018759;
 //BA.debugLineNum = 53018759;BA.debugLine="For h = 0 To vc2.RowCount - 1";
{
final int step111 = 1;
final int limit111 = (int) (_vc2.getRowCount()-1);
_h = (int) (0) ;
for (;_h <= limit111 ;_h = _h + step111 ) {
RDebugUtils.currentLine=53018760;
 //BA.debugLineNum = 53018760;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=53018761;
 //BA.debugLineNum = 53018761;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=53018762;
 //BA.debugLineNum = 53018762;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=53018763;
 //BA.debugLineNum = 53018763;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=53018764;
 //BA.debugLineNum = 53018764;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=53018765;
 //BA.debugLineNum = 53018765;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"HVD_R";
_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION"))))*_preu));
RDebugUtils.currentLine=53018766;
 //BA.debugLineNum = 53018766;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_RECHAZ";
_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble((_vc2.GetString("HVD_RECHAZOCANT")))));
 };
 }
};
 };
RDebugUtils.currentLine=53018772;
 //BA.debugLineNum = 53018772;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
RDebugUtils.currentLine=53018773;
 //BA.debugLineNum = 53018773;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=53018774;
 //BA.debugLineNum = 53018774;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=53018775;
 //BA.debugLineNum = 53018775;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=53018777;
 //BA.debugLineNum = 53018777;BA.debugLine="For k = 0 To vc4.RowCount - 1";
{
final int step126 = 1;
final int limit126 = (int) (_vc4.getRowCount()-1);
_k = (int) (0) ;
for (;_k <= limit126 ;_k = _k + step126 ) {
RDebugUtils.currentLine=53018778;
 //BA.debugLineNum = 53018778;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=53018779;
 //BA.debugLineNum = 53018779;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=53018780;
 //BA.debugLineNum = 53018780;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=53018781;
 //BA.debugLineNum = 53018781;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
RDebugUtils.currentLine=53018782;
 //BA.debugLineNum = 53018782;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_RECHAZ";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))));
 }else {
RDebugUtils.currentLine=53018784;
 //BA.debugLineNum = 53018784;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=53018785;
 //BA.debugLineNum = 53018785;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=53018786;
 //BA.debugLineNum = 53018786;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=53018788;
 //BA.debugLineNum = 53018788;BA.debugLine="Cuenta2 = Cuenta2 +(( vc4.GetString(\"HVD";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+((double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO")))));
RDebugUtils.currentLine=53018789;
 //BA.debugLineNum = 53018789;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_RECHA";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT")))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=53018798;
 //BA.debugLineNum = 53018798;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'"))));
RDebugUtils.currentLine=53018799;
 //BA.debugLineNum = 53018799;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=53018800;
 //BA.debugLineNum = 53018800;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=53018801;
 //BA.debugLineNum = 53018801;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=53018802;
 //BA.debugLineNum = 53018802;BA.debugLine="For x = 0 To c4.RowCount -1";
{
final int step147 = 1;
final int limit147 = (int) (_c4.getRowCount()-1);
_x = (int) (0) ;
for (;_x <= limit147 ;_x = _x + step147 ) {
RDebugUtils.currentLine=53018803;
 //BA.debugLineNum = 53018803;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=53018804;
 //BA.debugLineNum = 53018804;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=53018805;
 //BA.debugLineNum = 53018805;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
 }
};
 };
RDebugUtils.currentLine=53018810;
 //BA.debugLineNum = 53018810;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3)));
RDebugUtils.currentLine=53018811;
 //BA.debugLineNum = 53018811;BA.debugLine="Private TOTALcantidad As String = arti + arti";
_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3)));
RDebugUtils.currentLine=53018813;
 //BA.debugLineNum = 53018813;BA.debugLine="Log(\"si entre\")";
__c.LogImpl("253018813","si entre",0);
RDebugUtils.currentLine=53018814;
 //BA.debugLineNum = 53018814;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")+" - "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+"   "+__ref._estatus /*String*/ ));
 }}
;
 }
};
 };
 };
RDebugUtils.currentLine=53018849;
 //BA.debugLineNum = 53018849;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click(reparto_intmex.keymon.lat.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=52756480;
 //BA.debugLineNum = 52756480;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=52756482;
 //BA.debugLineNum = 52756482;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
_b4xpages._showpage /*String*/ (ba,"mapas");
RDebugUtils.currentLine=52756483;
 //BA.debugLineNum = 52756483;BA.debugLine="End Sub";
return "";
}
public String  _b_rechazos_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_rechazos_click", false))
	 {return ((String) Debug.delegate(ba, "b_rechazos_click", null));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
String _itemtext = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
String _resta = "";
RDebugUtils.currentLine=53411840;
 //BA.debugLineNum = 53411840;BA.debugLine="Private Sub b_rechazos_Click";
RDebugUtils.currentLine=53411841;
 //BA.debugLineNum = 53411841;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=53411842;
 //BA.debugLineNum = 53411842;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
_label1 = __ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=53411843;
 //BA.debugLineNum = 53411843;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=53411844;
 //BA.debugLineNum = 53411844;BA.debugLine="p_prod.Width = Root.Width";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=53411845;
 //BA.debugLineNum = 53411845;BA.debugLine="p_prod.Height = Root.Height";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=53411846;
 //BA.debugLineNum = 53411846;BA.debugLine="b_regreso.Left = (p_prod.Width - b_regreso.Width)";
__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()-__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth())/(double)2));
RDebugUtils.currentLine=53411847;
 //BA.debugLineNum = 53411847;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height";
__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()));
RDebugUtils.currentLine=53411849;
 //BA.debugLineNum = 53411849;BA.debugLine="p_prod.Visible = True";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53411850;
 //BA.debugLineNum = 53411850;BA.debugLine="p_prod.BringToFront";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=53411855;
 //BA.debugLineNum = 53411855;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=53411857;
 //BA.debugLineNum = 53411857;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=53411858;
 //BA.debugLineNum = 53411858;BA.debugLine="lv_prod_Prin.Clear";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=53411859;
 //BA.debugLineNum = 53411859;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=53411860;
 //BA.debugLineNum = 53411860;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step14 = 1;
final int limit14 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit14 ;_i = _i + step14 ) {
RDebugUtils.currentLine=53411861;
 //BA.debugLineNum = 53411861;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=53411862;
 //BA.debugLineNum = 53411862;BA.debugLine="Dim itemText As String";
_itemtext = "";
RDebugUtils.currentLine=53411864;
 //BA.debugLineNum = 53411864;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=53411865;
 //BA.debugLineNum = 53411865;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=53411867;
 //BA.debugLineNum = 53411867;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=53411868;
 //BA.debugLineNum = 53411868;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=53411869;
 //BA.debugLineNum = 53411869;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=53411871;
 //BA.debugLineNum = 53411871;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=53411873;
 //BA.debugLineNum = 53411873;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { 
 }else {
RDebugUtils.currentLine=53411876;
 //BA.debugLineNum = 53411876;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} $";
_itemtext = (""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inventario: "+__c.SmartStringFormatter("",(Object)((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))))+"");
RDebugUtils.currentLine=53411877;
 //BA.debugLineNum = 53411877;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 };
 }
};
 }else {
RDebugUtils.currentLine=53411883;
 //BA.debugLineNum = 53411883;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles."));
 };
RDebugUtils.currentLine=53411885;
 //BA.debugLineNum = 53411885;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=53411888;
 //BA.debugLineNum = 53411888;BA.debugLine="End Sub";
return "";
}
public String  _b_regresa_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_regresa_click", false))
	 {return ((String) Debug.delegate(ba, "b_regresa_click", null));}
RDebugUtils.currentLine=53084160;
 //BA.debugLineNum = 53084160;BA.debugLine="Sub B_REGRESA_Click";
RDebugUtils.currentLine=53084161;
 //BA.debugLineNum = 53084161;BA.debugLine="Log(\"B_REGRESA_Click\")";
__c.LogImpl("253084161","B_REGRESA_Click",0);
RDebugUtils.currentLine=53084162;
 //BA.debugLineNum = 53084162;BA.debugLine="BUSCA.Visible = False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53084163;
 //BA.debugLineNum = 53084163;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53084164;
 //BA.debugLineNum = 53084164;BA.debugLine="trabajar.Visible = True";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53084165;
 //BA.debugLineNum = 53084165;BA.debugLine="B_CLIEPROD.Visible = True";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53084166;
 //BA.debugLineNum = 53084166;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53084167;
 //BA.debugLineNum = 53084167;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=53084168;
 //BA.debugLineNum = 53084168;BA.debugLine="End Sub";
return "";
}
public String  _b_regreso_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_regreso_click", false))
	 {return ((String) Debug.delegate(ba, "b_regreso_click", null));}
RDebugUtils.currentLine=53477376;
 //BA.debugLineNum = 53477376;BA.debugLine="Private Sub b_regreso_Click";
RDebugUtils.currentLine=53477377;
 //BA.debugLineNum = 53477377;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=53477378;
 //BA.debugLineNum = 53477378;BA.debugLine="End Sub";
return "";
}
public String  _b_tabulador_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_tabulador_click", false))
	 {return ((String) Debug.delegate(ba, "b_tabulador_click", null));}
RDebugUtils.currentLine=53215232;
 //BA.debugLineNum = 53215232;BA.debugLine="Private Sub b_tabulador_Click";
RDebugUtils.currentLine=53215233;
 //BA.debugLineNum = 53215233;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=53215234;
 //BA.debugLineNum = 53215234;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=53215236;
 //BA.debugLineNum = 53215236;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
_b4xpages._showpage /*String*/ (ba,"tabulador");
 };
RDebugUtils.currentLine=53215238;
 //BA.debugLineNum = 53215238;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_emp_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_venta_emp_click", false))
	 {return ((String) Debug.delegate(ba, "b_venta_emp_click", null));}
RDebugUtils.currentLine=53608448;
 //BA.debugLineNum = 53608448;BA.debugLine="Private Sub b_venta_emp_Click";
RDebugUtils.currentLine=53608449;
 //BA.debugLineNum = 53608449;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=53608450;
 //BA.debugLineNum = 53608450;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("63403")}));
RDebugUtils.currentLine=53608451;
 //BA.debugLineNum = 53608451;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=53608452;
 //BA.debugLineNum = 53608452;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
int _i = 0;
String _monto_rec_dia = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null;
int _i3 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
int _i4 = 0;
anywheresoftware.b4a.objects.collections.Map _entmap = null;
anywheresoftware.b4a.objects.collections.Map _rechmap = null;
anywheresoftware.b4a.objects.collections.Map _vendmap = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cancelrecha = null;
int _h54 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r5 = null;
String _rescant = "";
int _j4 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r6 = null;
String _totalcantped = "";
double _rescant2 = 0;
int _j5 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r5r = null;
String _rescantr = "";
int _j4r = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r6r = null;
String _rescant2r = "";
int _j5r = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r55 = null;
double _rescant3 = 0;
int _r75 = 0;
double _rescant4 = 0;
double _rescant5 = 0;
double _rescant6 = 0;
double _rescant7 = 0;
RDebugUtils.currentLine=51904512;
 //BA.debugLineNum = 51904512;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=51904514;
 //BA.debugLineNum = 51904514;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA")));
RDebugUtils.currentLine=51904515;
 //BA.debugLineNum = 51904515;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51904516;
 //BA.debugLineNum = 51904516;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 2  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA')");
 };
RDebugUtils.currentLine=51904518;
 //BA.debugLineNum = 51904518;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE FROM NOVENTA")));
RDebugUtils.currentLine=51904519;
 //BA.debugLineNum = 51904519;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51904520;
 //BA.debugLineNum = 51904520;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 3  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')");
 };
RDebugUtils.currentLine=51904523;
 //BA.debugLineNum = 51904523;BA.debugLine="b_check.visible = False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51904524;
 //BA.debugLineNum = 51904524;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=51904537;
 //BA.debugLineNum = 51904537;BA.debugLine="If EJECUTANDO = 0 Then";
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=51904538;
 //BA.debugLineNum = 51904538;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904539;
 //BA.debugLineNum = 51904539;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904540;
 //BA.debugLineNum = 51904540;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904541;
 //BA.debugLineNum = 51904541;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904542;
 //BA.debugLineNum = 51904542;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904543;
 //BA.debugLineNum = 51904543;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904544;
 //BA.debugLineNum = 51904544;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=51904546;
 //BA.debugLineNum = 51904546;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904547;
 //BA.debugLineNum = 51904547;BA.debugLine="f=Starter.skmt.ExecQuery(\"select rutaa from rutaa";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select rutaa from rutaa")));
RDebugUtils.currentLine=51904548;
 //BA.debugLineNum = 51904548;BA.debugLine="If f.RowCount > 0 Then";
if (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51904549;
 //BA.debugLineNum = 51904549;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904550;
 //BA.debugLineNum = 51904550;BA.debugLine="l_ruta.Text = f.GetString(\"RUTAA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")));
 };
RDebugUtils.currentLine=51904552;
 //BA.debugLineNum = 51904552;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904553;
 //BA.debugLineNum = 51904553;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=51904554;
 //BA.debugLineNum = 51904554;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904555;
 //BA.debugLineNum = 51904555;BA.debugLine="l_rutasP.Text = 0";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=51904557;
 //BA.debugLineNum = 51904557;BA.debugLine="f=Starter.skmt.ExecQuery(\"select distinct CAT_CL";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA")));
RDebugUtils.currentLine=51904559;
 //BA.debugLineNum = 51904559;BA.debugLine="l_rutasP.Text = \"\"";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=51904560;
 //BA.debugLineNum = 51904560;BA.debugLine="For i = 0 To f.RowCount - 1";
{
final int step33 = 1;
final int limit33 = (int) (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit33 ;_i = _i + step33 ) {
RDebugUtils.currentLine=51904561;
 //BA.debugLineNum = 51904561;BA.debugLine="f.Position = i";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=51904562;
 //BA.debugLineNum = 51904562;BA.debugLine="If i = 0 Then";
if (_i==0) { 
RDebugUtils.currentLine=51904563;
 //BA.debugLineNum = 51904563;BA.debugLine="l_rutasP.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
 }else {
RDebugUtils.currentLine=51904565;
 //BA.debugLineNum = 51904565;BA.debugLine="l_rutasP.Text = l_rutasP.Text & \", \" & f.GetSt";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+", "+__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
 };
 }
};
RDebugUtils.currentLine=51904568;
 //BA.debugLineNum = 51904568;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=51904570;
 //BA.debugLineNum = 51904570;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=51904571;
 //BA.debugLineNum = 51904571;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=51904572;
 //BA.debugLineNum = 51904572;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from kmt_info")));
RDebugUtils.currentLine=51904573;
 //BA.debugLineNum = 51904573;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904574;
 //BA.debugLineNum = 51904574;BA.debugLine="If b.RowCount > 0 Then Cuantos = b.GetString(\"CUA";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");};
RDebugUtils.currentLine=51904575;
 //BA.debugLineNum = 51904575;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=51904576;
 //BA.debugLineNum = 51904576;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904577;
 //BA.debugLineNum = 51904577;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904578;
 //BA.debugLineNum = 51904578;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=51904579;
 //BA.debugLineNum = 51904579;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904590;
 //BA.debugLineNum = 51904590;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51904591;
 //BA.debugLineNum = 51904591;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51904592;
 //BA.debugLineNum = 51904592;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=51904594;
 //BA.debugLineNum = 51904594;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=51904595;
 //BA.debugLineNum = 51904595;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904596;
 //BA.debugLineNum = 51904596;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904597;
 //BA.debugLineNum = 51904597;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904598;
 //BA.debugLineNum = 51904598;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=51904599;
 //BA.debugLineNum = 51904599;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904600;
 //BA.debugLineNum = 51904600;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=51904603;
 //BA.debugLineNum = 51904603;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904604;
 //BA.debugLineNum = 51904604;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904605;
 //BA.debugLineNum = 51904605;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));};
RDebugUtils.currentLine=51904606;
 //BA.debugLineNum = 51904606;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904607;
 //BA.debugLineNum = 51904607;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
if (__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));};
RDebugUtils.currentLine=51904608;
 //BA.debugLineNum = 51904608;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904609;
 //BA.debugLineNum = 51904609;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=51904611;
 //BA.debugLineNum = 51904611;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(hvd_costo_t";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_DIA  from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 ")));
RDebugUtils.currentLine=51904612;
 //BA.debugLineNum = 51904612;BA.debugLine="f1=Starter.skmt.ExecQuery(\"select sum(hvd_costo_";
__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0")));
RDebugUtils.currentLine=51904613;
 //BA.debugLineNum = 51904613;BA.debugLine="f2=Starter.skmt.ExecQuery(\"select sum(REP_COSTO_";
__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)")));
RDebugUtils.currentLine=51904615;
 //BA.debugLineNum = 51904615;BA.debugLine="b=Starter.skmt.ExecQuery(\"select count(DISTINCT";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE <> 63403")));
RDebugUtils.currentLine=51904617;
 //BA.debugLineNum = 51904617;BA.debugLine="L=Starter.skmt.ExecQuery(\"select count(DISTINCT";
__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE <> 63403")));
RDebugUtils.currentLine=51904618;
 //BA.debugLineNum = 51904618;BA.debugLine="f2.Position=0";
__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904621;
 //BA.debugLineNum = 51904621;BA.debugLine="Private MONTO_REC_DIA = 0";
_monto_rec_dia = BA.NumberToString(0);
RDebugUtils.currentLine=51904622;
 //BA.debugLineNum = 51904622;BA.debugLine="If f2.GetString(\"MONTO_REC_DIA\") <> Null Then MO";
if (__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_REC_DIA")!= null) { 
_monto_rec_dia = __ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_REC_DIA");};
RDebugUtils.currentLine=51904633;
 //BA.debugLineNum = 51904633;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904634;
 //BA.debugLineNum = 51904634;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904635;
 //BA.debugLineNum = 51904635;BA.debugLine="L.Position = 0";
__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904636;
 //BA.debugLineNum = 51904636;BA.debugLine="f1.Position = 0";
__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904637;
 //BA.debugLineNum = 51904637;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904638;
 //BA.debugLineNum = 51904638;BA.debugLine="If f1.RowCount > 0 Then l_aLiquidar.Text = to_nu";
if (__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._to_number_vb /*String*/ (null,(Object)(__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_TOTAL_DIA")))));};
RDebugUtils.currentLine=51904639;
 //BA.debugLineNum = 51904639;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904641;
 //BA.debugLineNum = 51904641;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904642;
 //BA.debugLineNum = 51904642;BA.debugLine="If L.RowCount > 0 Then l_cuantosc.Text = L.GetSt";
if (__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));};
RDebugUtils.currentLine=51904643;
 //BA.debugLineNum = 51904643;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904644;
 //BA.debugLineNum = 51904644;BA.debugLine="If b.RowCount > 0 Then l_cuantosn.Text = b.GetSt";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));};
RDebugUtils.currentLine=51904646;
 //BA.debugLineNum = 51904646;BA.debugLine="If f1.GetString(\"MONTO_TOTAL_DIA\") <> Null Then";
if (__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_TOTAL_DIA")!= null) { 
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_TOTAL_DIA"))),(int) (2))));};
RDebugUtils.currentLine=51904648;
 //BA.debugLineNum = 51904648;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904649;
 //BA.debugLineNum = 51904649;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));};
RDebugUtils.currentLine=51904650;
 //BA.debugLineNum = 51904650;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51904651;
 //BA.debugLineNum = 51904651;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
if (__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));};
RDebugUtils.currentLine=51904652;
 //BA.debugLineNum = 51904652;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904653;
 //BA.debugLineNum = 51904653;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904664;
 //BA.debugLineNum = 51904664;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=51904666;
 //BA.debugLineNum = 51904666;BA.debugLine="c=Starter.skmt.ExecQuery(\"select  ID_ALMACEN from";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=51904667;
 //BA.debugLineNum = 51904667;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904668;
 //BA.debugLineNum = 51904668;BA.debugLine="ALMACEN = 0";
__ref._almacen /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904669;
 //BA.debugLineNum = 51904669;BA.debugLine="If C.RowCount > 0 Then ALMACEN = C.GetString(\"ID_";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");};
RDebugUtils.currentLine=51904670;
 //BA.debugLineNum = 51904670;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=51904671;
 //BA.debugLineNum = 51904671;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904672;
 //BA.debugLineNum = 51904672;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HGDATE, HGLAT, H";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
RDebugUtils.currentLine=51904674;
 //BA.debugLineNum = 51904674;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51904675;
 //BA.debugLineNum = 51904675;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step107 = 1;
final int limit107 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit107 ;_i = _i + step107 ) {
RDebugUtils.currentLine=51904676;
 //BA.debugLineNum = 51904676;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=51904677;
 //BA.debugLineNum = 51904677;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=51904678;
 //BA.debugLineNum = 51904678;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=51904679;
 //BA.debugLineNum = 51904679;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_gps_actual_REP";
RDebugUtils.currentLine=51904680;
 //BA.debugLineNum = 51904680;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(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")),(Object)(__ref._usuario /*String*/ )};
 }
};
 };
RDebugUtils.currentLine=51904684;
 //BA.debugLineNum = 51904684;BA.debugLine="bu.Initialize";
__ref._bu /*reparto_intmex.keymon.lat.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=51904685;
 //BA.debugLineNum = 51904685;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*reparto_intmex.keymon.lat.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=51904687;
 //BA.debugLineNum = 51904687;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/  = __ref._batterystatus /*int[]*/ [(int) (0)];
RDebugUtils.currentLine=51904688;
 //BA.debugLineNum = 51904688;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=51904689;
 //BA.debugLineNum = 51904689;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904690;
 //BA.debugLineNum = 51904690;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=51904691;
 //BA.debugLineNum = 51904691;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904692;
 //BA.debugLineNum = 51904692;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=51904693;
 //BA.debugLineNum = 51904693;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51904694;
 //BA.debugLineNum = 51904694;BA.debugLine="RUTA_T = 0";
__ref._ruta_t /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=51904695;
 //BA.debugLineNum = 51904695;BA.debugLine="If c.RowCount > 0 Then RUTA_T = c.GetString(\"RUTA";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._ruta_t /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");};
RDebugUtils.currentLine=51904696;
 //BA.debugLineNum = 51904696;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._ruta_t /*String*/ ;
RDebugUtils.currentLine=51904697;
 //BA.debugLineNum = 51904697;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51904698;
 //BA.debugLineNum = 51904698;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=51904700;
 //BA.debugLineNum = 51904700;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"1\" and REP_CANT > 0"))));
RDebugUtils.currentLine=51904702;
 //BA.debugLineNum = 51904702;BA.debugLine="If rc.RowCount > 0 Then";
if (_rc.getRowCount()>0) { 
RDebugUtils.currentLine=51904703;
 //BA.debugLineNum = 51904703;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from RECHAZOS"));
RDebugUtils.currentLine=51904704;
 //BA.debugLineNum = 51904704;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo";
{
final int step132 = 1;
final int limit132 = (int) (_rc.getRowCount()-1);
_i3 = (int) (0) ;
for (;_i3 <= limit132 ;_i3 = _i3 + step132 ) {
RDebugUtils.currentLine=51904705;
 //BA.debugLineNum = 51904705;BA.debugLine="rc.Position = i3";
_rc.setPosition(_i3);
RDebugUtils.currentLine=51904708;
 //BA.debugLineNum = 51904708;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into RECHAZO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into RECHAZOS(R_FECHA, R_CLIENTE, R_CLI_ORIG, R_PRODID, R_CANT, R_RECHAZO, R_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '1' and REP_CANT > 0"));
 }
};
 };
RDebugUtils.currentLine=51904711;
 //BA.debugLineNum = 51904711;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"0\" and REP_CANT > 0"))));
RDebugUtils.currentLine=51904713;
 //BA.debugLineNum = 51904713;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=51904714;
 //BA.debugLineNum = 51904714;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from VENTAS"));
RDebugUtils.currentLine=51904715;
 //BA.debugLineNum = 51904715;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas";
{
final int step140 = 1;
final int limit140 = (int) (_vc.getRowCount()-1);
_i4 = (int) (0) ;
for (;_i4 <= limit140 ;_i4 = _i4 + step140 ) {
RDebugUtils.currentLine=51904716;
 //BA.debugLineNum = 51904716;BA.debugLine="vc.Position = i4";
_vc.setPosition(_i4);
RDebugUtils.currentLine=51904719;
 //BA.debugLineNum = 51904719;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into VENTAS(";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into VENTAS(V_FECHA, V_CLIENTE, V_CLI_ORIG, V_PRODID, V_CANT, V_RECHAZO, V_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '0' and REP_CANT > 0"));
 }
};
 };
RDebugUtils.currentLine=51904722;
 //BA.debugLineNum = 51904722;BA.debugLine="Starter.ENVIA_ULTIMA_GPS";
_starter._envia_ultima_gps /*String*/ ();
RDebugUtils.currentLine=51904727;
 //BA.debugLineNum = 51904727;BA.debugLine="Dim entMap As Map = Subs.traeEntregados";
_entmap = new anywheresoftware.b4a.objects.collections.Map();
_entmap = _subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=51904728;
 //BA.debugLineNum = 51904728;BA.debugLine="Dim rechMap As Map = Subs.traeRechazados";
_rechmap = new anywheresoftware.b4a.objects.collections.Map();
_rechmap = _subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=51904729;
 //BA.debugLineNum = 51904729;BA.debugLine="Dim vendMap As Map = Subs.traeVendidos";
_vendmap = new anywheresoftware.b4a.objects.collections.Map();
_vendmap = _subs._traevendidos /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=51904730;
 //BA.debugLineNum = 51904730;BA.debugLine="l_aLiquidar.Text = entMap.Get(\"monto\") + vendMap.";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence((double)(BA.ObjectToNumber(_entmap.Get((Object)("monto"))))+(double)(BA.ObjectToNumber(_vendmap.Get((Object)("monto"))))));
RDebugUtils.currentLine=51904732;
 //BA.debugLineNum = 51904732;BA.debugLine="Dim cancelrecha As Cursor = Starter.skmt.ExecQuer";
_cancelrecha = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cancelrecha = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull(HVD_RECHAZOCANT,0), HVD_RECHAZO, CONSECUTIVO FROM HIST_VENTAS")));
RDebugUtils.currentLine=51904733;
 //BA.debugLineNum = 51904733;BA.debugLine="If cancelrecha.RowCount > 0 Then";
if (_cancelrecha.getRowCount()>0) { 
RDebugUtils.currentLine=51904734;
 //BA.debugLineNum = 51904734;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1";
{
final int step152 = 1;
final int limit152 = (int) (_cancelrecha.getRowCount()-1);
_h54 = (int) (0) ;
for (;_h54 <= limit152 ;_h54 = _h54 + step152 ) {
RDebugUtils.currentLine=51904735;
 //BA.debugLineNum = 51904735;BA.debugLine="cancelrecha.Position = h54";
_cancelrecha.setPosition(_h54);
RDebugUtils.currentLine=51904736;
 //BA.debugLineNum = 51904736;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update HIST_VENTAS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update HIST_VENTAS set HVD_RECHAZO = '0'  WHERE CONSECUTIVO = ? and (HVD_RECHAZOCANT = 0 OR HVD_RECHAZOCANT IS NULL)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cancelrecha.GetString("CONSECUTIVO")}));
 }
};
 };
RDebugUtils.currentLine=51904739;
 //BA.debugLineNum = 51904739;BA.debugLine="cancelrecha.Close";
_cancelrecha.Close();
RDebugUtils.currentLine=51904743;
 //BA.debugLineNum = 51904743;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID "))));
RDebugUtils.currentLine=51904745;
 //BA.debugLineNum = 51904745;BA.debugLine="Private rescant As String = 0";
_rescant = BA.NumberToString(0);
RDebugUtils.currentLine=51904746;
 //BA.debugLineNum = 51904746;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904747;
 //BA.debugLineNum = 51904747;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step161 = 1;
final int limit161 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit161 ;_j4 = _j4 + step161 ) {
RDebugUtils.currentLine=51904748;
 //BA.debugLineNum = 51904748;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=51904749;
 //BA.debugLineNum = 51904749;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' "))));
RDebugUtils.currentLine=51904750;
 //BA.debugLineNum = 51904750;BA.debugLine="Dim totalcantped As String";
_totalcantped = "";
RDebugUtils.currentLine=51904751;
 //BA.debugLineNum = 51904751;BA.debugLine="If r6.RowCount > 0 Then";
if (_r6.getRowCount()>0) { 
RDebugUtils.currentLine=51904752;
 //BA.debugLineNum = 51904752;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=51904753;
 //BA.debugLineNum = 51904753;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")";
_totalcantped = _r6.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=51904756;
 //BA.debugLineNum = 51904756;BA.debugLine="totalcantped = 0";
_totalcantped = BA.NumberToString(0);
 };
RDebugUtils.currentLine=51904759;
 //BA.debugLineNum = 51904759;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot";
__c.LogImpl("251904759",_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped,0);
RDebugUtils.currentLine=51904760;
 //BA.debugLineNum = 51904760;BA.debugLine="rescant = rescant + ((r5.GetString(\"HVD_COSTO_T";
_rescant = BA.NumberToString((double)(Double.parseDouble(_rescant))+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_totalcantped))))));
RDebugUtils.currentLine=51904762;
 //BA.debugLineNum = 51904762;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=51904765;
 //BA.debugLineNum = 51904765;BA.debugLine="If rescant = \"NaN\" Then rescant = 0";
if ((_rescant).equals("NaN")) { 
_rescant = BA.NumberToString(0);};
RDebugUtils.currentLine=51904766;
 //BA.debugLineNum = 51904766;BA.debugLine="LogColor(rescant,Colors.Red)";
__c.LogImpl("251904766",_rescant,__c.Colors.Red);
RDebugUtils.currentLine=51904767;
 //BA.debugLineNum = 51904767;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904771;
 //BA.debugLineNum = 51904771;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
RDebugUtils.currentLine=51904775;
 //BA.debugLineNum = 51904775;BA.debugLine="Private rescant2 As Double = 0";
_rescant2 = 0;
RDebugUtils.currentLine=51904776;
 //BA.debugLineNum = 51904776;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904777;
 //BA.debugLineNum = 51904777;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step182 = 1;
final int limit182 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit182 ;_j5 = _j5 + step182 ) {
RDebugUtils.currentLine=51904778;
 //BA.debugLineNum = 51904778;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=51904779;
 //BA.debugLineNum = 51904779;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"'  AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=51904780;
 //BA.debugLineNum = 51904780;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=51904782;
 //BA.debugLineNum = 51904782;BA.debugLine="rescant2 = rescant2 + ((r5.GetString(\"HVD_COSTO";
_rescant2 = _rescant2+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_r6.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID"))))));
RDebugUtils.currentLine=51904783;
 //BA.debugLineNum = 51904783;BA.debugLine="rescant2 = NumberFormat2(rescant2, 0, 2, 2, Fal";
_rescant2 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant2,(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=51904784;
 //BA.debugLineNum = 51904784;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=51904787;
 //BA.debugLineNum = 51904787;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0";
if (_rescant2==(double)(Double.parseDouble("NaN"))) { 
_rescant2 = 0;};
RDebugUtils.currentLine=51904788;
 //BA.debugLineNum = 51904788;BA.debugLine="Log(rescant2)";
__c.LogImpl("251904788",BA.NumberToString(_rescant2),0);
RDebugUtils.currentLine=51904789;
 //BA.debugLineNum = 51904789;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904794;
 //BA.debugLineNum = 51904794;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
_r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "))));
RDebugUtils.currentLine=51904796;
 //BA.debugLineNum = 51904796;BA.debugLine="Private rescantr As String = 0";
_rescantr = BA.NumberToString(0);
RDebugUtils.currentLine=51904797;
 //BA.debugLineNum = 51904797;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=51904798;
 //BA.debugLineNum = 51904798;BA.debugLine="For j4r = 0 To r5r.RowCount -1";
{
final int step197 = 1;
final int limit197 = (int) (_r5r.getRowCount()-1);
_j4r = (int) (0) ;
for (;_j4r <= limit197 ;_j4r = _j4r + step197 ) {
RDebugUtils.currentLine=51904799;
 //BA.debugLineNum = 51904799;BA.debugLine="r5r.Position = j4r";
_r5r.setPosition(_j4r);
RDebugUtils.currentLine=51904800;
 //BA.debugLineNum = 51904800;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
_r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"' "))));
RDebugUtils.currentLine=51904801;
 //BA.debugLineNum = 51904801;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=51904804;
 //BA.debugLineNum = 51904804;BA.debugLine="rescantr = rescantr + ((r5r.GetString(\"HVD_COST";
_rescantr = BA.NumberToString((double)(Double.parseDouble(_rescantr))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("HVD_CANT")))))*(double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT"))))));
RDebugUtils.currentLine=51904805;
 //BA.debugLineNum = 51904805;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=51904808;
 //BA.debugLineNum = 51904808;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0";
if ((_rescantr).equals("NaN")) { 
_rescantr = BA.NumberToString(0);};
RDebugUtils.currentLine=51904810;
 //BA.debugLineNum = 51904810;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=51904812;
 //BA.debugLineNum = 51904812;BA.debugLine="Log(rescantr)";
__c.LogImpl("251904812",_rescantr,0);
RDebugUtils.currentLine=51904814;
 //BA.debugLineNum = 51904814;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
_r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
RDebugUtils.currentLine=51904818;
 //BA.debugLineNum = 51904818;BA.debugLine="Private rescant2r As String = 0";
_rescant2r = BA.NumberToString(0);
RDebugUtils.currentLine=51904819;
 //BA.debugLineNum = 51904819;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=51904820;
 //BA.debugLineNum = 51904820;BA.debugLine="For j5r = 0 To r5r.RowCount -1";
{
final int step211 = 1;
final int limit211 = (int) (_r5r.getRowCount()-1);
_j5r = (int) (0) ;
for (;_j5r <= limit211 ;_j5r = _j5r + step211 ) {
RDebugUtils.currentLine=51904821;
 //BA.debugLineNum = 51904821;BA.debugLine="r5r.Position = j5r";
_r5r.setPosition(_j5r);
RDebugUtils.currentLine=51904822;
 //BA.debugLineNum = 51904822;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
_r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"'  AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=51904823;
 //BA.debugLineNum = 51904823;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=51904825;
 //BA.debugLineNum = 51904825;BA.debugLine="rescant2r = rescant2r + ((r5r.GetString(\"HVD_CO";
_rescant2r = BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("CANTC")))))*((double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5r.GetString("HVD_PROID")))))));
RDebugUtils.currentLine=51904826;
 //BA.debugLineNum = 51904826;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=51904829;
 //BA.debugLineNum = 51904829;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0";
if ((_rescant2r).equals("NaN")) { 
_rescant2r = BA.NumberToString(0);};
RDebugUtils.currentLine=51904831;
 //BA.debugLineNum = 51904831;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=51904832;
 //BA.debugLineNum = 51904832;BA.debugLine="Log(rescant2r)";
__c.LogImpl("251904832",_rescant2r,0);
RDebugUtils.currentLine=51904833;
 //BA.debugLineNum = 51904833;BA.debugLine="Log(rescant2r+rescantr)";
__c.LogImpl("251904833",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0);
RDebugUtils.currentLine=51904849;
 //BA.debugLineNum = 51904849;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\"";
_r55 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r55 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' "))));
RDebugUtils.currentLine=51904850;
 //BA.debugLineNum = 51904850;BA.debugLine="Private rescant3 As Double";
_rescant3 = 0;
RDebugUtils.currentLine=51904851;
 //BA.debugLineNum = 51904851;BA.debugLine="If r55.RowCount > 0 Then";
if (_r55.getRowCount()>0) { 
RDebugUtils.currentLine=51904852;
 //BA.debugLineNum = 51904852;BA.debugLine="For r75 = 0 To r55.RowCount -1";
{
final int step226 = 1;
final int limit226 = (int) (_r55.getRowCount()-1);
_r75 = (int) (0) ;
for (;_r75 <= limit226 ;_r75 = _r75 + step226 ) {
RDebugUtils.currentLine=51904853;
 //BA.debugLineNum = 51904853;BA.debugLine="r55.Position = r75";
_r55.setPosition(_r75);
RDebugUtils.currentLine=51904854;
 //BA.debugLineNum = 51904854;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_";
_rescant3 = _rescant3+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
RDebugUtils.currentLine=51904855;
 //BA.debugLineNum = 51904855;BA.debugLine="rescant3 = NumberFormat2(rescant3, 0, 2, 2, Fal";
_rescant3 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant3,(int) (0),(int) (2),(int) (2),__c.False)));
 }
};
 };
RDebugUtils.currentLine=51904859;
 //BA.debugLineNum = 51904859;BA.debugLine="Log(rescant3)";
__c.LogImpl("251904859",BA.NumberToString(_rescant3),0);
RDebugUtils.currentLine=51904860;
 //BA.debugLineNum = 51904860;BA.debugLine="r55.Close";
_r55.Close();
RDebugUtils.currentLine=51904865;
 //BA.debugLineNum = 51904865;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' "))));
RDebugUtils.currentLine=51904866;
 //BA.debugLineNum = 51904866;BA.debugLine="Private rescant4 As Double";
_rescant4 = 0;
RDebugUtils.currentLine=51904867;
 //BA.debugLineNum = 51904867;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904868;
 //BA.debugLineNum = 51904868;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=51904869;
 //BA.debugLineNum = 51904869;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")";
_rescant4 = (double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")));
 };
RDebugUtils.currentLine=51904871;
 //BA.debugLineNum = 51904871;BA.debugLine="Log(rescant4)";
__c.LogImpl("251904871",BA.NumberToString(_rescant4),0);
RDebugUtils.currentLine=51904872;
 //BA.debugLineNum = 51904872;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904874;
 //BA.debugLineNum = 51904874;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO "))));
RDebugUtils.currentLine=51904875;
 //BA.debugLineNum = 51904875;BA.debugLine="Private rescant5 As Double";
_rescant5 = 0;
RDebugUtils.currentLine=51904876;
 //BA.debugLineNum = 51904876;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904877;
 //BA.debugLineNum = 51904877;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=51904878;
 //BA.debugLineNum = 51904878;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")";
_rescant5 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
 };
RDebugUtils.currentLine=51904880;
 //BA.debugLineNum = 51904880;BA.debugLine="Log(rescant5)";
__c.LogImpl("251904880",BA.NumberToString(_rescant5),0);
RDebugUtils.currentLine=51904881;
 //BA.debugLineNum = 51904881;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904886;
 //BA.debugLineNum = 51904886;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "))));
RDebugUtils.currentLine=51904887;
 //BA.debugLineNum = 51904887;BA.debugLine="Private rescant6 As Double";
_rescant6 = 0;
RDebugUtils.currentLine=51904888;
 //BA.debugLineNum = 51904888;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904889;
 //BA.debugLineNum = 51904889;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step253 = 1;
final int limit253 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit253 ;_j4 = _j4 + step253 ) {
RDebugUtils.currentLine=51904890;
 //BA.debugLineNum = 51904890;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=51904891;
 //BA.debugLineNum = 51904891;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' "))));
RDebugUtils.currentLine=51904892;
 //BA.debugLineNum = 51904892;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=51904895;
 //BA.debugLineNum = 51904895;BA.debugLine="rescant6 = rescant6 + ((r5.GetString(\"HVD_COSTO";
_rescant6 = _rescant6+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=51904897;
 //BA.debugLineNum = 51904897;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=51904900;
 //BA.debugLineNum = 51904900;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0";
if (_rescant6==(double)(Double.parseDouble("NaN"))) { 
_rescant6 = 0;};
RDebugUtils.currentLine=51904901;
 //BA.debugLineNum = 51904901;BA.debugLine="LogColor(rescant6,Colors.Red)";
__c.LogImpl("251904901",BA.NumberToString(_rescant6),__c.Colors.Red);
RDebugUtils.currentLine=51904902;
 //BA.debugLineNum = 51904902;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904904;
 //BA.debugLineNum = 51904904;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
RDebugUtils.currentLine=51904905;
 //BA.debugLineNum = 51904905;BA.debugLine="Private rescant7 As Double";
_rescant7 = 0;
RDebugUtils.currentLine=51904906;
 //BA.debugLineNum = 51904906;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=51904907;
 //BA.debugLineNum = 51904907;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step267 = 1;
final int limit267 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit267 ;_j5 = _j5 + step267 ) {
RDebugUtils.currentLine=51904908;
 //BA.debugLineNum = 51904908;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=51904909;
 //BA.debugLineNum = 51904909;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"'  AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=51904910;
 //BA.debugLineNum = 51904910;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=51904912;
 //BA.debugLineNum = 51904912;BA.debugLine="rescant7 = rescant7 + ((r5.GetString(\"HVD_COSTO";
_rescant7 = _rescant7+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID"))))));
RDebugUtils.currentLine=51904913;
 //BA.debugLineNum = 51904913;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=51904916;
 //BA.debugLineNum = 51904916;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0";
if (_rescant7==(double)(Double.parseDouble("NaN"))) { 
_rescant7 = 0;};
RDebugUtils.currentLine=51904917;
 //BA.debugLineNum = 51904917;BA.debugLine="Log(rescant7)";
__c.LogImpl("251904917",BA.NumberToString(_rescant7),0);
RDebugUtils.currentLine=51904918;
 //BA.debugLineNum = 51904918;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=51904921;
 //BA.debugLineNum = 51904921;BA.debugLine="l_rechazo.text = NumberFormat2((rescant + rescant";
__ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_rescant))+_rescant2),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=51904922;
 //BA.debugLineNum = 51904922;BA.debugLine="L_MONTOE.Text = NumberFormat2((rescant3 + rescant";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((_rescant3+_rescant4+_rescant5+_rescant6+_rescant7),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=51904925;
 //BA.debugLineNum = 51904925;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904926;
 //BA.debugLineNum = 51904926;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904927;
 //BA.debugLineNum = 51904927;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/  = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904928;
 //BA.debugLineNum = 51904928;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904929;
 //BA.debugLineNum = 51904929;BA.debugLine="B4XPages.MainPage.montoActual = Round2(l_montoSal";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._montoactual /*String*/  = BA.NumberToString(__c.Round2((double)(Double.parseDouble(__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))-(double)(BA.ObjectToNumber(_rechmap.Get((Object)("monto")))),(int) (2)));
RDebugUtils.currentLine=51904930;
 //BA.debugLineNum = 51904930;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/  = __ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904931;
 //BA.debugLineNum = 51904931;BA.debugLine="B4XPages.MainPage.entregas = l_cuantosc.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._entregas /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904932;
 //BA.debugLineNum = 51904932;BA.debugLine="B4XPages.MainPage.rechazos = l_cuantosn.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._rechazos /*String*/  = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904933;
 //BA.debugLineNum = 51904933;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904934;
 //BA.debugLineNum = 51904934;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/  = __ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=51904936;
 //BA.debugLineNum = 51904936;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=51904939;
 //BA.debugLineNum = 51904939;BA.debugLine="If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Th";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0)) && (__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=51904940;
 //BA.debugLineNum = 51904940;BA.debugLine="Label9.Visible = True";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=51904941;
 //BA.debugLineNum = 51904941;BA.debugLine="L_MONTOE.Visible = True";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=51904950;
 //BA.debugLineNum = 51904950;BA.debugLine="b_venta_emp.Visible = False";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=51904952;
 //BA.debugLineNum = 51904952;BA.debugLine="Label9.Visible = False";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51904953;
 //BA.debugLineNum = 51904953;BA.debugLine="L_MONTOE.Visible = False";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51904954;
 //BA.debugLineNum = 51904954;BA.debugLine="b_venta_emp.Visible = False";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=51904966;
 //BA.debugLineNum = 51904966;BA.debugLine="End Sub";
return "";
}
public String  _to_number_vb(reparto_intmex.keymon.lat.c_principal __ref,Object _valor) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "to_number_vb", false))
	 {return ((String) Debug.delegate(ba, "to_number_vb", new Object[] {_valor}));}
int _valstring = 0;
String _valstring2 = "";
RDebugUtils.currentLine=52101120;
 //BA.debugLineNum = 52101120;BA.debugLine="Sub to_number_vb (valor As Object) As String";
RDebugUtils.currentLine=52101121;
 //BA.debugLineNum = 52101121;BA.debugLine="Dim valstring As Int";
_valstring = 0;
RDebugUtils.currentLine=52101122;
 //BA.debugLineNum = 52101122;BA.debugLine="Dim valstring2 As String = valor";
_valstring2 = BA.ObjectToString(_valor);
RDebugUtils.currentLine=52101123;
 //BA.debugLineNum = 52101123;BA.debugLine="valstring2.Replace(\":\",\"\")";
_valstring2.replace(":","");
RDebugUtils.currentLine=52101124;
 //BA.debugLineNum = 52101124;BA.debugLine="Try";
try {RDebugUtils.currentLine=52101125;
 //BA.debugLineNum = 52101125;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")";
_valstring = (int)(Double.parseDouble(_valstring2.replace(":","")));
RDebugUtils.currentLine=52101126;
 //BA.debugLineNum = 52101126;BA.debugLine="Return valstring";
if (true) return BA.NumberToString(_valstring);
 } 
       catch (Exception e8) {
			ba.setLastException(e8);RDebugUtils.currentLine=52101128;
 //BA.debugLineNum = 52101128;BA.debugLine="Return 0";
if (true) return BA.NumberToString(0);
 };
RDebugUtils.currentLine=52101130;
 //BA.debugLineNum = 52101130;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_intmex.keymon.lat.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(reparto_intmex.keymon.lat.c_principal parent,reparto_intmex.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.c_principal __ref;
reparto_intmex.keymon.lat.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=52559874;
 //BA.debugLineNum = 52559874;BA.debugLine="If Panel1.visible Then";
if (true) break;

case 1:
//if
this.state = 8;
if (__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=52559877;
 //BA.debugLineNum = 52559877;BA.debugLine="Else If p_prod.Visible Then";
if (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else {
this.state = 7;
}}
if (true) break;

case 3:
//C
this.state = 8;
RDebugUtils.currentLine=52559875;
 //BA.debugLineNum = 52559875;BA.debugLine="Log(\"PANEL1 VISIBLE\")";
parent.__c.LogImpl("252559875","PANEL1 VISIBLE",0);
RDebugUtils.currentLine=52559876;
 //BA.debugLineNum = 52559876;BA.debugLine="B_REGRESA_Click";
__ref._b_regresa_click /*String*/ (null);
 if (true) break;

case 5:
//C
this.state = 8;
RDebugUtils.currentLine=52559878;
 //BA.debugLineNum = 52559878;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

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

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_intmex.keymon.lat.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}));}
RDebugUtils.currentLine=51838976;
 //BA.debugLineNum = 51838976;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=51838977;
 //BA.debugLineNum = 51838977;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=51838979;
 //BA.debugLineNum = 51838979;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=51838980;
 //BA.debugLineNum = 51838980;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=51838981;
 //BA.debugLineNum = 51838981;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=51838984;
 //BA.debugLineNum = 51838984;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=51838985;
 //BA.debugLineNum = 51838985;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=51838986;
 //BA.debugLineNum = 51838986;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=51838988;
 //BA.debugLineNum = 51838988;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=51838989;
 //BA.debugLineNum = 51838989;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51838990;
 //BA.debugLineNum = 51838990;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=51838991;
 //BA.debugLineNum = 51838991;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND  CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=51838992;
 //BA.debugLineNum = 51838992;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51838993;
 //BA.debugLineNum = 51838993;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51838994;
 //BA.debugLineNum = 51838994;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=51838995;
 //BA.debugLineNum = 51838995;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51838996;
 //BA.debugLineNum = 51838996;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=51838997;
 //BA.debugLineNum = 51838997;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51838998;
 //BA.debugLineNum = 51838998;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51838999;
 //BA.debugLineNum = 51838999;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51839000;
 //BA.debugLineNum = 51839000;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=51839001;
 //BA.debugLineNum = 51839001;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=51839002;
 //BA.debugLineNum = 51839002;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=51839004;
 //BA.debugLineNum = 51839004;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=51839005;
 //BA.debugLineNum = 51839005;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=51839024;
 //BA.debugLineNum = 51839024;BA.debugLine="b=Starter.skmt.ExecQuery(\"select id_almacen from";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select id_almacen from CAT_ALMACEN")));
RDebugUtils.currentLine=51839025;
 //BA.debugLineNum = 51839025;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51839027;
 //BA.debugLineNum = 51839027;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51839029;
 //BA.debugLineNum = 51839029;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=51839030;
 //BA.debugLineNum = 51839030;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=51839031;
 //BA.debugLineNum = 51839031;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_mards";
RDebugUtils.currentLine=51839032;
 //BA.debugLineNum = 51839032;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"))};
RDebugUtils.currentLine=51839033;
 //BA.debugLineNum = 51839033;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
 };
RDebugUtils.currentLine=51839035;
 //BA.debugLineNum = 51839035;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/  = _subs._dameusuariodedb /*String*/ (ba);
RDebugUtils.currentLine=51839036;
 //BA.debugLineNum = 51839036;BA.debugLine="End Sub";
return "";
}
public String  _btn_ubicar_ru_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "btn_ubicar_ru_click", false))
	 {return ((String) Debug.delegate(ba, "btn_ubicar_ru_click", null));}
RDebugUtils.currentLine=53149696;
 //BA.debugLineNum = 53149696;BA.debugLine="Sub Btn_Ubicar_Ru_Click";
RDebugUtils.currentLine=53149697;
 //BA.debugLineNum = 53149697;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=53149698;
 //BA.debugLineNum = 53149698;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=53149701;
 //BA.debugLineNum = 53149701;BA.debugLine="StartActivity(MAPA_RUTAS)";
__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
 };
RDebugUtils.currentLine=53149703;
 //BA.debugLineNum = 53149703;BA.debugLine="End Sub";
return "";
}
public String  _busca_click(reparto_intmex.keymon.lat.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=52690944;
 //BA.debugLineNum = 52690944;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=52690945;
 //BA.debugLineNum = 52690945;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=52690946;
 //BA.debugLineNum = 52690946;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=52690949;
 //BA.debugLineNum = 52690949;BA.debugLine="B4XPages.ShowPage(\"Buscar\")";
_b4xpages._showpage /*String*/ (ba,"Buscar");
 };
RDebugUtils.currentLine=52690951;
 //BA.debugLineNum = 52690951;BA.debugLine="End Sub";
return "";
}
public String  _cargar____click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargar____click", false))
	 {return ((String) Debug.delegate(ba, "cargar____click", null));}
boolean _pedidodiaanterior = false;
String[] _fecha2 = null;
String[] _fecha3 = null;
String _dia = "";
String _dia2 = "";
RDebugUtils.currentLine=52428800;
 //BA.debugLineNum = 52428800;BA.debugLine="Sub cargar____Click";
RDebugUtils.currentLine=52428801;
 //BA.debugLineNum = 52428801;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=52428802;
 //BA.debugLineNum = 52428802;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA")));
RDebugUtils.currentLine=52428803;
 //BA.debugLineNum = 52428803;BA.debugLine="If cp.RowCount > 0 Then";
if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52428804;
 //BA.debugLineNum = 52428804;BA.debugLine="cp.Position = 0";
__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52428805;
 //BA.debugLineNum = 52428805;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA");
RDebugUtils.currentLine=52428806;
 //BA.debugLineNum = 52428806;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
__c.LogImpl("252428806",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0);
RDebugUtils.currentLine=52428807;
 //BA.debugLineNum = 52428807;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ );
RDebugUtils.currentLine=52428808;
 //BA.debugLineNum = 52428808;BA.debugLine="Log(fecha2(0))";
__c.LogImpl("252428808",_fecha2[(int) (0)],0);
RDebugUtils.currentLine=52428809;
 //BA.debugLineNum = 52428809;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
RDebugUtils.currentLine=52428810;
 //BA.debugLineNum = 52428810;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=52428811;
 //BA.debugLineNum = 52428811;BA.debugLine="DateTime.TimeFormat = \"\"";
__c.DateTime.setTimeFormat("");
RDebugUtils.currentLine=52428812;
 //BA.debugLineNum = 52428812;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
RDebugUtils.currentLine=52428813;
 //BA.debugLineNum = 52428813;BA.debugLine="Log(dia)";
__c.LogImpl("252428813",_dia,0);
RDebugUtils.currentLine=52428814;
 //BA.debugLineNum = 52428814;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=52428815;
 //BA.debugLineNum = 52428815;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("252428815",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=52428816;
 //BA.debugLineNum = 52428816;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=52428817;
 //BA.debugLineNum = 52428817;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=52428820;
 //BA.debugLineNum = 52428820;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=52428821;
 //BA.debugLineNum = 52428821;BA.debugLine="Log(\"CUMPLE\")";
__c.LogImpl("252428821","CUMPLE",0);
RDebugUtils.currentLine=52428822;
 //BA.debugLineNum = 52428822;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52428823;
 //BA.debugLineNum = 52428823;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=52428824;
 //BA.debugLineNum = 52428824;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=52428825;
 //BA.debugLineNum = 52428825;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
__c.LogImpl("252428825",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=52428826;
 //BA.debugLineNum = 52428826;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=52428828;
 //BA.debugLineNum = 52428828;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52428829;
 //BA.debugLineNum = 52428829;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428830;
 //BA.debugLineNum = 52428830;BA.debugLine="cmd.Name = \"insert_drop_rep_INTMEX2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_INTMEX2";
RDebugUtils.currentLine=52428831;
 //BA.debugLineNum = 52428831;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=52428832;
 //BA.debugLineNum = 52428832;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=52428835;
 //BA.debugLineNum = 52428835;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=52428836;
 //BA.debugLineNum = 52428836;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=52428837;
 //BA.debugLineNum = 52428837;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=52428838;
 //BA.debugLineNum = 52428838;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=52428839;
 //BA.debugLineNum = 52428839;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=52428841;
 //BA.debugLineNum = 52428841;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
RDebugUtils.currentLine=52428842;
 //BA.debugLineNum = 52428842;BA.debugLine="If l_ruta.Text = \"0\" Then '";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=52428843;
 //BA.debugLineNum = 52428843;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
__c.LogImpl("252428843","*********************  No hay ruta, BORRAMOS TODO",0);
RDebugUtils.currentLine=52428844;
 //BA.debugLineNum = 52428844;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=52428845;
 //BA.debugLineNum = 52428845;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=52428846;
 //BA.debugLineNum = 52428846;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=52428847;
 //BA.debugLineNum = 52428847;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=52428848;
 //BA.debugLineNum = 52428848;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
RDebugUtils.currentLine=52428849;
 //BA.debugLineNum = 52428849;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
 }else {
RDebugUtils.currentLine=52428851;
 //BA.debugLineNum = 52428851;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
__c.LogImpl("252428851","*********************  Hay ruta, NO BORRAMOS TODO",0);
 };
RDebugUtils.currentLine=52428855;
 //BA.debugLineNum = 52428855;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=52428856;
 //BA.debugLineNum = 52428856;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52428857;
 //BA.debugLineNum = 52428857;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=52428859;
 //BA.debugLineNum = 52428859;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428860;
 //BA.debugLineNum = 52428860;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_mards_re_REPG";
RDebugUtils.currentLine=52428861;
 //BA.debugLineNum = 52428861;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428862;
 //BA.debugLineNum = 52428862;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=52428863;
 //BA.debugLineNum = 52428863;BA.debugLine="Log($\"Pedimos Punteo\"$)";
__c.LogImpl("252428863",("Pedimos Punteo"),0);
RDebugUtils.currentLine=52428864;
 //BA.debugLineNum = 52428864;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=52428867;
 //BA.debugLineNum = 52428867;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428868;
 //BA.debugLineNum = 52428868;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_mards_re_REPG";
RDebugUtils.currentLine=52428869;
 //BA.debugLineNum = 52428869;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428870;
 //BA.debugLineNum = 52428870;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=52428871;
 //BA.debugLineNum = 52428871;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
__c.LogImpl("252428871",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0);
RDebugUtils.currentLine=52428872;
 //BA.debugLineNum = 52428872;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=52428876;
 //BA.debugLineNum = 52428876;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428877;
 //BA.debugLineNum = 52428877;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_mards_re_REPG";
RDebugUtils.currentLine=52428878;
 //BA.debugLineNum = 52428878;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428879;
 //BA.debugLineNum = 52428879;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=52428880;
 //BA.debugLineNum = 52428880;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
__c.LogImpl("252428880",("Pedimos kmt_datos"),0);
RDebugUtils.currentLine=52428881;
 //BA.debugLineNum = 52428881;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=52428883;
 //BA.debugLineNum = 52428883;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428884;
 //BA.debugLineNum = 52428884;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad_mards_re_REPG";
RDebugUtils.currentLine=52428885;
 //BA.debugLineNum = 52428885;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428886;
 //BA.debugLineNum = 52428886;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=52428887;
 //BA.debugLineNum = 52428887;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
__c.LogImpl("252428887",("Pedimos hist_datos"),0);
RDebugUtils.currentLine=52428888;
 //BA.debugLineNum = 52428888;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
RDebugUtils.currentLine=52428905;
 //BA.debugLineNum = 52428905;BA.debugLine="If ALMACEN = \"32\" Then";
if ((__ref._almacen /*String*/ ).equals("32")) { 
RDebugUtils.currentLine=52428906;
 //BA.debugLineNum = 52428906;BA.debugLine="ALMACEN = \"33\"";
__ref._almacen /*String*/  = "33";
RDebugUtils.currentLine=52428907;
 //BA.debugLineNum = 52428907;BA.debugLine="cargo = 2";
__ref._cargo /*String*/  = BA.NumberToString(2);
RDebugUtils.currentLine=52428908;
 //BA.debugLineNum = 52428908;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428909;
 //BA.debugLineNum = 52428909;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_mards_re_REPG";
RDebugUtils.currentLine=52428910;
 //BA.debugLineNum = 52428910;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428911;
 //BA.debugLineNum = 52428911;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=52428912;
 //BA.debugLineNum = 52428912;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=52428914;
 //BA.debugLineNum = 52428914;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428915;
 //BA.debugLineNum = 52428915;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_mards_re_REPG";
RDebugUtils.currentLine=52428916;
 //BA.debugLineNum = 52428916;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428917;
 //BA.debugLineNum = 52428917;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=52428918;
 //BA.debugLineNum = 52428918;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=52428920;
 //BA.debugLineNum = 52428920;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428921;
 //BA.debugLineNum = 52428921;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_mards_re_REPG";
RDebugUtils.currentLine=52428922;
 //BA.debugLineNum = 52428922;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428923;
 //BA.debugLineNum = 52428923;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=52428924;
 //BA.debugLineNum = 52428924;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=52428926;
 //BA.debugLineNum = 52428926;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52428927;
 //BA.debugLineNum = 52428927;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad_mards_re_REPG";
RDebugUtils.currentLine=52428928;
 //BA.debugLineNum = 52428928;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52428929;
 //BA.debugLineNum = 52428929;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=52428930;
 //BA.debugLineNum = 52428930;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
 };
RDebugUtils.currentLine=52428964;
 //BA.debugLineNum = 52428964;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=52428965;
 //BA.debugLineNum = 52428965;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52428966;
 //BA.debugLineNum = 52428966;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=52428967;
 //BA.debugLineNum = 52428967;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52428968;
 //BA.debugLineNum = 52428968;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52428969;
 //BA.debugLineNum = 52428969;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52428970;
 //BA.debugLineNum = 52428970;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=52428971;
 //BA.debugLineNum = 52428971;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52428972;
 //BA.debugLineNum = 52428972;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
__c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True);
RDebugUtils.currentLine=52428973;
 //BA.debugLineNum = 52428973;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False);
RDebugUtils.currentLine=52428974;
 //BA.debugLineNum = 52428974;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
 }else {
RDebugUtils.currentLine=52428978;
 //BA.debugLineNum = 52428978;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("252428978","XXXX",0);
RDebugUtils.currentLine=52428979;
 //BA.debugLineNum = 52428979;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=52428982;
 //BA.debugLineNum = 52428982;BA.debugLine="End Sub";
return "";
}
public boolean  _isconnectedtointernet(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "isconnectedtointernet", false))
	 {return ((Boolean) Debug.delegate(ba, "isconnectedtointernet", null));}
anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
RDebugUtils.currentLine=52035584;
 //BA.debugLineNum = 52035584;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
RDebugUtils.currentLine=52035585;
 //BA.debugLineNum = 52035585;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
RDebugUtils.currentLine=52035586;
 //BA.debugLineNum = 52035586;BA.debugLine="r.Target = r.GetContext";
_r.Target = (Object)(_r.GetContext(ba));
RDebugUtils.currentLine=52035587;
 //BA.debugLineNum = 52035587;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String");
RDebugUtils.currentLine=52035588;
 //BA.debugLineNum = 52035588;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
_r.Target = _r.RunMethod("getActiveNetworkInfo");
RDebugUtils.currentLine=52035589;
 //BA.debugLineNum = 52035589;BA.debugLine="If r.Target <> Null Then";
if (_r.Target!= null) { 
RDebugUtils.currentLine=52035590;
 //BA.debugLineNum = 52035590;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting"));
 };
RDebugUtils.currentLine=52035592;
 //BA.debugLineNum = 52035592;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=52035593;
 //BA.debugLineNum = 52035593;BA.debugLine="End Sub";
return false;
}
public String  _cargar_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargar_click", false))
	 {return ((String) Debug.delegate(ba, "cargar_click", null));}
boolean _pedidodiaanterior = false;
String[] _fecha2 = null;
String[] _fecha3 = null;
String _dia = "";
String _dia2 = "";
RDebugUtils.currentLine=52363264;
 //BA.debugLineNum = 52363264;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=52363265;
 //BA.debugLineNum = 52363265;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=52363266;
 //BA.debugLineNum = 52363266;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA")));
RDebugUtils.currentLine=52363267;
 //BA.debugLineNum = 52363267;BA.debugLine="If cp.RowCount > 0 Then";
if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52363268;
 //BA.debugLineNum = 52363268;BA.debugLine="cp.Position = 0";
__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52363269;
 //BA.debugLineNum = 52363269;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA");
RDebugUtils.currentLine=52363270;
 //BA.debugLineNum = 52363270;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
__c.LogImpl("252363270",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0);
RDebugUtils.currentLine=52363271;
 //BA.debugLineNum = 52363271;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ );
RDebugUtils.currentLine=52363272;
 //BA.debugLineNum = 52363272;BA.debugLine="Log(fecha2(0))";
__c.LogImpl("252363272",_fecha2[(int) (0)],0);
RDebugUtils.currentLine=52363273;
 //BA.debugLineNum = 52363273;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
RDebugUtils.currentLine=52363274;
 //BA.debugLineNum = 52363274;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=52363275;
 //BA.debugLineNum = 52363275;BA.debugLine="DateTime.TimeFormat = \"\"";
__c.DateTime.setTimeFormat("");
RDebugUtils.currentLine=52363276;
 //BA.debugLineNum = 52363276;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
RDebugUtils.currentLine=52363277;
 //BA.debugLineNum = 52363277;BA.debugLine="Log(dia)";
__c.LogImpl("252363277",_dia,0);
RDebugUtils.currentLine=52363278;
 //BA.debugLineNum = 52363278;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=52363279;
 //BA.debugLineNum = 52363279;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("252363279",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=52363280;
 //BA.debugLineNum = 52363280;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=52363281;
 //BA.debugLineNum = 52363281;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=52363284;
 //BA.debugLineNum = 52363284;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=52363285;
 //BA.debugLineNum = 52363285;BA.debugLine="Log(\"CUMPLE\")";
__c.LogImpl("252363285","CUMPLE",0);
RDebugUtils.currentLine=52363286;
 //BA.debugLineNum = 52363286;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52363287;
 //BA.debugLineNum = 52363287;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=52363288;
 //BA.debugLineNum = 52363288;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=52363289;
 //BA.debugLineNum = 52363289;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
__c.LogImpl("252363289",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=52363290;
 //BA.debugLineNum = 52363290;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=52363292;
 //BA.debugLineNum = 52363292;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52363293;
 //BA.debugLineNum = 52363293;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363294;
 //BA.debugLineNum = 52363294;BA.debugLine="cmd.Name = \"insert_drop_rep_INTMEX2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_INTMEX2";
RDebugUtils.currentLine=52363295;
 //BA.debugLineNum = 52363295;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=52363296;
 //BA.debugLineNum = 52363296;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=52363299;
 //BA.debugLineNum = 52363299;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=52363300;
 //BA.debugLineNum = 52363300;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=52363301;
 //BA.debugLineNum = 52363301;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=52363302;
 //BA.debugLineNum = 52363302;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=52363303;
 //BA.debugLineNum = 52363303;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=52363305;
 //BA.debugLineNum = 52363305;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
RDebugUtils.currentLine=52363306;
 //BA.debugLineNum = 52363306;BA.debugLine="If l_ruta.Text = \"0\" Then '";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=52363307;
 //BA.debugLineNum = 52363307;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
__c.LogImpl("252363307","*********************  No hay ruta, BORRAMOS TODO",0);
RDebugUtils.currentLine=52363308;
 //BA.debugLineNum = 52363308;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=52363309;
 //BA.debugLineNum = 52363309;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=52363310;
 //BA.debugLineNum = 52363310;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=52363311;
 //BA.debugLineNum = 52363311;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=52363312;
 //BA.debugLineNum = 52363312;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
RDebugUtils.currentLine=52363313;
 //BA.debugLineNum = 52363313;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
RDebugUtils.currentLine=52363314;
 //BA.debugLineNum = 52363314;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
 }else {
RDebugUtils.currentLine=52363316;
 //BA.debugLineNum = 52363316;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
__c.LogImpl("252363316","*********************  Hay ruta, NO BORRAMOS TODO",0);
 };
RDebugUtils.currentLine=52363320;
 //BA.debugLineNum = 52363320;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=52363321;
 //BA.debugLineNum = 52363321;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52363322;
 //BA.debugLineNum = 52363322;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=52363324;
 //BA.debugLineNum = 52363324;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363325;
 //BA.debugLineNum = 52363325;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_re_REPG_INTMEX";
RDebugUtils.currentLine=52363326;
 //BA.debugLineNum = 52363326;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52363327;
 //BA.debugLineNum = 52363327;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=52363328;
 //BA.debugLineNum = 52363328;BA.debugLine="Log($\"Pedimos Punteo\"$)";
__c.LogImpl("252363328",("Pedimos Punteo"),0);
RDebugUtils.currentLine=52363329;
 //BA.debugLineNum = 52363329;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=52363331;
 //BA.debugLineNum = 52363331;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363332;
 //BA.debugLineNum = 52363332;BA.debugLine="cmd.Name = \"select_almacen_INTMEX_re_REPG2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_INTMEX_re_REPG2";
RDebugUtils.currentLine=52363333;
 //BA.debugLineNum = 52363333;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52363334;
 //BA.debugLineNum = 52363334;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=52363335;
 //BA.debugLineNum = 52363335;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
__c.LogImpl("252363335",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0);
RDebugUtils.currentLine=52363336;
 //BA.debugLineNum = 52363336;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=52363338;
 //BA.debugLineNum = 52363338;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363339;
 //BA.debugLineNum = 52363339;BA.debugLine="cmd.Name = \"select_abonosp_INTMEXREP\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_abonosp_INTMEXREP";
RDebugUtils.currentLine=52363340;
 //BA.debugLineNum = 52363340;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52363341;
 //BA.debugLineNum = 52363341;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"select_abonosp";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("select_abonosp"));
RDebugUtils.currentLine=52363343;
 //BA.debugLineNum = 52363343;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363344;
 //BA.debugLineNum = 52363344;BA.debugLine="cmd.Name = \"select_cliente_INTMEX_re_REPG2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_INTMEX_re_REPG2";
RDebugUtils.currentLine=52363345;
 //BA.debugLineNum = 52363345;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=52363346;
 //BA.debugLineNum = 52363346;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=52363347;
 //BA.debugLineNum = 52363347;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
__c.LogImpl("252363347",("Pedimos kmt_datos"),0);
RDebugUtils.currentLine=52363348;
 //BA.debugLineNum = 52363348;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=52363350;
 //BA.debugLineNum = 52363350;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363351;
 //BA.debugLineNum = 52363351;BA.debugLine="cmd.Name = \"select_ventad2_INTMEX_re_REPG\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad2_INTMEX_re_REPG";
RDebugUtils.currentLine=52363352;
 //BA.debugLineNum = 52363352;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52363353;
 //BA.debugLineNum = 52363353;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=52363354;
 //BA.debugLineNum = 52363354;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
__c.LogImpl("252363354",("Pedimos hist_datos"),0);
RDebugUtils.currentLine=52363355;
 //BA.debugLineNum = 52363355;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
RDebugUtils.currentLine=52363357;
 //BA.debugLineNum = 52363357;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52363358;
 //BA.debugLineNum = 52363358;BA.debugLine="cmd.Name = \"select_coords_almacen_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_INTMEX";
RDebugUtils.currentLine=52363359;
 //BA.debugLineNum = 52363359;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52363360;
 //BA.debugLineNum = 52363360;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
RDebugUtils.currentLine=52363402;
 //BA.debugLineNum = 52363402;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=52363403;
 //BA.debugLineNum = 52363403;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52363404;
 //BA.debugLineNum = 52363404;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=52363405;
 //BA.debugLineNum = 52363405;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52363406;
 //BA.debugLineNum = 52363406;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52363407;
 //BA.debugLineNum = 52363407;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52363408;
 //BA.debugLineNum = 52363408;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=52363409;
 //BA.debugLineNum = 52363409;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52363410;
 //BA.debugLineNum = 52363410;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
__c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True);
RDebugUtils.currentLine=52363411;
 //BA.debugLineNum = 52363411;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False);
RDebugUtils.currentLine=52363412;
 //BA.debugLineNum = 52363412;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
 }else {
RDebugUtils.currentLine=52363416;
 //BA.debugLineNum = 52363416;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("252363416","XXXX",0);
RDebugUtils.currentLine=52363417;
 //BA.debugLineNum = 52363417;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=52363420;
 //BA.debugLineNum = 52363420;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=51707904;
 //BA.debugLineNum = 51707904;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=51707905;
 //BA.debugLineNum = 51707905;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=51707906;
 //BA.debugLineNum = 51707906;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=51707907;
 //BA.debugLineNum = 51707907;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_intmex.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=51707908;
 //BA.debugLineNum = 51707908;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=51707909;
 //BA.debugLineNum = 51707909;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=51707910;
 //BA.debugLineNum = 51707910;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=51707911;
 //BA.debugLineNum = 51707911;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=51707912;
 //BA.debugLineNum = 51707912;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707913;
 //BA.debugLineNum = 51707913;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707914;
 //BA.debugLineNum = 51707914;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707915;
 //BA.debugLineNum = 51707915;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707916;
 //BA.debugLineNum = 51707916;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707917;
 //BA.debugLineNum = 51707917;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707918;
 //BA.debugLineNum = 51707918;BA.debugLine="Dim f1 As Cursor";
_f1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707919;
 //BA.debugLineNum = 51707919;BA.debugLine="Dim f2 As Cursor";
_f2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707920;
 //BA.debugLineNum = 51707920;BA.debugLine="Dim f3 As Cursor";
_f3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707921;
 //BA.debugLineNum = 51707921;BA.debugLine="Dim F4 As Cursor";
_f4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707922;
 //BA.debugLineNum = 51707922;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=51707923;
 //BA.debugLineNum = 51707923;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707924;
 //BA.debugLineNum = 51707924;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707925;
 //BA.debugLineNum = 51707925;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=51707926;
 //BA.debugLineNum = 51707926;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=51707927;
 //BA.debugLineNum = 51707927;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707928;
 //BA.debugLineNum = 51707928;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=51707929;
 //BA.debugLineNum = 51707929;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707930;
 //BA.debugLineNum = 51707930;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=51707931;
 //BA.debugLineNum = 51707931;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=51707932;
 //BA.debugLineNum = 51707932;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=51707933;
 //BA.debugLineNum = 51707933;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=51707934;
 //BA.debugLineNum = 51707934;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=51707935;
 //BA.debugLineNum = 51707935;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=51707936;
 //BA.debugLineNum = 51707936;BA.debugLine="Dim L As Cursor";
_l = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707937;
 //BA.debugLineNum = 51707937;BA.debugLine="Dim l_aLiquidar As Label";
_l_aliquidar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707938;
 //BA.debugLineNum = 51707938;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707939;
 //BA.debugLineNum = 51707939;BA.debugLine="Dim l_montoSalida As Label";
_l_montosalida = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707941;
 //BA.debugLineNum = 51707941;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707942;
 //BA.debugLineNum = 51707942;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707943;
 //BA.debugLineNum = 51707943;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=51707944;
 //BA.debugLineNum = 51707944;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707945;
 //BA.debugLineNum = 51707945;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=51707946;
 //BA.debugLineNum = 51707946;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707947;
 //BA.debugLineNum = 51707947;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707948;
 //BA.debugLineNum = 51707948;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707949;
 //BA.debugLineNum = 51707949;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=51707950;
 //BA.debugLineNum = 51707950;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=51707951;
 //BA.debugLineNum = 51707951;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=51707952;
 //BA.debugLineNum = 51707952;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=51707953;
 //BA.debugLineNum = 51707953;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=51707954;
 //BA.debugLineNum = 51707954;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=51707955;
 //BA.debugLineNum = 51707955;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=51707956;
 //BA.debugLineNum = 51707956;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=51707957;
 //BA.debugLineNum = 51707957;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=51707958;
 //BA.debugLineNum = 51707958;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=51707959;
 //BA.debugLineNum = 51707959;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=51707960;
 //BA.debugLineNum = 51707960;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=51707961;
 //BA.debugLineNum = 51707961;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=51707962;
 //BA.debugLineNum = 51707962;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=51707963;
 //BA.debugLineNum = 51707963;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=51707964;
 //BA.debugLineNum = 51707964;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=51707966;
 //BA.debugLineNum = 51707966;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707968;
 //BA.debugLineNum = 51707968;BA.debugLine="Private L_MONTOE As Label";
_l_montoe = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707969;
 //BA.debugLineNum = 51707969;BA.debugLine="Private B_CLIEPROD As Button";
_b_clieprod = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707970;
 //BA.debugLineNum = 51707970;BA.debugLine="Private ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=51707971;
 //BA.debugLineNum = 51707971;BA.debugLine="Private B_REGRESA As Button";
_b_regresa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707972;
 //BA.debugLineNum = 51707972;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=51707973;
 //BA.debugLineNum = 51707973;BA.debugLine="Dim ESTATUS As String";
_estatus = "";
RDebugUtils.currentLine=51707974;
 //BA.debugLineNum = 51707974;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=51707975;
 //BA.debugLineNum = 51707975;BA.debugLine="Private bu As BatteryUtilities";
_bu = new reparto_intmex.keymon.lat.batteryutilities();
RDebugUtils.currentLine=51707976;
 //BA.debugLineNum = 51707976;BA.debugLine="Dim RUTA_T As String";
_ruta_t = "";
RDebugUtils.currentLine=51707977;
 //BA.debugLineNum = 51707977;BA.debugLine="Dim reqs As List";
_reqs = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=51707979;
 //BA.debugLineNum = 51707979;BA.debugLine="Private Btn_Ubicar_Ru As Button";
_btn_ubicar_ru = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707980;
 //BA.debugLineNum = 51707980;BA.debugLine="Dim cargo As String";
_cargo = "";
RDebugUtils.currentLine=51707981;
 //BA.debugLineNum = 51707981;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=51707982;
 //BA.debugLineNum = 51707982;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=51707983;
 //BA.debugLineNum = 51707983;BA.debugLine="Private b_tabulador As Button";
_b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707985;
 //BA.debugLineNum = 51707985;BA.debugLine="Private l_rutasP As Label";
_l_rutasp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707986;
 //BA.debugLineNum = 51707986;BA.debugLine="Private l_rechazo As Label";
_l_rechazo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707987;
 //BA.debugLineNum = 51707987;BA.debugLine="Private Label9 As Label";
_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=51707988;
 //BA.debugLineNum = 51707988;BA.debugLine="Dim cp As Cursor";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=51707989;
 //BA.debugLineNum = 51707989;BA.debugLine="Private b_check As Button";
_b_check = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707990;
 //BA.debugLineNum = 51707990;BA.debugLine="Private b_rechazos As Button";
_b_rechazos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707991;
 //BA.debugLineNum = 51707991;BA.debugLine="Private p_prod As Panel";
_p_prod = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=51707992;
 //BA.debugLineNum = 51707992;BA.debugLine="Private b_regreso As Button";
_b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707993;
 //BA.debugLineNum = 51707993;BA.debugLine="Private lv_prod_Prin As ListView";
_lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=51707994;
 //BA.debugLineNum = 51707994;BA.debugLine="Private b_venta_emp As Button";
_b_venta_emp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=51707995;
 //BA.debugLineNum = 51707995;BA.debugLine="End Sub";
return "";
}
public String  _connecta_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_click", false))
	 {return ((String) Debug.delegate(ba, "connecta_click", null));}
RDebugUtils.currentLine=52625408;
 //BA.debugLineNum = 52625408;BA.debugLine="Sub connecta_Click";
RDebugUtils.currentLine=52625409;
 //BA.debugLineNum = 52625409;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("252625409",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=52625410;
 //BA.debugLineNum = 52625410;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
RDebugUtils.currentLine=52625411;
 //BA.debugLineNum = 52625411;BA.debugLine="If e_ruta.Text <> \"\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=52625412;
 //BA.debugLineNum = 52625412;BA.debugLine="imei = \"\" 'p.GetDeviceId";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=52625413;
 //BA.debugLineNum = 52625413;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=52625414;
 //BA.debugLineNum = 52625414;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=52625415;
 //BA.debugLineNum = 52625415;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52625416;
 //BA.debugLineNum = 52625416;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52625417;
 //BA.debugLineNum = 52625417;BA.debugLine="cmd.Name = \"select_version_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_INTMEX";
RDebugUtils.currentLine=52625418;
 //BA.debugLineNum = 52625418;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
RDebugUtils.currentLine=52625419;
 //BA.debugLineNum = 52625419;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52625420;
 //BA.debugLineNum = 52625420;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52625421;
 //BA.debugLineNum = 52625421;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_re_REPG_INTMEX";
RDebugUtils.currentLine=52625422;
 //BA.debugLineNum = 52625422;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._imei /*String*/ )};
RDebugUtils.currentLine=52625424;
 //BA.debugLineNum = 52625424;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
RDebugUtils.currentLine=52625425;
 //BA.debugLineNum = 52625425;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
RDebugUtils.currentLine=52625426;
 //BA.debugLineNum = 52625426;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=52625427;
 //BA.debugLineNum = 52625427;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=52625428;
 //BA.debugLineNum = 52625428;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
 };
RDebugUtils.currentLine=52625430;
 //BA.debugLineNum = 52625430;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(reparto_intmex.keymon.lat.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=52822016;
 //BA.debugLineNum = 52822016;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=52822017;
 //BA.debugLineNum = 52822017;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=52822018;
 //BA.debugLineNum = 52822018;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=52822019;
 //BA.debugLineNum = 52822019;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=52822020;
 //BA.debugLineNum = 52822020;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=52822021;
 //BA.debugLineNum = 52822021;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
RDebugUtils.currentLine=52822022;
 //BA.debugLineNum = 52822022;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=52822023;
 //BA.debugLineNum = 52822023;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
RDebugUtils.currentLine=52822024;
 //BA.debugLineNum = 52822024;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
RDebugUtils.currentLine=52822025;
 //BA.debugLineNum = 52822025;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
RDebugUtils.currentLine=52822026;
 //BA.debugLineNum = 52822026;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=52822027;
 //BA.debugLineNum = 52822027;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=52822028;
 //BA.debugLineNum = 52822028;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=52822029;
 //BA.debugLineNum = 52822029;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=52822030;
 //BA.debugLineNum = 52822030;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=52822031;
 //BA.debugLineNum = 52822031;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=52822032;
 //BA.debugLineNum = 52822032;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=52822033;
 //BA.debugLineNum = 52822033;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=52822034;
 //BA.debugLineNum = 52822034;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=52822035;
 //BA.debugLineNum = 52822035;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
RDebugUtils.currentLine=52822036;
 //BA.debugLineNum = 52822036;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
RDebugUtils.currentLine=52822037;
 //BA.debugLineNum = 52822037;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=52822038;
 //BA.debugLineNum = 52822038;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
RDebugUtils.currentLine=52822039;
 //BA.debugLineNum = 52822039;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
RDebugUtils.currentLine=52822040;
 //BA.debugLineNum = 52822040;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO");
RDebugUtils.currentLine=52822041;
 //BA.debugLineNum = 52822041;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
RDebugUtils.currentLine=52822044;
 //BA.debugLineNum = 52822044;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
 };
RDebugUtils.currentLine=52822046;
 //BA.debugLineNum = 52822046;BA.debugLine="End Sub";
return "";
}
public String  _envioinfo(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "envioinfo", false))
	 {return ((String) Debug.delegate(ba, "envioinfo", null));}
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null;
int _rx = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pa = null;
int _pag = 0;
String[] _fechaenvio = null;
String[] _fechaenvio1 = null;
String _fechaano = "";
String _fechareal = "";
String[] _fechacap = null;
String _fechacapano = "";
String _fechacapreal = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c58 = null;
String _fechapre = "";
int _restarechazos = 0;
double _costorechazos = 0;
String[] _fechatabulador = null;
String _fechatabulador3 = "";
RDebugUtils.currentLine=52297728;
 //BA.debugLineNum = 52297728;BA.debugLine="Sub envioinfo";
RDebugUtils.currentLine=52297733;
 //BA.debugLineNum = 52297733;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA")));
RDebugUtils.currentLine=52297734;
 //BA.debugLineNum = 52297734;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=52297735;
 //BA.debugLineNum = 52297735;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297736;
 //BA.debugLineNum = 52297736;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step4 = 1;
final int limit4 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=52297737;
 //BA.debugLineNum = 52297737;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297738;
 //BA.debugLineNum = 52297738;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")";
__ref._foto1 /*byte[]*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("NV_FOTO");
RDebugUtils.currentLine=52297739;
 //BA.debugLineNum = 52297739;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297740;
 //BA.debugLineNum = 52297740;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297741;
 //BA.debugLineNum = 52297741;BA.debugLine="cmd.Name = \"insert_reparto_REPG_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_REPG_INTMEX";
RDebugUtils.currentLine=52297742;
 //BA.debugLineNum = 52297742;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N";
__ref._cmd /*reparto_intmex.keymon.lat.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_REPROGRAMAR"))};
RDebugUtils.currentLine=52297743;
 //BA.debugLineNum = 52297743;BA.debugLine="reqManager.ExecuteCommand(cmd ,  \"inst_noventa_";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa_"));
 }
};
RDebugUtils.currentLine=52297745;
 //BA.debugLineNum = 52297745;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52297747;
 //BA.debugLineNum = 52297747;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297748;
 //BA.debugLineNum = 52297748;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=52297749;
 //BA.debugLineNum = 52297749;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52297752;
 //BA.debugLineNum = 52297752;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *";
_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from noventa where nv_reprogramar = 1")));
RDebugUtils.currentLine=52297753;
 //BA.debugLineNum = 52297753;BA.debugLine="If r.RowCount > 0 Then";
if (_r.getRowCount()>0) { 
RDebugUtils.currentLine=52297754;
 //BA.debugLineNum = 52297754;BA.debugLine="For rx = 0 To r.RowCount - 1";
{
final int step20 = 1;
final int limit20 = (int) (_r.getRowCount()-1);
_rx = (int) (0) ;
for (;_rx <= limit20 ;_rx = _rx + step20 ) {
RDebugUtils.currentLine=52297755;
 //BA.debugLineNum = 52297755;BA.debugLine="r.Position = rx";
_r.setPosition(_rx);
RDebugUtils.currentLine=52297756;
 //BA.debugLineNum = 52297756;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele";
_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",new String[]{_r.GetString("NV_CLIENTE")})));
RDebugUtils.currentLine=52297757;
 //BA.debugLineNum = 52297757;BA.debugLine="If o.RowCount > 0 Then";
if (_o.getRowCount()>0) { 
RDebugUtils.currentLine=52297758;
 //BA.debugLineNum = 52297758;BA.debugLine="o.Position = 0";
_o.setPosition((int) (0));
RDebugUtils.currentLine=52297759;
 //BA.debugLineNum = 52297759;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)";
__c.LogImpl("252297759","Enviamos reprogramados: "+BA.NumberToString(_r.getRowCount()),0);
RDebugUtils.currentLine=52297761;
 //BA.debugLineNum = 52297761;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297762;
 //BA.debugLineNum = 52297762;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297763;
 //BA.debugLineNum = 52297763;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_INTMEX";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_reprogramar3_INTMEX";
RDebugUtils.currentLine=52297764;
 //BA.debugLineNum = 52297764;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_r.GetString("NV_CLIENTE")),(Object)(_r.GetString("NV_REPROGRAMAR")),(Object)(_o.GetString("HVD_FECHA")),(Object)(_o.GetString("CAT_CL_RUTA")),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=52297765;
 //BA.debugLineNum = 52297765;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_reprogramar"));
 };
 }
};
 };
RDebugUtils.currentLine=52297769;
 //BA.debugLineNum = 52297769;BA.debugLine="r.Close";
_r.Close();
RDebugUtils.currentLine=52297772;
 //BA.debugLineNum = 52297772;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select";
_pa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from PAGARES")));
RDebugUtils.currentLine=52297773;
 //BA.debugLineNum = 52297773;BA.debugLine="If pa.RowCount > 0 Then";
if (_pa.getRowCount()>0) { 
RDebugUtils.currentLine=52297774;
 //BA.debugLineNum = 52297774;BA.debugLine="For pag = 0 To pa.RowCount - 1";
{
final int step37 = 1;
final int limit37 = (int) (_pa.getRowCount()-1);
_pag = (int) (0) ;
for (;_pag <= limit37 ;_pag = _pag + step37 ) {
RDebugUtils.currentLine=52297775;
 //BA.debugLineNum = 52297775;BA.debugLine="pa.Position = pag";
_pa.setPosition(_pag);
RDebugUtils.currentLine=52297776;
 //BA.debugLineNum = 52297776;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297777;
 //BA.debugLineNum = 52297777;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297778;
 //BA.debugLineNum = 52297778;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_INTMEX2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_PAGARES_INTMEX2";
RDebugUtils.currentLine=52297779;
 //BA.debugLineNum = 52297779;BA.debugLine="Dim fechaenvio() As String";
_fechaenvio = new String[(int) (0)];
java.util.Arrays.fill(_fechaenvio,"");
RDebugUtils.currentLine=52297780;
 //BA.debugLineNum = 52297780;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F";
_fechaenvio = __c.Regex.Split(" ",_pa.GetString("PA_FECHA_PREV"));
RDebugUtils.currentLine=52297782;
 //BA.debugLineNum = 52297782;BA.debugLine="Dim fechaenvio1() As String";
_fechaenvio1 = new String[(int) (0)];
java.util.Arrays.fill(_fechaenvio1,"");
RDebugUtils.currentLine=52297783;
 //BA.debugLineNum = 52297783;BA.debugLine="fechaenvio1 = Regex.Split(\"/\",fechaenvio(0))";
_fechaenvio1 = __c.Regex.Split("/",_fechaenvio[(int) (0)]);
RDebugUtils.currentLine=52297784;
 //BA.debugLineNum = 52297784;BA.debugLine="Dim fechaano As String = fechaenvio1(2).SubStri";
_fechaano = _fechaenvio1[(int) (2)].substring((int) (2));
RDebugUtils.currentLine=52297785;
 //BA.debugLineNum = 52297785;BA.debugLine="Dim fechareal As String = fechaenvio1(0)&\"/\"&fe";
_fechareal = _fechaenvio1[(int) (0)]+"/"+_fechaenvio1[(int) (1)]+"/"+_fechaano;
RDebugUtils.currentLine=52297788;
 //BA.debugLineNum = 52297788;BA.debugLine="Dim fechacap() As String";
_fechacap = new String[(int) (0)];
java.util.Arrays.fill(_fechacap,"");
RDebugUtils.currentLine=52297789;
 //BA.debugLineNum = 52297789;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP";
_fechacap = __c.Regex.Split("/",_pa.GetString("PA_CAPTURA"));
RDebugUtils.currentLine=52297790;
 //BA.debugLineNum = 52297790;BA.debugLine="Dim fechacapano As String = fechacap(2).SubStri";
_fechacapano = _fechacap[(int) (2)].substring((int) (2));
RDebugUtils.currentLine=52297791;
 //BA.debugLineNum = 52297791;BA.debugLine="Dim fechacapreal As String = fechacap(0)&\"/\"&fe";
_fechacapreal = _fechacap[(int) (0)]+"/"+_fechacap[(int) (1)]+"/"+_fechacapano;
RDebugUtils.currentLine=52297793;
 //BA.debugLineNum = 52297793;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString(\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_pa.GetString("PA_CLIENTE")),(Object)(_pa.GetString("PA_MONTO")),(Object)(_fechacapreal),(Object)(_pa.GetString("PA_ALMACEN")),(Object)(_pa.GetString("PA_RUTAPREV")),(Object)(_pa.GetString("PA_RUTA_REP")),(Object)(_fechareal),(Object)(_pa.GetString("PA_USUARIO"))};
RDebugUtils.currentLine=52297794;
 //BA.debugLineNum = 52297794;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pagares"));
 }
};
 };
RDebugUtils.currentLine=52297797;
 //BA.debugLineNum = 52297797;BA.debugLine="pa.Close";
_pa.Close();
RDebugUtils.currentLine=52297800;
 //BA.debugLineNum = 52297800;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null"))));
RDebugUtils.currentLine=52297801;
 //BA.debugLineNum = 52297801;BA.debugLine="Log(ab.RowCount)";
__c.LogImpl("252297801",BA.NumberToString(_ab.getRowCount()),0);
RDebugUtils.currentLine=52297802;
 //BA.debugLineNum = 52297802;BA.debugLine="If ab.RowCount > 0 Then";
if (_ab.getRowCount()>0) { 
RDebugUtils.currentLine=52297803;
 //BA.debugLineNum = 52297803;BA.debugLine="For i=0 To ab.RowCount -1";
{
final int step60 = 1;
final int limit60 = (int) (_ab.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit60 ;_i = _i + step60 ) {
RDebugUtils.currentLine=52297804;
 //BA.debugLineNum = 52297804;BA.debugLine="ab.Position = i";
_ab.setPosition(_i);
RDebugUtils.currentLine=52297806;
 //BA.debugLineNum = 52297806;BA.debugLine="Dim c58 As Cursor = Starter.skmt.ExecQuery($\"SE";
_c58 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c58 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from HIST_VENTAS"))));
RDebugUtils.currentLine=52297807;
 //BA.debugLineNum = 52297807;BA.debugLine="If c58.RowCount > 0 Then";
if (_c58.getRowCount()>0) { 
RDebugUtils.currentLine=52297808;
 //BA.debugLineNum = 52297808;BA.debugLine="c58.Position = 0";
_c58.setPosition((int) (0));
RDebugUtils.currentLine=52297810;
 //BA.debugLineNum = 52297810;BA.debugLine="Private fechapre As String = c58.GetString(\"HV";
_fechapre = _c58.GetString("HVD_FECHA");
 };
RDebugUtils.currentLine=52297814;
 //BA.debugLineNum = 52297814;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297815;
 //BA.debugLineNum = 52297815;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297816;
 //BA.debugLineNum = 52297816;BA.debugLine="cmd.Name = \"insert_abono_INTMEXREP2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_abono_INTMEXREP2";
RDebugUtils.currentLine=52297817;
 //BA.debugLineNum = 52297817;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ ),(Object)("REPARTO"),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("CONSECUTIVO")),(Object)(_ab.GetString("NUM_TICKET")),(Object)(_ab.GetString("RUTA_REP")),(Object)(_fechapre)};
RDebugUtils.currentLine=52297818;
 //BA.debugLineNum = 52297818;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
RDebugUtils.currentLine=52297819;
 //BA.debugLineNum = 52297819;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
__c.LogImpl("252297819",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
 }
};
 };
RDebugUtils.currentLine=52297822;
 //BA.debugLineNum = 52297822;BA.debugLine="ab.Close";
_ab.Close();
RDebugUtils.currentLine=52297825;
 //BA.debugLineNum = 52297825;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT * FROM hist_vent";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM hist_ventas WHERE HVD_RECHAZO = 1 ")));
RDebugUtils.currentLine=52297826;
 //BA.debugLineNum = 52297826;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297827;
 //BA.debugLineNum = 52297827;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step78 = 1;
final int limit78 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit78 ;_i = _i + step78 ) {
RDebugUtils.currentLine=52297828;
 //BA.debugLineNum = 52297828;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297829;
 //BA.debugLineNum = 52297829;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297830;
 //BA.debugLineNum = 52297830;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297831;
 //BA.debugLineNum = 52297831;BA.debugLine="cmd.Name = \"insert_rep_hist_ventas_REPG2_INTMEX";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_rep_hist_ventas_REPG2_INTMEX";
RDebugUtils.currentLine=52297832;
 //BA.debugLineNum = 52297832;BA.debugLine="Dim restarechazos As Int = c.GetString(\"HVD_CAN";
_restarechazos = (int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))));
RDebugUtils.currentLine=52297833;
 //BA.debugLineNum = 52297833;BA.debugLine="Dim costorechazos As Double= C.GetString(\"HVD_C";
_costorechazos = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")));
RDebugUtils.currentLine=52297834;
 //BA.debugLineNum = 52297834;BA.debugLine="If restarechazos = 0 Then";
if (_restarechazos==0) { 
RDebugUtils.currentLine=52297835;
 //BA.debugLineNum = 52297835;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")),(Object)((_costorechazos*(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")),(Object)(1),(Object)(""),(Object)(__ref._almacen /*String*/ ),(Object)(_costorechazos)};
 }else {
RDebugUtils.currentLine=52297838;
 //BA.debugLineNum = 52297838;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")),(Object)((_costorechazos*(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")),(Object)(""),(Object)(1),(Object)(__ref._almacen /*String*/ ),(Object)(_costorechazos)};
 };
RDebugUtils.currentLine=52297840;
 //BA.debugLineNum = 52297840;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
RDebugUtils.currentLine=52297842;
 //BA.debugLineNum = 52297842;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52297846;
 //BA.debugLineNum = 52297846;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO")));
RDebugUtils.currentLine=52297847;
 //BA.debugLineNum = 52297847;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297848;
 //BA.debugLineNum = 52297848;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step96 = 1;
final int limit96 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit96 ;_i = _i + step96 ) {
RDebugUtils.currentLine=52297849;
 //BA.debugLineNum = 52297849;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297850;
 //BA.debugLineNum = 52297850;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297851;
 //BA.debugLineNum = 52297851;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297852;
 //BA.debugLineNum = 52297852;BA.debugLine="cmd.Name = \"insert_pedido_REP_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_REP_INTMEX";
RDebugUtils.currentLine=52297853;
 //BA.debugLineNum = 52297853;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_TIPO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(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_CLIENTEOR")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CAJAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_PREV")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTA_REP")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_REGALO"))};
RDebugUtils.currentLine=52297854;
 //BA.debugLineNum = 52297854;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido_Inmtex"));
 }
};
RDebugUtils.currentLine=52297856;
 //BA.debugLineNum = 52297856;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52297903;
 //BA.debugLineNum = 52297903;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT  CLIENTE, 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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT  CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO")));
RDebugUtils.currentLine=52297904;
 //BA.debugLineNum = 52297904;BA.debugLine="Log($\"REPARTO_Cliente PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("252297904",("REPARTO_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0);
RDebugUtils.currentLine=52297905;
 //BA.debugLineNum = 52297905;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297906;
 //BA.debugLineNum = 52297906;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step109 = 1;
final int limit109 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit109 ;_i = _i + step109 ) {
RDebugUtils.currentLine=52297907;
 //BA.debugLineNum = 52297907;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297909;
 //BA.debugLineNum = 52297909;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297910;
 //BA.debugLineNum = 52297910;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297911;
 //BA.debugLineNum = 52297911;BA.debugLine="cmd.Name = \"insert_REPARTO_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_REPARTO_INTMEX";
RDebugUtils.currentLine=52297912;
 //BA.debugLineNum = 52297912;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_PUNTEO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LATITUD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LONGITUD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTA_REPARTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTA_PREV")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_PREVENTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("COMENTARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TIPO"))};
RDebugUtils.currentLine=52297913;
 //BA.debugLineNum = 52297913;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_REPARTOPe";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_REPARTOPendientes_head_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")))+"")));
 }
};
 };
RDebugUtils.currentLine=52297917;
 //BA.debugLineNum = 52297917;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52297920;
 //BA.debugLineNum = 52297920;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")));
RDebugUtils.currentLine=52297921;
 //BA.debugLineNum = 52297921;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=52297922;
 //BA.debugLineNum = 52297922;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=52297923;
 //BA.debugLineNum = 52297923;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=52297924;
 //BA.debugLineNum = 52297924;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297925;
 //BA.debugLineNum = 52297925;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297926;
 //BA.debugLineNum = 52297926;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297927;
 //BA.debugLineNum = 52297927;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297928;
 //BA.debugLineNum = 52297928;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step127 = 1;
final int limit127 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit127 ;_i = _i + step127 ) {
RDebugUtils.currentLine=52297929;
 //BA.debugLineNum = 52297929;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297930;
 //BA.debugLineNum = 52297930;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52297931;
 //BA.debugLineNum = 52297931;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=52297933;
 //BA.debugLineNum = 52297933;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=52297934;
 //BA.debugLineNum = 52297934;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52297935;
 //BA.debugLineNum = 52297935;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_monedas_INTMEX";
RDebugUtils.currentLine=52297936;
 //BA.debugLineNum = 52297936;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DIEZ")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PESO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CENTAVO")),(Object)(_fechatabulador3)};
RDebugUtils.currentLine=52297937;
 //BA.debugLineNum = 52297937;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_mon"));
 }
};
RDebugUtils.currentLine=52297939;
 //BA.debugLineNum = 52297939;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52297940;
 //BA.debugLineNum = 52297940;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52297941;
 //BA.debugLineNum = 52297941;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52297942;
 //BA.debugLineNum = 52297942;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52297989;
 //BA.debugLineNum = 52297989;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")));
RDebugUtils.currentLine=52297990;
 //BA.debugLineNum = 52297990;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=52297991;
 //BA.debugLineNum = 52297991;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=52297992;
 //BA.debugLineNum = 52297992;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=52297993;
 //BA.debugLineNum = 52297993;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297994;
 //BA.debugLineNum = 52297994;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297995;
 //BA.debugLineNum = 52297995;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52297996;
 //BA.debugLineNum = 52297996;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=52297997;
 //BA.debugLineNum = 52297997;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step150 = 1;
final int limit150 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit150 ;_i = _i + step150 ) {
RDebugUtils.currentLine=52297998;
 //BA.debugLineNum = 52297998;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=52297999;
 //BA.debugLineNum = 52297999;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52298000;
 //BA.debugLineNum = 52298000;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=52298002;
 //BA.debugLineNum = 52298002;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=52298003;
 //BA.debugLineNum = 52298003;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52298004;
 //BA.debugLineNum = 52298004;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_INTMEX\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_billetes_INTMEX";
RDebugUtils.currentLine=52298005;
 //BA.debugLineNum = 52298005;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MIL")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("QUINIENTOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOCIENTOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CIEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCUENTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE")),(Object)(_fechatabulador3)};
RDebugUtils.currentLine=52298006;
 //BA.debugLineNum = 52298006;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_bill"));
 }
};
RDebugUtils.currentLine=52298008;
 //BA.debugLineNum = 52298008;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52298009;
 //BA.debugLineNum = 52298009;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52298010;
 //BA.debugLineNum = 52298010;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52298011;
 //BA.debugLineNum = 52298011;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52298015;
 //BA.debugLineNum = 52298015;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=52298016;
 //BA.debugLineNum = 52298016;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52298017;
 //BA.debugLineNum = 52298017;BA.debugLine="cmd.Name = \"insert_drop_rep_INTMEX2\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_INTMEX2";
RDebugUtils.currentLine=52298018;
 //BA.debugLineNum = 52298018;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=52298019;
 //BA.debugLineNum = 52298019;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=52298020;
 //BA.debugLineNum = 52298020;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
__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=52298021;
 //BA.debugLineNum = 52298021;BA.debugLine="End Sub";
return "";
}
public String  _inv_click(reparto_intmex.keymon.lat.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=52887552;
 //BA.debugLineNum = 52887552;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=52887553;
 //BA.debugLineNum = 52887553;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=52887554;
 //BA.debugLineNum = 52887554;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_intmex.keymon.lat.c_principal __ref,reparto_intmex.keymon.lat.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}));}
reparto_intmex.keymon.lat.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _cat_cl_codigo = "";
String _cat_cl_ruta = "";
String _cat_cl_nombre = "";
String _cat_cl_atiende1 = "";
String _cat_cl_atiente2 = "";
String _cat_cl_telefono = "";
String _cat_cl_email = "";
String _cat_cl_calle = "";
String _cat_cl_noext = "";
String _cat_cl_noint = "";
String _cat_cl_calle1 = "";
String _cat_cl_calle2 = "";
String _cat_cl_colonia = "";
String _cat_cl_muni = "";
String _cat_cl_edo = "";
String _cat_cl_cp = "";
String _cat_cl_long = "";
String _cat_cl_lat = "";
String _cat_cl_bcredito = "";
String _nota = "";
String _cliente = "";
String _saldo_pendiente = "";
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;
float _cat_dp_precio4 = 0f;
int _cat_dp_conversion1 = 0;
int _cat_dp_cant_min_venta = 0;
String _conversion = "";
String _precioconver = "";
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_estatus = "";
String _hv_cliente = "";
String _hv_long = "";
String _hv_lat = "";
int _consecutivo = 0;
String _hvd_cliente = "";
String _hvd_pronombre = "";
String _hvd_cant = "";
String _hvd_costo_tot = "";
String _hvd_fecha = "";
String _hvd_codpromo = "";
String _hvd_proid = "";
String _hvd_num_ticket = "";
String _hvd_num_registro = "";
String _hvd_rechazo = "";
String _bcajas = "";
String _cantc = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _tc = null;
String _cat_va_descripcion = "";
String _cat_va_valor = "";
String _tmp_monto_pagare = "";
String _tmp_cliente = "";
int _cuantosp = 0;
int _cuantosc = 0;
int _cuantosn = 0;
String _cat_ve_version = "";
String _valido = "";
double _lat = 0;
double _lon = 0;
String _k = "";
RDebugUtils.currentLine=52494336;
 //BA.debugLineNum = 52494336;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=52494338;
 //BA.debugLineNum = 52494338;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=52494339;
 //BA.debugLineNum = 52494339;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
__c.LogImpl("252494339","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
 }else {
RDebugUtils.currentLine=52494342;
 //BA.debugLineNum = 52494342;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("252494342","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=52494343;
 //BA.debugLineNum = 52494343;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494344;
 //BA.debugLineNum = 52494344;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494345;
 //BA.debugLineNum = 52494345;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=52494346;
 //BA.debugLineNum = 52494346;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos"))>-1) { 
RDebugUtils.currentLine=52494347;
 //BA.debugLineNum = 52494347;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"kmt_datos\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos")));
 };
RDebugUtils.currentLine=52494350;
 //BA.debugLineNum = 52494350;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=52494352;
 //BA.debugLineNum = 52494352;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group12 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen12 = group12.getSize()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (Object[])(group12.Get(index12));
RDebugUtils.currentLine=52494353;
 //BA.debugLineNum = 52494353;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=52494354;
 //BA.debugLineNum = 52494354;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=52494355;
 //BA.debugLineNum = 52494355;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=52494356;
 //BA.debugLineNum = 52494356;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=52494357;
 //BA.debugLineNum = 52494357;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=52494358;
 //BA.debugLineNum = 52494358;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=52494359;
 //BA.debugLineNum = 52494359;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=52494360;
 //BA.debugLineNum = 52494360;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=52494361;
 //BA.debugLineNum = 52494361;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=52494362;
 //BA.debugLineNum = 52494362;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=52494363;
 //BA.debugLineNum = 52494363;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=52494364;
 //BA.debugLineNum = 52494364;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=52494365;
 //BA.debugLineNum = 52494365;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=52494366;
 //BA.debugLineNum = 52494366;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=52494367;
 //BA.debugLineNum = 52494367;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=52494368;
 //BA.debugLineNum = 52494368;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=52494369;
 //BA.debugLineNum = 52494369;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=52494370;
 //BA.debugLineNum = 52494370;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=52494371;
 //BA.debugLineNum = 52494371;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(resul";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=52494374;
 //BA.debugLineNum = 52494374;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) 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_bcredito)}));
 }
};
RDebugUtils.currentLine=52494378;
 //BA.debugLineNum = 52494378;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=52494379;
 //BA.debugLineNum = 52494379;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=52494380;
 //BA.debugLineNum = 52494380;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494381;
 //BA.debugLineNum = 52494381;BA.debugLine="If Listo1 = 1  And Listo3 = 1  Then";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=52494382;
 //BA.debugLineNum = 52494382;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494383;
 //BA.debugLineNum = 52494383;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494384;
 //BA.debugLineNum = 52494384;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494385;
 //BA.debugLineNum = 52494385;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=52494390;
 //BA.debugLineNum = 52494390;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494391;
 //BA.debugLineNum = 52494391;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494392;
 //BA.debugLineNum = 52494392;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { 
RDebugUtils.currentLine=52494393;
 //BA.debugLineNum = 52494393;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group48 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen48 = group48.getSize()
;int index48 = 0;
;
for (; index48 < groupLen48;index48++){
_records = (Object[])(group48.Get(index48));
RDebugUtils.currentLine=52494394;
 //BA.debugLineNum = 52494394;BA.debugLine="Dim NOTA As String = records(result.Columns.G";
_nota = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("NOTA"))))]);
RDebugUtils.currentLine=52494395;
 //BA.debugLineNum = 52494395;BA.debugLine="Dim CLIENTE As String = records(result.Column";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTE"))))]);
RDebugUtils.currentLine=52494396;
 //BA.debugLineNum = 52494396;BA.debugLine="Dim SALDO_PENDIENTE As String = records(resul";
_saldo_pendiente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("SALDO_PENDIENTE"))))]);
RDebugUtils.currentLine=52494398;
 //BA.debugLineNum = 52494398;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente)}));
 }
};
 };
 };
RDebugUtils.currentLine=52494404;
 //BA.debugLineNum = 52494404;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494405;
 //BA.debugLineNum = 52494405;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494406;
 //BA.debugLineNum = 52494406;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) { 
RDebugUtils.currentLine=52494407;
 //BA.debugLineNum = 52494407;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3"))>-1) { 
RDebugUtils.currentLine=52494408;
 //BA.debugLineNum = 52494408;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod3\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3")));
RDebugUtils.currentLine=52494409;
 //BA.debugLineNum = 52494409;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494409",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494411;
 //BA.debugLineNum = 52494411;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=52494412;
 //BA.debugLineNum = 52494412;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group64 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen64 = group64.getSize()
;int index64 = 0;
;
for (; index64 < groupLen64;index64++){
_records = (Object[])(group64.Get(index64));
RDebugUtils.currentLine=52494413;
 //BA.debugLineNum = 52494413;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=52494414;
 //BA.debugLineNum = 52494414;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=52494415;
 //BA.debugLineNum = 52494415;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=52494416;
 //BA.debugLineNum = 52494416;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=52494417;
 //BA.debugLineNum = 52494417;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=52494418;
 //BA.debugLineNum = 52494418;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=52494419;
 //BA.debugLineNum = 52494419;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=52494420;
 //BA.debugLineNum = 52494420;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=52494421;
 //BA.debugLineNum = 52494421;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=52494422;
 //BA.debugLineNum = 52494422;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=52494423;
 //BA.debugLineNum = 52494423;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=52494425;
 //BA.debugLineNum = 52494425;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=52494426;
 //BA.debugLineNum = 52494426;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=52494427;
 //BA.debugLineNum = 52494427;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(result.";
_cat_dp_precio4 = (float)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]));
RDebugUtils.currentLine=52494428;
 //BA.debugLineNum = 52494428;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(resul";
_cat_dp_conversion1 = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CONVERSION1"))))]));
RDebugUtils.currentLine=52494429;
 //BA.debugLineNum = 52494429;BA.debugLine="Dim CAT_DP_CANT_MIN_VENTA As Int = records(re";
_cat_dp_cant_min_venta = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CANT_MIN_VENTA"))))]));
RDebugUtils.currentLine=52494432;
 //BA.debugLineNum = 52494432;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD3(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1,CAT_DP_CANT_MIN_VENTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_dp_precio4),(Object)(_cat_dp_conversion1),(Object)(_cat_dp_cant_min_venta)}));
 }
};
RDebugUtils.currentLine=52494434;
 //BA.debugLineNum = 52494434;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=52494435;
 //BA.debugLineNum = 52494435;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=52494436;
 //BA.debugLineNum = 52494436;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494437;
 //BA.debugLineNum = 52494437;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=52494438;
 //BA.debugLineNum = 52494438;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494439;
 //BA.debugLineNum = 52494439;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494440;
 //BA.debugLineNum = 52494440;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494441;
 //BA.debugLineNum = 52494441;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=52494446;
 //BA.debugLineNum = 52494446;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494447;
 //BA.debugLineNum = 52494447;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494448;
 //BA.debugLineNum = 52494448;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=52494449;
 //BA.debugLineNum = 52494449;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------";
__c.LogImpl("252494449","Entramos a GUNA_PROD<---------------------------------",0);
RDebugUtils.currentLine=52494450;
 //BA.debugLineNum = 52494450;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod"))>-1) { 
RDebugUtils.currentLine=52494451;
 //BA.debugLineNum = 52494451;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod")));
RDebugUtils.currentLine=52494452;
 //BA.debugLineNum = 52494452;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494452",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494454;
 //BA.debugLineNum = 52494454;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=52494455;
 //BA.debugLineNum = 52494455;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group103 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen103 = group103.getSize()
;int index103 = 0;
;
for (; index103 < groupLen103;index103++){
_records = (Object[])(group103.Get(index103));
RDebugUtils.currentLine=52494456;
 //BA.debugLineNum = 52494456;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]);
RDebugUtils.currentLine=52494457;
 //BA.debugLineNum = 52494457;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_NOMBRE"))))]);
RDebugUtils.currentLine=52494458;
 //BA.debugLineNum = 52494458;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP1"))))]);
RDebugUtils.currentLine=52494459;
 //BA.debugLineNum = 52494459;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP2"))))]);
RDebugUtils.currentLine=52494460;
 //BA.debugLineNum = 52494460;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]);
RDebugUtils.currentLine=52494461;
 //BA.debugLineNum = 52494461;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]);
RDebugUtils.currentLine=52494462;
 //BA.debugLineNum = 52494462;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_STS"))))]);
RDebugUtils.currentLine=52494463;
 //BA.debugLineNum = 52494463;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]);
RDebugUtils.currentLine=52494464;
 //BA.debugLineNum = 52494464;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_SUBTIPO"))))]);
RDebugUtils.currentLine=52494465;
 //BA.debugLineNum = 52494465;BA.debugLine="Dim CONVERSION As String = 0'records(result.C";
_conversion = BA.NumberToString(0);
RDebugUtils.currentLine=52494466;
 //BA.debugLineNum = 52494466;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul";
_precioconver = BA.NumberToString(0);
RDebugUtils.currentLine=52494467;
 //BA.debugLineNum = 52494467;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMG"))))]);
RDebugUtils.currentLine=52494472;
 //BA.debugLineNum = 52494472;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------";
__c.LogImpl("252494472",_cat_gp_nombre+"<-------------------------------------",0);
RDebugUtils.currentLine=52494473;
 //BA.debugLineNum = 52494473;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
_starter._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,CONVERSION,PRECIOCONVER) 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)(0),(Object)(_conversion),(Object)(_precioconver)}));
 }
};
RDebugUtils.currentLine=52494475;
 //BA.debugLineNum = 52494475;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=52494476;
 //BA.debugLineNum = 52494476;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=52494477;
 //BA.debugLineNum = 52494477;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494478;
 //BA.debugLineNum = 52494478;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=52494479;
 //BA.debugLineNum = 52494479;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494480;
 //BA.debugLineNum = 52494480;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494481;
 //BA.debugLineNum = 52494481;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494482;
 //BA.debugLineNum = 52494482;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=52494487;
 //BA.debugLineNum = 52494487;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494488;
 //BA.debugLineNum = 52494488;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494489;
 //BA.debugLineNum = 52494489;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=52494490;
 //BA.debugLineNum = 52494490;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp"))>-1) { 
RDebugUtils.currentLine=52494491;
 //BA.debugLineNum = 52494491;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprodp\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp")));
RDebugUtils.currentLine=52494492;
 //BA.debugLineNum = 52494492;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494492",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494494;
 //BA.debugLineNum = 52494494;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group137 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen137 = group137.getSize()
;int index137 = 0;
;
for (; index137 < groupLen137;index137++){
_records = (Object[])(group137.Get(index137));
RDebugUtils.currentLine=52494495;
 //BA.debugLineNum = 52494495;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=52494496;
 //BA.debugLineNum = 52494496;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=52494497;
 //BA.debugLineNum = 52494497;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=52494498;
 //BA.debugLineNum = 52494498;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=52494499;
 //BA.debugLineNum = 52494499;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=52494500;
 //BA.debugLineNum = 52494500;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=52494501;
 //BA.debugLineNum = 52494501;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=52494502;
 //BA.debugLineNum = 52494502;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=52494503;
 //BA.debugLineNum = 52494503;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=52494504;
 //BA.debugLineNum = 52494504;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=52494507;
 //BA.debugLineNum = 52494507;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
_starter._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) 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)(0)}));
 }
};
RDebugUtils.currentLine=52494509;
 //BA.debugLineNum = 52494509;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494510;
 //BA.debugLineNum = 52494510;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=52494511;
 //BA.debugLineNum = 52494511;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494512;
 //BA.debugLineNum = 52494512;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494513;
 //BA.debugLineNum = 52494513;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494514;
 //BA.debugLineNum = 52494514;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=52494515;
 //BA.debugLineNum = 52494515;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=52494516;
 //BA.debugLineNum = 52494516;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494517;
 //BA.debugLineNum = 52494517;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494518;
 //BA.debugLineNum = 52494518;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494519;
 //BA.debugLineNum = 52494519;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=52494524;
 //BA.debugLineNum = 52494524;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494525;
 //BA.debugLineNum = 52494525;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494526;
 //BA.debugLineNum = 52494526;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=52494527;
 //BA.debugLineNum = 52494527;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq"))>-1) { 
RDebugUtils.currentLine=52494528;
 //BA.debugLineNum = 52494528;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"detallepaq\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq")));
RDebugUtils.currentLine=52494529;
 //BA.debugLineNum = 52494529;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494529",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494531;
 //BA.debugLineNum = 52494531;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group171 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen171 = group171.getSize()
;int index171 = 0;
;
for (; index171 < groupLen171;index171++){
_records = (Object[])(group171.Get(index171));
RDebugUtils.currentLine=52494532;
 //BA.debugLineNum = 52494532;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=52494533;
 //BA.debugLineNum = 52494533;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=52494534;
 //BA.debugLineNum = 52494534;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=52494535;
 //BA.debugLineNum = 52494535;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=52494536;
 //BA.debugLineNum = 52494536;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=52494537;
 //BA.debugLineNum = 52494537;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=52494538;
 //BA.debugLineNum = 52494538;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=52494539;
 //BA.debugLineNum = 52494539;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=52494540;
 //BA.debugLineNum = 52494540;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=52494541;
 //BA.debugLineNum = 52494541;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=52494542;
 //BA.debugLineNum = 52494542;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=52494544;
 //BA.debugLineNum = 52494544;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_D";
_starter._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=52494546;
 //BA.debugLineNum = 52494546;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494547;
 //BA.debugLineNum = 52494547;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=52494548;
 //BA.debugLineNum = 52494548;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494549;
 //BA.debugLineNum = 52494549;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494550;
 //BA.debugLineNum = 52494550;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494551;
 //BA.debugLineNum = 52494551;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=52494552;
 //BA.debugLineNum = 52494552;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=52494553;
 //BA.debugLineNum = 52494553;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494554;
 //BA.debugLineNum = 52494554;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494555;
 //BA.debugLineNum = 52494555;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494556;
 //BA.debugLineNum = 52494556;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=52494561;
 //BA.debugLineNum = 52494561;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494562;
 //BA.debugLineNum = 52494562;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494563;
 //BA.debugLineNum = 52494563;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { 
RDebugUtils.currentLine=52494564;
 //BA.debugLineNum = 52494564;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group202 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen202 = group202.getSize()
;int index202 = 0;
;
for (; index202 < groupLen202;index202++){
_records = (Object[])(group202.Get(index202));
RDebugUtils.currentLine=52494565;
 //BA.debugLineNum = 52494565;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
RDebugUtils.currentLine=52494566;
 //BA.debugLineNum = 52494566;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
RDebugUtils.currentLine=52494568;
 //BA.debugLineNum = 52494568;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=52494570;
 //BA.debugLineNum = 52494570;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 };
 }
};
 };
 };
RDebugUtils.currentLine=52494576;
 //BA.debugLineNum = 52494576;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494577;
 //BA.debugLineNum = 52494577;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494578;
 //BA.debugLineNum = 52494578;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("punteo"))) { 
RDebugUtils.currentLine=52494579;
 //BA.debugLineNum = 52494579;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>-1) { 
RDebugUtils.currentLine=52494580;
 //BA.debugLineNum = 52494580;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo")));
 };
RDebugUtils.currentLine=52494583;
 //BA.debugLineNum = 52494583;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>0) { 
RDebugUtils.currentLine=52494584;
 //BA.debugLineNum = 52494584;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo")));
RDebugUtils.currentLine=52494585;
 //BA.debugLineNum = 52494585;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494585",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494587;
 //BA.debugLineNum = 52494587;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=52494588;
 //BA.debugLineNum = 52494588;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group223 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen223 = group223.getSize()
;int index223 = 0;
;
for (; index223 < groupLen223;index223++){
_records = (Object[])(group223.Get(index223));
RDebugUtils.currentLine=52494589;
 //BA.debugLineNum = 52494589;BA.debugLine="Dim HV_CLIENTE As String = records(result.Col";
_hv_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_CLIENTE"))))]);
RDebugUtils.currentLine=52494590;
 //BA.debugLineNum = 52494590;BA.debugLine="Dim HV_LONG As String = records(result.Column";
_hv_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LONG"))))]);
RDebugUtils.currentLine=52494591;
 //BA.debugLineNum = 52494591;BA.debugLine="Dim HV_LAT As String = records(result.Columns";
_hv_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LAT"))))]);
RDebugUtils.currentLine=52494593;
 //BA.debugLineNum = 52494593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PUNTE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PUNTEO_GPS(HV_CLIENTE, HV_LONG, HV_LAT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hv_cliente),(Object)(_hv_long),(Object)(_hv_lat)}));
 }
};
RDebugUtils.currentLine=52494595;
 //BA.debugLineNum = 52494595;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=52494596;
 //BA.debugLineNum = 52494596;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
 };
 };
RDebugUtils.currentLine=52494600;
 //BA.debugLineNum = 52494600;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494601;
 //BA.debugLineNum = 52494601;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494602;
 //BA.debugLineNum = 52494602;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=52494603;
 //BA.debugLineNum = 52494603;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos"))>-1) { 
RDebugUtils.currentLine=52494604;
 //BA.debugLineNum = 52494604;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"hist_datos\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos")));
 };
RDebugUtils.currentLine=52494607;
 //BA.debugLineNum = 52494607;BA.debugLine="Log(l_ruta.text)";
__c.LogImpl("252494607",__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=52494608;
 //BA.debugLineNum = 52494608;BA.debugLine="Log($\"********  Insertamos HV - ${result.Rows.";
__c.LogImpl("252494608",("********  Insertamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
RDebugUtils.currentLine=52494609;
 //BA.debugLineNum = 52494609;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=52494610;
 //BA.debugLineNum = 52494610;BA.debugLine="Dim consecutivo  As Int= 0";
_consecutivo = (int) (0);
RDebugUtils.currentLine=52494611;
 //BA.debugLineNum = 52494611;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group243 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen243 = group243.getSize()
;int index243 = 0;
;
for (; index243 < groupLen243;index243++){
_records = (Object[])(group243.Get(index243));
RDebugUtils.currentLine=52494612;
 //BA.debugLineNum = 52494612;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=52494613;
 //BA.debugLineNum = 52494613;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=52494614;
 //BA.debugLineNum = 52494614;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=52494615;
 //BA.debugLineNum = 52494615;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=52494616;
 //BA.debugLineNum = 52494616;BA.debugLine="Dim HVD_FECHA As String = records(result.Colu";
_hvd_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_FECHA"))))]);
RDebugUtils.currentLine=52494617;
 //BA.debugLineNum = 52494617;BA.debugLine="Dim HVD_CODPROMO As String = records(result.C";
_hvd_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CODPROMO"))))]);
RDebugUtils.currentLine=52494618;
 //BA.debugLineNum = 52494618;BA.debugLine="Dim HVD_PROID As String = records(result.Colu";
_hvd_proid = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PROID"))))]);
RDebugUtils.currentLine=52494619;
 //BA.debugLineNum = 52494619;BA.debugLine="Dim HVD_NUM_TICKET As String = records(result";
_hvd_num_ticket = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_TICKET"))))]);
RDebugUtils.currentLine=52494620;
 //BA.debugLineNum = 52494620;BA.debugLine="Dim HVD_NUM_REGISTRO As String = records(resu";
_hvd_num_registro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_REGISTRO"))))]);
RDebugUtils.currentLine=52494621;
 //BA.debugLineNum = 52494621;BA.debugLine="Dim HVD_RECHAZO As String = records(result.Co";
_hvd_rechazo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_RECHAZO"))))]);
RDebugUtils.currentLine=52494623;
 //BA.debugLineNum = 52494623;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col";
_bcajas = BA.NumberToString(0);
RDebugUtils.currentLine=52494624;
 //BA.debugLineNum = 52494624;BA.debugLine="Dim cantc As String = 0 'records(result.Colum";
_cantc = BA.NumberToString(0);
RDebugUtils.currentLine=52494626;
 //BA.debugLineNum = 52494626;BA.debugLine="consecutivo = consecutivo +1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=52494627;
 //BA.debugLineNum = 52494627;BA.debugLine="If l_ruta.Text = \"0\" Then 'Si no hay ruta car";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=52494628;
 //BA.debugLineNum = 52494628;BA.debugLine="Log(\"No hay ruta, guardamos todos\")";
__c.LogImpl("252494628","No hay ruta, guardamos todos",0);
RDebugUtils.currentLine=52494629;
 //BA.debugLineNum = 52494629;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc)}));
RDebugUtils.currentLine=52494630;
 //BA.debugLineNum = 52494630;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)}));
 }else {
RDebugUtils.currentLine=52494633;
 //BA.debugLineNum = 52494633;BA.debugLine="Private tc As Cursor = Starter.skmt.ExecQuer";
_tc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_tc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+"' and HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_hvd_proid))+"'"))));
RDebugUtils.currentLine=52494634;
 //BA.debugLineNum = 52494634;BA.debugLine="If tc.RowCount = 0 Then";
if (_tc.getRowCount()==0) { 
RDebugUtils.currentLine=52494635;
 //BA.debugLineNum = 52494635;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)";
__c.LogImpl("252494635",("Guardamos "+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+""),0);
RDebugUtils.currentLine=52494636;
 //BA.debugLineNum = 52494636;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc)}));
RDebugUtils.currentLine=52494637;
 //BA.debugLineNum = 52494637;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)}));
 };
 };
 }
};
RDebugUtils.currentLine=52494641;
 //BA.debugLineNum = 52494641;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=52494642;
 //BA.debugLineNum = 52494642;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=52494643;
 //BA.debugLineNum = 52494643;BA.debugLine="Log($\"********  Terminamos HV - ${result.Rows.";
__c.LogImpl("252494643",("********  Terminamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
RDebugUtils.currentLine=52494657;
 //BA.debugLineNum = 52494657;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=52494658;
 //BA.debugLineNum = 52494658;BA.debugLine="If Listo1 = 1  And Listo3 = 1  Then";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=52494659;
 //BA.debugLineNum = 52494659;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=52494660;
 //BA.debugLineNum = 52494660;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=52494661;
 //BA.debugLineNum = 52494661;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494662;
 //BA.debugLineNum = 52494662;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=52494667;
 //BA.debugLineNum = 52494667;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494668;
 //BA.debugLineNum = 52494668;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494669;
 //BA.debugLineNum = 52494669;BA.debugLine="If result.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=52494670;
 //BA.debugLineNum = 52494670;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group285 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen285 = group285.getSize()
;int index285 = 0;
;
for (; index285 < groupLen285;index285++){
_records = (Object[])(group285.Get(index285));
RDebugUtils.currentLine=52494671;
 //BA.debugLineNum = 52494671;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=52494672;
 //BA.debugLineNum = 52494672;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=52494674;
 //BA.debugLineNum = 52494674;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_va_descripcion),(Object)(_cat_va_valor)}));
 }
};
 };
 };
RDebugUtils.currentLine=52494680;
 //BA.debugLineNum = 52494680;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494681;
 //BA.debugLineNum = 52494681;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494682;
 //BA.debugLineNum = 52494682;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("PAGARES"))) { 
RDebugUtils.currentLine=52494683;
 //BA.debugLineNum = 52494683;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group295 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen295 = group295.getSize()
;int index295 = 0;
;
for (; index295 < groupLen295;index295++){
_records = (Object[])(group295.Get(index295));
RDebugUtils.currentLine=52494685;
 //BA.debugLineNum = 52494685;BA.debugLine="Dim TMP_MONTO_PAGARE As String = records(resu";
_tmp_monto_pagare = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_MONTO_PAGARE"))))]);
RDebugUtils.currentLine=52494686;
 //BA.debugLineNum = 52494686;BA.debugLine="Dim TMP_CLIENTE As String = records(result.Co";
_tmp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_CLIENTE"))))]);
RDebugUtils.currentLine=52494688;
 //BA.debugLineNum = 52494688;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGAR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES(TMP_MONTO_PAGARE, TMP_CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_tmp_monto_pagare),(Object)(_tmp_cliente)}));
 }
};
 };
 };
RDebugUtils.currentLine=52494693;
 //BA.debugLineNum = 52494693;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494694;
 //BA.debugLineNum = 52494694;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494695;
 //BA.debugLineNum = 52494695;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=52494696;
 //BA.debugLineNum = 52494696;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group305 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen305 = group305.getSize()
;int index305 = 0;
;
for (; index305 < groupLen305;index305++){
_records = (Object[])(group305.Get(index305));
RDebugUtils.currentLine=52494697;
 //BA.debugLineNum = 52494697;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=52494698;
 //BA.debugLineNum = 52494698;BA.debugLine="If cuantos_pedido = CUANTOSP Then";
if ((__ref._cuantos_pedido /*String*/ ).equals(BA.NumberToString(_cuantosp))) { 
RDebugUtils.currentLine=52494700;
 //BA.debugLineNum = 52494700;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=52494702;
 //BA.debugLineNum = 52494702;BA.debugLine="ToastMessageShow(\"No se cargo bien la info P";
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+__ref._cuantos_pedido /*String*/ ),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=52494710;
 //BA.debugLineNum = 52494710;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494711;
 //BA.debugLineNum = 52494711;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494712;
 //BA.debugLineNum = 52494712;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=52494713;
 //BA.debugLineNum = 52494713;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group318 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen318 = group318.getSize()
;int index318 = 0;
;
for (; index318 < groupLen318;index318++){
_records = (Object[])(group318.Get(index318));
RDebugUtils.currentLine=52494714;
 //BA.debugLineNum = 52494714;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=52494715;
 //BA.debugLineNum = 52494715;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=52494717;
 //BA.debugLineNum = 52494717;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=52494719;
 //BA.debugLineNum = 52494719;BA.debugLine="ToastMessageShow(\"No se cargo bien la info C";
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+__ref._cuantos_pedidosc /*String*/ ),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=52494725;
 //BA.debugLineNum = 52494725;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494726;
 //BA.debugLineNum = 52494726;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494727;
 //BA.debugLineNum = 52494727;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=52494728;
 //BA.debugLineNum = 52494728;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group331 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen331 = group331.getSize()
;int index331 = 0;
;
for (; index331 < groupLen331;index331++){
_records = (Object[])(group331.Get(index331));
RDebugUtils.currentLine=52494729;
 //BA.debugLineNum = 52494729;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=52494730;
 //BA.debugLineNum = 52494730;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=52494732;
 //BA.debugLineNum = 52494732;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=52494734;
 //BA.debugLineNum = 52494734;BA.debugLine="ToastMessageShow(\"No se cargo bien la info N";
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+__ref._cuantos_noventa /*String*/ ),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=52494740;
 //BA.debugLineNum = 52494740;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494741;
 //BA.debugLineNum = 52494741;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494742;
 //BA.debugLineNum = 52494742;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("insert_pedido"))) { 
RDebugUtils.currentLine=52494743;
 //BA.debugLineNum = 52494743;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
 };
 };
RDebugUtils.currentLine=52494747;
 //BA.debugLineNum = 52494747;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494748;
 //BA.debugLineNum = 52494748;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494749;
 //BA.debugLineNum = 52494749;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=52494750;
 //BA.debugLineNum = 52494750;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group350 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen350 = group350.getSize()
;int index350 = 0;
;
for (; index350 < groupLen350;index350++){
_records = (Object[])(group350.Get(index350));
RDebugUtils.currentLine=52494751;
 //BA.debugLineNum = 52494751;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=52494752;
 //BA.debugLineNum = 52494752;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=52494754;
 //BA.debugLineNum = 52494754;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
 };
RDebugUtils.currentLine=52494759;
 //BA.debugLineNum = 52494759;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494760;
 //BA.debugLineNum = 52494760;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494761;
 //BA.debugLineNum = 52494761;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=52494762;
 //BA.debugLineNum = 52494762;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group360 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen360 = group360.getSize()
;int index360 = 0;
;
for (; index360 < groupLen360;index360++){
_records = (Object[])(group360.Get(index360));
RDebugUtils.currentLine=52494763;
 //BA.debugLineNum = 52494763;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=52494768;
 //BA.debugLineNum = 52494768;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494769;
 //BA.debugLineNum = 52494769;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494770;
 //BA.debugLineNum = 52494770;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=52494771;
 //BA.debugLineNum = 52494771;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta"))>-1) { 
RDebugUtils.currentLine=52494772;
 //BA.debugLineNum = 52494772;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"ruta\"))";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta")));
RDebugUtils.currentLine=52494773;
 //BA.debugLineNum = 52494773;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("252494773",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=52494775;
 //BA.debugLineNum = 52494775;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group372 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen372 = group372.getSize()
;int index372 = 0;
;
for (; index372 < groupLen372;index372++){
_records = (Object[])(group372.Get(index372));
RDebugUtils.currentLine=52494776;
 //BA.debugLineNum = 52494776;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=52494778;
 //BA.debugLineNum = 52494778;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=52494779;
 //BA.debugLineNum = 52494779;BA.debugLine="If l_ctast.Text = \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=52494780;
 //BA.debugLineNum = 52494780;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=52494781;
 //BA.debugLineNum = 52494781;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=52494782;
 //BA.debugLineNum = 52494782;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=52494784;
 //BA.debugLineNum = 52494784;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=52494785;
 //BA.debugLineNum = 52494785;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then Subir.";
if ((_subs._dameusuariodedb /*String*/ (ba)).equals("ROOT")) { 
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);};
RDebugUtils.currentLine=52494786;
 //BA.debugLineNum = 52494786;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494787;
 //BA.debugLineNum = 52494787;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=52494789;
 //BA.debugLineNum = 52494789;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=52494790;
 //BA.debugLineNum = 52494790;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=52494791;
 //BA.debugLineNum = 52494791;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=52494792;
 //BA.debugLineNum = 52494792;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=52494795;
 //BA.debugLineNum = 52494795;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494796;
 //BA.debugLineNum = 52494796;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494797;
 //BA.debugLineNum = 52494797;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52494798;
 //BA.debugLineNum = 52494798;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }
};
 };
 };
RDebugUtils.currentLine=52494804;
 //BA.debugLineNum = 52494804;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494805;
 //BA.debugLineNum = 52494805;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494806;
 //BA.debugLineNum = 52494806;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
RDebugUtils.currentLine=52494807;
 //BA.debugLineNum = 52494807;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group401 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen401 = group401.getSize()
;int index401 = 0;
;
for (; index401 < groupLen401;index401++){
_records = (Object[])(group401.Get(index401));
RDebugUtils.currentLine=52494808;
 //BA.debugLineNum = 52494808;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
__c.LogImpl("252494808","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0);
RDebugUtils.currentLine=52494809;
 //BA.debugLineNum = 52494809;BA.debugLine="Private lat, lon As Double";
_lat = 0;
_lon = 0;
RDebugUtils.currentLine=52494810;
 //BA.debugLineNum = 52494810;BA.debugLine="lat = 0.0";
_lat = 0.0;
RDebugUtils.currentLine=52494811;
 //BA.debugLineNum = 52494811;BA.debugLine="lon = 0.0";
_lon = 0.0;
RDebugUtils.currentLine=52494812;
 //BA.debugLineNum = 52494812;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A";
if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) { 
RDebugUtils.currentLine=52494813;
 //BA.debugLineNum = 52494813;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT";
_lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]));
RDebugUtils.currentLine=52494814;
 //BA.debugLineNum = 52494814;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON";
_lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]));
 };
RDebugUtils.currentLine=52494816;
 //BA.debugLineNum = 52494816;BA.debugLine="Starter.cedisLocation.Latitude = lat";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
RDebugUtils.currentLine=52494817;
 //BA.debugLineNum = 52494817;BA.debugLine="Starter.cedisLocation.Longitude = lon";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
RDebugUtils.currentLine=52494818;
 //BA.debugLineNum = 52494818;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")}));
RDebugUtils.currentLine=52494819;
 //BA.debugLineNum = 52494819;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))}));
 }
};
 };
 };
RDebugUtils.currentLine=52494825;
 //BA.debugLineNum = 52494825;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494826;
 //BA.debugLineNum = 52494826;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494827;
 //BA.debugLineNum = 52494827;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_reparto"))) { 
RDebugUtils.currentLine=52494828;
 //BA.debugLineNum = 52494828;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group420 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen420 = group420.getSize()
;int index420 = 0;
;
for (; index420 < groupLen420;index420++){
_records = (Object[])(group420.Get(index420));
RDebugUtils.currentLine=52494829;
 //BA.debugLineNum = 52494829;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group421 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen421 = group421.getSize()
;int index421 = 0;
;
for (; index421 < groupLen421;index421++){
_k = BA.ObjectToString(group421.Get(index421));
RDebugUtils.currentLine=52494830;
 //BA.debugLineNum = 52494830;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
__c.LogImpl("252494830",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=52494836;
 //BA.debugLineNum = 52494836;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=52494837;
 //BA.debugLineNum = 52494837;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=52494838;
 //BA.debugLineNum = 52494838;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) { 
RDebugUtils.currentLine=52494839;
 //BA.debugLineNum = 52494839;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group430 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen430 = group430.getSize()
;int index430 = 0;
;
for (; index430 < groupLen430;index430++){
_records = (Object[])(group430.Get(index430));
RDebugUtils.currentLine=52494840;
 //BA.debugLineNum = 52494840;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group431 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen431 = group431.getSize()
;int index431 = 0;
;
for (; index431 < groupLen431;index431++){
_k = BA.ObjectToString(group431.Get(index431));
RDebugUtils.currentLine=52494841;
 //BA.debugLineNum = 52494841;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
__c.LogImpl("252494841",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=52494846;
 //BA.debugLineNum = 52494846;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=52494848;
 //BA.debugLineNum = 52494848;BA.debugLine="If reqs.Size = 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { 
RDebugUtils.currentLine=52494852;
 //BA.debugLineNum = 52494852;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
RDebugUtils.currentLine=52494854;
 //BA.debugLineNum = 52494854;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS 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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK")));
RDebugUtils.currentLine=52494855;
 //BA.debugLineNum = 52494855;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52494856;
 //BA.debugLineNum = 52494856;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=52494857;
 //BA.debugLineNum = 52494857;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into CHECADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into CHECADO_CHECK (CHECADO) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"0"}));
 }else 
{RDebugUtils.currentLine=52494859;
 //BA.debugLineNum = 52494859;BA.debugLine="Else If c.GetString(\"CUANTOS\") = 1 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(1))) { 
 }}
;
RDebugUtils.currentLine=52494862;
 //BA.debugLineNum = 52494862;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=52494866;
 //BA.debugLineNum = 52494866;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(reparto_intmex.keymon.lat.c_principal __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "listview1_itemclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}));}
String[] _clieasing = null;
RDebugUtils.currentLine=53346304;
 //BA.debugLineNum = 53346304;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,";
RDebugUtils.currentLine=53346305;
 //BA.debugLineNum = 53346305;BA.debugLine="Log(Value)";
__c.LogImpl("253346305",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=53346307;
 //BA.debugLineNum = 53346307;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu";
_clieasing = __c.Regex.Split(" ",BA.ObjectToString(_value));
RDebugUtils.currentLine=53346308;
 //BA.debugLineNum = 53346308;BA.debugLine="Log(clieasing(0))";
__c.LogImpl("253346308",_clieasing[(int) (0)],0);
RDebugUtils.currentLine=53346310;
 //BA.debugLineNum = 53346310;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=53346311;
 //BA.debugLineNum = 53346311;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clieasing[(int) (0)])}));
RDebugUtils.currentLine=53346312;
 //BA.debugLineNum = 53346312;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=53346313;
 //BA.debugLineNum = 53346313;BA.debugLine="End Sub";
return "";
}
public String  _p_prod_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_prod_click", false))
	 {return ((String) Debug.delegate(ba, "p_prod_click", null));}
RDebugUtils.currentLine=53542912;
 //BA.debugLineNum = 53542912;BA.debugLine="Private Sub p_prod_Click";
RDebugUtils.currentLine=53542914;
 //BA.debugLineNum = 53542914;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(reparto_intmex.keymon.lat.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));}
RDebugUtils.currentLine=52232192;
 //BA.debugLineNum = 52232192;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=52232193;
 //BA.debugLineNum = 52232193;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
RDebugUtils.currentLine=52232194;
 //BA.debugLineNum = 52232194;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=52232195;
 //BA.debugLineNum = 52232195;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=52232196;
 //BA.debugLineNum = 52232196;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=52232197;
 //BA.debugLineNum = 52232197;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52232199;
 //BA.debugLineNum = 52232199;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCKEN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO")));
RDebugUtils.currentLine=52232200;
 //BA.debugLineNum = 52232200;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=52232201;
 //BA.debugLineNum = 52232201;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKENV";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
RDebugUtils.currentLine=52232202;
 //BA.debugLineNum = 52232202;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 }else {
RDebugUtils.currentLine=52232204;
 //BA.debugLineNum = 52232204;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 };
RDebugUtils.currentLine=52232206;
 //BA.debugLineNum = 52232206;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=52232212;
 //BA.debugLineNum = 52232212;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(reparto_intmex.keymon.lat.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=52953088;
 //BA.debugLineNum = 52953088;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=52953089;
 //BA.debugLineNum = 52953089;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52953090;
 //BA.debugLineNum = 52953090;BA.debugLine="cmd.Name = \"select_cuantos_pedido\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido";
RDebugUtils.currentLine=52953091;
 //BA.debugLineNum = 52953091;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=52953092;
 //BA.debugLineNum = 52953092;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=52953094;
 //BA.debugLineNum = 52953094;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52953095;
 //BA.debugLineNum = 52953095;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_mards";
RDebugUtils.currentLine=52953096;
 //BA.debugLineNum = 52953096;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=52953097;
 //BA.debugLineNum = 52953097;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=52953099;
 //BA.debugLineNum = 52953099;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=52953100;
 //BA.debugLineNum = 52953100;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\"";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc";
RDebugUtils.currentLine=52953101;
 //BA.debugLineNum = 52953101;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=52953102;
 //BA.debugLineNum = 52953102;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_intmex.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=52953103;
 //BA.debugLineNum = 52953103;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=52953104;
 //BA.debugLineNum = 52953104;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=52953105;
 //BA.debugLineNum = 52953105;BA.debugLine="End Sub";
return "";
}
public String  _trabajar_click(reparto_intmex.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "trabajar_click", false))
	 {return ((String) Debug.delegate(ba, "trabajar_click", null));}
RDebugUtils.currentLine=52166656;
 //BA.debugLineNum = 52166656;BA.debugLine="Sub trabajar_Click";
RDebugUtils.currentLine=52166657;
 //BA.debugLineNum = 52166657;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=52166658;
 //BA.debugLineNum = 52166658;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Atenc";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=52166661;
 //BA.debugLineNum = 52166661;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 };
RDebugUtils.currentLine=52166664;
 //BA.debugLineNum = 52166664;BA.debugLine="End Sub";
return "";
}
}