package reparto_mazapa.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_mazapa.keymon.lat.c_principal");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_mazapa.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_mazapa.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_mazapa.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_mazapa.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 int _successfulrequests = 0;
public int _totalregistros = 0;
public int _totalregistrostotales = 0;
public int _todosrequest = 0;
public anywheresoftware.b4a.objects.PanelWrapper _penvioinfo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _benvioinfo = null;
public anywheresoftware.b4a.objects.ProgressBarWrapper _pbenvioinfo = null;
public anywheresoftware.b4a.objects.LabelWrapper _lenviainfo = null;
public anywheresoftware.b4a.objects.LabelWrapper _lversionname = null;
public b4a.example.dateutils _dateutils = null;
public reparto_mazapa.keymon.lat.main _main = null;
public reparto_mazapa.keymon.lat.appupdater _appupdater = null;
public reparto_mazapa.keymon.lat.tracker _tracker = null;
public reparto_mazapa.keymon.lat.starter _starter = null;
public reparto_mazapa.keymon.lat.subs _subs = null;
public reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
public reparto_mazapa.keymon.lat.foto _foto = null;
public reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
public reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
public reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
public reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_mazapa.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=6356992;
 //BA.debugLineNum = 6356992;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=6356993;
 //BA.debugLineNum = 6356993;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=6356994;
 //BA.debugLineNum = 6356994;BA.debugLine="End Sub";
return null;
}
public String  _b_check_click(reparto_mazapa.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=7929856;
 //BA.debugLineNum = 7929856;BA.debugLine="Private Sub b_check_Click";
RDebugUtils.currentLine=7929858;
 //BA.debugLineNum = 7929858;BA.debugLine="B4XPages.ShowPage(\"checklist\")";
_b4xpages._showpage /*String*/ (ba,"checklist");
RDebugUtils.currentLine=7929860;
 //BA.debugLineNum = 7929860;BA.debugLine="End Sub";
return "";
}
public String  _b_clieprod_click(reparto_mazapa.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=7667712;
 //BA.debugLineNum = 7667712;BA.debugLine="Sub B_CLIEPROD_Click";
RDebugUtils.currentLine=7667713;
 //BA.debugLineNum = 7667713;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=7667714;
 //BA.debugLineNum = 7667714;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=7667716;
 //BA.debugLineNum = 7667716;BA.debugLine="BUSCA.Visible = False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7667717;
 //BA.debugLineNum = 7667717;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7667718;
 //BA.debugLineNum = 7667718;BA.debugLine="trabajar.Visible = False";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7667719;
 //BA.debugLineNum = 7667719;BA.debugLine="B_CLIEPROD.Visible = False";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7667720;
 //BA.debugLineNum = 7667720;BA.debugLine="Panel1.Visible = True";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7667721;
 //BA.debugLineNum = 7667721;BA.debugLine="Panel1.BringToFront";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=7667722;
 //BA.debugLineNum = 7667722;BA.debugLine="Btn_Ubicar_Ru.Visible=False";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7667723;
 //BA.debugLineNum = 7667723;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=7667724;
 //BA.debugLineNum = 7667724;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=7667725;
 //BA.debugLineNum = 7667725;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=7667726;
 //BA.debugLineNum = 7667726;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7667727;
 //BA.debugLineNum = 7667727;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=7667728;
 //BA.debugLineNum = 7667728;BA.debugLine="label1.TextSize = 10";
_label1.setTextSize((float) (10));
RDebugUtils.currentLine=7667729;
 //BA.debugLineNum = 7667729;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=7667730;
 //BA.debugLineNum = 7667730;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7667731;
 //BA.debugLineNum = 7667731;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=7667732;
 //BA.debugLineNum = 7667732;BA.debugLine="label2.TextSize = 10";
_label2.setTextSize((float) (10));
RDebugUtils.currentLine=7667733;
 //BA.debugLineNum = 7667733;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=7667735;
 //BA.debugLineNum = 7667735;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7667736;
 //BA.debugLineNum = 7667736;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=7667737;
 //BA.debugLineNum = 7667737;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=7667738;
 //BA.debugLineNum = 7667738;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("2")) { 
RDebugUtils.currentLine=7667739;
 //BA.debugLineNum = 7667739;BA.debugLine="ESTATUS = \"ENTREGADO\"";
__ref._estatus /*String*/  = "ENTREGADO";
RDebugUtils.currentLine=7667740;
 //BA.debugLineNum = 7667740;BA.debugLine="Log(\"entrega\")";
__c.LogImpl("37667740","entrega",0);
 }else 
{RDebugUtils.currentLine=7667741;
 //BA.debugLineNum = 7667741;BA.debugLine="ELSE IF c.GetString(\"gestion\") = \"3\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("3")) { 
RDebugUtils.currentLine=7667742;
 //BA.debugLineNum = 7667742;BA.debugLine="Log(\"no entrega\")";
__c.LogImpl("37667742","no entrega",0);
RDebugUtils.currentLine=7667743;
 //BA.debugLineNum = 7667743;BA.debugLine="ESTATUS = \"RECHAZADO\"";
__ref._estatus /*String*/  = "RECHAZADO";
 }else {
RDebugUtils.currentLine=7667745;
 //BA.debugLineNum = 7667745;BA.debugLine="ESTATUS = \"SIN ESTATUS\"";
__ref._estatus /*String*/  = "SIN ESTATUS";
 }}
;
RDebugUtils.currentLine=7667750;
 //BA.debugLineNum = 7667750;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then";
if ((__ref._estatus /*String*/ ).equals("ENTREGADO")) { 
RDebugUtils.currentLine=7667751;
 //BA.debugLineNum = 7667751;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=7667753;
 //BA.debugLineNum = 7667753;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=7667754;
 //BA.debugLineNum = 7667754;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=7667755;
 //BA.debugLineNum = 7667755;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=7667756;
 //BA.debugLineNum = 7667756;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=7667757;
 //BA.debugLineNum = 7667757;BA.debugLine="vc.Position = a";
_vc.setPosition(_a);
RDebugUtils.currentLine=7667759;
 //BA.debugLineNum = 7667759;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=7667760;
 //BA.debugLineNum = 7667760;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=7667765;
 //BA.debugLineNum = 7667765;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=7667766;
 //BA.debugLineNum = 7667766;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=7667767;
 //BA.debugLineNum = 7667767;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=7667768;
 //BA.debugLineNum = 7667768;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=7667769;
 //BA.debugLineNum = 7667769;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=7667770;
 //BA.debugLineNum = 7667770;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=7667771;
 //BA.debugLineNum = 7667771;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=7667772;
 //BA.debugLineNum = 7667772;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=7667773;
 //BA.debugLineNum = 7667773;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=7667774;
 //BA.debugLineNum = 7667774;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=7667775;
 //BA.debugLineNum = 7667775;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=7667776;
 //BA.debugLineNum = 7667776;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=7667782;
 //BA.debugLineNum = 7667782;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=7667783;
 //BA.debugLineNum = 7667783;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=7667784;
 //BA.debugLineNum = 7667784;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=7667785;
 //BA.debugLineNum = 7667785;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=7667787;
 //BA.debugLineNum = 7667787;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=7667788;
 //BA.debugLineNum = 7667788;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=7667789;
 //BA.debugLineNum = 7667789;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=7667790;
 //BA.debugLineNum = 7667790;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7667791;
 //BA.debugLineNum = 7667791;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=7667792;
 //BA.debugLineNum = 7667792;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=7667794;
 //BA.debugLineNum = 7667794;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=7667795;
 //BA.debugLineNum = 7667795;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=7667796;
 //BA.debugLineNum = 7667796;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=7667798;
 //BA.debugLineNum = 7667798;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=7667799;
 //BA.debugLineNum = 7667799;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=7667808;
 //BA.debugLineNum = 7667808;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=7667809;
 //BA.debugLineNum = 7667809;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=7667810;
 //BA.debugLineNum = 7667810;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=7667811;
 //BA.debugLineNum = 7667811;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=7667812;
 //BA.debugLineNum = 7667812;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=7667813;
 //BA.debugLineNum = 7667813;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=7667814;
 //BA.debugLineNum = 7667814;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=7667815;
 //BA.debugLineNum = 7667815;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=7667820;
 //BA.debugLineNum = 7667820;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=7667821;
 //BA.debugLineNum = 7667821;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=7667823;
 //BA.debugLineNum = 7667823;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=7667824;
 //BA.debugLineNum = 7667824;BA.debugLine="Log(\"si entre2\")";
__c.LogImpl("37667824","si entre2",0);
 }else 
{RDebugUtils.currentLine=7667826;
 //BA.debugLineNum = 7667826;BA.debugLine="Else If ESTATUS = \"RECHAZADO\" Then";
if ((__ref._estatus /*String*/ ).equals("RECHAZADO")) { 
RDebugUtils.currentLine=7667828;
 //BA.debugLineNum = 7667828;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=7667830;
 //BA.debugLineNum = 7667830;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=7667831;
 //BA.debugLineNum = 7667831;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=7667832;
 //BA.debugLineNum = 7667832;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=7667833;
 //BA.debugLineNum = 7667833;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=7667834;
 //BA.debugLineNum = 7667834;BA.debugLine="vc.Position = a";
_vc.setPosition(_a);
RDebugUtils.currentLine=7667835;
 //BA.debugLineNum = 7667835;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=7667837;
 //BA.debugLineNum = 7667837;BA.debugLine="arti = arti + (vc.GetString(\"HVD_RECHAZOCAN";
_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=7667838;
 //BA.debugLineNum = 7667838;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=7667843;
 //BA.debugLineNum = 7667843;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=7667844;
 //BA.debugLineNum = 7667844;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=7667845;
 //BA.debugLineNum = 7667845;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=7667846;
 //BA.debugLineNum = 7667846;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=7667847;
 //BA.debugLineNum = 7667847;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=7667848;
 //BA.debugLineNum = 7667848;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=7667849;
 //BA.debugLineNum = 7667849;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=7667850;
 //BA.debugLineNum = 7667850;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=7667851;
 //BA.debugLineNum = 7667851;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=7667852;
 //BA.debugLineNum = 7667852;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=7667853;
 //BA.debugLineNum = 7667853;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=7667854;
 //BA.debugLineNum = 7667854;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_RECHAZ";
_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble((_vc2.GetString("HVD_RECHAZOCANT")))));
 };
 }
};
 };
RDebugUtils.currentLine=7667860;
 //BA.debugLineNum = 7667860;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=7667861;
 //BA.debugLineNum = 7667861;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=7667862;
 //BA.debugLineNum = 7667862;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=7667863;
 //BA.debugLineNum = 7667863;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=7667865;
 //BA.debugLineNum = 7667865;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=7667866;
 //BA.debugLineNum = 7667866;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=7667867;
 //BA.debugLineNum = 7667867;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=7667868;
 //BA.debugLineNum = 7667868;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7667869;
 //BA.debugLineNum = 7667869;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=7667870;
 //BA.debugLineNum = 7667870;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=7667872;
 //BA.debugLineNum = 7667872;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=7667873;
 //BA.debugLineNum = 7667873;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=7667874;
 //BA.debugLineNum = 7667874;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=7667876;
 //BA.debugLineNum = 7667876;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=7667877;
 //BA.debugLineNum = 7667877;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_RECHA";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT")))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=7667886;
 //BA.debugLineNum = 7667886;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=7667887;
 //BA.debugLineNum = 7667887;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=7667888;
 //BA.debugLineNum = 7667888;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=7667889;
 //BA.debugLineNum = 7667889;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=7667890;
 //BA.debugLineNum = 7667890;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=7667891;
 //BA.debugLineNum = 7667891;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=7667892;
 //BA.debugLineNum = 7667892;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=7667893;
 //BA.debugLineNum = 7667893;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=7667898;
 //BA.debugLineNum = 7667898;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=7667899;
 //BA.debugLineNum = 7667899;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=7667901;
 //BA.debugLineNum = 7667901;BA.debugLine="Log(\"si entre\")";
__c.LogImpl("37667901","si entre",0);
RDebugUtils.currentLine=7667902;
 //BA.debugLineNum = 7667902;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=7667937;
 //BA.debugLineNum = 7667937;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click(reparto_mazapa.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=7405568;
 //BA.debugLineNum = 7405568;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=7405570;
 //BA.debugLineNum = 7405570;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
_b4xpages._showpage /*String*/ (ba,"mapas");
RDebugUtils.currentLine=7405571;
 //BA.debugLineNum = 7405571;BA.debugLine="End Sub";
return "";
}
public String  _b_rechazos_click(reparto_mazapa.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=8060928;
 //BA.debugLineNum = 8060928;BA.debugLine="Private Sub b_rechazos_Click";
RDebugUtils.currentLine=8060929;
 //BA.debugLineNum = 8060929;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8060930;
 //BA.debugLineNum = 8060930;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
_label1 = __ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=8060931;
 //BA.debugLineNum = 8060931;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=8060932;
 //BA.debugLineNum = 8060932;BA.debugLine="p_prod.Width = Root.Width";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=8060933;
 //BA.debugLineNum = 8060933;BA.debugLine="p_prod.Height = Root.Height";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=8060934;
 //BA.debugLineNum = 8060934;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=8060935;
 //BA.debugLineNum = 8060935;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=8060937;
 //BA.debugLineNum = 8060937;BA.debugLine="p_prod.Visible = True";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=8060938;
 //BA.debugLineNum = 8060938;BA.debugLine="p_prod.BringToFront";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=8060943;
 //BA.debugLineNum = 8060943;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=8060945;
 //BA.debugLineNum = 8060945;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=8060946;
 //BA.debugLineNum = 8060946;BA.debugLine="lv_prod_Prin.Clear";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=8060947;
 //BA.debugLineNum = 8060947;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8060948;
 //BA.debugLineNum = 8060948;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=8060949;
 //BA.debugLineNum = 8060949;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8060950;
 //BA.debugLineNum = 8060950;BA.debugLine="Dim itemText As String";
_itemtext = "";
RDebugUtils.currentLine=8060952;
 //BA.debugLineNum = 8060952;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=8060953;
 //BA.debugLineNum = 8060953;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=8060955;
 //BA.debugLineNum = 8060955;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=8060956;
 //BA.debugLineNum = 8060956;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=8060957;
 //BA.debugLineNum = 8060957;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=8060959;
 //BA.debugLineNum = 8060959;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=8060961;
 //BA.debugLineNum = 8060961;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=8060964;
 //BA.debugLineNum = 8060964;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=8060965;
 //BA.debugLineNum = 8060965;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 };
 }
};
 }else {
RDebugUtils.currentLine=8060971;
 //BA.debugLineNum = 8060971;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=8060973;
 //BA.debugLineNum = 8060973;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8060974;
 //BA.debugLineNum = 8060974;BA.debugLine="End Sub";
return "";
}
public String  _b_regresa_click(reparto_mazapa.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=7733248;
 //BA.debugLineNum = 7733248;BA.debugLine="Sub B_REGRESA_Click";
RDebugUtils.currentLine=7733249;
 //BA.debugLineNum = 7733249;BA.debugLine="Log(\"B_REGRESA_Click\")";
__c.LogImpl("37733249","B_REGRESA_Click",0);
RDebugUtils.currentLine=7733250;
 //BA.debugLineNum = 7733250;BA.debugLine="BUSCA.Visible = False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7733251;
 //BA.debugLineNum = 7733251;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7733252;
 //BA.debugLineNum = 7733252;BA.debugLine="trabajar.Visible = True";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7733253;
 //BA.debugLineNum = 7733253;BA.debugLine="B_CLIEPROD.Visible = True";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7733254;
 //BA.debugLineNum = 7733254;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7733255;
 //BA.debugLineNum = 7733255;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7733256;
 //BA.debugLineNum = 7733256;BA.debugLine="End Sub";
return "";
}
public String  _b_regreso_click(reparto_mazapa.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=8126464;
 //BA.debugLineNum = 8126464;BA.debugLine="Private Sub b_regreso_Click";
RDebugUtils.currentLine=8126465;
 //BA.debugLineNum = 8126465;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8126466;
 //BA.debugLineNum = 8126466;BA.debugLine="End Sub";
return "";
}
public String  _b_tabulador_click(reparto_mazapa.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=7864320;
 //BA.debugLineNum = 7864320;BA.debugLine="Private Sub b_tabulador_Click";
RDebugUtils.currentLine=7864321;
 //BA.debugLineNum = 7864321;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=7864322;
 //BA.debugLineNum = 7864322;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=7864324;
 //BA.debugLineNum = 7864324;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
_b4xpages._showpage /*String*/ (ba,"tabulador");
 };
RDebugUtils.currentLine=7864326;
 //BA.debugLineNum = 7864326;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_emp_click(reparto_mazapa.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=8257536;
 //BA.debugLineNum = 8257536;BA.debugLine="Private Sub b_venta_emp_Click";
RDebugUtils.currentLine=8257537;
 //BA.debugLineNum = 8257537;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=8257538;
 //BA.debugLineNum = 8257538;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=8257539;
 //BA.debugLineNum = 8257539;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=8257540;
 //BA.debugLineNum = 8257540;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_mazapa.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=6488064;
 //BA.debugLineNum = 6488064;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=6488065;
 //BA.debugLineNum = 6488065;BA.debugLine="lVersionName.Text = \"Version: \" & Application.Ver";
__ref._lversionname /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Version: "+__c.Application.getVersionName()));
RDebugUtils.currentLine=6488066;
 //BA.debugLineNum = 6488066;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=6488067;
 //BA.debugLineNum = 6488067;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6488068;
 //BA.debugLineNum = 6488068;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=6488070;
 //BA.debugLineNum = 6488070;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=6488071;
 //BA.debugLineNum = 6488071;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6488072;
 //BA.debugLineNum = 6488072;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' AND NV_MOTIVO <> 'ENTREGA')");
 };
RDebugUtils.currentLine=6488075;
 //BA.debugLineNum = 6488075;BA.debugLine="b_check.visible = False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6488076;
 //BA.debugLineNum = 6488076;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=6488089;
 //BA.debugLineNum = 6488089;BA.debugLine="If EJECUTANDO = 0 Then";
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=6488090;
 //BA.debugLineNum = 6488090;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488091;
 //BA.debugLineNum = 6488091;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488092;
 //BA.debugLineNum = 6488092;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488093;
 //BA.debugLineNum = 6488093;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488094;
 //BA.debugLineNum = 6488094;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488095;
 //BA.debugLineNum = 6488095;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488096;
 //BA.debugLineNum = 6488096;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=6488098;
 //BA.debugLineNum = 6488098;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488100;
 //BA.debugLineNum = 6488100;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=6488101;
 //BA.debugLineNum = 6488101;BA.debugLine="If f.RowCount > 0 Then";
if (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6488102;
 //BA.debugLineNum = 6488102;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488103;
 //BA.debugLineNum = 6488103;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=6488105;
 //BA.debugLineNum = 6488105;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488106;
 //BA.debugLineNum = 6488106;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=6488107;
 //BA.debugLineNum = 6488107;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488108;
 //BA.debugLineNum = 6488108;BA.debugLine="l_rutasP.Text = 0";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=6488110;
 //BA.debugLineNum = 6488110;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=6488112;
 //BA.debugLineNum = 6488112;BA.debugLine="l_rutasP.Text = \"\"";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=6488113;
 //BA.debugLineNum = 6488113;BA.debugLine="For i = 0 To f.RowCount - 1";
{
final int step34 = 1;
final int limit34 = (int) (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit34 ;_i = _i + step34 ) {
RDebugUtils.currentLine=6488114;
 //BA.debugLineNum = 6488114;BA.debugLine="f.Position = i";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6488115;
 //BA.debugLineNum = 6488115;BA.debugLine="If i = 0 Then";
if (_i==0) { 
RDebugUtils.currentLine=6488116;
 //BA.debugLineNum = 6488116;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=6488118;
 //BA.debugLineNum = 6488118;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=6488121;
 //BA.debugLineNum = 6488121;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=6488123;
 //BA.debugLineNum = 6488123;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6488124;
 //BA.debugLineNum = 6488124;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=6488125;
 //BA.debugLineNum = 6488125;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=6488126;
 //BA.debugLineNum = 6488126;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488127;
 //BA.debugLineNum = 6488127;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=6488128;
 //BA.debugLineNum = 6488128;BA.debugLine="d=Starter.skmt.ExecQuery(\"selecT count(DISTINCT C";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("selecT count(DISTINCT CAT_CL_CODIGO) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=6488129;
 //BA.debugLineNum = 6488129;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488130;
 //BA.debugLineNum = 6488130;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488131;
 //BA.debugLineNum = 6488131;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(DISTINCT C";
__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(DISTINCT CAT_CL_CODIGO) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=6488132;
 //BA.debugLineNum = 6488132;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488143;
 //BA.debugLineNum = 6488143;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6488144;
 //BA.debugLineNum = 6488144;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6488145;
 //BA.debugLineNum = 6488145;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6488147;
 //BA.debugLineNum = 6488147;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=6488148;
 //BA.debugLineNum = 6488148;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488149;
 //BA.debugLineNum = 6488149;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488150;
 //BA.debugLineNum = 6488150;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488151;
 //BA.debugLineNum = 6488151;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=6488152;
 //BA.debugLineNum = 6488152;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488153;
 //BA.debugLineNum = 6488153;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=6488156;
 //BA.debugLineNum = 6488156;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488157;
 //BA.debugLineNum = 6488157;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488158;
 //BA.debugLineNum = 6488158;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=6488159;
 //BA.debugLineNum = 6488159;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488160;
 //BA.debugLineNum = 6488160;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=6488161;
 //BA.debugLineNum = 6488161;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488162;
 //BA.debugLineNum = 6488162;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=6488164;
 //BA.debugLineNum = 6488164;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=6488165;
 //BA.debugLineNum = 6488165;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=6488166;
 //BA.debugLineNum = 6488166;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=6488168;
 //BA.debugLineNum = 6488168;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=6488170;
 //BA.debugLineNum = 6488170;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=6488171;
 //BA.debugLineNum = 6488171;BA.debugLine="f2.Position=0";
__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488174;
 //BA.debugLineNum = 6488174;BA.debugLine="Private MONTO_REC_DIA = 0";
_monto_rec_dia = BA.NumberToString(0);
RDebugUtils.currentLine=6488175;
 //BA.debugLineNum = 6488175;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=6488186;
 //BA.debugLineNum = 6488186;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488187;
 //BA.debugLineNum = 6488187;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488188;
 //BA.debugLineNum = 6488188;BA.debugLine="L.Position = 0";
__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488189;
 //BA.debugLineNum = 6488189;BA.debugLine="f1.Position = 0";
__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488190;
 //BA.debugLineNum = 6488190;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488191;
 //BA.debugLineNum = 6488191;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=6488192;
 //BA.debugLineNum = 6488192;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488194;
 //BA.debugLineNum = 6488194;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488195;
 //BA.debugLineNum = 6488195;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=6488196;
 //BA.debugLineNum = 6488196;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488197;
 //BA.debugLineNum = 6488197;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=6488199;
 //BA.debugLineNum = 6488199;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=6488201;
 //BA.debugLineNum = 6488201;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488202;
 //BA.debugLineNum = 6488202;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=6488203;
 //BA.debugLineNum = 6488203;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6488204;
 //BA.debugLineNum = 6488204;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=6488205;
 //BA.debugLineNum = 6488205;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488206;
 //BA.debugLineNum = 6488206;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488217;
 //BA.debugLineNum = 6488217;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=6488219;
 //BA.debugLineNum = 6488219;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=6488220;
 //BA.debugLineNum = 6488220;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488221;
 //BA.debugLineNum = 6488221;BA.debugLine="ALMACEN = 0";
__ref._almacen /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488222;
 //BA.debugLineNum = 6488222;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=6488223;
 //BA.debugLineNum = 6488223;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=6488224;
 //BA.debugLineNum = 6488224;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488225;
 //BA.debugLineNum = 6488225;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=6488227;
 //BA.debugLineNum = 6488227;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6488228;
 //BA.debugLineNum = 6488228;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step108 = 1;
final int limit108 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit108 ;_i = _i + step108 ) {
RDebugUtils.currentLine=6488229;
 //BA.debugLineNum = 6488229;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6488230;
 //BA.debugLineNum = 6488230;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6488231;
 //BA.debugLineNum = 6488231;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6488232;
 //BA.debugLineNum = 6488232;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_gps_actual_REP";
RDebugUtils.currentLine=6488233;
 //BA.debugLineNum = 6488233;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h";
__ref._cmd /*reparto_mazapa.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=6488237;
 //BA.debugLineNum = 6488237;BA.debugLine="bu.Initialize";
__ref._bu /*reparto_mazapa.keymon.lat.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=6488238;
 //BA.debugLineNum = 6488238;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*reparto_mazapa.keymon.lat.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=6488240;
 //BA.debugLineNum = 6488240;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/  = __ref._batterystatus /*int[]*/ [(int) (0)];
RDebugUtils.currentLine=6488241;
 //BA.debugLineNum = 6488241;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=6488242;
 //BA.debugLineNum = 6488242;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488243;
 //BA.debugLineNum = 6488243;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6488244;
 //BA.debugLineNum = 6488244;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488245;
 //BA.debugLineNum = 6488245;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=6488246;
 //BA.debugLineNum = 6488246;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488247;
 //BA.debugLineNum = 6488247;BA.debugLine="RUTA_T = 0";
__ref._ruta_t /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=6488248;
 //BA.debugLineNum = 6488248;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=6488249;
 //BA.debugLineNum = 6488249;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._ruta_t /*String*/ ;
RDebugUtils.currentLine=6488250;
 //BA.debugLineNum = 6488250;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488251;
 //BA.debugLineNum = 6488251;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=6488253;
 //BA.debugLineNum = 6488253;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=6488255;
 //BA.debugLineNum = 6488255;BA.debugLine="If rc.RowCount > 0 Then";
if (_rc.getRowCount()>0) { 
RDebugUtils.currentLine=6488256;
 //BA.debugLineNum = 6488256;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from RECHAZOS"));
RDebugUtils.currentLine=6488257;
 //BA.debugLineNum = 6488257;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo";
{
final int step133 = 1;
final int limit133 = (int) (_rc.getRowCount()-1);
_i3 = (int) (0) ;
for (;_i3 <= limit133 ;_i3 = _i3 + step133 ) {
RDebugUtils.currentLine=6488258;
 //BA.debugLineNum = 6488258;BA.debugLine="rc.Position = i3";
_rc.setPosition(_i3);
RDebugUtils.currentLine=6488261;
 //BA.debugLineNum = 6488261;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=6488264;
 //BA.debugLineNum = 6488264;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=6488266;
 //BA.debugLineNum = 6488266;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=6488267;
 //BA.debugLineNum = 6488267;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from VENTAS"));
RDebugUtils.currentLine=6488268;
 //BA.debugLineNum = 6488268;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas";
{
final int step141 = 1;
final int limit141 = (int) (_vc.getRowCount()-1);
_i4 = (int) (0) ;
for (;_i4 <= limit141 ;_i4 = _i4 + step141 ) {
RDebugUtils.currentLine=6488269;
 //BA.debugLineNum = 6488269;BA.debugLine="vc.Position = i4";
_vc.setPosition(_i4);
RDebugUtils.currentLine=6488272;
 //BA.debugLineNum = 6488272;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=6488275;
 //BA.debugLineNum = 6488275;BA.debugLine="Starter.ENVIA_ULTIMA_GPS";
_starter._envia_ultima_gps /*String*/ ();
RDebugUtils.currentLine=6488280;
 //BA.debugLineNum = 6488280;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=6488281;
 //BA.debugLineNum = 6488281;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=6488282;
 //BA.debugLineNum = 6488282;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=6488283;
 //BA.debugLineNum = 6488283;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=6488285;
 //BA.debugLineNum = 6488285;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=6488286;
 //BA.debugLineNum = 6488286;BA.debugLine="If cancelrecha.RowCount > 0 Then";
if (_cancelrecha.getRowCount()>0) { 
RDebugUtils.currentLine=6488287;
 //BA.debugLineNum = 6488287;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1";
{
final int step153 = 1;
final int limit153 = (int) (_cancelrecha.getRowCount()-1);
_h54 = (int) (0) ;
for (;_h54 <= limit153 ;_h54 = _h54 + step153 ) {
RDebugUtils.currentLine=6488288;
 //BA.debugLineNum = 6488288;BA.debugLine="cancelrecha.Position = h54";
_cancelrecha.setPosition(_h54);
RDebugUtils.currentLine=6488289;
 //BA.debugLineNum = 6488289;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=6488292;
 //BA.debugLineNum = 6488292;BA.debugLine="cancelrecha.Close";
_cancelrecha.Close();
RDebugUtils.currentLine=6488296;
 //BA.debugLineNum = 6488296;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_CLIENTE, HVD_PROID "))));
RDebugUtils.currentLine=6488298;
 //BA.debugLineNum = 6488298;BA.debugLine="Private rescant As String = 0";
_rescant = BA.NumberToString(0);
RDebugUtils.currentLine=6488299;
 //BA.debugLineNum = 6488299;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488300;
 //BA.debugLineNum = 6488300;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step162 = 1;
final int limit162 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit162 ;_j4 = _j4 + step162 ) {
RDebugUtils.currentLine=6488301;
 //BA.debugLineNum = 6488301;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=6488302;
 //BA.debugLineNum = 6488302;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=6488303;
 //BA.debugLineNum = 6488303;BA.debugLine="Dim totalcantped As String";
_totalcantped = "";
RDebugUtils.currentLine=6488304;
 //BA.debugLineNum = 6488304;BA.debugLine="If r6.RowCount > 0 Then";
if (_r6.getRowCount()>0) { 
RDebugUtils.currentLine=6488305;
 //BA.debugLineNum = 6488305;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=6488306;
 //BA.debugLineNum = 6488306;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")";
_totalcantped = _r6.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=6488309;
 //BA.debugLineNum = 6488309;BA.debugLine="totalcantped = 0";
_totalcantped = BA.NumberToString(0);
 };
RDebugUtils.currentLine=6488312;
 //BA.debugLineNum = 6488312;BA.debugLine="Log(r5.GetString(\"HVD_CLIENTE\")&\"----    ID";
__c.LogImpl("36488312",_r5.GetString("HVD_CLIENTE")+"----    ID    "+_r5.GetString("HVD_PROID")+"   /////   "+_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped+"  $$$$$$$$$$$$   "+BA.NumberToString((((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)))))),0);
RDebugUtils.currentLine=6488313;
 //BA.debugLineNum = 6488313;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=6488315;
 //BA.debugLineNum = 6488315;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=6488318;
 //BA.debugLineNum = 6488318;BA.debugLine="If rescant = \"NaN\" Then rescant = 0";
if ((_rescant).equals("NaN")) { 
_rescant = BA.NumberToString(0);};
RDebugUtils.currentLine=6488319;
 //BA.debugLineNum = 6488319;BA.debugLine="LogColor(rescant,Colors.Red)";
__c.LogImpl("36488319",_rescant,__c.Colors.Red);
RDebugUtils.currentLine=6488320;
 //BA.debugLineNum = 6488320;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488324;
 //BA.debugLineNum = 6488324;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=6488328;
 //BA.debugLineNum = 6488328;BA.debugLine="Private rescant2 As Double = 0";
_rescant2 = 0;
RDebugUtils.currentLine=6488329;
 //BA.debugLineNum = 6488329;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488330;
 //BA.debugLineNum = 6488330;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step183 = 1;
final int limit183 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit183 ;_j5 = _j5 + step183 ) {
RDebugUtils.currentLine=6488331;
 //BA.debugLineNum = 6488331;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=6488332;
 //BA.debugLineNum = 6488332;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=6488333;
 //BA.debugLineNum = 6488333;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=6488335;
 //BA.debugLineNum = 6488335;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=6488336;
 //BA.debugLineNum = 6488336;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=6488337;
 //BA.debugLineNum = 6488337;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=6488340;
 //BA.debugLineNum = 6488340;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0";
if (_rescant2==(double)(Double.parseDouble("NaN"))) { 
_rescant2 = 0;};
RDebugUtils.currentLine=6488341;
 //BA.debugLineNum = 6488341;BA.debugLine="Log(rescant2)";
__c.LogImpl("36488341",BA.NumberToString(_rescant2),0);
RDebugUtils.currentLine=6488342;
 //BA.debugLineNum = 6488342;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488347;
 //BA.debugLineNum = 6488347;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=6488349;
 //BA.debugLineNum = 6488349;BA.debugLine="Private rescantr As String = 0";
_rescantr = BA.NumberToString(0);
RDebugUtils.currentLine=6488350;
 //BA.debugLineNum = 6488350;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=6488351;
 //BA.debugLineNum = 6488351;BA.debugLine="For j4r = 0 To r5r.RowCount -1";
{
final int step198 = 1;
final int limit198 = (int) (_r5r.getRowCount()-1);
_j4r = (int) (0) ;
for (;_j4r <= limit198 ;_j4r = _j4r + step198 ) {
RDebugUtils.currentLine=6488352;
 //BA.debugLineNum = 6488352;BA.debugLine="r5r.Position = j4r";
_r5r.setPosition(_j4r);
RDebugUtils.currentLine=6488353;
 //BA.debugLineNum = 6488353;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=6488354;
 //BA.debugLineNum = 6488354;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=6488357;
 //BA.debugLineNum = 6488357;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=6488358;
 //BA.debugLineNum = 6488358;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=6488361;
 //BA.debugLineNum = 6488361;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0";
if ((_rescantr).equals("NaN")) { 
_rescantr = BA.NumberToString(0);};
RDebugUtils.currentLine=6488363;
 //BA.debugLineNum = 6488363;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=6488365;
 //BA.debugLineNum = 6488365;BA.debugLine="Log(rescantr)";
__c.LogImpl("36488365",_rescantr,0);
RDebugUtils.currentLine=6488367;
 //BA.debugLineNum = 6488367;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=6488371;
 //BA.debugLineNum = 6488371;BA.debugLine="Private rescant2r As String = 0";
_rescant2r = BA.NumberToString(0);
RDebugUtils.currentLine=6488372;
 //BA.debugLineNum = 6488372;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=6488373;
 //BA.debugLineNum = 6488373;BA.debugLine="For j5r = 0 To r5r.RowCount -1";
{
final int step212 = 1;
final int limit212 = (int) (_r5r.getRowCount()-1);
_j5r = (int) (0) ;
for (;_j5r <= limit212 ;_j5r = _j5r + step212 ) {
RDebugUtils.currentLine=6488374;
 //BA.debugLineNum = 6488374;BA.debugLine="r5r.Position = j5r";
_r5r.setPosition(_j5r);
RDebugUtils.currentLine=6488375;
 //BA.debugLineNum = 6488375;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=6488376;
 //BA.debugLineNum = 6488376;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=6488378;
 //BA.debugLineNum = 6488378;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=6488379;
 //BA.debugLineNum = 6488379;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=6488382;
 //BA.debugLineNum = 6488382;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0";
if ((_rescant2r).equals("NaN")) { 
_rescant2r = BA.NumberToString(0);};
RDebugUtils.currentLine=6488384;
 //BA.debugLineNum = 6488384;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=6488385;
 //BA.debugLineNum = 6488385;BA.debugLine="Log(rescant2r)";
__c.LogImpl("36488385",_rescant2r,0);
RDebugUtils.currentLine=6488386;
 //BA.debugLineNum = 6488386;BA.debugLine="Log(rescant2r+rescantr)";
__c.LogImpl("36488386",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0);
RDebugUtils.currentLine=6488402;
 //BA.debugLineNum = 6488402;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=6488403;
 //BA.debugLineNum = 6488403;BA.debugLine="Private rescant3 As Double";
_rescant3 = 0;
RDebugUtils.currentLine=6488404;
 //BA.debugLineNum = 6488404;BA.debugLine="If r55.RowCount > 0 Then";
if (_r55.getRowCount()>0) { 
RDebugUtils.currentLine=6488405;
 //BA.debugLineNum = 6488405;BA.debugLine="For r75 = 0 To r55.RowCount -1";
{
final int step227 = 1;
final int limit227 = (int) (_r55.getRowCount()-1);
_r75 = (int) (0) ;
for (;_r75 <= limit227 ;_r75 = _r75 + step227 ) {
RDebugUtils.currentLine=6488406;
 //BA.debugLineNum = 6488406;BA.debugLine="r55.Position = r75";
_r55.setPosition(_r75);
RDebugUtils.currentLine=6488407;
 //BA.debugLineNum = 6488407;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_";
_rescant3 = _rescant3+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
RDebugUtils.currentLine=6488408;
 //BA.debugLineNum = 6488408;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=6488412;
 //BA.debugLineNum = 6488412;BA.debugLine="Log(rescant3)";
__c.LogImpl("36488412",BA.NumberToString(_rescant3),0);
RDebugUtils.currentLine=6488413;
 //BA.debugLineNum = 6488413;BA.debugLine="r55.Close";
_r55.Close();
RDebugUtils.currentLine=6488418;
 //BA.debugLineNum = 6488418;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=6488419;
 //BA.debugLineNum = 6488419;BA.debugLine="Private rescant4 As Double";
_rescant4 = 0;
RDebugUtils.currentLine=6488420;
 //BA.debugLineNum = 6488420;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488421;
 //BA.debugLineNum = 6488421;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=6488422;
 //BA.debugLineNum = 6488422;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")";
_rescant4 = (double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")));
 };
RDebugUtils.currentLine=6488424;
 //BA.debugLineNum = 6488424;BA.debugLine="Log(rescant4)";
__c.LogImpl("36488424",BA.NumberToString(_rescant4),0);
RDebugUtils.currentLine=6488425;
 //BA.debugLineNum = 6488425;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488427;
 //BA.debugLineNum = 6488427;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=6488428;
 //BA.debugLineNum = 6488428;BA.debugLine="Private rescant5 As Double";
_rescant5 = 0;
RDebugUtils.currentLine=6488429;
 //BA.debugLineNum = 6488429;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488430;
 //BA.debugLineNum = 6488430;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=6488431;
 //BA.debugLineNum = 6488431;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")";
_rescant5 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
 };
RDebugUtils.currentLine=6488433;
 //BA.debugLineNum = 6488433;BA.debugLine="Log(rescant5)";
__c.LogImpl("36488433",BA.NumberToString(_rescant5),0);
RDebugUtils.currentLine=6488434;
 //BA.debugLineNum = 6488434;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488439;
 //BA.debugLineNum = 6488439;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=6488440;
 //BA.debugLineNum = 6488440;BA.debugLine="Private rescant6 As Double";
_rescant6 = 0;
RDebugUtils.currentLine=6488441;
 //BA.debugLineNum = 6488441;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488442;
 //BA.debugLineNum = 6488442;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step254 = 1;
final int limit254 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit254 ;_j4 = _j4 + step254 ) {
RDebugUtils.currentLine=6488443;
 //BA.debugLineNum = 6488443;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=6488444;
 //BA.debugLineNum = 6488444;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=6488445;
 //BA.debugLineNum = 6488445;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=6488448;
 //BA.debugLineNum = 6488448;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=6488450;
 //BA.debugLineNum = 6488450;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=6488453;
 //BA.debugLineNum = 6488453;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0";
if (_rescant6==(double)(Double.parseDouble("NaN"))) { 
_rescant6 = 0;};
RDebugUtils.currentLine=6488454;
 //BA.debugLineNum = 6488454;BA.debugLine="LogColor(rescant6,Colors.Red)";
__c.LogImpl("36488454",BA.NumberToString(_rescant6),__c.Colors.Red);
RDebugUtils.currentLine=6488455;
 //BA.debugLineNum = 6488455;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488457;
 //BA.debugLineNum = 6488457;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=6488458;
 //BA.debugLineNum = 6488458;BA.debugLine="Private rescant7 As Double";
_rescant7 = 0;
RDebugUtils.currentLine=6488459;
 //BA.debugLineNum = 6488459;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=6488460;
 //BA.debugLineNum = 6488460;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step268 = 1;
final int limit268 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit268 ;_j5 = _j5 + step268 ) {
RDebugUtils.currentLine=6488461;
 //BA.debugLineNum = 6488461;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=6488462;
 //BA.debugLineNum = 6488462;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=6488463;
 //BA.debugLineNum = 6488463;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=6488465;
 //BA.debugLineNum = 6488465;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=6488466;
 //BA.debugLineNum = 6488466;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=6488469;
 //BA.debugLineNum = 6488469;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0";
if (_rescant7==(double)(Double.parseDouble("NaN"))) { 
_rescant7 = 0;};
RDebugUtils.currentLine=6488470;
 //BA.debugLineNum = 6488470;BA.debugLine="Log(rescant7)";
__c.LogImpl("36488470",BA.NumberToString(_rescant7),0);
RDebugUtils.currentLine=6488471;
 //BA.debugLineNum = 6488471;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=6488474;
 //BA.debugLineNum = 6488474;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=6488475;
 //BA.debugLineNum = 6488475;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=6488478;
 //BA.debugLineNum = 6488478;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488479;
 //BA.debugLineNum = 6488479;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488480;
 //BA.debugLineNum = 6488480;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/  = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488481;
 //BA.debugLineNum = 6488481;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488482;
 //BA.debugLineNum = 6488482;BA.debugLine="B4XPages.MainPage.montoActual = Round2(l_montoSal";
_b4xpages._mainpage /*reparto_mazapa.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=6488483;
 //BA.debugLineNum = 6488483;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/  = __ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488484;
 //BA.debugLineNum = 6488484;BA.debugLine="B4XPages.MainPage.entregas = l_cuantosc.text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._entregas /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488485;
 //BA.debugLineNum = 6488485;BA.debugLine="B4XPages.MainPage.rechazos = l_cuantosn.text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._rechazos /*String*/  = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488486;
 //BA.debugLineNum = 6488486;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488487;
 //BA.debugLineNum = 6488487;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/  = __ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=6488489;
 //BA.debugLineNum = 6488489;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=6488492;
 //BA.debugLineNum = 6488492;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=6488493;
 //BA.debugLineNum = 6488493;BA.debugLine="Label9.Visible = True";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6488494;
 //BA.debugLineNum = 6488494;BA.debugLine="L_MONTOE.Visible = True";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6488497;
 //BA.debugLineNum = 6488497;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VEN";
__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 <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=6488498;
 //BA.debugLineNum = 6488498;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6488499;
 //BA.debugLineNum = 6488499;BA.debugLine="b_venta_emp.Visible = True";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=6488501;
 //BA.debugLineNum = 6488501;BA.debugLine="b_venta_emp.Visible = False";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }else {
RDebugUtils.currentLine=6488504;
 //BA.debugLineNum = 6488504;BA.debugLine="Label9.Visible = False";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6488505;
 //BA.debugLineNum = 6488505;BA.debugLine="L_MONTOE.Visible = False";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6488506;
 //BA.debugLineNum = 6488506;BA.debugLine="b_venta_emp.Visible = False";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=6488518;
 //BA.debugLineNum = 6488518;BA.debugLine="End Sub";
return "";
}
public String  _to_number_vb(reparto_mazapa.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=6684672;
 //BA.debugLineNum = 6684672;BA.debugLine="Sub to_number_vb (valor As Object) As String";
RDebugUtils.currentLine=6684673;
 //BA.debugLineNum = 6684673;BA.debugLine="Dim valstring As Int";
_valstring = 0;
RDebugUtils.currentLine=6684674;
 //BA.debugLineNum = 6684674;BA.debugLine="Dim valstring2 As String = valor";
_valstring2 = BA.ObjectToString(_valor);
RDebugUtils.currentLine=6684675;
 //BA.debugLineNum = 6684675;BA.debugLine="valstring2.Replace(\":\",\"\")";
_valstring2.replace(":","");
RDebugUtils.currentLine=6684676;
 //BA.debugLineNum = 6684676;BA.debugLine="Try";
try {RDebugUtils.currentLine=6684677;
 //BA.debugLineNum = 6684677;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")";
_valstring = (int)(Double.parseDouble(_valstring2.replace(":","")));
RDebugUtils.currentLine=6684678;
 //BA.debugLineNum = 6684678;BA.debugLine="Return valstring";
if (true) return BA.NumberToString(_valstring);
 } 
       catch (Exception e8) {
			ba.setLastException(e8);RDebugUtils.currentLine=6684680;
 //BA.debugLineNum = 6684680;BA.debugLine="Return 0";
if (true) return BA.NumberToString(0);
 };
RDebugUtils.currentLine=6684682;
 //BA.debugLineNum = 6684682;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_mazapa.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_mazapa.keymon.lat.c_principal parent,reparto_mazapa.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_mazapa.keymon.lat.c_principal __ref;
reparto_mazapa.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=7208962;
 //BA.debugLineNum = 7208962;BA.debugLine="If Panel1.visible Then";
if (true) break;

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

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

case 5:
//C
this.state = 10;
RDebugUtils.currentLine=7208966;
 //BA.debugLineNum = 7208966;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 = 10;
RDebugUtils.currentLine=7208968;
 //BA.debugLineNum = 7208968;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_mazapa.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=6422528;
 //BA.debugLineNum = 6422528;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=6422529;
 //BA.debugLineNum = 6422529;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=6422531;
 //BA.debugLineNum = 6422531;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=6422532;
 //BA.debugLineNum = 6422532;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=6422533;
 //BA.debugLineNum = 6422533;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=6422536;
 //BA.debugLineNum = 6422536;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6422537;
 //BA.debugLineNum = 6422537;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6422538;
 //BA.debugLineNum = 6422538;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=6422540;
 //BA.debugLineNum = 6422540;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=6422541;
 //BA.debugLineNum = 6422541;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422542;
 //BA.debugLineNum = 6422542;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=6422543;
 //BA.debugLineNum = 6422543;BA.debugLine="d=Starter.skmt.ExecQuery(\"select DISTINCT count(*";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select DISTINCT count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND  CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=6422544;
 //BA.debugLineNum = 6422544;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422545;
 //BA.debugLineNum = 6422545;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422546;
 //BA.debugLineNum = 6422546;BA.debugLine="e=Starter.skmt.ExecQuery(\"select DISTINCT count(*";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select DISTINCT count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=6422547;
 //BA.debugLineNum = 6422547;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422548;
 //BA.debugLineNum = 6422548;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=6422549;
 //BA.debugLineNum = 6422549;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6422550;
 //BA.debugLineNum = 6422550;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6422551;
 //BA.debugLineNum = 6422551;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6422552;
 //BA.debugLineNum = 6422552;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=6422553;
 //BA.debugLineNum = 6422553;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=6422554;
 //BA.debugLineNum = 6422554;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=6422556;
 //BA.debugLineNum = 6422556;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=6422557;
 //BA.debugLineNum = 6422557;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=6422576;
 //BA.debugLineNum = 6422576;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=6422577;
 //BA.debugLineNum = 6422577;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6422579;
 //BA.debugLineNum = 6422579;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422581;
 //BA.debugLineNum = 6422581;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6422582;
 //BA.debugLineNum = 6422582;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6422583;
 //BA.debugLineNum = 6422583;BA.debugLine="cmd.Name = \"select_coords_almacen_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_MAZAPA";
RDebugUtils.currentLine=6422584;
 //BA.debugLineNum = 6422584;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"))};
RDebugUtils.currentLine=6422585;
 //BA.debugLineNum = 6422585;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
 };
RDebugUtils.currentLine=6422587;
 //BA.debugLineNum = 6422587;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/  = _subs._dameusuariodedb /*String*/ (ba);
RDebugUtils.currentLine=6422588;
 //BA.debugLineNum = 6422588;BA.debugLine="End Sub";
return "";
}
public String  _benvioinfo_click(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "benvioinfo_click", false))
	 {return ((String) Debug.delegate(ba, "benvioinfo_click", null));}
RDebugUtils.currentLine=7143424;
 //BA.debugLineNum = 7143424;BA.debugLine="Private Sub bEnvioInfo_Click";
RDebugUtils.currentLine=7143425;
 //BA.debugLineNum = 7143425;BA.debugLine="bEnvioInfo.Enabled = False";
__ref._benvioinfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=7143426;
 //BA.debugLineNum = 7143426;BA.debugLine="pEnvioInfo.Visible = False";
__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7143427;
 //BA.debugLineNum = 7143427;BA.debugLine="End Sub";
return "";
}
public String  _btn_ubicar_ru_click(reparto_mazapa.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=7798784;
 //BA.debugLineNum = 7798784;BA.debugLine="Sub Btn_Ubicar_Ru_Click";
RDebugUtils.currentLine=7798785;
 //BA.debugLineNum = 7798785;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=7798786;
 //BA.debugLineNum = 7798786;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=7798789;
 //BA.debugLineNum = 7798789;BA.debugLine="StartActivity(MAPA_RUTAS)";
__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
 };
RDebugUtils.currentLine=7798791;
 //BA.debugLineNum = 7798791;BA.debugLine="End Sub";
return "";
}
public String  _busca_click(reparto_mazapa.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=7340032;
 //BA.debugLineNum = 7340032;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=7340033;
 //BA.debugLineNum = 7340033;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=7340034;
 //BA.debugLineNum = 7340034;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=7340037;
 //BA.debugLineNum = 7340037;BA.debugLine="B4XPages.ShowPage(\"Buscar\")";
_b4xpages._showpage /*String*/ (ba,"Buscar");
 };
RDebugUtils.currentLine=7340039;
 //BA.debugLineNum = 7340039;BA.debugLine="End Sub";
return "";
}
public String  _cargadedia(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargadedia", false))
	 {return ((String) Debug.delegate(ba, "cargadedia", null));}
RDebugUtils.currentLine=7012352;
 //BA.debugLineNum = 7012352;BA.debugLine="Sub cargadedia";
RDebugUtils.currentLine=7012353;
 //BA.debugLineNum = 7012353;BA.debugLine="imei = \"\" 'p.GetDeviceId";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=7012354;
 //BA.debugLineNum = 7012354;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=7012355;
 //BA.debugLineNum = 7012355;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=7012360;
 //BA.debugLineNum = 7012360;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7012361;
 //BA.debugLineNum = 7012361;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7012362;
 //BA.debugLineNum = 7012362;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_MAZAPA7\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_re_REPG_MAZAPA7";
RDebugUtils.currentLine=7012363;
 //BA.debugLineNum = 7012363;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta.";
__ref._cmd /*reparto_mazapa.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=7012365;
 //BA.debugLineNum = 7012365;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
RDebugUtils.currentLine=7012366;
 //BA.debugLineNum = 7012366;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
RDebugUtils.currentLine=7012367;
 //BA.debugLineNum = 7012367;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=7012368;
 //BA.debugLineNum = 7012368;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RUT";
_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=7012369;
 //BA.debugLineNum = 7012369;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=7012370;
 //BA.debugLineNum = 7012370;BA.debugLine="End Sub";
return "";
}
public String  _cargar_click(reparto_mazapa.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=6946816;
 //BA.debugLineNum = 6946816;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=6946817;
 //BA.debugLineNum = 6946817;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=6946818;
 //BA.debugLineNum = 6946818;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=6946819;
 //BA.debugLineNum = 6946819;BA.debugLine="If cp.RowCount > 0 Then";
if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6946820;
 //BA.debugLineNum = 6946820;BA.debugLine="cp.Position = 0";
__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6946821;
 //BA.debugLineNum = 6946821;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA");
RDebugUtils.currentLine=6946822;
 //BA.debugLineNum = 6946822;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
__c.LogImpl("36946822",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0);
RDebugUtils.currentLine=6946823;
 //BA.debugLineNum = 6946823;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ );
RDebugUtils.currentLine=6946824;
 //BA.debugLineNum = 6946824;BA.debugLine="Log(fecha2(0))";
__c.LogImpl("36946824",_fecha2[(int) (0)],0);
RDebugUtils.currentLine=6946825;
 //BA.debugLineNum = 6946825;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
RDebugUtils.currentLine=6946826;
 //BA.debugLineNum = 6946826;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=6946827;
 //BA.debugLineNum = 6946827;BA.debugLine="DateTime.TimeFormat = \"\"";
__c.DateTime.setTimeFormat("");
RDebugUtils.currentLine=6946828;
 //BA.debugLineNum = 6946828;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
RDebugUtils.currentLine=6946829;
 //BA.debugLineNum = 6946829;BA.debugLine="Log(dia)";
__c.LogImpl("36946829",_dia,0);
RDebugUtils.currentLine=6946830;
 //BA.debugLineNum = 6946830;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=6946831;
 //BA.debugLineNum = 6946831;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("36946831",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=6946832;
 //BA.debugLineNum = 6946832;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=6946833;
 //BA.debugLineNum = 6946833;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=6946836;
 //BA.debugLineNum = 6946836;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=6946838;
 //BA.debugLineNum = 6946838;BA.debugLine="Log(\"CUMPLE\")";
__c.LogImpl("36946838","CUMPLE",0);
RDebugUtils.currentLine=6946839;
 //BA.debugLineNum = 6946839;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=6946840;
 //BA.debugLineNum = 6946840;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=6946841;
 //BA.debugLineNum = 6946841;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=6946842;
 //BA.debugLineNum = 6946842;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
__c.LogImpl("36946842",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=6946843;
 //BA.debugLineNum = 6946843;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=6946845;
 //BA.debugLineNum = 6946845;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6946846;
 //BA.debugLineNum = 6946846;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946847;
 //BA.debugLineNum = 6946847;BA.debugLine="cmd.Name = \"insert_drop_rep_MAZAPA2\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_MAZAPA2";
RDebugUtils.currentLine=6946848;
 //BA.debugLineNum = 6946848;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
__ref._cmd /*reparto_mazapa.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=6946849;
 //BA.debugLineNum = 6946849;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=6946852;
 //BA.debugLineNum = 6946852;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=6946853;
 //BA.debugLineNum = 6946853;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=6946854;
 //BA.debugLineNum = 6946854;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=6946855;
 //BA.debugLineNum = 6946855;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=6946856;
 //BA.debugLineNum = 6946856;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=6946858;
 //BA.debugLineNum = 6946858;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
RDebugUtils.currentLine=6946859;
 //BA.debugLineNum = 6946859;BA.debugLine="If l_ruta.Text = \"0\" Then '";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=6946860;
 //BA.debugLineNum = 6946860;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
__c.LogImpl("36946860","*********************  No hay ruta, BORRAMOS TODO",0);
RDebugUtils.currentLine=6946861;
 //BA.debugLineNum = 6946861;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=6946862;
 //BA.debugLineNum = 6946862;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=6946863;
 //BA.debugLineNum = 6946863;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=6946864;
 //BA.debugLineNum = 6946864;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=6946865;
 //BA.debugLineNum = 6946865;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
RDebugUtils.currentLine=6946866;
 //BA.debugLineNum = 6946866;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
 }else {
RDebugUtils.currentLine=6946868;
 //BA.debugLineNum = 6946868;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
__c.LogImpl("36946868","*********************  Hay ruta, NO BORRAMOS TODO",0);
 };
RDebugUtils.currentLine=6946872;
 //BA.debugLineNum = 6946872;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=6946873;
 //BA.debugLineNum = 6946873;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6946874;
 //BA.debugLineNum = 6946874;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6946876;
 //BA.debugLineNum = 6946876;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946877;
 //BA.debugLineNum = 6946877;BA.debugLine="cmd.Name = \"select_punteo_MAZAPA_re_REPG\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_MAZAPA_re_REPG";
RDebugUtils.currentLine=6946878;
 //BA.debugLineNum = 6946878;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_mazapa.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=6946879;
 //BA.debugLineNum = 6946879;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=6946880;
 //BA.debugLineNum = 6946880;BA.debugLine="Log($\"Pedimos Punteo\"$)";
__c.LogImpl("36946880",("Pedimos Punteo"),0);
RDebugUtils.currentLine=6946881;
 //BA.debugLineNum = 6946881;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=6946884;
 //BA.debugLineNum = 6946884;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946885;
 //BA.debugLineNum = 6946885;BA.debugLine="cmd.Name = \"select_almacen_MAZAPA_re_REPG2\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_MAZAPA_re_REPG2";
RDebugUtils.currentLine=6946886;
 //BA.debugLineNum = 6946886;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6946887;
 //BA.debugLineNum = 6946887;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=6946888;
 //BA.debugLineNum = 6946888;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
__c.LogImpl("36946888",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0);
RDebugUtils.currentLine=6946889;
 //BA.debugLineNum = 6946889;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=6946893;
 //BA.debugLineNum = 6946893;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946894;
 //BA.debugLineNum = 6946894;BA.debugLine="cmd.Name = \"select_cliente_MAZAPA_re_REPG\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_MAZAPA_re_REPG";
RDebugUtils.currentLine=6946895;
 //BA.debugLineNum = 6946895;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_mazapa.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=6946896;
 //BA.debugLineNum = 6946896;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=6946897;
 //BA.debugLineNum = 6946897;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
__c.LogImpl("36946897",("Pedimos kmt_datos"),0);
RDebugUtils.currentLine=6946898;
 //BA.debugLineNum = 6946898;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=6946900;
 //BA.debugLineNum = 6946900;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946901;
 //BA.debugLineNum = 6946901;BA.debugLine="cmd.Name = \"select_ventad_MAZAPA_re_REPG\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad_MAZAPA_re_REPG";
RDebugUtils.currentLine=6946902;
 //BA.debugLineNum = 6946902;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6946903;
 //BA.debugLineNum = 6946903;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=6946904;
 //BA.debugLineNum = 6946904;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
__c.LogImpl("36946904",("Pedimos hist_datos"),0);
RDebugUtils.currentLine=6946905;
 //BA.debugLineNum = 6946905;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
RDebugUtils.currentLine=6946907;
 //BA.debugLineNum = 6946907;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946908;
 //BA.debugLineNum = 6946908;BA.debugLine="cmd.Name = \"select_coords_almacen_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_MAZAPA";
RDebugUtils.currentLine=6946909;
 //BA.debugLineNum = 6946909;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6946910;
 //BA.debugLineNum = 6946910;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
RDebugUtils.currentLine=6946912;
 //BA.debugLineNum = 6946912;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946913;
 //BA.debugLineNum = 6946913;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod3_MAZAPA";
RDebugUtils.currentLine=6946914;
 //BA.debugLineNum = 6946914;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6946915;
 //BA.debugLineNum = 6946915;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod3"));
RDebugUtils.currentLine=6946917;
 //BA.debugLineNum = 6946917;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6946918;
 //BA.debugLineNum = 6946918;BA.debugLine="cmd.Name = \"select_pagares_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_pagares_MAZAPA";
RDebugUtils.currentLine=6946919;
 //BA.debugLineNum = 6946919;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text,ALM";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6946920;
 //BA.debugLineNum = 6946920;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"PAGARES\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("PAGARES"));
RDebugUtils.currentLine=6946952;
 //BA.debugLineNum = 6946952;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=6946953;
 //BA.debugLineNum = 6946953;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6946954;
 //BA.debugLineNum = 6946954;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=6946955;
 //BA.debugLineNum = 6946955;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6946956;
 //BA.debugLineNum = 6946956;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6946957;
 //BA.debugLineNum = 6946957;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6946958;
 //BA.debugLineNum = 6946958;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6946959;
 //BA.debugLineNum = 6946959;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6946960;
 //BA.debugLineNum = 6946960;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=6946961;
 //BA.debugLineNum = 6946961;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False);
RDebugUtils.currentLine=6946962;
 //BA.debugLineNum = 6946962;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);};
RDebugUtils.currentLine=6946964;
 //BA.debugLineNum = 6946964;BA.debugLine="Starter.skmt.ExecNonQuery2(\"DELETE FROM CAT_VARI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"}));
RDebugUtils.currentLine=6946965;
 //BA.debugLineNum = 6946965;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
_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)("CARGA_DIA"),(Object)(1)}));
 }else {
RDebugUtils.currentLine=6946969;
 //BA.debugLineNum = 6946969;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("36946969","XXXX",0);
RDebugUtils.currentLine=6946970;
 //BA.debugLineNum = 6946970;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=6946973;
 //BA.debugLineNum = 6946973;BA.debugLine="End Sub";
return "";
}
public boolean  _isconnectedtointernet(reparto_mazapa.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=6619136;
 //BA.debugLineNum = 6619136;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
RDebugUtils.currentLine=6619137;
 //BA.debugLineNum = 6619137;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
RDebugUtils.currentLine=6619138;
 //BA.debugLineNum = 6619138;BA.debugLine="r.Target = r.GetContext";
_r.Target = (Object)(_r.GetContext(ba));
RDebugUtils.currentLine=6619139;
 //BA.debugLineNum = 6619139;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String");
RDebugUtils.currentLine=6619140;
 //BA.debugLineNum = 6619140;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
_r.Target = _r.RunMethod("getActiveNetworkInfo");
RDebugUtils.currentLine=6619141;
 //BA.debugLineNum = 6619141;BA.debugLine="If r.Target <> Null Then";
if (_r.Target!= null) { 
RDebugUtils.currentLine=6619142;
 //BA.debugLineNum = 6619142;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting"));
 };
RDebugUtils.currentLine=6619144;
 //BA.debugLineNum = 6619144;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=6619145;
 //BA.debugLineNum = 6619145;BA.debugLine="End Sub";
return false;
}
public String  _checachek(reparto_mazapa.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=6553600;
 //BA.debugLineNum = 6553600;BA.debugLine="Sub checachek";
RDebugUtils.currentLine=6553601;
 //BA.debugLineNum = 6553601;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=6553602;
 //BA.debugLineNum = 6553602;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6553603;
 //BA.debugLineNum = 6553603;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6553604;
 //BA.debugLineNum = 6553604;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then";
if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=6553605;
 //BA.debugLineNum = 6553605;BA.debugLine="b_check.Visible = True";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=6553606;
 //BA.debugLineNum = 6553606;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=6553607;
 //BA.debugLineNum = 6553607;BA.debugLine="b_check.Visible =False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=6553609;
 //BA.debugLineNum = 6553609;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=6553611;
 //BA.debugLineNum = 6553611;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=6291456;
 //BA.debugLineNum = 6291456;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=6291457;
 //BA.debugLineNum = 6291457;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=6291458;
 //BA.debugLineNum = 6291458;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=6291459;
 //BA.debugLineNum = 6291459;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_mazapa.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=6291460;
 //BA.debugLineNum = 6291460;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=6291461;
 //BA.debugLineNum = 6291461;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=6291462;
 //BA.debugLineNum = 6291462;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=6291463;
 //BA.debugLineNum = 6291463;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=6291464;
 //BA.debugLineNum = 6291464;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291465;
 //BA.debugLineNum = 6291465;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291466;
 //BA.debugLineNum = 6291466;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291467;
 //BA.debugLineNum = 6291467;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291468;
 //BA.debugLineNum = 6291468;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291469;
 //BA.debugLineNum = 6291469;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291470;
 //BA.debugLineNum = 6291470;BA.debugLine="Dim f1 As Cursor";
_f1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291471;
 //BA.debugLineNum = 6291471;BA.debugLine="Dim f2 As Cursor";
_f2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291472;
 //BA.debugLineNum = 6291472;BA.debugLine="Dim f3 As Cursor";
_f3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291473;
 //BA.debugLineNum = 6291473;BA.debugLine="Dim F4 As Cursor";
_f4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291474;
 //BA.debugLineNum = 6291474;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=6291475;
 //BA.debugLineNum = 6291475;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291476;
 //BA.debugLineNum = 6291476;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291477;
 //BA.debugLineNum = 6291477;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=6291478;
 //BA.debugLineNum = 6291478;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=6291479;
 //BA.debugLineNum = 6291479;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291480;
 //BA.debugLineNum = 6291480;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=6291481;
 //BA.debugLineNum = 6291481;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291482;
 //BA.debugLineNum = 6291482;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6291483;
 //BA.debugLineNum = 6291483;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=6291484;
 //BA.debugLineNum = 6291484;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=6291485;
 //BA.debugLineNum = 6291485;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=6291486;
 //BA.debugLineNum = 6291486;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=6291487;
 //BA.debugLineNum = 6291487;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=6291488;
 //BA.debugLineNum = 6291488;BA.debugLine="Dim L As Cursor";
_l = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291489;
 //BA.debugLineNum = 6291489;BA.debugLine="Dim l_aLiquidar As Label";
_l_aliquidar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291490;
 //BA.debugLineNum = 6291490;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291491;
 //BA.debugLineNum = 6291491;BA.debugLine="Dim l_montoSalida As Label";
_l_montosalida = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291493;
 //BA.debugLineNum = 6291493;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291494;
 //BA.debugLineNum = 6291494;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291495;
 //BA.debugLineNum = 6291495;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=6291496;
 //BA.debugLineNum = 6291496;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291497;
 //BA.debugLineNum = 6291497;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=6291498;
 //BA.debugLineNum = 6291498;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291499;
 //BA.debugLineNum = 6291499;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291500;
 //BA.debugLineNum = 6291500;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291501;
 //BA.debugLineNum = 6291501;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=6291502;
 //BA.debugLineNum = 6291502;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=6291503;
 //BA.debugLineNum = 6291503;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=6291504;
 //BA.debugLineNum = 6291504;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=6291505;
 //BA.debugLineNum = 6291505;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=6291506;
 //BA.debugLineNum = 6291506;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=6291507;
 //BA.debugLineNum = 6291507;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=6291508;
 //BA.debugLineNum = 6291508;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=6291509;
 //BA.debugLineNum = 6291509;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=6291510;
 //BA.debugLineNum = 6291510;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=6291511;
 //BA.debugLineNum = 6291511;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=6291512;
 //BA.debugLineNum = 6291512;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=6291513;
 //BA.debugLineNum = 6291513;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=6291514;
 //BA.debugLineNum = 6291514;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=6291515;
 //BA.debugLineNum = 6291515;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=6291516;
 //BA.debugLineNum = 6291516;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=6291518;
 //BA.debugLineNum = 6291518;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291520;
 //BA.debugLineNum = 6291520;BA.debugLine="Private L_MONTOE As Label";
_l_montoe = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291521;
 //BA.debugLineNum = 6291521;BA.debugLine="Private B_CLIEPROD As Button";
_b_clieprod = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291522;
 //BA.debugLineNum = 6291522;BA.debugLine="Private ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=6291523;
 //BA.debugLineNum = 6291523;BA.debugLine="Private B_REGRESA As Button";
_b_regresa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291524;
 //BA.debugLineNum = 6291524;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=6291525;
 //BA.debugLineNum = 6291525;BA.debugLine="Dim ESTATUS As String";
_estatus = "";
RDebugUtils.currentLine=6291526;
 //BA.debugLineNum = 6291526;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=6291527;
 //BA.debugLineNum = 6291527;BA.debugLine="Private bu As BatteryUtilities";
_bu = new reparto_mazapa.keymon.lat.batteryutilities();
RDebugUtils.currentLine=6291528;
 //BA.debugLineNum = 6291528;BA.debugLine="Dim RUTA_T As String";
_ruta_t = "";
RDebugUtils.currentLine=6291529;
 //BA.debugLineNum = 6291529;BA.debugLine="Dim reqs As List";
_reqs = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=6291531;
 //BA.debugLineNum = 6291531;BA.debugLine="Private Btn_Ubicar_Ru As Button";
_btn_ubicar_ru = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291532;
 //BA.debugLineNum = 6291532;BA.debugLine="Dim cargo As String";
_cargo = "";
RDebugUtils.currentLine=6291533;
 //BA.debugLineNum = 6291533;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=6291534;
 //BA.debugLineNum = 6291534;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=6291535;
 //BA.debugLineNum = 6291535;BA.debugLine="Private b_tabulador As Button";
_b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291537;
 //BA.debugLineNum = 6291537;BA.debugLine="Private l_rutasP As Label";
_l_rutasp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291538;
 //BA.debugLineNum = 6291538;BA.debugLine="Private l_rechazo As Label";
_l_rechazo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291539;
 //BA.debugLineNum = 6291539;BA.debugLine="Private Label9 As Label";
_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291540;
 //BA.debugLineNum = 6291540;BA.debugLine="Dim cp As Cursor";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291541;
 //BA.debugLineNum = 6291541;BA.debugLine="Private b_check As Button";
_b_check = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291542;
 //BA.debugLineNum = 6291542;BA.debugLine="Private b_rechazos As Button";
_b_rechazos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291543;
 //BA.debugLineNum = 6291543;BA.debugLine="Private p_prod As Panel";
_p_prod = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=6291544;
 //BA.debugLineNum = 6291544;BA.debugLine="Private b_regreso As Button";
_b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291545;
 //BA.debugLineNum = 6291545;BA.debugLine="Private lv_prod_Prin As ListView";
_lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=6291546;
 //BA.debugLineNum = 6291546;BA.debugLine="Private b_venta_emp As Button";
_b_venta_emp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291547;
 //BA.debugLineNum = 6291547;BA.debugLine="Dim successfulRequests As Int = 0";
_successfulrequests = (int) (0);
RDebugUtils.currentLine=6291548;
 //BA.debugLineNum = 6291548;BA.debugLine="Dim totalRegistros As Int = 0";
_totalregistros = (int) (0);
RDebugUtils.currentLine=6291549;
 //BA.debugLineNum = 6291549;BA.debugLine="Dim totalRegistrosTotales As Int = 0";
_totalregistrostotales = (int) (0);
RDebugUtils.currentLine=6291550;
 //BA.debugLineNum = 6291550;BA.debugLine="Dim todosRequest As Int = 0";
_todosrequest = (int) (0);
RDebugUtils.currentLine=6291551;
 //BA.debugLineNum = 6291551;BA.debugLine="Private pEnvioInfo As Panel";
_penvioinfo = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=6291552;
 //BA.debugLineNum = 6291552;BA.debugLine="Private bEnvioInfo As Button";
_benvioinfo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=6291553;
 //BA.debugLineNum = 6291553;BA.debugLine="Private pbEnvioInfo As ProgressBar";
_pbenvioinfo = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=6291554;
 //BA.debugLineNum = 6291554;BA.debugLine="Private lEnviaInfo As Label";
_lenviainfo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291555;
 //BA.debugLineNum = 6291555;BA.debugLine="Private lVersionName As Label";
_lversionname = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=6291556;
 //BA.debugLineNum = 6291556;BA.debugLine="End Sub";
return "";
}
public String  _connecta_click(reparto_mazapa.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));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
String _rutaquetraje = "";
RDebugUtils.currentLine=7274496;
 //BA.debugLineNum = 7274496;BA.debugLine="Sub connecta_Click";
RDebugUtils.currentLine=7274497;
 //BA.debugLineNum = 7274497;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("37274497",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=7274498;
 //BA.debugLineNum = 7274498;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=7274499;
 //BA.debugLineNum = 7274499;BA.debugLine="If e_ruta.Text <> \"\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=7274501;
 //BA.debugLineNum = 7274501;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELE";
_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rut = (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=7274502;
 //BA.debugLineNum = 7274502;BA.debugLine="If rut.RowCount = 0 Then";
if (_rut.getRowCount()==0) { 
RDebugUtils.currentLine=7274503;
 //BA.debugLineNum = 7274503;BA.debugLine="cargadedia";
__ref._cargadedia /*String*/ (null);
RDebugUtils.currentLine=7274504;
 //BA.debugLineNum = 7274504;BA.debugLine="Log(1.1)";
__c.LogImpl("37274504",BA.NumberToString(1.1),0);
 }else {
RDebugUtils.currentLine=7274506;
 //BA.debugLineNum = 7274506;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=7274507;
 //BA.debugLineNum = 7274507;BA.debugLine="Dim rutaquetraje As String= rut.GetString(\"RUTA";
_rutaquetraje = _rut.GetString("RUTAA");
RDebugUtils.currentLine=7274508;
 //BA.debugLineNum = 7274508;BA.debugLine="If rutaquetraje = e_ruta.Text Then";
if ((_rutaquetraje).equals(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())) { 
RDebugUtils.currentLine=7274509;
 //BA.debugLineNum = 7274509;BA.debugLine="cargadedia";
__ref._cargadedia /*String*/ (null);
RDebugUtils.currentLine=7274510;
 //BA.debugLineNum = 7274510;BA.debugLine="Log(2.1)";
__c.LogImpl("37274510",BA.NumberToString(2.1),0);
 }else {
RDebugUtils.currentLine=7274512;
 //BA.debugLineNum = 7274512;BA.debugLine="Log(2.2)";
__c.LogImpl("37274512",BA.NumberToString(2.2),0);
RDebugUtils.currentLine=7274513;
 //BA.debugLineNum = 7274513;BA.debugLine="MsgboxAsync(\"Cargaste una ruta diferente. Por";
__c.MsgboxAsync(BA.ObjectToCharSequence("Cargaste una ruta diferente. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
 };
 };
 };
RDebugUtils.currentLine=7274525;
 //BA.debugLineNum = 7274525;BA.debugLine="End Sub";
return "";
}
public String  _connecta_longclick(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_longclick", false))
	 {return ((String) Debug.delegate(ba, "connecta_longclick", null));}
int _i = 0;
RDebugUtils.currentLine=8388608;
 //BA.debugLineNum = 8388608;BA.debugLine="Private Sub connecta_LongClick";
RDebugUtils.currentLine=8388609;
 //BA.debugLineNum = 8388609;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CLIENTE, USUARIO";
__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=8388610;
 //BA.debugLineNum = 8388610;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8388611;
 //BA.debugLineNum = 8388611;BA.debugLine="Log($\"Procesando REPARTO_GEO: ${c.RowCount} regi";
__c.LogImpl("38388611",("Procesando REPARTO_GEO: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=8388612;
 //BA.debugLineNum = 8388612;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=8388613;
 //BA.debugLineNum = 8388613;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=8388614;
 //BA.debugLineNum = 8388614;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
__c.LogImpl("38388614",("Total acumulado: "+__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=8388616;
 //BA.debugLineNum = 8388616;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step7 = 1;
final int limit7 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=8388617;
 //BA.debugLineNum = 8388617;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8388618;
 //BA.debugLineNum = 8388618;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=8388619;
 //BA.debugLineNum = 8388619;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=8388620;
 //BA.debugLineNum = 8388620;BA.debugLine="cmd.Name = \"insert_REPARTO_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_REPARTO_MAZAPA";
RDebugUtils.currentLine=8388621;
 //BA.debugLineNum = 8388621;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
__ref._cmd /*reparto_mazapa.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=8388622;
 //BA.debugLineNum = 8388622;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_REPARTOPe";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_REPARTOPendientes_head_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")))+"")));
 }
};
 };
RDebugUtils.currentLine=8388625;
 //BA.debugLineNum = 8388625;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8388626;
 //BA.debugLineNum = 8388626;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(reparto_mazapa.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=7471104;
 //BA.debugLineNum = 7471104;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=7471105;
 //BA.debugLineNum = 7471105;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=7471106;
 //BA.debugLineNum = 7471106;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=7471107;
 //BA.debugLineNum = 7471107;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=7471108;
 //BA.debugLineNum = 7471108;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=7471109;
 //BA.debugLineNum = 7471109;BA.debugLine="Starter.skmt.ExecNonQuery2(\"UPDATE GPS SET HABI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
RDebugUtils.currentLine=7471110;
 //BA.debugLineNum = 7471110;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from GPS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from GPS");
RDebugUtils.currentLine=7471111;
 //BA.debugLineNum = 7471111;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
RDebugUtils.currentLine=7471112;
 //BA.debugLineNum = 7471112;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO_GEO");
RDebugUtils.currentLine=7471113;
 //BA.debugLineNum = 7471113;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=7471114;
 //BA.debugLineNum = 7471114;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
RDebugUtils.currentLine=7471115;
 //BA.debugLineNum = 7471115;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
RDebugUtils.currentLine=7471116;
 //BA.debugLineNum = 7471116;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=7471117;
 //BA.debugLineNum = 7471117;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=7471118;
 //BA.debugLineNum = 7471118;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=7471119;
 //BA.debugLineNum = 7471119;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=7471120;
 //BA.debugLineNum = 7471120;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=7471121;
 //BA.debugLineNum = 7471121;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=7471122;
 //BA.debugLineNum = 7471122;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=7471123;
 //BA.debugLineNum = 7471123;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=7471124;
 //BA.debugLineNum = 7471124;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=7471125;
 //BA.debugLineNum = 7471125;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
RDebugUtils.currentLine=7471126;
 //BA.debugLineNum = 7471126;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
RDebugUtils.currentLine=7471127;
 //BA.debugLineNum = 7471127;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=7471128;
 //BA.debugLineNum = 7471128;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
RDebugUtils.currentLine=7471131;
 //BA.debugLineNum = 7471131;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
 };
RDebugUtils.currentLine=7471133;
 //BA.debugLineNum = 7471133;BA.debugLine="End Sub";
return "";
}
public void  _envioinfo(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "envioinfo", false))
	 {Debug.delegate(ba, "envioinfo", null); return;}
ResumableSub_envioinfo rsub = new ResumableSub_envioinfo(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_envioinfo extends BA.ResumableSub {
public ResumableSub_envioinfo(reparto_mazapa.keymon.lat.c_principal parent,reparto_mazapa.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_mazapa.keymon.lat.c_principal __ref;
reparto_mazapa.keymon.lat.c_principal parent;
int _i = 0;
String _folio = "";
String[] _fechatabulador = null;
String[] _fechatabulador2 = null;
String _fechatabulador3 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _d4 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
String _restacant = "";
String[] _fecha1 = null;
String[] _fecha2 = null;
String _fecha3 = "";
String[] _hora = null;
String _sdate = "";
String _stime = "";
int step13;
int limit13;
int step33;
int limit33;
int step49;
int limit49;
int step66;
int limit66;
int step83;
int limit83;
int step100;
int limit100;
int step116;
int limit116;
int step138;
int limit138;
int step160;
int limit160;
int step210;
int limit210;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=6881281;
 //BA.debugLineNum = 6881281;BA.debugLine="successfulRequests = 0";
__ref._successfulrequests /*int*/  = (int) (0);
RDebugUtils.currentLine=6881282;
 //BA.debugLineNum = 6881282;BA.debugLine="totalRegistros = 0";
__ref._totalregistros /*int*/  = (int) (0);
RDebugUtils.currentLine=6881283;
 //BA.debugLineNum = 6881283;BA.debugLine="totalRegistrosTotales = 0";
__ref._totalregistrostotales /*int*/  = (int) (0);
RDebugUtils.currentLine=6881284;
 //BA.debugLineNum = 6881284;BA.debugLine="todosRequest = -1";
__ref._todosrequest /*int*/  = (int) (-1);
RDebugUtils.currentLine=6881285;
 //BA.debugLineNum = 6881285;BA.debugLine="bEnvioInfo.Enabled = False";
__ref._benvioinfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(parent.__c.False);
RDebugUtils.currentLine=6881287;
 //BA.debugLineNum = 6881287;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO FROM NOVENTA")));
RDebugUtils.currentLine=6881288;
 //BA.debugLineNum = 6881288;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=6881289;
 //BA.debugLineNum = 6881289;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

case 1:
//if
this.state = 8;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=6881290;
 //BA.debugLineNum = 6881290;BA.debugLine="Log($\"Procesando NOVENTA: ${c.RowCount} registro";
parent.__c.LogImpl("36881290",("Procesando NOVENTA: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881291;
 //BA.debugLineNum = 6881291;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881292;
 //BA.debugLineNum = 6881292;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881293;
 //BA.debugLineNum = 6881293;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881293",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881295;
 //BA.debugLineNum = 6881295;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 4:
//for
this.state = 7;
step13 = 1;
limit13 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 87;
if (true) break;

case 87:
//C
this.state = 7;
if ((step13 > 0 && _i <= limit13) || (step13 < 0 && _i >= limit13)) this.state = 6;
if (true) break;

case 88:
//C
this.state = 87;
_i = ((int)(0 + _i + step13)) ;
if (true) break;

case 6:
//C
this.state = 88;
RDebugUtils.currentLine=6881296;
 //BA.debugLineNum = 6881296;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881297;
 //BA.debugLineNum = 6881297;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")";
__ref._foto1 /*byte[]*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("NV_FOTO");
RDebugUtils.currentLine=6881298;
 //BA.debugLineNum = 6881298;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881299;
 //BA.debugLineNum = 6881299;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881300;
 //BA.debugLineNum = 6881300;BA.debugLine="cmd.Name = \"insert_reparto_noventa_MAZAPA_REPG\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_noventa_MAZAPA_REPG";
RDebugUtils.currentLine=6881301;
 //BA.debugLineNum = 6881301;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N";
__ref._cmd /*reparto_mazapa.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())};
RDebugUtils.currentLine=6881302;
 //BA.debugLineNum = 6881302;BA.debugLine="reqManager.ExecuteCommand(cmd ,  \"inst_noventa\"";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 if (true) break;
if (true) break;

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

case 8:
//C
this.state = 9;
;
RDebugUtils.currentLine=6881306;
 //BA.debugLineNum = 6881306;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881307;
 //BA.debugLineNum = 6881307;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=6881308;
 //BA.debugLineNum = 6881308;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881311;
 //BA.debugLineNum = 6881311;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT HVD_CLIENTE,HVD_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID, HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_PARCIAL FROM hist_ventas WHERE HVD_RECHAZO = 1 OR HVD_PARCIAL = 1")));
RDebugUtils.currentLine=6881312;
 //BA.debugLineNum = 6881312;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

case 9:
//if
this.state = 16;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=6881313;
 //BA.debugLineNum = 6881313;BA.debugLine="Log($\"Procesando HIST_VENTAS (rechazos/parciales";
parent.__c.LogImpl("36881313",("Procesando HIST_VENTAS (rechazos/parciales): "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881314;
 //BA.debugLineNum = 6881314;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881315;
 //BA.debugLineNum = 6881315;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881316;
 //BA.debugLineNum = 6881316;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881316",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881318;
 //BA.debugLineNum = 6881318;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 12:
//for
this.state = 15;
step33 = 1;
limit33 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 89;
if (true) break;

case 89:
//C
this.state = 15;
if ((step33 > 0 && _i <= limit33) || (step33 < 0 && _i >= limit33)) this.state = 14;
if (true) break;

case 90:
//C
this.state = 89;
_i = ((int)(0 + _i + step33)) ;
if (true) break;

case 14:
//C
this.state = 90;
RDebugUtils.currentLine=6881319;
 //BA.debugLineNum = 6881319;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881320;
 //BA.debugLineNum = 6881320;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881321;
 //BA.debugLineNum = 6881321;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881322;
 //BA.debugLineNum = 6881322;BA.debugLine="cmd.Name = \"insert_rep_hist_ventas_MAZAPA_REPG\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_rep_hist_ventas_MAZAPA_REPG";
RDebugUtils.currentLine=6881323;
 //BA.debugLineNum = 6881323;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"H";
__ref._cmd /*reparto_mazapa.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_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")),(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)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PARCIAL")),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=6881324;
 //BA.debugLineNum = 6881324;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 if (true) break;
if (true) break;

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

case 16:
//C
this.state = 17;
;
RDebugUtils.currentLine=6881330;
 //BA.debugLineNum = 6881330;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)(parent._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=6881331;
 //BA.debugLineNum = 6881331;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

case 17:
//if
this.state = 24;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 19;
}if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=6881332;
 //BA.debugLineNum = 6881332;BA.debugLine="Log($\"Procesando PEDIDO: ${c.RowCount} registros";
parent.__c.LogImpl("36881332",("Procesando PEDIDO: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881333;
 //BA.debugLineNum = 6881333;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881334;
 //BA.debugLineNum = 6881334;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881335;
 //BA.debugLineNum = 6881335;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881335",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881337;
 //BA.debugLineNum = 6881337;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 20:
//for
this.state = 23;
step49 = 1;
limit49 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 91;
if (true) break;

case 91:
//C
this.state = 23;
if ((step49 > 0 && _i <= limit49) || (step49 < 0 && _i >= limit49)) this.state = 22;
if (true) break;

case 92:
//C
this.state = 91;
_i = ((int)(0 + _i + step49)) ;
if (true) break;

case 22:
//C
this.state = 92;
RDebugUtils.currentLine=6881338;
 //BA.debugLineNum = 6881338;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881339;
 //BA.debugLineNum = 6881339;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881340;
 //BA.debugLineNum = 6881340;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881341;
 //BA.debugLineNum = 6881341;BA.debugLine="cmd.Name = \"insert_pedido_REP_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_REP_MAZAPA";
RDebugUtils.currentLine=6881342;
 //BA.debugLineNum = 6881342;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
__ref._cmd /*reparto_mazapa.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=6881343;
 //BA.debugLineNum = 6881343;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_MAZ";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido_MAZAPA"));
 if (true) break;
if (true) break;

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

case 24:
//C
this.state = 25;
;
RDebugUtils.currentLine=6881349;
 //BA.debugLineNum = 6881349;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * from reparto";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from reparto")));
RDebugUtils.currentLine=6881350;
 //BA.debugLineNum = 6881350;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 32;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 27;
}if (true) break;

case 27:
//C
this.state = 28;
RDebugUtils.currentLine=6881351;
 //BA.debugLineNum = 6881351;BA.debugLine="Log($\"Procesando REPARTO: ${c.RowCount} registro";
parent.__c.LogImpl("36881351",("Procesando REPARTO: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881352;
 //BA.debugLineNum = 6881352;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881353;
 //BA.debugLineNum = 6881353;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881354;
 //BA.debugLineNum = 6881354;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881354",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881356;
 //BA.debugLineNum = 6881356;BA.debugLine="Private folio As String = Subs.hmsKMT";
_folio = parent._subs._hmskmt /*String*/ (ba);
RDebugUtils.currentLine=6881357;
 //BA.debugLineNum = 6881357;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 28:
//for
this.state = 31;
step66 = 1;
limit66 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 93;
if (true) break;

case 93:
//C
this.state = 31;
if ((step66 > 0 && _i <= limit66) || (step66 < 0 && _i >= limit66)) this.state = 30;
if (true) break;

case 94:
//C
this.state = 93;
_i = ((int)(0 + _i + step66)) ;
if (true) break;

case 30:
//C
this.state = 94;
RDebugUtils.currentLine=6881358;
 //BA.debugLineNum = 6881358;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881359;
 //BA.debugLineNum = 6881359;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881360;
 //BA.debugLineNum = 6881360;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881361;
 //BA.debugLineNum = 6881361;BA.debugLine="cmd.Name = \"insertReparto_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insertReparto_MAZAPA";
RDebugUtils.currentLine=6881362;
 //BA.debugLineNum = 6881362;BA.debugLine="cmd.Parameters = Array As Object(folio, C.GetSt";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_folio),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CLI_ORIG")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRODID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRODREGISTRO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRECIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_RECHAZO")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=6881363;
 //BA.debugLineNum = 6881363;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reparto\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_reparto"));
 if (true) break;
if (true) break;

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

case 32:
//C
this.state = 33;
;
RDebugUtils.currentLine=6881369;
 //BA.debugLineNum = 6881369;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * from rechazo";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from rechazos")));
RDebugUtils.currentLine=6881370;
 //BA.debugLineNum = 6881370;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 33:
//if
this.state = 40;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 35;
}if (true) break;

case 35:
//C
this.state = 36;
RDebugUtils.currentLine=6881371;
 //BA.debugLineNum = 6881371;BA.debugLine="Log($\"Procesando RECHAZOS: ${c.RowCount} registr";
parent.__c.LogImpl("36881371",("Procesando RECHAZOS: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881372;
 //BA.debugLineNum = 6881372;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881373;
 //BA.debugLineNum = 6881373;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881374;
 //BA.debugLineNum = 6881374;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881374",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881376;
 //BA.debugLineNum = 6881376;BA.debugLine="Private folio As String = Subs.hmsKMT";
_folio = parent._subs._hmskmt /*String*/ (ba);
RDebugUtils.currentLine=6881377;
 //BA.debugLineNum = 6881377;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 36:
//for
this.state = 39;
step83 = 1;
limit83 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 95;
if (true) break;

case 95:
//C
this.state = 39;
if ((step83 > 0 && _i <= limit83) || (step83 < 0 && _i >= limit83)) this.state = 38;
if (true) break;

case 96:
//C
this.state = 95;
_i = ((int)(0 + _i + step83)) ;
if (true) break;

case 38:
//C
this.state = 96;
RDebugUtils.currentLine=6881378;
 //BA.debugLineNum = 6881378;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881379;
 //BA.debugLineNum = 6881379;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881380;
 //BA.debugLineNum = 6881380;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881381;
 //BA.debugLineNum = 6881381;BA.debugLine="cmd.Name = \"insertRechazos_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insertRechazos_MAZAPA";
RDebugUtils.currentLine=6881382;
 //BA.debugLineNum = 6881382;BA.debugLine="cmd.Parameters = Array As Object(folio, C.GetSt";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_folio),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_CLI_ORIG")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_PRODID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("R_RECHAZO")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=6881383;
 //BA.debugLineNum = 6881383;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_rechazos\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_rechazos"));
 if (true) break;
if (true) break;

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

case 40:
//C
this.state = 41;
;
RDebugUtils.currentLine=6881389;
 //BA.debugLineNum = 6881389;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * from ventas\"";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from ventas")));
RDebugUtils.currentLine=6881390;
 //BA.debugLineNum = 6881390;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 41:
//if
this.state = 48;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 43;
}if (true) break;

case 43:
//C
this.state = 44;
RDebugUtils.currentLine=6881391;
 //BA.debugLineNum = 6881391;BA.debugLine="Log($\"Procesando VENTAS: ${c.RowCount} registros";
parent.__c.LogImpl("36881391",("Procesando VENTAS: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881392;
 //BA.debugLineNum = 6881392;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881393;
 //BA.debugLineNum = 6881393;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881394;
 //BA.debugLineNum = 6881394;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881394",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881396;
 //BA.debugLineNum = 6881396;BA.debugLine="Private folio As String = Subs.hmsKMT";
_folio = parent._subs._hmskmt /*String*/ (ba);
RDebugUtils.currentLine=6881397;
 //BA.debugLineNum = 6881397;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 44:
//for
this.state = 47;
step100 = 1;
limit100 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 97;
if (true) break;

case 97:
//C
this.state = 47;
if ((step100 > 0 && _i <= limit100) || (step100 < 0 && _i >= limit100)) this.state = 46;
if (true) break;

case 98:
//C
this.state = 97;
_i = ((int)(0 + _i + step100)) ;
if (true) break;

case 46:
//C
this.state = 98;
RDebugUtils.currentLine=6881398;
 //BA.debugLineNum = 6881398;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881399;
 //BA.debugLineNum = 6881399;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881400;
 //BA.debugLineNum = 6881400;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881401;
 //BA.debugLineNum = 6881401;BA.debugLine="cmd.Name = \"insertVentas_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insertVentas_MAZAPA";
RDebugUtils.currentLine=6881402;
 //BA.debugLineNum = 6881402;BA.debugLine="cmd.Parameters = Array As Object(folio, C.GetSt";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_folio),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_CLI_ORIG")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_PRODID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("V_RECHAZO")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=6881403;
 //BA.debugLineNum = 6881403;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_ventas\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_ventas"));
 if (true) break;
if (true) break;

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

case 48:
//C
this.state = 49;
;
RDebugUtils.currentLine=6881409;
 //BA.debugLineNum = 6881409;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CLIENTE, USUARIO";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._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=6881410;
 //BA.debugLineNum = 6881410;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

case 49:
//if
this.state = 56;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 51;
}if (true) break;

case 51:
//C
this.state = 52;
RDebugUtils.currentLine=6881411;
 //BA.debugLineNum = 6881411;BA.debugLine="Log($\"Procesando REPARTO_GEO: ${c.RowCount} regi";
parent.__c.LogImpl("36881411",("Procesando REPARTO_GEO: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881412;
 //BA.debugLineNum = 6881412;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881413;
 //BA.debugLineNum = 6881413;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881414;
 //BA.debugLineNum = 6881414;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881414",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881416;
 //BA.debugLineNum = 6881416;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 52:
//for
this.state = 55;
step116 = 1;
limit116 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 99;
if (true) break;

case 99:
//C
this.state = 55;
if ((step116 > 0 && _i <= limit116) || (step116 < 0 && _i >= limit116)) this.state = 54;
if (true) break;

case 100:
//C
this.state = 99;
_i = ((int)(0 + _i + step116)) ;
if (true) break;

case 54:
//C
this.state = 100;
RDebugUtils.currentLine=6881417;
 //BA.debugLineNum = 6881417;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881418;
 //BA.debugLineNum = 6881418;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881419;
 //BA.debugLineNum = 6881419;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881420;
 //BA.debugLineNum = 6881420;BA.debugLine="cmd.Name = \"insert_REPARTO_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_REPARTO_MAZAPA";
RDebugUtils.currentLine=6881421;
 //BA.debugLineNum = 6881421;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
__ref._cmd /*reparto_mazapa.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=6881422;
 //BA.debugLineNum = 6881422;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_REPARTOPe";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_REPARTOPendientes_head_"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")))+"")));
 if (true) break;
if (true) break;

case 55:
//C
this.state = 56;
;
 if (true) break;

case 56:
//C
this.state = 57;
;
RDebugUtils.currentLine=6881425;
 //BA.debugLineNum = 6881425;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881428;
 //BA.debugLineNum = 6881428;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")));
RDebugUtils.currentLine=6881429;
 //BA.debugLineNum = 6881429;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=6881430;
 //BA.debugLineNum = 6881430;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=6881431;
 //BA.debugLineNum = 6881431;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=6881432;
 //BA.debugLineNum = 6881432;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881433;
 //BA.debugLineNum = 6881433;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881434;
 //BA.debugLineNum = 6881434;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881435;
 //BA.debugLineNum = 6881435;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 57:
//if
this.state = 64;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 59;
}if (true) break;

case 59:
//C
this.state = 60;
RDebugUtils.currentLine=6881436;
 //BA.debugLineNum = 6881436;BA.debugLine="Log($\"Procesando TABULADOR_MONEDAS: ${c.RowCount";
parent.__c.LogImpl("36881436",("Procesando TABULADOR_MONEDAS: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881437;
 //BA.debugLineNum = 6881437;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881438;
 //BA.debugLineNum = 6881438;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881439;
 //BA.debugLineNum = 6881439;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881439",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881441;
 //BA.debugLineNum = 6881441;BA.debugLine="For i = 0 To c.RowCount - 1";
if (true) break;

case 60:
//for
this.state = 63;
step138 = 1;
limit138 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 101;
if (true) break;

case 101:
//C
this.state = 63;
if ((step138 > 0 && _i <= limit138) || (step138 < 0 && _i >= limit138)) this.state = 62;
if (true) break;

case 102:
//C
this.state = 101;
_i = ((int)(0 + _i + step138)) ;
if (true) break;

case 62:
//C
this.state = 102;
RDebugUtils.currentLine=6881442;
 //BA.debugLineNum = 6881442;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881443;
 //BA.debugLineNum = 6881443;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881444;
 //BA.debugLineNum = 6881444;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = parent.__c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=6881445;
 //BA.debugLineNum = 6881445;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"";
_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
RDebugUtils.currentLine=6881446;
 //BA.debugLineNum = 6881446;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2";
_fechatabulador3 = _fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (0)];
RDebugUtils.currentLine=6881447;
 //BA.debugLineNum = 6881447;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881448;
 //BA.debugLineNum = 6881448;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_monedas_MAZAPA";
RDebugUtils.currentLine=6881449;
 //BA.debugLineNum = 6881449;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R";
__ref._cmd /*reparto_mazapa.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=6881450;
 //BA.debugLineNum = 6881450;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_mon"));
 if (true) break;
if (true) break;

case 63:
//C
this.state = 64;
;
RDebugUtils.currentLine=6881452;
 //BA.debugLineNum = 6881452;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881453;
 //BA.debugLineNum = 6881453;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881454;
 //BA.debugLineNum = 6881454;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881455;
 //BA.debugLineNum = 6881455;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 64:
//C
this.state = 65;
;
RDebugUtils.currentLine=6881459;
 //BA.debugLineNum = 6881459;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IFNULL(HVD_REC";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RUTA, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS_OR AS BCAJAS, CANTC_OR AS CANTC FROM HIST_VENTAS")));
RDebugUtils.currentLine=6881460;
 //BA.debugLineNum = 6881460;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 65:
//if
this.state = 78;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 67;
}if (true) break;

case 67:
//C
this.state = 68;
RDebugUtils.currentLine=6881461;
 //BA.debugLineNum = 6881461;BA.debugLine="Log($\"Procesando HIST_VENTAS (actualización): ${";
parent.__c.LogImpl("36881461",("Procesando HIST_VENTAS (actualización): "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881462;
 //BA.debugLineNum = 6881462;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881463;
 //BA.debugLineNum = 6881463;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881464;
 //BA.debugLineNum = 6881464;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881464",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881466;
 //BA.debugLineNum = 6881466;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 68:
//for
this.state = 77;
step160 = 1;
limit160 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 103;
if (true) break;

case 103:
//C
this.state = 77;
if ((step160 > 0 && _i <= limit160) || (step160 < 0 && _i >= limit160)) this.state = 70;
if (true) break;

case 104:
//C
this.state = 103;
_i = ((int)(0 + _i + step160)) ;
if (true) break;

case 70:
//C
this.state = 71;
RDebugUtils.currentLine=6881467;
 //BA.debugLineNum = 6881467;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881468;
 //BA.debugLineNum = 6881468;BA.debugLine="Log(c.GetString(\"HVD_CLIENTE\"))";
parent.__c.LogImpl("36881468",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),0);
RDebugUtils.currentLine=6881469;
 //BA.debugLineNum = 6881469;BA.debugLine="Private d4 As Cursor = Starter.skmt.ExecQuery($";
_d4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"'"))));
RDebugUtils.currentLine=6881470;
 //BA.debugLineNum = 6881470;BA.debugLine="d4.Position = 0";
_d4.setPosition((int) (0));
RDebugUtils.currentLine=6881471;
 //BA.debugLineNum = 6881471;BA.debugLine="Log(d4.GetString(\"CAT_CL_RUTA\"))";
parent.__c.LogImpl("36881471",_d4.GetString("CAT_CL_RUTA"),0);
RDebugUtils.currentLine=6881472;
 //BA.debugLineNum = 6881472;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery(";
_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=6881473;
 //BA.debugLineNum = 6881473;BA.debugLine="d5.Position = 0";
_d5.setPosition((int) (0));
RDebugUtils.currentLine=6881474;
 //BA.debugLineNum = 6881474;BA.debugLine="Private restacant As String = d5.GetString(\"PE_";
_restacant = _d5.GetString("PE_CANT");
RDebugUtils.currentLine=6881475;
 //BA.debugLineNum = 6881475;BA.debugLine="d5.Close";
_d5.Close();
RDebugUtils.currentLine=6881477;
 //BA.debugLineNum = 6881477;BA.debugLine="Dim fecha1() As String = Regex.Split(\" \", c.Get";
_fecha1 = parent.__c.Regex.Split(" ",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=6881478;
 //BA.debugLineNum = 6881478;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha";
_fecha2 = parent.__c.Regex.Split("-",_fecha1[(int) (0)]);
RDebugUtils.currentLine=6881479;
 //BA.debugLineNum = 6881479;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&";
_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
RDebugUtils.currentLine=6881480;
 //BA.debugLineNum = 6881480;BA.debugLine="Log(fecha3)";
parent.__c.LogImpl("36881480",_fecha3,0);
RDebugUtils.currentLine=6881481;
 //BA.debugLineNum = 6881481;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha1";
_hora = parent.__c.Regex.Split("\\.",_fecha1[(int) (1)]);
RDebugUtils.currentLine=6881482;
 //BA.debugLineNum = 6881482;BA.debugLine="Log(hora(0))";
parent.__c.LogImpl("36881482",_hora[(int) (0)],0);
RDebugUtils.currentLine=6881484;
 //BA.debugLineNum = 6881484;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=6881485;
 //BA.debugLineNum = 6881485;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=6881486;
 //BA.debugLineNum = 6881486;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=6881487;
 //BA.debugLineNum = 6881487;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6881488;
 //BA.debugLineNum = 6881488;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6881489;
 //BA.debugLineNum = 6881489;BA.debugLine="If c.GetString(\"HVD_RECHAZOCANT\") <> \"0\" Then";
if (true) break;

case 71:
//if
this.state = 76;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")).equals("0") == false) { 
this.state = 73;
}else {
this.state = 75;
}if (true) break;

case 73:
//C
this.state = 76;
RDebugUtils.currentLine=6881490;
 //BA.debugLineNum = 6881490;BA.debugLine="Log((c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
parent.__c.LogImpl("36881490",BA.NumberToString(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))),0);
RDebugUtils.currentLine=6881491;
 //BA.debugLineNum = 6881491;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881492;
 //BA.debugLineNum = 6881492;BA.debugLine="cmd.Name = \"update_HVD_MAZAPArep2\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVD_MAZAPArep2";
RDebugUtils.currentLine=6881493;
 //BA.debugLineNum = 6881493;BA.debugLine="cmd.Parameters = Array As String(c.GetString(\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = (Object[])(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC"),_sdate+" "+_stime,BA.NumberToString(1),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_fecha3+" "+_hora[(int) (0)],__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RUTA"),__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")});
RDebugUtils.currentLine=6881494;
 //BA.debugLineNum = 6881494;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd"));
 if (true) break;

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=6881496;
 //BA.debugLineNum = 6881496;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881497;
 //BA.debugLineNum = 6881497;BA.debugLine="cmd.Name = \"update_HVD_MAZAPArep2\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVD_MAZAPArep2";
RDebugUtils.currentLine=6881498;
 //BA.debugLineNum = 6881498;BA.debugLine="Log( c.GetString(\"CANTC\")& c.GetString(\"HVD_CL";
parent.__c.LogImpl("36881498",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")+_fecha3+" "+_hora[(int) (0)]+_d4.GetString("CAT_CL_RUTA")+__ref._almacen /*String*/ +__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"),0);
RDebugUtils.currentLine=6881499;
 //BA.debugLineNum = 6881499;BA.debugLine="cmd.Parameters = Array As String(\"\",c.GetStrin";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = (Object[])(new String[]{"",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC"),"","",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_fecha3+" "+_hora[(int) (0)],__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RUTA"),__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")});
RDebugUtils.currentLine=6881500;
 //BA.debugLineNum = 6881500;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd"));
 if (true) break;

case 76:
//C
this.state = 104;
;
RDebugUtils.currentLine=6881502;
 //BA.debugLineNum = 6881502;BA.debugLine="d4.Close";
_d4.Close();
 if (true) break;
if (true) break;

case 77:
//C
this.state = 78;
;
 if (true) break;

case 78:
//C
this.state = 79;
;
RDebugUtils.currentLine=6881505;
 //BA.debugLineNum = 6881505;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881508;
 //BA.debugLineNum = 6881508;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")));
RDebugUtils.currentLine=6881509;
 //BA.debugLineNum = 6881509;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=6881510;
 //BA.debugLineNum = 6881510;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=6881511;
 //BA.debugLineNum = 6881511;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=6881512;
 //BA.debugLineNum = 6881512;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881513;
 //BA.debugLineNum = 6881513;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881514;
 //BA.debugLineNum = 6881514;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6881515;
 //BA.debugLineNum = 6881515;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 79:
//if
this.state = 86;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 81;
}if (true) break;

case 81:
//C
this.state = 82;
RDebugUtils.currentLine=6881516;
 //BA.debugLineNum = 6881516;BA.debugLine="Log($\"Procesando TABULADOR_BILLETES: ${c.RowCoun";
parent.__c.LogImpl("36881516",("Procesando TABULADOR_BILLETES: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+" registros"),0);
RDebugUtils.currentLine=6881517;
 //BA.debugLineNum = 6881517;BA.debugLine="totalRegistros = totalRegistros + c.RowCount";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881518;
 //BA.debugLineNum = 6881518;BA.debugLine="totalRegistrosTotales = totalRegistrosTotales +";
__ref._totalregistrostotales /*int*/  = (int) (__ref._totalregistrostotales /*int*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount());
RDebugUtils.currentLine=6881519;
 //BA.debugLineNum = 6881519;BA.debugLine="Log($\"Total acumulado: ${totalRegistros}\"$)";
parent.__c.LogImpl("36881519",("Total acumulado: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881521;
 //BA.debugLineNum = 6881521;BA.debugLine="For i = 0 To c.RowCount - 1";
if (true) break;

case 82:
//for
this.state = 85;
step210 = 1;
limit210 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 105;
if (true) break;

case 105:
//C
this.state = 85;
if ((step210 > 0 && _i <= limit210) || (step210 < 0 && _i >= limit210)) this.state = 84;
if (true) break;

case 106:
//C
this.state = 105;
_i = ((int)(0 + _i + step210)) ;
if (true) break;

case 84:
//C
this.state = 106;
RDebugUtils.currentLine=6881522;
 //BA.debugLineNum = 6881522;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6881523;
 //BA.debugLineNum = 6881523;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881524;
 //BA.debugLineNum = 6881524;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = parent.__c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=6881525;
 //BA.debugLineNum = 6881525;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"";
_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
RDebugUtils.currentLine=6881526;
 //BA.debugLineNum = 6881526;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2";
_fechatabulador3 = _fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (0)];
RDebugUtils.currentLine=6881527;
 //BA.debugLineNum = 6881527;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881528;
 //BA.debugLineNum = 6881528;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_billetes_MAZAPA";
RDebugUtils.currentLine=6881529;
 //BA.debugLineNum = 6881529;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I";
__ref._cmd /*reparto_mazapa.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=6881530;
 //BA.debugLineNum = 6881530;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_bill"));
 if (true) break;
if (true) break;

case 85:
//C
this.state = 86;
;
RDebugUtils.currentLine=6881532;
 //BA.debugLineNum = 6881532;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881533;
 //BA.debugLineNum = 6881533;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881534;
 //BA.debugLineNum = 6881534;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6881535;
 //BA.debugLineNum = 6881535;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 86:
//C
this.state = -1;
;
RDebugUtils.currentLine=6881539;
 //BA.debugLineNum = 6881539;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=6881540;
 //BA.debugLineNum = 6881540;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6881541;
 //BA.debugLineNum = 6881541;BA.debugLine="cmd.Name = \"insert_drop_rep_MAZAPA2\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_MAZAPA2";
RDebugUtils.currentLine=6881542;
 //BA.debugLineNum = 6881542;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(parent._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)(parent._subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(parent._subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(parent.__c.Application.getVersionName())};
RDebugUtils.currentLine=6881543;
 //BA.debugLineNum = 6881543;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=6881545;
 //BA.debugLineNum = 6881545;BA.debugLine="Log($\"PROCESO COMPLETADO - TOTAL DE REGISTROS PRO";
parent.__c.LogImpl("36881545",("PROCESO COMPLETADO - TOTAL DE REGISTROS PROCESADOS: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881546;
 //BA.debugLineNum = 6881546;BA.debugLine="ToastMessageShow(\"Se Actualizaron los datos, Este";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaron los datos, Este proceso podria tardar hasta un minuto, gracias "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),parent.__c.True);
RDebugUtils.currentLine=6881548;
 //BA.debugLineNum = 6881548;BA.debugLine="Wait For AllRequestsComplete ' Espera a que todos";
parent.__c.WaitFor("allrequestscomplete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "envioinfo"), null);
this.state = 107;
return;
case 107:
//C
this.state = -1;
;
RDebugUtils.currentLine=6881550;
 //BA.debugLineNum = 6881550;BA.debugLine="Log($\"Total registros procesados: ${totalRegistro";
parent.__c.LogImpl("36881550",("Total registros procesados: "+parent.__c.SmartStringFormatter("",(Object)(__ref._totalregistros /*int*/ ))+""),0);
RDebugUtils.currentLine=6881551;
 //BA.debugLineNum = 6881551;BA.debugLine="Log($\"Requests exitosos: ${successfulRequests}\"$)";
parent.__c.LogImpl("36881551",("Requests exitosos: "+parent.__c.SmartStringFormatter("",(Object)(__ref._successfulrequests /*int*/ ))+""),0);
RDebugUtils.currentLine=6881552;
 //BA.debugLineNum = 6881552;BA.debugLine="LogColor(\"Esto es totalRegistrosTotales: ---->\" &";
parent.__c.LogImpl("36881552","Esto es totalRegistrosTotales: ---->"+BA.NumberToString(__ref._totalregistrostotales /*int*/ ),parent.__c.Colors.Red);
RDebugUtils.currentLine=6881555;
 //BA.debugLineNum = 6881555;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _inv_click(reparto_mazapa.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=7536640;
 //BA.debugLineNum = 7536640;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=7536641;
 //BA.debugLineNum = 7536641;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=7536642;
 //BA.debugLineNum = 7536642;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_mazapa.keymon.lat.c_principal __ref,reparto_mazapa.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_mazapa.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 _cat_cl_secuencia = "";
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 _hvd_placa = "";
String _bcajas = "";
String _cantc = "";
String _hvd_ruta = "";
String _hvd_listaprecio = "";
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=7077888;
 //BA.debugLineNum = 7077888;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=7077890;
 //BA.debugLineNum = 7077890;BA.debugLine="Log(todosRequest)";
__c.LogImpl("37077890",BA.NumberToString(__ref._todosrequest /*int*/ ),0);
RDebugUtils.currentLine=7077891;
 //BA.debugLineNum = 7077891;BA.debugLine="todosRequest = todosRequest +1";
__ref._todosrequest /*int*/  = (int) (__ref._todosrequest /*int*/ +1);
RDebugUtils.currentLine=7077892;
 //BA.debugLineNum = 7077892;BA.debugLine="Log(todosRequest)";
__c.LogImpl("37077892",BA.NumberToString(__ref._todosrequest /*int*/ ),0);
RDebugUtils.currentLine=7077893;
 //BA.debugLineNum = 7077893;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=7077894;
 //BA.debugLineNum = 7077894;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
__c.LogImpl("37077894","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
 }else {
RDebugUtils.currentLine=7077897;
 //BA.debugLineNum = 7077897;BA.debugLine="LogColor(\"Esto es totalRegistros: \" & totalRegis";
__c.LogImpl("37077897","Esto es totalRegistros: "+BA.NumberToString(__ref._totalregistros /*int*/ ),__c.Colors.Red);
RDebugUtils.currentLine=7077898;
 //BA.debugLineNum = 7077898;BA.debugLine="successfulRequests = successfulRequests + 1";
__ref._successfulrequests /*int*/  = (int) (__ref._successfulrequests /*int*/ +1);
RDebugUtils.currentLine=7077899;
 //BA.debugLineNum = 7077899;BA.debugLine="totalRegistros = totalRegistros - 1";
__ref._totalregistros /*int*/  = (int) (__ref._totalregistros /*int*/ -1);
RDebugUtils.currentLine=7077900;
 //BA.debugLineNum = 7077900;BA.debugLine="Log(\"Esto es successfulRequests: \" & successfulR";
__c.LogImpl("37077900","Esto es successfulRequests: "+BA.NumberToString(__ref._successfulrequests /*int*/ ),0);
RDebugUtils.currentLine=7077901;
 //BA.debugLineNum = 7077901;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("37077901","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=7077902;
 //BA.debugLineNum = 7077902;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7077903;
 //BA.debugLineNum = 7077903;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7077904;
 //BA.debugLineNum = 7077904;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=7077905;
 //BA.debugLineNum = 7077905;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos"))>-1) { 
RDebugUtils.currentLine=7077906;
 //BA.debugLineNum = 7077906;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=7077909;
 //BA.debugLineNum = 7077909;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=7077911;
 //BA.debugLineNum = 7077911;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group19 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen19 = group19.getSize()
;int index19 = 0;
;
for (; index19 < groupLen19;index19++){
_records = (Object[])(group19.Get(index19));
RDebugUtils.currentLine=7077912;
 //BA.debugLineNum = 7077912;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=7077913;
 //BA.debugLineNum = 7077913;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=7077914;
 //BA.debugLineNum = 7077914;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=7077915;
 //BA.debugLineNum = 7077915;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=7077916;
 //BA.debugLineNum = 7077916;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=7077917;
 //BA.debugLineNum = 7077917;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=7077918;
 //BA.debugLineNum = 7077918;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=7077919;
 //BA.debugLineNum = 7077919;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=7077920;
 //BA.debugLineNum = 7077920;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=7077921;
 //BA.debugLineNum = 7077921;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=7077922;
 //BA.debugLineNum = 7077922;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=7077923;
 //BA.debugLineNum = 7077923;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=7077924;
 //BA.debugLineNum = 7077924;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=7077925;
 //BA.debugLineNum = 7077925;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=7077926;
 //BA.debugLineNum = 7077926;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=7077927;
 //BA.debugLineNum = 7077927;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=7077928;
 //BA.debugLineNum = 7077928;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=7077929;
 //BA.debugLineNum = 7077929;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=7077930;
 //BA.debugLineNum = 7077930;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=7077931;
 //BA.debugLineNum = 7077931;BA.debugLine="Dim CAT_CL_SECUENCIA As String = records(resu";
_cat_cl_secuencia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_SECUENCIA"))))]);
RDebugUtils.currentLine=7077933;
 //BA.debugLineNum = 7077933;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,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_secuencia)}));
 }
};
RDebugUtils.currentLine=7077935;
 //BA.debugLineNum = 7077935;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(63403),(Object)(1000),(Object)("VENTA RECHAZO"),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("-98.8357694"),(Object)("19.6906052"),(Object)("0"),(Object)("1")}));
RDebugUtils.currentLine=7077937;
 //BA.debugLineNum = 7077937;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=7077938;
 //BA.debugLineNum = 7077938;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=7077939;
 //BA.debugLineNum = 7077939;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7077940;
 //BA.debugLineNum = 7077940;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=7077941;
 //BA.debugLineNum = 7077941;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7077942;
 //BA.debugLineNum = 7077942;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7077943;
 //BA.debugLineNum = 7077943;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7077944;
 //BA.debugLineNum = 7077944;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=7077949;
 //BA.debugLineNum = 7077949;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7077950;
 //BA.debugLineNum = 7077950;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7077951;
 //BA.debugLineNum = 7077951;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) { 
RDebugUtils.currentLine=7077952;
 //BA.debugLineNum = 7077952;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3"))>-1) { 
RDebugUtils.currentLine=7077953;
 //BA.debugLineNum = 7077953;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=7077954;
 //BA.debugLineNum = 7077954;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("37077954",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=7077956;
 //BA.debugLineNum = 7077956;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=7077957;
 //BA.debugLineNum = 7077957;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group62 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen62 = group62.getSize()
;int index62 = 0;
;
for (; index62 < groupLen62;index62++){
_records = (Object[])(group62.Get(index62));
RDebugUtils.currentLine=7077958;
 //BA.debugLineNum = 7077958;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=7077959;
 //BA.debugLineNum = 7077959;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=7077960;
 //BA.debugLineNum = 7077960;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=7077961;
 //BA.debugLineNum = 7077961;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=7077962;
 //BA.debugLineNum = 7077962;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=7077963;
 //BA.debugLineNum = 7077963;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=7077964;
 //BA.debugLineNum = 7077964;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=7077965;
 //BA.debugLineNum = 7077965;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=7077966;
 //BA.debugLineNum = 7077966;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=7077967;
 //BA.debugLineNum = 7077967;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=7077968;
 //BA.debugLineNum = 7077968;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=7077970;
 //BA.debugLineNum = 7077970;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=7077971;
 //BA.debugLineNum = 7077971;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=7077972;
 //BA.debugLineNum = 7077972;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=7077973;
 //BA.debugLineNum = 7077973;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=7077974;
 //BA.debugLineNum = 7077974;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=7077977;
 //BA.debugLineNum = 7077977;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=7077979;
 //BA.debugLineNum = 7077979;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=7077980;
 //BA.debugLineNum = 7077980;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=7077981;
 //BA.debugLineNum = 7077981;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7077982;
 //BA.debugLineNum = 7077982;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=7077983;
 //BA.debugLineNum = 7077983;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7077984;
 //BA.debugLineNum = 7077984;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7077985;
 //BA.debugLineNum = 7077985;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7077986;
 //BA.debugLineNum = 7077986;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=7077991;
 //BA.debugLineNum = 7077991;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7077992;
 //BA.debugLineNum = 7077992;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7077993;
 //BA.debugLineNum = 7077993;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=7077994;
 //BA.debugLineNum = 7077994;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod"))>-1) { 
RDebugUtils.currentLine=7077995;
 //BA.debugLineNum = 7077995;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=7077996;
 //BA.debugLineNum = 7077996;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("37077996",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=7077998;
 //BA.debugLineNum = 7077998;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=7077999;
 //BA.debugLineNum = 7077999;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group100 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen100 = group100.getSize()
;int index100 = 0;
;
for (; index100 < groupLen100;index100++){
_records = (Object[])(group100.Get(index100));
RDebugUtils.currentLine=7078000;
 //BA.debugLineNum = 7078000;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=7078001;
 //BA.debugLineNum = 7078001;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=7078002;
 //BA.debugLineNum = 7078002;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=7078003;
 //BA.debugLineNum = 7078003;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=7078004;
 //BA.debugLineNum = 7078004;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=7078005;
 //BA.debugLineNum = 7078005;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=7078006;
 //BA.debugLineNum = 7078006;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=7078007;
 //BA.debugLineNum = 7078007;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=7078008;
 //BA.debugLineNum = 7078008;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=7078009;
 //BA.debugLineNum = 7078009;BA.debugLine="Dim CONVERSION As String = records(result.Col";
_conversion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CONVERSION1"))))]);
RDebugUtils.currentLine=7078010;
 //BA.debugLineNum = 7078010;BA.debugLine="Dim PRECIOCONVER As String = records(result.C";
_precioconver = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]);
RDebugUtils.currentLine=7078011;
 //BA.debugLineNum = 7078011;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=7078016;
 //BA.debugLineNum = 7078016;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=7078018;
 //BA.debugLineNum = 7078018;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=7078019;
 //BA.debugLineNum = 7078019;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=7078020;
 //BA.debugLineNum = 7078020;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7078021;
 //BA.debugLineNum = 7078021;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=7078022;
 //BA.debugLineNum = 7078022;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078023;
 //BA.debugLineNum = 7078023;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078024;
 //BA.debugLineNum = 7078024;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078025;
 //BA.debugLineNum = 7078025;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=7078030;
 //BA.debugLineNum = 7078030;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078031;
 //BA.debugLineNum = 7078031;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078032;
 //BA.debugLineNum = 7078032;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=7078033;
 //BA.debugLineNum = 7078033;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp"))>-1) { 
RDebugUtils.currentLine=7078034;
 //BA.debugLineNum = 7078034;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=7078035;
 //BA.debugLineNum = 7078035;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("37078035",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=7078037;
 //BA.debugLineNum = 7078037;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group133 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen133 = group133.getSize()
;int index133 = 0;
;
for (; index133 < groupLen133;index133++){
_records = (Object[])(group133.Get(index133));
RDebugUtils.currentLine=7078038;
 //BA.debugLineNum = 7078038;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=7078039;
 //BA.debugLineNum = 7078039;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=7078040;
 //BA.debugLineNum = 7078040;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=7078041;
 //BA.debugLineNum = 7078041;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=7078042;
 //BA.debugLineNum = 7078042;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=7078043;
 //BA.debugLineNum = 7078043;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=7078044;
 //BA.debugLineNum = 7078044;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=7078045;
 //BA.debugLineNum = 7078045;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=7078046;
 //BA.debugLineNum = 7078046;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=7078047;
 //BA.debugLineNum = 7078047;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=7078050;
 //BA.debugLineNum = 7078050;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=7078052;
 //BA.debugLineNum = 7078052;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7078053;
 //BA.debugLineNum = 7078053;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=7078054;
 //BA.debugLineNum = 7078054;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078055;
 //BA.debugLineNum = 7078055;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078056;
 //BA.debugLineNum = 7078056;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078057;
 //BA.debugLineNum = 7078057;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=7078058;
 //BA.debugLineNum = 7078058;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=7078059;
 //BA.debugLineNum = 7078059;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078060;
 //BA.debugLineNum = 7078060;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078061;
 //BA.debugLineNum = 7078061;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078062;
 //BA.debugLineNum = 7078062;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=7078067;
 //BA.debugLineNum = 7078067;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078068;
 //BA.debugLineNum = 7078068;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078069;
 //BA.debugLineNum = 7078069;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=7078070;
 //BA.debugLineNum = 7078070;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq"))>-1) { 
RDebugUtils.currentLine=7078071;
 //BA.debugLineNum = 7078071;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=7078072;
 //BA.debugLineNum = 7078072;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("37078072",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=7078074;
 //BA.debugLineNum = 7078074;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group167 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen167 = group167.getSize()
;int index167 = 0;
;
for (; index167 < groupLen167;index167++){
_records = (Object[])(group167.Get(index167));
RDebugUtils.currentLine=7078075;
 //BA.debugLineNum = 7078075;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=7078076;
 //BA.debugLineNum = 7078076;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=7078077;
 //BA.debugLineNum = 7078077;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=7078078;
 //BA.debugLineNum = 7078078;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=7078079;
 //BA.debugLineNum = 7078079;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=7078080;
 //BA.debugLineNum = 7078080;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=7078081;
 //BA.debugLineNum = 7078081;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=7078082;
 //BA.debugLineNum = 7078082;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=7078083;
 //BA.debugLineNum = 7078083;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=7078084;
 //BA.debugLineNum = 7078084;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=7078085;
 //BA.debugLineNum = 7078085;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=7078087;
 //BA.debugLineNum = 7078087;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=7078089;
 //BA.debugLineNum = 7078089;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7078090;
 //BA.debugLineNum = 7078090;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=7078091;
 //BA.debugLineNum = 7078091;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078092;
 //BA.debugLineNum = 7078092;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078093;
 //BA.debugLineNum = 7078093;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078094;
 //BA.debugLineNum = 7078094;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=7078095;
 //BA.debugLineNum = 7078095;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=7078096;
 //BA.debugLineNum = 7078096;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078097;
 //BA.debugLineNum = 7078097;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078098;
 //BA.debugLineNum = 7078098;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078099;
 //BA.debugLineNum = 7078099;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=7078104;
 //BA.debugLineNum = 7078104;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078105;
 //BA.debugLineNum = 7078105;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078106;
 //BA.debugLineNum = 7078106;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { 
RDebugUtils.currentLine=7078107;
 //BA.debugLineNum = 7078107;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group198 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen198 = group198.getSize()
;int index198 = 0;
;
for (; index198 < groupLen198;index198++){
_records = (Object[])(group198.Get(index198));
RDebugUtils.currentLine=7078108;
 //BA.debugLineNum = 7078108;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=7078109;
 //BA.debugLineNum = 7078109;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
RDebugUtils.currentLine=7078111;
 //BA.debugLineNum = 7078111;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=7078113;
 //BA.debugLineNum = 7078113;BA.debugLine="envioinfo";
__ref._envioinfo /*void*/ (null);
 };
 }
};
 };
 };
RDebugUtils.currentLine=7078119;
 //BA.debugLineNum = 7078119;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078120;
 //BA.debugLineNum = 7078120;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078121;
 //BA.debugLineNum = 7078121;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("punteo"))) { 
RDebugUtils.currentLine=7078122;
 //BA.debugLineNum = 7078122;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>-1) { 
RDebugUtils.currentLine=7078123;
 //BA.debugLineNum = 7078123;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=7078126;
 //BA.debugLineNum = 7078126;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>0) { 
RDebugUtils.currentLine=7078127;
 //BA.debugLineNum = 7078127;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=7078128;
 //BA.debugLineNum = 7078128;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("37078128",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=7078130;
 //BA.debugLineNum = 7078130;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=7078131;
 //BA.debugLineNum = 7078131;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group219 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen219 = group219.getSize()
;int index219 = 0;
;
for (; index219 < groupLen219;index219++){
_records = (Object[])(group219.Get(index219));
RDebugUtils.currentLine=7078132;
 //BA.debugLineNum = 7078132;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=7078133;
 //BA.debugLineNum = 7078133;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=7078134;
 //BA.debugLineNum = 7078134;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=7078136;
 //BA.debugLineNum = 7078136;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=7078138;
 //BA.debugLineNum = 7078138;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=7078139;
 //BA.debugLineNum = 7078139;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
 };
 };
RDebugUtils.currentLine=7078143;
 //BA.debugLineNum = 7078143;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078144;
 //BA.debugLineNum = 7078144;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078145;
 //BA.debugLineNum = 7078145;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=7078146;
 //BA.debugLineNum = 7078146;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos"))>-1) { 
RDebugUtils.currentLine=7078147;
 //BA.debugLineNum = 7078147;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=7078152;
 //BA.debugLineNum = 7078152;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=7078153;
 //BA.debugLineNum = 7078153;BA.debugLine="Dim consecutivo  As Int= 0";
_consecutivo = (int) (0);
RDebugUtils.currentLine=7078154;
 //BA.debugLineNum = 7078154;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group237 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen237 = group237.getSize()
;int index237 = 0;
;
for (; index237 < groupLen237;index237++){
_records = (Object[])(group237.Get(index237));
RDebugUtils.currentLine=7078155;
 //BA.debugLineNum = 7078155;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=7078156;
 //BA.debugLineNum = 7078156;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=7078157;
 //BA.debugLineNum = 7078157;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=7078158;
 //BA.debugLineNum = 7078158;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=7078159;
 //BA.debugLineNum = 7078159;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=7078160;
 //BA.debugLineNum = 7078160;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=7078161;
 //BA.debugLineNum = 7078161;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=7078162;
 //BA.debugLineNum = 7078162;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=7078163;
 //BA.debugLineNum = 7078163;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=7078164;
 //BA.debugLineNum = 7078164;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=7078165;
 //BA.debugLineNum = 7078165;BA.debugLine="Dim HVD_PLACA As String = records(result.Colu";
_hvd_placa = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PLACA"))))]);
RDebugUtils.currentLine=7078166;
 //BA.debugLineNum = 7078166;BA.debugLine="Dim bcajas As String = records(result.Columns";
_bcajas = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_BCAJAS"))))]);
RDebugUtils.currentLine=7078167;
 //BA.debugLineNum = 7078167;BA.debugLine="Dim cantc As String = records(result.Columns.";
_cantc = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CANTC"))))]);
RDebugUtils.currentLine=7078168;
 //BA.debugLineNum = 7078168;BA.debugLine="Dim HVD_RUTA As String = records(result.Colum";
_hvd_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_RUTA"))))]);
RDebugUtils.currentLine=7078169;
 //BA.debugLineNum = 7078169;BA.debugLine="Dim HVD_LISTAPRECIO As String = records(resul";
_hvd_listaprecio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_LISTAPRECIO"))))]);
RDebugUtils.currentLine=7078171;
 //BA.debugLineNum = 7078171;BA.debugLine="consecutivo = consecutivo +1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=7078172;
 //BA.debugLineNum = 7078172;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=7078174;
 //BA.debugLineNum = 7078174;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, PLACA,BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR, HVD_RUTA, HVD_LISTAPRECIO) 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)(_hvd_placa),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_ruta),(Object)(_hvd_listaprecio)}));
RDebugUtils.currentLine=7078175;
 //BA.debugLineNum = 7078175;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=7078178;
 //BA.debugLineNum = 7078178;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=7078179;
 //BA.debugLineNum = 7078179;BA.debugLine="If tc.RowCount = 0 Then";
if (_tc.getRowCount()==0) { 
RDebugUtils.currentLine=7078181;
 //BA.debugLineNum = 7078181;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, PLACA,BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR, HVD_RUTA, HVD_LISTAPRECIO) 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)(_hvd_placa),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_ruta),(Object)(_hvd_listaprecio)}));
RDebugUtils.currentLine=7078182;
 //BA.debugLineNum = 7078182;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=7078186;
 //BA.debugLineNum = 7078186;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=7078187;
 //BA.debugLineNum = 7078187;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=7078202;
 //BA.debugLineNum = 7078202;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=7078203;
 //BA.debugLineNum = 7078203;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=7078204;
 //BA.debugLineNum = 7078204;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=7078205;
 //BA.debugLineNum = 7078205;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=7078206;
 //BA.debugLineNum = 7078206;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078207;
 //BA.debugLineNum = 7078207;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=7078212;
 //BA.debugLineNum = 7078212;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078213;
 //BA.debugLineNum = 7078213;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078214;
 //BA.debugLineNum = 7078214;BA.debugLine="If result.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=7078215;
 //BA.debugLineNum = 7078215;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group279 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen279 = group279.getSize()
;int index279 = 0;
;
for (; index279 < groupLen279;index279++){
_records = (Object[])(group279.Get(index279));
RDebugUtils.currentLine=7078216;
 //BA.debugLineNum = 7078216;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=7078217;
 //BA.debugLineNum = 7078217;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=7078219;
 //BA.debugLineNum = 7078219;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=7078225;
 //BA.debugLineNum = 7078225;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078226;
 //BA.debugLineNum = 7078226;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078227;
 //BA.debugLineNum = 7078227;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("PAGARES"))) { 
RDebugUtils.currentLine=7078228;
 //BA.debugLineNum = 7078228;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group289 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen289 = group289.getSize()
;int index289 = 0;
;
for (; index289 < groupLen289;index289++){
_records = (Object[])(group289.Get(index289));
RDebugUtils.currentLine=7078230;
 //BA.debugLineNum = 7078230;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=7078231;
 //BA.debugLineNum = 7078231;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=7078233;
 //BA.debugLineNum = 7078233;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=7078238;
 //BA.debugLineNum = 7078238;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078239;
 //BA.debugLineNum = 7078239;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078240;
 //BA.debugLineNum = 7078240;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=7078241;
 //BA.debugLineNum = 7078241;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group299 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen299 = group299.getSize()
;int index299 = 0;
;
for (; index299 < groupLen299;index299++){
_records = (Object[])(group299.Get(index299));
RDebugUtils.currentLine=7078242;
 //BA.debugLineNum = 7078242;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=7078243;
 //BA.debugLineNum = 7078243;BA.debugLine="If cuantos_pedido = CUANTOSP Then";
if ((__ref._cuantos_pedido /*String*/ ).equals(BA.NumberToString(_cuantosp))) { 
RDebugUtils.currentLine=7078245;
 //BA.debugLineNum = 7078245;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=7078247;
 //BA.debugLineNum = 7078247;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=7078255;
 //BA.debugLineNum = 7078255;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078256;
 //BA.debugLineNum = 7078256;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078257;
 //BA.debugLineNum = 7078257;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=7078258;
 //BA.debugLineNum = 7078258;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group312 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen312 = group312.getSize()
;int index312 = 0;
;
for (; index312 < groupLen312;index312++){
_records = (Object[])(group312.Get(index312));
RDebugUtils.currentLine=7078259;
 //BA.debugLineNum = 7078259;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=7078260;
 //BA.debugLineNum = 7078260;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=7078262;
 //BA.debugLineNum = 7078262;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=7078264;
 //BA.debugLineNum = 7078264;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=7078270;
 //BA.debugLineNum = 7078270;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078271;
 //BA.debugLineNum = 7078271;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078272;
 //BA.debugLineNum = 7078272;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=7078273;
 //BA.debugLineNum = 7078273;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group325 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen325 = group325.getSize()
;int index325 = 0;
;
for (; index325 < groupLen325;index325++){
_records = (Object[])(group325.Get(index325));
RDebugUtils.currentLine=7078274;
 //BA.debugLineNum = 7078274;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=7078275;
 //BA.debugLineNum = 7078275;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=7078277;
 //BA.debugLineNum = 7078277;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=7078279;
 //BA.debugLineNum = 7078279;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=7078285;
 //BA.debugLineNum = 7078285;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078286;
 //BA.debugLineNum = 7078286;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078287;
 //BA.debugLineNum = 7078287;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("insert_pedido"))) { 
RDebugUtils.currentLine=7078288;
 //BA.debugLineNum = 7078288;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
 };
 };
RDebugUtils.currentLine=7078292;
 //BA.debugLineNum = 7078292;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078293;
 //BA.debugLineNum = 7078293;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078294;
 //BA.debugLineNum = 7078294;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=7078295;
 //BA.debugLineNum = 7078295;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group344 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen344 = group344.getSize()
;int index344 = 0;
;
for (; index344 < groupLen344;index344++){
_records = (Object[])(group344.Get(index344));
RDebugUtils.currentLine=7078296;
 //BA.debugLineNum = 7078296;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=7078297;
 //BA.debugLineNum = 7078297;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=7078299;
 //BA.debugLineNum = 7078299;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=7078304;
 //BA.debugLineNum = 7078304;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078305;
 //BA.debugLineNum = 7078305;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078306;
 //BA.debugLineNum = 7078306;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=7078307;
 //BA.debugLineNum = 7078307;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group354 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen354 = group354.getSize()
;int index354 = 0;
;
for (; index354 < groupLen354;index354++){
_records = (Object[])(group354.Get(index354));
RDebugUtils.currentLine=7078308;
 //BA.debugLineNum = 7078308;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=7078313;
 //BA.debugLineNum = 7078313;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078314;
 //BA.debugLineNum = 7078314;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078315;
 //BA.debugLineNum = 7078315;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=7078316;
 //BA.debugLineNum = 7078316;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta"))>-1) { 
RDebugUtils.currentLine=7078317;
 //BA.debugLineNum = 7078317;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=7078320;
 //BA.debugLineNum = 7078320;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group365 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen365 = group365.getSize()
;int index365 = 0;
;
for (; index365 < groupLen365;index365++){
_records = (Object[])(group365.Get(index365));
RDebugUtils.currentLine=7078321;
 //BA.debugLineNum = 7078321;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=7078323;
 //BA.debugLineNum = 7078323;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=7078324;
 //BA.debugLineNum = 7078324;BA.debugLine="If l_ctast.Text = \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=7078325;
 //BA.debugLineNum = 7078325;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=7078326;
 //BA.debugLineNum = 7078326;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=7078327;
 //BA.debugLineNum = 7078327;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=7078329;
 //BA.debugLineNum = 7078329;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7078330;
 //BA.debugLineNum = 7078330;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=7078331;
 //BA.debugLineNum = 7078331;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078332;
 //BA.debugLineNum = 7078332;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=7078334;
 //BA.debugLineNum = 7078334;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=7078335;
 //BA.debugLineNum = 7078335;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=7078336;
 //BA.debugLineNum = 7078336;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=7078337;
 //BA.debugLineNum = 7078337;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=7078340;
 //BA.debugLineNum = 7078340;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078341;
 //BA.debugLineNum = 7078341;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078342;
 //BA.debugLineNum = 7078342;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7078343;
 //BA.debugLineNum = 7078343;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }
};
 };
 };
RDebugUtils.currentLine=7078349;
 //BA.debugLineNum = 7078349;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078350;
 //BA.debugLineNum = 7078350;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078351;
 //BA.debugLineNum = 7078351;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
RDebugUtils.currentLine=7078352;
 //BA.debugLineNum = 7078352;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group394 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen394 = group394.getSize()
;int index394 = 0;
;
for (; index394 < groupLen394;index394++){
_records = (Object[])(group394.Get(index394));
RDebugUtils.currentLine=7078354;
 //BA.debugLineNum = 7078354;BA.debugLine="Private lat, lon As Double";
_lat = 0;
_lon = 0;
RDebugUtils.currentLine=7078355;
 //BA.debugLineNum = 7078355;BA.debugLine="lat = 0.0";
_lat = 0.0;
RDebugUtils.currentLine=7078356;
 //BA.debugLineNum = 7078356;BA.debugLine="lon = 0.0";
_lon = 0.0;
RDebugUtils.currentLine=7078357;
 //BA.debugLineNum = 7078357;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=7078358;
 //BA.debugLineNum = 7078358;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=7078359;
 //BA.debugLineNum = 7078359;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=7078361;
 //BA.debugLineNum = 7078361;BA.debugLine="Starter.cedisLocation.Latitude = lat";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
RDebugUtils.currentLine=7078362;
 //BA.debugLineNum = 7078362;BA.debugLine="Starter.cedisLocation.Longitude = lon";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
RDebugUtils.currentLine=7078363;
 //BA.debugLineNum = 7078363;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=7078364;
 //BA.debugLineNum = 7078364;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=7078370;
 //BA.debugLineNum = 7078370;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078371;
 //BA.debugLineNum = 7078371;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078372;
 //BA.debugLineNum = 7078372;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_reparto"))) { 
RDebugUtils.currentLine=7078373;
 //BA.debugLineNum = 7078373;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group412 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen412 = group412.getSize()
;int index412 = 0;
;
for (; index412 < groupLen412;index412++){
_records = (Object[])(group412.Get(index412));
RDebugUtils.currentLine=7078374;
 //BA.debugLineNum = 7078374;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group413 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen413 = group413.getSize()
;int index413 = 0;
;
for (; index413 < groupLen413;index413++){
_k = BA.ObjectToString(group413.Get(index413));
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=7078381;
 //BA.debugLineNum = 7078381;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7078382;
 //BA.debugLineNum = 7078382;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7078383;
 //BA.debugLineNum = 7078383;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) { 
RDebugUtils.currentLine=7078384;
 //BA.debugLineNum = 7078384;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group421 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen421 = group421.getSize()
;int index421 = 0;
;
for (; index421 < groupLen421;index421++){
_records = (Object[])(group421.Get(index421));
RDebugUtils.currentLine=7078385;
 //BA.debugLineNum = 7078385;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group422 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen422 = group422.getSize()
;int index422 = 0;
;
for (; index422 < groupLen422;index422++){
_k = BA.ObjectToString(group422.Get(index422));
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=7078391;
 //BA.debugLineNum = 7078391;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=7078393;
 //BA.debugLineNum = 7078393;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
RDebugUtils.currentLine=7078394;
 //BA.debugLineNum = 7078394;BA.debugLine="If reqs.Size = 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { 
RDebugUtils.currentLine=7078398;
 //BA.debugLineNum = 7078398;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
RDebugUtils.currentLine=7078400;
 //BA.debugLineNum = 7078400;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=7078401;
 //BA.debugLineNum = 7078401;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7078402;
 //BA.debugLineNum = 7078402;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7078403;
 //BA.debugLineNum = 7078403;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=7078405;
 //BA.debugLineNum = 7078405;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=7078408;
 //BA.debugLineNum = 7078408;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=7078418;
 //BA.debugLineNum = 7078418;BA.debugLine="If totalRegistrosTotales > 0 Then";
if (__ref._totalregistrostotales /*int*/ >0) { 
RDebugUtils.currentLine=7078419;
 //BA.debugLineNum = 7078419;BA.debugLine="pbEnvioInfo.Progress = NumberFormat2(((todosRequ";
__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int)(Double.parseDouble(__c.NumberFormat2(((__ref._todosrequest /*int*/ /(double)__ref._totalregistrostotales /*int*/ )*100),(int) (1),(int) (0),(int) (0),__c.False))));
RDebugUtils.currentLine=7078421;
 //BA.debugLineNum = 7078421;BA.debugLine="If pbEnvioInfo.Progress >= 100 Then";
if (__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()>=100) { 
RDebugUtils.currentLine=7078422;
 //BA.debugLineNum = 7078422;BA.debugLine="lEnviaInfo.Text = \"Informacion Enviada \"& CRLF";
__ref._lenviainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Informacion Enviada "+__c.CRLF+"%100"));
 }else {
RDebugUtils.currentLine=7078424;
 //BA.debugLineNum = 7078424;BA.debugLine="lEnviaInfo.Text = \"Enviando Informacion:   %\" &";
__ref._lenviainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Enviando Informacion:   %"+BA.NumberToString(__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress())));
 };
 };
RDebugUtils.currentLine=7078430;
 //BA.debugLineNum = 7078430;BA.debugLine="If todosRequest < totalRegistrosTotales Then";
if (__ref._todosrequest /*int*/ <__ref._totalregistrostotales /*int*/ ) { 
 }else {
RDebugUtils.currentLine=7078433;
 //BA.debugLineNum = 7078433;BA.debugLine="bEnvioInfo.Enabled = True";
__ref._benvioinfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
 };
RDebugUtils.currentLine=7078436;
 //BA.debugLineNum = 7078436;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(reparto_mazapa.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=7995392;
 //BA.debugLineNum = 7995392;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,";
RDebugUtils.currentLine=7995393;
 //BA.debugLineNum = 7995393;BA.debugLine="Log(Value)";
__c.LogImpl("37995393",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=7995395;
 //BA.debugLineNum = 7995395;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu";
_clieasing = __c.Regex.Split(" ",BA.ObjectToString(_value));
RDebugUtils.currentLine=7995396;
 //BA.debugLineNum = 7995396;BA.debugLine="Log(clieasing(0))";
__c.LogImpl("37995396",_clieasing[(int) (0)],0);
RDebugUtils.currentLine=7995398;
 //BA.debugLineNum = 7995398;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=7995399;
 //BA.debugLineNum = 7995399;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=7995400;
 //BA.debugLineNum = 7995400;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=7995401;
 //BA.debugLineNum = 7995401;BA.debugLine="End Sub";
return "";
}
public String  _p_prod_click(reparto_mazapa.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=8192000;
 //BA.debugLineNum = 8192000;BA.debugLine="Private Sub p_prod_Click";
RDebugUtils.currentLine=8192002;
 //BA.debugLineNum = 8192002;BA.debugLine="End Sub";
return "";
}
public String  _penvioinfo_click(reparto_mazapa.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "penvioinfo_click", false))
	 {return ((String) Debug.delegate(ba, "penvioinfo_click", null));}
RDebugUtils.currentLine=8323072;
 //BA.debugLineNum = 8323072;BA.debugLine="Private Sub pEnvioInfo_Click";
RDebugUtils.currentLine=8323074;
 //BA.debugLineNum = 8323074;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(reparto_mazapa.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=6815744;
 //BA.debugLineNum = 6815744;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=6815745;
 //BA.debugLineNum = 6815745;BA.debugLine="pEnvioInfo.Width = Root.Width";
__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=6815746;
 //BA.debugLineNum = 6815746;BA.debugLine="pEnvioInfo.Height = Root.Height";
__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=6815747;
 //BA.debugLineNum = 6815747;BA.debugLine="pEnvioInfo.Left = 0";
__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0));
RDebugUtils.currentLine=6815748;
 //BA.debugLineNum = 6815748;BA.debugLine="pEnvioInfo.Visible = True";
__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6815749;
 //BA.debugLineNum = 6815749;BA.debugLine="pbEnvioInfo.Width = Root.Width * 0.7";
__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.7));
RDebugUtils.currentLine=6815750;
 //BA.debugLineNum = 6815750;BA.debugLine="pbEnvioInfo.Left = Round(Root.Width/2)-(pbEnvioIn";
__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._pbenvioinfo /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=6815751;
 //BA.debugLineNum = 6815751;BA.debugLine="Subs.centraBoton(bEnvioInfo, pEnvioInfo.Width)";
_subs._centraboton /*String*/ (ba,__ref._benvioinfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth());
RDebugUtils.currentLine=6815752;
 //BA.debugLineNum = 6815752;BA.debugLine="Subs.centraEtiqueta(lEnviaInfo, pEnvioInfo.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._lenviainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._penvioinfo /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth());
RDebugUtils.currentLine=6815754;
 //BA.debugLineNum = 6815754;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=6815755;
 //BA.debugLineNum = 6815755;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=6815756;
 //BA.debugLineNum = 6815756;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6815757;
 //BA.debugLineNum = 6815757;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6815758;
 //BA.debugLineNum = 6815758;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6815761;
 //BA.debugLineNum = 6815761;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=6815762;
 //BA.debugLineNum = 6815762;BA.debugLine="cmd.Name = \"select_estatus_MAZAPA\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_estatus_MAZAPA";
RDebugUtils.currentLine=6815763;
 //BA.debugLineNum = 6815763;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ruta.t";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=6815764;
 //BA.debugLineNum = 6815764;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"estatus\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("estatus"));
RDebugUtils.currentLine=6815765;
 //BA.debugLineNum = 6815765;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(reparto_mazapa.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=7602176;
 //BA.debugLineNum = 7602176;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=7602177;
 //BA.debugLineNum = 7602177;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7602178;
 //BA.debugLineNum = 7602178;BA.debugLine="cmd.Name = \"select_cuantos_pedido\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido";
RDebugUtils.currentLine=7602179;
 //BA.debugLineNum = 7602179;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=7602180;
 //BA.debugLineNum = 7602180;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=7602182;
 //BA.debugLineNum = 7602182;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7602183;
 //BA.debugLineNum = 7602183;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_mards";
RDebugUtils.currentLine=7602184;
 //BA.debugLineNum = 7602184;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=7602185;
 //BA.debugLineNum = 7602185;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=7602187;
 //BA.debugLineNum = 7602187;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7602188;
 //BA.debugLineNum = 7602188;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\"";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc";
RDebugUtils.currentLine=7602189;
 //BA.debugLineNum = 7602189;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=7602190;
 //BA.debugLineNum = 7602190;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
__ref._reqmanager /*reparto_mazapa.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=7602191;
 //BA.debugLineNum = 7602191;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7602192;
 //BA.debugLineNum = 7602192;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=7602193;
 //BA.debugLineNum = 7602193;BA.debugLine="End Sub";
return "";
}
public String  _trabajar_click(reparto_mazapa.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=6750208;
 //BA.debugLineNum = 6750208;BA.debugLine="Sub trabajar_Click";
RDebugUtils.currentLine=6750209;
 //BA.debugLineNum = 6750209;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=6750210;
 //BA.debugLineNum = 6750210;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=6750213;
 //BA.debugLineNum = 6750213;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 };
RDebugUtils.currentLine=6750216;
 //BA.debugLineNum = 6750216;BA.debugLine="End Sub";
return "";
}
}