package reparto_izca.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_izca.keymon.lat.c_principal");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_izca.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_izca.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 _a = 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_izca.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_izca.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 anywheresoftware.b4a.objects.Timer _t8 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_carga = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_carga = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_carga = null;
public anywheresoftware.b4a.objects.ProgressBarWrapper _pb_carga = null;
public anywheresoftware.b4a.objects.ProgressBarWrapper _pb_carga2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_carga2 = null;
public anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null;
public anywheresoftware.b4a.objects.Serial _cmp20 = null;
public anywheresoftware.b4a.objects.streams.File.TextWriterWrapper _printer = null;
public int _tamano = 0;
public int _espacio = 0;
public String _blanco = "";
public reparto_izca.keymon.lat.escposprinter _printer1 = null;
public boolean _impresoraconectada = false;
public int _errorimpresora = 0;
public anywheresoftware.b4a.objects.ImageViewWrapper _inventario = null;
public String _pasa_imp = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_imp_inventario = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public boolean _printerisready = false;
public long _lastconnectionattempt = 0L;
public anywheresoftware.b4a.objects.ButtonWrapper _b_impresion_rec = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_visit = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_recha = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_visitados = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_numtickets = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ciego = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_pc_env = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_terpc = null;
public b4a.example3.customlistview _clv_pick_ciego = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pick_ciego = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pick_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_pick_ciego = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cant_pcik = null;
public b4a.example.dateutils _dateutils = null;
public reparto_izca.keymon.lat.main _main = null;
public reparto_izca.keymon.lat.appupdater _appupdater = null;
public reparto_izca.keymon.lat.subs _subs = null;
public reparto_izca.keymon.lat.foto _foto = null;
public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_izca.keymon.lat.starter _starter = null;
public reparto_izca.keymon.lat.tracker _tracker = null;
public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_izca.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=14155776;
 //BA.debugLineNum = 14155776;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=14155777;
 //BA.debugLineNum = 14155777;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=14155778;
 //BA.debugLineNum = 14155778;BA.debugLine="End Sub";
return null;
}
public String  _checachek(reparto_izca.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=14352384;
 //BA.debugLineNum = 14352384;BA.debugLine="Sub checachek";
RDebugUtils.currentLine=14352385;
 //BA.debugLineNum = 14352385;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=14352386;
 //BA.debugLineNum = 14352386;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14352387;
 //BA.debugLineNum = 14352387;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14352388;
 //BA.debugLineNum = 14352388;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then";
if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14352389;
 //BA.debugLineNum = 14352389;BA.debugLine="b_check.Visible = True";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=14352390;
 //BA.debugLineNum = 14352390;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=14352391;
 //BA.debugLineNum = 14352391;BA.debugLine="b_check.Visible =False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=14352393;
 //BA.debugLineNum = 14352393;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14352395;
 //BA.debugLineNum = 14352395;BA.debugLine="End Sub";
return "";
}
public String  _b_carga_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_carga_click", false))
	 {return ((String) Debug.delegate(ba, "b_carga_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _checagestion = null;
RDebugUtils.currentLine=16187392;
 //BA.debugLineNum = 16187392;BA.debugLine="Private Sub B_carga_Click";
RDebugUtils.currentLine=16187393;
 //BA.debugLineNum = 16187393;BA.debugLine="If L_carga.Text = \"LISTO\" And l_carga2.Text = \"LI";
if ((__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO")) { 
RDebugUtils.currentLine=16187394;
 //BA.debugLineNum = 16187394;BA.debugLine="P_carga.Visible = False";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=16187396;
 //BA.debugLineNum = 16187396;BA.debugLine="Dim checagestion As Cursor = Starter.skmt.ExecQu";
_checagestion = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_checagestion = (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=16187397;
 //BA.debugLineNum = 16187397;BA.debugLine="If checagestion.RowCount = 0 Then";
if (_checagestion.getRowCount()==0) { 
RDebugUtils.currentLine=16187398;
 //BA.debugLineNum = 16187398;BA.debugLine="P_carga.Visible = False";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=16187399;
 //BA.debugLineNum = 16187399;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16187400;
 //BA.debugLineNum = 16187400;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
RDebugUtils.currentLine=16187401;
 //BA.debugLineNum = 16187401;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=16187402;
 //BA.debugLineNum = 16187402;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
RDebugUtils.currentLine=16187403;
 //BA.debugLineNum = 16187403;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
RDebugUtils.currentLine=16187404;
 //BA.debugLineNum = 16187404;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
RDebugUtils.currentLine=16187405;
 //BA.debugLineNum = 16187405;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=16187406;
 //BA.debugLineNum = 16187406;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=16187407;
 //BA.debugLineNum = 16187407;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=16187408;
 //BA.debugLineNum = 16187408;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=16187409;
 //BA.debugLineNum = 16187409;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=16187410;
 //BA.debugLineNum = 16187410;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=16187411;
 //BA.debugLineNum = 16187411;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=16187412;
 //BA.debugLineNum = 16187412;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=16187413;
 //BA.debugLineNum = 16187413;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=16187414;
 //BA.debugLineNum = 16187414;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
RDebugUtils.currentLine=16187415;
 //BA.debugLineNum = 16187415;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
RDebugUtils.currentLine=16187416;
 //BA.debugLineNum = 16187416;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=16187417;
 //BA.debugLineNum = 16187417;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
RDebugUtils.currentLine=16187418;
 //BA.debugLineNum = 16187418;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
RDebugUtils.currentLine=16187419;
 //BA.debugLineNum = 16187419;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO");
RDebugUtils.currentLine=16187420;
 //BA.debugLineNum = 16187420;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=16187421;
 //BA.debugLineNum = 16187421;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
__c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=16187423;
 //BA.debugLineNum = 16187423;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
__c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=16187424;
 //BA.debugLineNum = 16187424;BA.debugLine="P_carga.Visible = False";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=16187427;
 //BA.debugLineNum = 16187427;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_izca.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;
anywheresoftware.b4a.sql.SQL.CursorWrapper _numticks = null;
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;
double _rescant10 = 0;
int _pztotal = 0;
int _pztotal2 = 0;
double _rescant11 = 0;
int _pztotal3 = 0;
double _rescant12 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _restafaltante = null;
double _rescant8 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _g8 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _g11 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _g12 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _g13 = null;
RDebugUtils.currentLine=14286848;
 //BA.debugLineNum = 14286848;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=14286850;
 //BA.debugLineNum = 14286850;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 WHERE NV_MOTIVO = 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=14286851;
 //BA.debugLineNum = 14286851;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14286852;
 //BA.debugLineNum = 14286852;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA w";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_MOTIVO <> 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
 };
RDebugUtils.currentLine=14286855;
 //BA.debugLineNum = 14286855;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=14286856;
 //BA.debugLineNum = 14286856;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14286857;
 //BA.debugLineNum = 14286857;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=14286859;
 //BA.debugLineNum = 14286859;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=14286860;
 //BA.debugLineNum = 14286860;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14286861;
 //BA.debugLineNum = 14286861;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 3  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')");
 };
RDebugUtils.currentLine=14286864;
 //BA.debugLineNum = 14286864;BA.debugLine="b_check.visible = False";
__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14286865;
 //BA.debugLineNum = 14286865;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=14286878;
 //BA.debugLineNum = 14286878;BA.debugLine="If EJECUTANDO = 0 Then";
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14286879;
 //BA.debugLineNum = 14286879;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286880;
 //BA.debugLineNum = 14286880;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286881;
 //BA.debugLineNum = 14286881;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286882;
 //BA.debugLineNum = 14286882;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286883;
 //BA.debugLineNum = 14286883;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286884;
 //BA.debugLineNum = 14286884;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14286885;
 //BA.debugLineNum = 14286885;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=14286887;
 //BA.debugLineNum = 14286887;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286888;
 //BA.debugLineNum = 14286888;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=14286889;
 //BA.debugLineNum = 14286889;BA.debugLine="If f.RowCount > 0 Then";
if (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14286890;
 //BA.debugLineNum = 14286890;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286891;
 //BA.debugLineNum = 14286891;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=14286893;
 //BA.debugLineNum = 14286893;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14286894;
 //BA.debugLineNum = 14286894;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14286895;
 //BA.debugLineNum = 14286895;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286896;
 //BA.debugLineNum = 14286896;BA.debugLine="l_rutasP.Text = 0";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286897;
 //BA.debugLineNum = 14286897;BA.debugLine="l_numtickets.Text = 0";
__ref._l_numtickets /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=14286899;
 //BA.debugLineNum = 14286899;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=14286901;
 //BA.debugLineNum = 14286901;BA.debugLine="l_rutasP.Text = \"\"";
__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=14286902;
 //BA.debugLineNum = 14286902;BA.debugLine="For i = 0 To f.RowCount - 1";
{
final int step38 = 1;
final int limit38 = (int) (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit38 ;_i = _i + step38 ) {
RDebugUtils.currentLine=14286903;
 //BA.debugLineNum = 14286903;BA.debugLine="f.Position = i";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14286904;
 //BA.debugLineNum = 14286904;BA.debugLine="If i = 0 Then";
if (_i==0) { 
RDebugUtils.currentLine=14286905;
 //BA.debugLineNum = 14286905;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=14286907;
 //BA.debugLineNum = 14286907;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=14286910;
 //BA.debugLineNum = 14286910;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14286912;
 //BA.debugLineNum = 14286912;BA.debugLine="Dim numticks As Cursor = Starter.skmt.ExecQuery(";
_numticks = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_numticks = (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 HVD_NUM_TICKET) AS TICKET from HIST_VENTAS")));
RDebugUtils.currentLine=14286913;
 //BA.debugLineNum = 14286913;BA.debugLine="numticks.Position = 0";
_numticks.setPosition((int) (0));
RDebugUtils.currentLine=14286914;
 //BA.debugLineNum = 14286914;BA.debugLine="l_numtickets.Text = numticks.GetInt(\"TICKET\")";
__ref._l_numtickets /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_numticks.GetInt("TICKET")));
 };
RDebugUtils.currentLine=14286916;
 //BA.debugLineNum = 14286916;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=14286917;
 //BA.debugLineNum = 14286917;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14286918;
 //BA.debugLineNum = 14286918;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=14286919;
 //BA.debugLineNum = 14286919;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286920;
 //BA.debugLineNum = 14286920;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=14286921;
 //BA.debugLineNum = 14286921;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=14286922;
 //BA.debugLineNum = 14286922;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286923;
 //BA.debugLineNum = 14286923;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14286924;
 //BA.debugLineNum = 14286924;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=14286925;
 //BA.debugLineNum = 14286925;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286936;
 //BA.debugLineNum = 14286936;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14286937;
 //BA.debugLineNum = 14286937;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14286938;
 //BA.debugLineNum = 14286938;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14286940;
 //BA.debugLineNum = 14286940;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14286941;
 //BA.debugLineNum = 14286941;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286942;
 //BA.debugLineNum = 14286942;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286943;
 //BA.debugLineNum = 14286943;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286944;
 //BA.debugLineNum = 14286944;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=14286945;
 //BA.debugLineNum = 14286945;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286946;
 //BA.debugLineNum = 14286946;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=14286949;
 //BA.debugLineNum = 14286949;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286950;
 //BA.debugLineNum = 14286950;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286951;
 //BA.debugLineNum = 14286951;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=14286952;
 //BA.debugLineNum = 14286952;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286953;
 //BA.debugLineNum = 14286953;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=14286954;
 //BA.debugLineNum = 14286954;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14286955;
 //BA.debugLineNum = 14286955;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=14286957;
 //BA.debugLineNum = 14286957;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=14286958;
 //BA.debugLineNum = 14286958;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=14286959;
 //BA.debugLineNum = 14286959;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=14286961;
 //BA.debugLineNum = 14286961;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=14286963;
 //BA.debugLineNum = 14286963;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=14286964;
 //BA.debugLineNum = 14286964;BA.debugLine="f2.Position=0";
__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286967;
 //BA.debugLineNum = 14286967;BA.debugLine="Private MONTO_REC_DIA = 0";
_monto_rec_dia = BA.NumberToString(0);
RDebugUtils.currentLine=14286968;
 //BA.debugLineNum = 14286968;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=14286979;
 //BA.debugLineNum = 14286979;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286980;
 //BA.debugLineNum = 14286980;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286981;
 //BA.debugLineNum = 14286981;BA.debugLine="L.Position = 0";
__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286982;
 //BA.debugLineNum = 14286982;BA.debugLine="f1.Position = 0";
__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14286983;
 //BA.debugLineNum = 14286983;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286984;
 //BA.debugLineNum = 14286984;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=14286985;
 //BA.debugLineNum = 14286985;BA.debugLine="L_MONTOE.Text = 0";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286987;
 //BA.debugLineNum = 14286987;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286988;
 //BA.debugLineNum = 14286988;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=14286989;
 //BA.debugLineNum = 14286989;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286990;
 //BA.debugLineNum = 14286990;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=14286992;
 //BA.debugLineNum = 14286992;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=14286994;
 //BA.debugLineNum = 14286994;BA.debugLine="l_ctast.Text = 0";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286995;
 //BA.debugLineNum = 14286995;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=14286996;
 //BA.debugLineNum = 14286996;BA.debugLine="l_porvisitar.Text = 0";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14286997;
 //BA.debugLineNum = 14286997;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=14286998;
 //BA.debugLineNum = 14286998;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14286999;
 //BA.debugLineNum = 14286999;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14287010;
 //BA.debugLineNum = 14287010;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14287012;
 //BA.debugLineNum = 14287012;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=14287013;
 //BA.debugLineNum = 14287013;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14287014;
 //BA.debugLineNum = 14287014;BA.debugLine="ALMACEN = 0";
__ref._almacen /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14287015;
 //BA.debugLineNum = 14287015;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=14287016;
 //BA.debugLineNum = 14287016;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=14287017;
 //BA.debugLineNum = 14287017;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14287018;
 //BA.debugLineNum = 14287018;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=14287020;
 //BA.debugLineNum = 14287020;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14287021;
 //BA.debugLineNum = 14287021;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step115 = 1;
final int limit115 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit115 ;_i = _i + step115 ) {
RDebugUtils.currentLine=14287022;
 //BA.debugLineNum = 14287022;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14287023;
 //BA.debugLineNum = 14287023;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14287024;
 //BA.debugLineNum = 14287024;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14287025;
 //BA.debugLineNum = 14287025;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_gps_actual_REP";
RDebugUtils.currentLine=14287026;
 //BA.debugLineNum = 14287026;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h";
__ref._cmd /*reparto_izca.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=14287030;
 //BA.debugLineNum = 14287030;BA.debugLine="bu.Initialize";
__ref._bu /*reparto_izca.keymon.lat.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=14287031;
 //BA.debugLineNum = 14287031;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*reparto_izca.keymon.lat.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=14287033;
 //BA.debugLineNum = 14287033;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/  = __ref._batterystatus /*int[]*/ [(int) (0)];
RDebugUtils.currentLine=14287034;
 //BA.debugLineNum = 14287034;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=14287035;
 //BA.debugLineNum = 14287035;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14287036;
 //BA.debugLineNum = 14287036;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=14287037;
 //BA.debugLineNum = 14287037;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14287038;
 //BA.debugLineNum = 14287038;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=14287039;
 //BA.debugLineNum = 14287039;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14287040;
 //BA.debugLineNum = 14287040;BA.debugLine="RUTA_T = 0";
__ref._ruta_t /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=14287041;
 //BA.debugLineNum = 14287041;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=14287042;
 //BA.debugLineNum = 14287042;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._ruta_t /*String*/ ;
RDebugUtils.currentLine=14287043;
 //BA.debugLineNum = 14287043;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14287044;
 //BA.debugLineNum = 14287044;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=14287046;
 //BA.debugLineNum = 14287046;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=14287048;
 //BA.debugLineNum = 14287048;BA.debugLine="If rc.RowCount > 0 Then";
if (_rc.getRowCount()>0) { 
RDebugUtils.currentLine=14287049;
 //BA.debugLineNum = 14287049;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from RECHAZOS"));
RDebugUtils.currentLine=14287050;
 //BA.debugLineNum = 14287050;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo";
{
final int step140 = 1;
final int limit140 = (int) (_rc.getRowCount()-1);
_i3 = (int) (0) ;
for (;_i3 <= limit140 ;_i3 = _i3 + step140 ) {
RDebugUtils.currentLine=14287051;
 //BA.debugLineNum = 14287051;BA.debugLine="rc.Position = i3";
_rc.setPosition(_i3);
RDebugUtils.currentLine=14287054;
 //BA.debugLineNum = 14287054;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=14287057;
 //BA.debugLineNum = 14287057;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=14287059;
 //BA.debugLineNum = 14287059;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=14287060;
 //BA.debugLineNum = 14287060;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from VENTAS"));
RDebugUtils.currentLine=14287061;
 //BA.debugLineNum = 14287061;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas";
{
final int step148 = 1;
final int limit148 = (int) (_vc.getRowCount()-1);
_i4 = (int) (0) ;
for (;_i4 <= limit148 ;_i4 = _i4 + step148 ) {
RDebugUtils.currentLine=14287062;
 //BA.debugLineNum = 14287062;BA.debugLine="vc.Position = i4";
_vc.setPosition(_i4);
RDebugUtils.currentLine=14287065;
 //BA.debugLineNum = 14287065;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=14287068;
 //BA.debugLineNum = 14287068;BA.debugLine="Starter.ENVIA_ULTIMA_GPS";
_starter._envia_ultima_gps /*String*/ ();
RDebugUtils.currentLine=14287073;
 //BA.debugLineNum = 14287073;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=14287074;
 //BA.debugLineNum = 14287074;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=14287075;
 //BA.debugLineNum = 14287075;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=14287076;
 //BA.debugLineNum = 14287076;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=14287078;
 //BA.debugLineNum = 14287078;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=14287079;
 //BA.debugLineNum = 14287079;BA.debugLine="If cancelrecha.RowCount > 0 Then";
if (_cancelrecha.getRowCount()>0) { 
RDebugUtils.currentLine=14287080;
 //BA.debugLineNum = 14287080;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1";
{
final int step160 = 1;
final int limit160 = (int) (_cancelrecha.getRowCount()-1);
_h54 = (int) (0) ;
for (;_h54 <= limit160 ;_h54 = _h54 + step160 ) {
RDebugUtils.currentLine=14287081;
 //BA.debugLineNum = 14287081;BA.debugLine="cancelrecha.Position = h54";
_cancelrecha.setPosition(_h54);
RDebugUtils.currentLine=14287082;
 //BA.debugLineNum = 14287082;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=14287085;
 //BA.debugLineNum = 14287085;BA.debugLine="cancelrecha.Close";
_cancelrecha.Close();
RDebugUtils.currentLine=14287089;
 //BA.debugLineNum = 14287089;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID "))));
RDebugUtils.currentLine=14287091;
 //BA.debugLineNum = 14287091;BA.debugLine="Private rescant As String = 0";
_rescant = BA.NumberToString(0);
RDebugUtils.currentLine=14287092;
 //BA.debugLineNum = 14287092;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287093;
 //BA.debugLineNum = 14287093;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step169 = 1;
final int limit169 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit169 ;_j4 = _j4 + step169 ) {
RDebugUtils.currentLine=14287094;
 //BA.debugLineNum = 14287094;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=14287095;
 //BA.debugLineNum = 14287095;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")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=14287096;
 //BA.debugLineNum = 14287096;BA.debugLine="Dim totalcantped As String";
_totalcantped = "";
RDebugUtils.currentLine=14287097;
 //BA.debugLineNum = 14287097;BA.debugLine="If r6.RowCount > 0 Then";
if (_r6.getRowCount()>0) { 
RDebugUtils.currentLine=14287098;
 //BA.debugLineNum = 14287098;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=14287099;
 //BA.debugLineNum = 14287099;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")";
_totalcantped = _r6.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=14287102;
 //BA.debugLineNum = 14287102;BA.debugLine="totalcantped = 0";
_totalcantped = BA.NumberToString(0);
 };
RDebugUtils.currentLine=14287105;
 //BA.debugLineNum = 14287105;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot";
__c.LogImpl("814287105",_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped,0);
RDebugUtils.currentLine=14287106;
 //BA.debugLineNum = 14287106;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=14287108;
 //BA.debugLineNum = 14287108;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=14287111;
 //BA.debugLineNum = 14287111;BA.debugLine="If rescant = \"NaN\" Then rescant = 0";
if ((_rescant).equals("NaN")) { 
_rescant = BA.NumberToString(0);};
RDebugUtils.currentLine=14287112;
 //BA.debugLineNum = 14287112;BA.debugLine="LogColor(rescant,Colors.Red)";
__c.LogImpl("814287112",_rescant,__c.Colors.Red);
RDebugUtils.currentLine=14287113;
 //BA.debugLineNum = 14287113;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287117;
 //BA.debugLineNum = 14287117;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=14287121;
 //BA.debugLineNum = 14287121;BA.debugLine="Private rescant2 As Double = 0";
_rescant2 = 0;
RDebugUtils.currentLine=14287122;
 //BA.debugLineNum = 14287122;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287123;
 //BA.debugLineNum = 14287123;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step190 = 1;
final int limit190 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit190 ;_j5 = _j5 + step190 ) {
RDebugUtils.currentLine=14287124;
 //BA.debugLineNum = 14287124;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=14287125;
 //BA.debugLineNum = 14287125;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")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=14287126;
 //BA.debugLineNum = 14287126;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=14287128;
 //BA.debugLineNum = 14287128;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=14287129;
 //BA.debugLineNum = 14287129;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=14287130;
 //BA.debugLineNum = 14287130;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=14287133;
 //BA.debugLineNum = 14287133;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0";
if (_rescant2==(double)(Double.parseDouble("NaN"))) { 
_rescant2 = 0;};
RDebugUtils.currentLine=14287134;
 //BA.debugLineNum = 14287134;BA.debugLine="Log(rescant2)";
__c.LogImpl("814287134",BA.NumberToString(_rescant2),0);
RDebugUtils.currentLine=14287135;
 //BA.debugLineNum = 14287135;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287140;
 //BA.debugLineNum = 14287140;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=14287142;
 //BA.debugLineNum = 14287142;BA.debugLine="Private rescantr As String = 0";
_rescantr = BA.NumberToString(0);
RDebugUtils.currentLine=14287143;
 //BA.debugLineNum = 14287143;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=14287144;
 //BA.debugLineNum = 14287144;BA.debugLine="For j4r = 0 To r5r.RowCount -1";
{
final int step205 = 1;
final int limit205 = (int) (_r5r.getRowCount()-1);
_j4r = (int) (0) ;
for (;_j4r <= limit205 ;_j4r = _j4r + step205 ) {
RDebugUtils.currentLine=14287145;
 //BA.debugLineNum = 14287145;BA.debugLine="r5r.Position = j4r";
_r5r.setPosition(_j4r);
RDebugUtils.currentLine=14287146;
 //BA.debugLineNum = 14287146;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")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') "))));
RDebugUtils.currentLine=14287147;
 //BA.debugLineNum = 14287147;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=14287150;
 //BA.debugLineNum = 14287150;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=14287151;
 //BA.debugLineNum = 14287151;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=14287154;
 //BA.debugLineNum = 14287154;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0";
if ((_rescantr).equals("NaN")) { 
_rescantr = BA.NumberToString(0);};
RDebugUtils.currentLine=14287156;
 //BA.debugLineNum = 14287156;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=14287158;
 //BA.debugLineNum = 14287158;BA.debugLine="Log(rescantr)";
__c.LogImpl("814287158",_rescantr,0);
RDebugUtils.currentLine=14287160;
 //BA.debugLineNum = 14287160;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=14287164;
 //BA.debugLineNum = 14287164;BA.debugLine="Private rescant2r As String = 0";
_rescant2r = BA.NumberToString(0);
RDebugUtils.currentLine=14287165;
 //BA.debugLineNum = 14287165;BA.debugLine="If r5r.RowCount > 0 Then";
if (_r5r.getRowCount()>0) { 
RDebugUtils.currentLine=14287166;
 //BA.debugLineNum = 14287166;BA.debugLine="For j5r = 0 To r5r.RowCount -1";
{
final int step219 = 1;
final int limit219 = (int) (_r5r.getRowCount()-1);
_j5r = (int) (0) ;
for (;_j5r <= limit219 ;_j5r = _j5r + step219 ) {
RDebugUtils.currentLine=14287167;
 //BA.debugLineNum = 14287167;BA.debugLine="r5r.Position = j5r";
_r5r.setPosition(_j5r);
RDebugUtils.currentLine=14287168;
 //BA.debugLineNum = 14287168;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")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=14287169;
 //BA.debugLineNum = 14287169;BA.debugLine="r6r.Position = 0";
_r6r.setPosition((int) (0));
RDebugUtils.currentLine=14287171;
 //BA.debugLineNum = 14287171;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=14287172;
 //BA.debugLineNum = 14287172;BA.debugLine="r6r.Close";
_r6r.Close();
 }
};
 };
RDebugUtils.currentLine=14287175;
 //BA.debugLineNum = 14287175;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0";
if ((_rescant2r).equals("NaN")) { 
_rescant2r = BA.NumberToString(0);};
RDebugUtils.currentLine=14287177;
 //BA.debugLineNum = 14287177;BA.debugLine="r5r.Close";
_r5r.Close();
RDebugUtils.currentLine=14287178;
 //BA.debugLineNum = 14287178;BA.debugLine="Log(rescant2r)";
__c.LogImpl("814287178",_rescant2r,0);
RDebugUtils.currentLine=14287179;
 //BA.debugLineNum = 14287179;BA.debugLine="Log(rescant2r+rescantr)";
__c.LogImpl("814287179",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0);
RDebugUtils.currentLine=14287195;
 //BA.debugLineNum = 14287195;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=14287196;
 //BA.debugLineNum = 14287196;BA.debugLine="Private rescant3 As Double";
_rescant3 = 0;
RDebugUtils.currentLine=14287197;
 //BA.debugLineNum = 14287197;BA.debugLine="If r55.RowCount > 0 Then";
if (_r55.getRowCount()>0) { 
RDebugUtils.currentLine=14287198;
 //BA.debugLineNum = 14287198;BA.debugLine="For r75 = 0 To r55.RowCount -1";
{
final int step234 = 1;
final int limit234 = (int) (_r55.getRowCount()-1);
_r75 = (int) (0) ;
for (;_r75 <= limit234 ;_r75 = _r75 + step234 ) {
RDebugUtils.currentLine=14287199;
 //BA.debugLineNum = 14287199;BA.debugLine="r55.Position = r75";
_r55.setPosition(_r75);
RDebugUtils.currentLine=14287200;
 //BA.debugLineNum = 14287200;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_";
_rescant3 = _rescant3+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
RDebugUtils.currentLine=14287201;
 //BA.debugLineNum = 14287201;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=14287205;
 //BA.debugLineNum = 14287205;BA.debugLine="Log(rescant3)";
__c.LogImpl("814287205",BA.NumberToString(_rescant3),0);
RDebugUtils.currentLine=14287206;
 //BA.debugLineNum = 14287206;BA.debugLine="r55.Close";
_r55.Close();
RDebugUtils.currentLine=14287211;
 //BA.debugLineNum = 14287211;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=14287212;
 //BA.debugLineNum = 14287212;BA.debugLine="Private rescant4 As Double";
_rescant4 = 0;
RDebugUtils.currentLine=14287213;
 //BA.debugLineNum = 14287213;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287214;
 //BA.debugLineNum = 14287214;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=14287215;
 //BA.debugLineNum = 14287215;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")";
_rescant4 = (double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")));
 };
RDebugUtils.currentLine=14287217;
 //BA.debugLineNum = 14287217;BA.debugLine="Log(rescant4)";
__c.LogImpl("814287217",BA.NumberToString(_rescant4),0);
RDebugUtils.currentLine=14287218;
 //BA.debugLineNum = 14287218;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287220;
 //BA.debugLineNum = 14287220;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 WHERE PE_TIPO <> 'SOBRANTE' "))));
RDebugUtils.currentLine=14287221;
 //BA.debugLineNum = 14287221;BA.debugLine="Private rescant5 As Double";
_rescant5 = 0;
RDebugUtils.currentLine=14287222;
 //BA.debugLineNum = 14287222;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287223;
 //BA.debugLineNum = 14287223;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=14287224;
 //BA.debugLineNum = 14287224;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")";
_rescant5 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
 };
RDebugUtils.currentLine=14287226;
 //BA.debugLineNum = 14287226;BA.debugLine="Log(rescant5)";
__c.LogImpl("814287226",BA.NumberToString(_rescant5),0);
RDebugUtils.currentLine=14287227;
 //BA.debugLineNum = 14287227;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287232;
 //BA.debugLineNum = 14287232;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=14287233;
 //BA.debugLineNum = 14287233;BA.debugLine="Private rescant6 As Double";
_rescant6 = 0;
RDebugUtils.currentLine=14287234;
 //BA.debugLineNum = 14287234;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287235;
 //BA.debugLineNum = 14287235;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step261 = 1;
final int limit261 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit261 ;_j4 = _j4 + step261 ) {
RDebugUtils.currentLine=14287236;
 //BA.debugLineNum = 14287236;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=14287237;
 //BA.debugLineNum = 14287237;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")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=14287238;
 //BA.debugLineNum = 14287238;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=14287241;
 //BA.debugLineNum = 14287241;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=14287243;
 //BA.debugLineNum = 14287243;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=14287246;
 //BA.debugLineNum = 14287246;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0";
if (_rescant6==(double)(Double.parseDouble("NaN"))) { 
_rescant6 = 0;};
RDebugUtils.currentLine=14287247;
 //BA.debugLineNum = 14287247;BA.debugLine="LogColor(rescant6,Colors.Red)";
__c.LogImpl("814287247",BA.NumberToString(_rescant6),__c.Colors.Red);
RDebugUtils.currentLine=14287248;
 //BA.debugLineNum = 14287248;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287250;
 //BA.debugLineNum = 14287250;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=14287251;
 //BA.debugLineNum = 14287251;BA.debugLine="Private rescant7 As Double";
_rescant7 = 0;
RDebugUtils.currentLine=14287252;
 //BA.debugLineNum = 14287252;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287253;
 //BA.debugLineNum = 14287253;BA.debugLine="For j5 = 0 To r5.RowCount -1";
{
final int step275 = 1;
final int limit275 = (int) (_r5.getRowCount()-1);
_j5 = (int) (0) ;
for (;_j5 <= limit275 ;_j5 = _j5 + step275 ) {
RDebugUtils.currentLine=14287254;
 //BA.debugLineNum = 14287254;BA.debugLine="r5.Position = j5";
_r5.setPosition(_j5);
RDebugUtils.currentLine=14287255;
 //BA.debugLineNum = 14287255;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")))+"' PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=14287256;
 //BA.debugLineNum = 14287256;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=14287258;
 //BA.debugLineNum = 14287258;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=14287259;
 //BA.debugLineNum = 14287259;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=14287262;
 //BA.debugLineNum = 14287262;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0";
if (_rescant7==(double)(Double.parseDouble("NaN"))) { 
_rescant7 = 0;};
RDebugUtils.currentLine=14287263;
 //BA.debugLineNum = 14287263;BA.debugLine="Log(rescant7)";
__c.LogImpl("814287263",BA.NumberToString(_rescant7),0);
RDebugUtils.currentLine=14287264;
 //BA.debugLineNum = 14287264;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287267;
 //BA.debugLineNum = 14287267;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, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2)"))));
RDebugUtils.currentLine=14287268;
 //BA.debugLineNum = 14287268;BA.debugLine="Private rescant10 As Double";
_rescant10 = 0;
RDebugUtils.currentLine=14287269;
 //BA.debugLineNum = 14287269;BA.debugLine="Private pztotal As Int";
_pztotal = 0;
RDebugUtils.currentLine=14287270;
 //BA.debugLineNum = 14287270;BA.debugLine="If r55.RowCount > 0 Then";
if (_r55.getRowCount()>0) { 
RDebugUtils.currentLine=14287271;
 //BA.debugLineNum = 14287271;BA.debugLine="For r75 = 0 To r55.RowCount -1";
{
final int step290 = 1;
final int limit290 = (int) (_r55.getRowCount()-1);
_r75 = (int) (0) ;
for (;_r75 <= limit290 ;_r75 = _r75 + step290 ) {
RDebugUtils.currentLine=14287272;
 //BA.debugLineNum = 14287272;BA.debugLine="r55.Position = r75";
_r55.setPosition(_r75);
RDebugUtils.currentLine=14287273;
 //BA.debugLineNum = 14287273;BA.debugLine="rescant10 = rescant10 + r55.GetString(\"HVD_COST";
_rescant10 = _rescant10+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
RDebugUtils.currentLine=14287274;
 //BA.debugLineNum = 14287274;BA.debugLine="rescant10 = NumberFormat2(rescant10, 0, 2, 2, F";
_rescant10 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant10,(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=14287275;
 //BA.debugLineNum = 14287275;BA.debugLine="pztotal = pztotal +  r55.GetString(\"HVD_CANT\")";
_pztotal = (int) (_pztotal+(double)(Double.parseDouble(_r55.GetString("HVD_CANT"))));
 }
};
 };
RDebugUtils.currentLine=14287278;
 //BA.debugLineNum = 14287278;BA.debugLine="Log(rescant10)";
__c.LogImpl("814287278",BA.NumberToString(_rescant10),0);
RDebugUtils.currentLine=14287279;
 //BA.debugLineNum = 14287279;BA.debugLine="r55.Close";
_r55.Close();
RDebugUtils.currentLine=14287292;
 //BA.debugLineNum = 14287292;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, IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO "))));
RDebugUtils.currentLine=14287293;
 //BA.debugLineNum = 14287293;BA.debugLine="Private pztotal2 As Int";
_pztotal2 = 0;
RDebugUtils.currentLine=14287294;
 //BA.debugLineNum = 14287294;BA.debugLine="Private rescant11 As Double";
_rescant11 = 0;
RDebugUtils.currentLine=14287295;
 //BA.debugLineNum = 14287295;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287296;
 //BA.debugLineNum = 14287296;BA.debugLine="r5.Position = 0";
_r5.setPosition((int) (0));
RDebugUtils.currentLine=14287297;
 //BA.debugLineNum = 14287297;BA.debugLine="rescant11 = r5.GetString(\"PE_COSTO_TOT\")";
_rescant11 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
RDebugUtils.currentLine=14287298;
 //BA.debugLineNum = 14287298;BA.debugLine="pztotal2 = pztotal2 +  r5.GetString(\"PE_CANT\")";
_pztotal2 = (int) (_pztotal2+(double)(Double.parseDouble(_r5.GetString("PE_CANT"))));
 };
RDebugUtils.currentLine=14287300;
 //BA.debugLineNum = 14287300;BA.debugLine="Log(rescant11)";
__c.LogImpl("814287300",BA.NumberToString(_rescant11),0);
RDebugUtils.currentLine=14287301;
 //BA.debugLineNum = 14287301;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287303;
 //BA.debugLineNum = 14287303;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'  AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) "))));
RDebugUtils.currentLine=14287304;
 //BA.debugLineNum = 14287304;BA.debugLine="Private pztotal3 As Int";
_pztotal3 = 0;
RDebugUtils.currentLine=14287305;
 //BA.debugLineNum = 14287305;BA.debugLine="Private rescant12 As Double";
_rescant12 = 0;
RDebugUtils.currentLine=14287306;
 //BA.debugLineNum = 14287306;BA.debugLine="If r5.RowCount > 0 Then";
if (_r5.getRowCount()>0) { 
RDebugUtils.currentLine=14287307;
 //BA.debugLineNum = 14287307;BA.debugLine="For j4 = 0 To r5.RowCount -1";
{
final int step313 = 1;
final int limit313 = (int) (_r5.getRowCount()-1);
_j4 = (int) (0) ;
for (;_j4 <= limit313 ;_j4 = _j4 + step313 ) {
RDebugUtils.currentLine=14287308;
 //BA.debugLineNum = 14287308;BA.debugLine="r5.Position = j4";
_r5.setPosition(_j4);
RDebugUtils.currentLine=14287309;
 //BA.debugLineNum = 14287309;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=14287310;
 //BA.debugLineNum = 14287310;BA.debugLine="r6.Position = 0";
_r6.setPosition((int) (0));
RDebugUtils.currentLine=14287311;
 //BA.debugLineNum = 14287311;BA.debugLine="LogColor(r5.GetString(\"HVD_COSTO_TOT\")&\" / \"& r";
__c.LogImpl("814287311",_r5.GetString("HVD_COSTO_TOT")+" / "+_r5.GetString("HVD_CANT")+" * "+_r5.GetString("HVD_RECHAZOCANT")+" - "+_r6.GetString("PE_CANT"),__c.Colors.Blue);
RDebugUtils.currentLine=14287312;
 //BA.debugLineNum = 14287312;BA.debugLine="LogColor(r6.GetString(\"PE_CANT\"),Colors.Blue)";
__c.LogImpl("814287312",_r6.GetString("PE_CANT"),__c.Colors.Blue);
RDebugUtils.currentLine=14287313;
 //BA.debugLineNum = 14287313;BA.debugLine="rescant12 = rescant12 + ((r5.GetString(\"HVD_COS";
_rescant12 = _rescant12+(((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=14287314;
 //BA.debugLineNum = 14287314;BA.debugLine="pztotal3 = pztotal3 +  (r5.GetString(\"HVD_CANT\"";
_pztotal3 = (int) (_pztotal3+((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=14287315;
 //BA.debugLineNum = 14287315;BA.debugLine="Log(rescant12)";
__c.LogImpl("814287315",BA.NumberToString(_rescant12),0);
RDebugUtils.currentLine=14287316;
 //BA.debugLineNum = 14287316;BA.debugLine="r6.Close";
_r6.Close();
 }
};
 };
RDebugUtils.currentLine=14287319;
 //BA.debugLineNum = 14287319;BA.debugLine="If rescant12 = \"NaN\" Then rescant12 = 0";
if (_rescant12==(double)(Double.parseDouble("NaN"))) { 
_rescant12 = 0;};
RDebugUtils.currentLine=14287320;
 //BA.debugLineNum = 14287320;BA.debugLine="LogColor(rescant12,Colors.Red)";
__c.LogImpl("814287320",BA.NumberToString(_rescant12),__c.Colors.Red);
RDebugUtils.currentLine=14287321;
 //BA.debugLineNum = 14287321;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287324;
 //BA.debugLineNum = 14287324;BA.debugLine="Private restafaltante As Cursor = Starter.skmt.Ex";
_restafaltante = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_restafaltante = (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 where PE_CLIENTEOR = '' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=14287326;
 //BA.debugLineNum = 14287326;BA.debugLine="Private rescant8 As Double = 0";
_rescant8 = 0;
RDebugUtils.currentLine=14287328;
 //BA.debugLineNum = 14287328;BA.debugLine="If restafaltante.RowCount > 0 Then";
if (_restafaltante.getRowCount()>0) { 
RDebugUtils.currentLine=14287329;
 //BA.debugLineNum = 14287329;BA.debugLine="restafaltante.Position = 0";
_restafaltante.setPosition((int) (0));
RDebugUtils.currentLine=14287330;
 //BA.debugLineNum = 14287330;BA.debugLine="rescant8 = NumberFormat2(restafaltante.GetDouble";
_rescant8 = (double)(Double.parseDouble(__c.NumberFormat2(_restafaltante.GetDouble("PE_COSTO_TOT"),(int) (0),(int) (2),(int) (2),__c.False)));
 };
RDebugUtils.currentLine=14287332;
 //BA.debugLineNum = 14287332;BA.debugLine="If rescant8 = \"NaN\" Then rescant8 = 0";
if (_rescant8==(double)(Double.parseDouble("NaN"))) { 
_rescant8 = 0;};
RDebugUtils.currentLine=14287333;
 //BA.debugLineNum = 14287333;BA.debugLine="Log(rescant8)";
__c.LogImpl("814287333",BA.NumberToString(_rescant8),0);
RDebugUtils.currentLine=14287334;
 //BA.debugLineNum = 14287334;BA.debugLine="r5.Close";
_r5.Close();
RDebugUtils.currentLine=14287336;
 //BA.debugLineNum = 14287336;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=14287337;
 //BA.debugLineNum = 14287337;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=14287338;
 //BA.debugLineNum = 14287338;BA.debugLine="Log((rescant3 &\"   +   \"& rescant4 &\"   +   \"& re";
__c.LogImpl("814287338",(BA.NumberToString(_rescant3)+"   +   "+BA.NumberToString(_rescant4)+"   +   "+BA.NumberToString(_rescant5)+"   +   "+BA.NumberToString(_rescant6)+"   +   "+BA.NumberToString(_rescant7)),0);
RDebugUtils.currentLine=14287341;
 //BA.debugLineNum = 14287341;BA.debugLine="Dim g8 As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_g8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_g8 = (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")));
RDebugUtils.currentLine=14287342;
 //BA.debugLineNum = 14287342;BA.debugLine="g8.Position = 0";
_g8.setPosition((int) (0));
RDebugUtils.currentLine=14287343;
 //BA.debugLineNum = 14287343;BA.debugLine="Dim g11 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_g11 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_g11 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion <> 0")));
RDebugUtils.currentLine=14287344;
 //BA.debugLineNum = 14287344;BA.debugLine="g11.Position = 0";
_g11.setPosition((int) (0));
RDebugUtils.currentLine=14287345;
 //BA.debugLineNum = 14287345;BA.debugLine="Dim g12 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_g12 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_g12 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 2")));
RDebugUtils.currentLine=14287346;
 //BA.debugLineNum = 14287346;BA.debugLine="g12.Position = 0";
_g12.setPosition((int) (0));
RDebugUtils.currentLine=14287347;
 //BA.debugLineNum = 14287347;BA.debugLine="Dim g13 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_g13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_g13 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 3")));
RDebugUtils.currentLine=14287348;
 //BA.debugLineNum = 14287348;BA.debugLine="g13.Position = 0";
_g13.setPosition((int) (0));
RDebugUtils.currentLine=14287350;
 //BA.debugLineNum = 14287350;BA.debugLine="B4XPages.MainPage.monto_entregadoactual  = Number";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._monto_entregadoactual /*String*/  = __c.NumberFormat2((_rescant10+_rescant11+_rescant12),(int) (0),(int) (2),(int) (2),__c.False);
RDebugUtils.currentLine=14287352;
 //BA.debugLineNum = 14287352;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287353;
 //BA.debugLineNum = 14287353;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287354;
 //BA.debugLineNum = 14287354;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/  = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287355;
 //BA.debugLineNum = 14287355;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287356;
 //BA.debugLineNum = 14287356;BA.debugLine="B4XPages.MainPage.montoActual =  Round2(g8.GetStr";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoactual /*String*/  = BA.NumberToString(__c.Round2((double)(Double.parseDouble(_g8.GetString("HVD_COSTO_TOT"))),(int) (2)));
RDebugUtils.currentLine=14287357;
 //BA.debugLineNum = 14287357;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/  = __ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287358;
 //BA.debugLineNum = 14287358;BA.debugLine="B4XPages.MainPage.visitadostotales = g11.GetStrin";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._visitadostotales /*String*/  = _g11.GetString("cuenta");
RDebugUtils.currentLine=14287360;
 //BA.debugLineNum = 14287360;BA.debugLine="B4XPages.MainPage.entregas = g12.GetString(\"cuent";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._entregas /*String*/  = _g12.GetString("cuenta");
RDebugUtils.currentLine=14287361;
 //BA.debugLineNum = 14287361;BA.debugLine="B4XPages.MainPage.rechazos = g13.GetString(\"cuent";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rechazos /*String*/  = _g13.GetString("cuenta");
RDebugUtils.currentLine=14287362;
 //BA.debugLineNum = 14287362;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/  = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287363;
 //BA.debugLineNum = 14287363;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/  = __ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=14287365;
 //BA.debugLineNum = 14287365;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=14287368;
 //BA.debugLineNum = 14287368;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=14287369;
 //BA.debugLineNum = 14287369;BA.debugLine="Label9.Visible = True";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14287370;
 //BA.debugLineNum = 14287370;BA.debugLine="L_MONTOE.Visible = True";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14287379;
 //BA.debugLineNum = 14287379;BA.debugLine="b_venta_emp.Visible = True";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=14287381;
 //BA.debugLineNum = 14287381;BA.debugLine="Label9.Visible = False  '''' PRUEBAS MOVER A FAL";
__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14287382;
 //BA.debugLineNum = 14287382;BA.debugLine="L_MONTOE.Visible = False";
__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14287383;
 //BA.debugLineNum = 14287383;BA.debugLine="b_venta_emp.Visible = False";
__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=14287386;
 //BA.debugLineNum = 14287386;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14287387;
 //BA.debugLineNum = 14287387;BA.debugLine="b_imp_inventario.Visible = False";
__ref._b_imp_inventario /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=14287389;
 //BA.debugLineNum = 14287389;BA.debugLine="b_imp_inventario.Visible = True";
__ref._b_imp_inventario /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=14287397;
 //BA.debugLineNum = 14287397;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR";
__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*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"})));
RDebugUtils.currentLine=14287398;
 //BA.debugLineNum = 14287398;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14287399;
 //BA.debugLineNum = 14287399;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14287400;
 //BA.debugLineNum = 14287400;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
_starter._mac_impresora /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR");
 };
RDebugUtils.currentLine=14287402;
 //BA.debugLineNum = 14287402;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
if ((_starter._mac_impresora /*String*/ ).equals("")) { 
_starter._mac_impresora /*String*/  = "0";};
RDebugUtils.currentLine=14287404;
 //BA.debugLineNum = 14287404;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1");
RDebugUtils.currentLine=14287405;
 //BA.debugLineNum = 14287405;BA.debugLine="If Printer1.IsConnected = False Then";
if (__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { 
 }else {
RDebugUtils.currentLine=14287409;
 //BA.debugLineNum = 14287409;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=14287410;
 //BA.debugLineNum = 14287410;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=14287411;
 //BA.debugLineNum = 14287411;BA.debugLine="Log(\"2\")";
__c.LogImpl("814287411","2",0);
 };
RDebugUtils.currentLine=14287415;
 //BA.debugLineNum = 14287415;BA.debugLine="End Sub";
return "";
}
public String  _b_check_click(reparto_izca.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=15663104;
 //BA.debugLineNum = 15663104;BA.debugLine="Private Sub b_check_Click";
RDebugUtils.currentLine=15663106;
 //BA.debugLineNum = 15663106;BA.debugLine="B4XPages.ShowPage(\"checklist\")";
_b4xpages._showpage /*String*/ (ba,"checklist");
RDebugUtils.currentLine=15663108;
 //BA.debugLineNum = 15663108;BA.debugLine="End Sub";
return "";
}
public String  _b_clieprod_click(reparto_izca.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.sql.SQL.CursorWrapper _ch = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _ch1 = 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 _hjf = 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=15400960;
 //BA.debugLineNum = 15400960;BA.debugLine="Sub B_CLIEPROD_Click";
RDebugUtils.currentLine=15400961;
 //BA.debugLineNum = 15400961;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=15400962;
 //BA.debugLineNum = 15400962;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=15400964;
 //BA.debugLineNum = 15400964;BA.debugLine="BUSCA.Visible = True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400965;
 //BA.debugLineNum = 15400965;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15400966;
 //BA.debugLineNum = 15400966;BA.debugLine="trabajar.Visible = True";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400967;
 //BA.debugLineNum = 15400967;BA.debugLine="B_CLIEPROD.Visible = True";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400968;
 //BA.debugLineNum = 15400968;BA.debugLine="Panel1.Visible = True";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400969;
 //BA.debugLineNum = 15400969;BA.debugLine="Panel1.BringToFront";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=15400970;
 //BA.debugLineNum = 15400970;BA.debugLine="Panel1.Width = Root.Width";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=15400971;
 //BA.debugLineNum = 15400971;BA.debugLine="Panel1.Height = Root.Height";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=15400972;
 //BA.debugLineNum = 15400972;BA.debugLine="B_REGRESA.Top = Panel1.Height - B_REGRESA.Height";
__ref._b_regresa /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_regresa /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()));
RDebugUtils.currentLine=15400973;
 //BA.debugLineNum = 15400973;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15400975;
 //BA.debugLineNum = 15400975;BA.debugLine="Dim ch As Cursor = Starter.skmt.ExecQuery(\"selec";
_ch = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ch = (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 visit from kmt_info WHERE gestion = 2")));
RDebugUtils.currentLine=15400976;
 //BA.debugLineNum = 15400976;BA.debugLine="ch.Position = 0";
_ch.setPosition((int) (0));
RDebugUtils.currentLine=15400977;
 //BA.debugLineNum = 15400977;BA.debugLine="L_clientes_visit.Text = ch.GetInt(\"visit\")";
__ref._l_clientes_visit /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch.GetInt("visit")));
RDebugUtils.currentLine=15400979;
 //BA.debugLineNum = 15400979;BA.debugLine="Dim ch1 As Cursor = Starter.skmt.ExecQuery(\"sele";
_ch1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ch1 = (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 rechazo from kmt_info WHERE gestion = 3")));
RDebugUtils.currentLine=15400980;
 //BA.debugLineNum = 15400980;BA.debugLine="ch1.Position = 0";
_ch1.setPosition((int) (0));
RDebugUtils.currentLine=15400981;
 //BA.debugLineNum = 15400981;BA.debugLine="l_clientes_recha.Text = ch1.GetInt(\"rechazo\")";
__ref._l_clientes_recha /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")));
RDebugUtils.currentLine=15400982;
 //BA.debugLineNum = 15400982;BA.debugLine="l_clientes_visitados.Text = ch1.GetInt(\"rechazo\"";
__ref._l_clientes_visitados /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")+_ch.GetInt("visit")));
RDebugUtils.currentLine=15400984;
 //BA.debugLineNum = 15400984;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=15400985;
 //BA.debugLineNum = 15400985;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=15400986;
 //BA.debugLineNum = 15400986;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=15400987;
 //BA.debugLineNum = 15400987;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=15400988;
 //BA.debugLineNum = 15400988;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=15400989;
 //BA.debugLineNum = 15400989;BA.debugLine="label1.TextSize = 16";
_label1.setTextSize((float) (16));
RDebugUtils.currentLine=15400990;
 //BA.debugLineNum = 15400990;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=15400991;
 //BA.debugLineNum = 15400991;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=15400992;
 //BA.debugLineNum = 15400992;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=15400993;
 //BA.debugLineNum = 15400993;BA.debugLine="label2.TextSize = 16";
_label2.setTextSize((float) (16));
RDebugUtils.currentLine=15400994;
 //BA.debugLineNum = 15400994;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=15400996;
 //BA.debugLineNum = 15400996;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15400997;
 //BA.debugLineNum = 15400997;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step33 = 1;
final int limit33 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit33 ;_i = _i + step33 ) {
RDebugUtils.currentLine=15400998;
 //BA.debugLineNum = 15400998;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15400999;
 //BA.debugLineNum = 15400999;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("2")) { 
RDebugUtils.currentLine=15401000;
 //BA.debugLineNum = 15401000;BA.debugLine="ESTATUS = \"ENTREGADO\"";
__ref._estatus /*String*/  = "ENTREGADO";
RDebugUtils.currentLine=15401001;
 //BA.debugLineNum = 15401001;BA.debugLine="Log(\"entrega\")";
__c.LogImpl("815401001","entrega",0);
 }else 
{RDebugUtils.currentLine=15401002;
 //BA.debugLineNum = 15401002;BA.debugLine="ELSE IF c.GetString(\"gestion\") = \"3\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("3")) { 
RDebugUtils.currentLine=15401003;
 //BA.debugLineNum = 15401003;BA.debugLine="Log(\"no entrega\")";
__c.LogImpl("815401003","no entrega",0);
RDebugUtils.currentLine=15401004;
 //BA.debugLineNum = 15401004;BA.debugLine="ESTATUS = \"RECHAZADO\"";
__ref._estatus /*String*/  = "RECHAZADO";
 }else {
RDebugUtils.currentLine=15401006;
 //BA.debugLineNum = 15401006;BA.debugLine="ESTATUS = \"SIN ESTATUS\"";
__ref._estatus /*String*/  = "SIN ESTATUS";
 }}
;
RDebugUtils.currentLine=15401011;
 //BA.debugLineNum = 15401011;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then";
if ((__ref._estatus /*String*/ ).equals("ENTREGADO")) { 
RDebugUtils.currentLine=15401012;
 //BA.debugLineNum = 15401012;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=15401014;
 //BA.debugLineNum = 15401014;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=15401015;
 //BA.debugLineNum = 15401015;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=15401016;
 //BA.debugLineNum = 15401016;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=15401017;
 //BA.debugLineNum = 15401017;BA.debugLine="For hjf = 0 To vc.RowCount - 1";
{
final int step49 = 1;
final int limit49 = (int) (_vc.getRowCount()-1);
_hjf = (int) (0) ;
for (;_hjf <= limit49 ;_hjf = _hjf + step49 ) {
RDebugUtils.currentLine=15401018;
 //BA.debugLineNum = 15401018;BA.debugLine="vc.Position = hjf";
_vc.setPosition(_hjf);
RDebugUtils.currentLine=15401020;
 //BA.debugLineNum = 15401020;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=15401021;
 //BA.debugLineNum = 15401021;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=15401026;
 //BA.debugLineNum = 15401026;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=15401027;
 //BA.debugLineNum = 15401027;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=15401028;
 //BA.debugLineNum = 15401028;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=15401029;
 //BA.debugLineNum = 15401029;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=15401030;
 //BA.debugLineNum = 15401030;BA.debugLine="For h = 0 To vc2.RowCount - 1";
{
final int step59 = 1;
final int limit59 = (int) (_vc2.getRowCount()-1);
_h = (int) (0) ;
for (;_h <= limit59 ;_h = _h + step59 ) {
RDebugUtils.currentLine=15401031;
 //BA.debugLineNum = 15401031;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=15401032;
 //BA.debugLineNum = 15401032;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=15401033;
 //BA.debugLineNum = 15401033;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=15401034;
 //BA.debugLineNum = 15401034;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=15401035;
 //BA.debugLineNum = 15401035;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=15401036;
 //BA.debugLineNum = 15401036;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=15401037;
 //BA.debugLineNum = 15401037;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=15401043;
 //BA.debugLineNum = 15401043;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=15401044;
 //BA.debugLineNum = 15401044;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=15401045;
 //BA.debugLineNum = 15401045;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=15401046;
 //BA.debugLineNum = 15401046;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=15401048;
 //BA.debugLineNum = 15401048;BA.debugLine="For k = 0 To vc4.RowCount - 1";
{
final int step74 = 1;
final int limit74 = (int) (_vc4.getRowCount()-1);
_k = (int) (0) ;
for (;_k <= limit74 ;_k = _k + step74 ) {
RDebugUtils.currentLine=15401049;
 //BA.debugLineNum = 15401049;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=15401050;
 //BA.debugLineNum = 15401050;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=15401051;
 //BA.debugLineNum = 15401051;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=15401052;
 //BA.debugLineNum = 15401052;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=15401053;
 //BA.debugLineNum = 15401053;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=15401055;
 //BA.debugLineNum = 15401055;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=15401056;
 //BA.debugLineNum = 15401056;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=15401057;
 //BA.debugLineNum = 15401057;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=15401059;
 //BA.debugLineNum = 15401059;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=15401060;
 //BA.debugLineNum = 15401060;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=15401069;
 //BA.debugLineNum = 15401069;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=15401070;
 //BA.debugLineNum = 15401070;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=15401071;
 //BA.debugLineNum = 15401071;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=15401072;
 //BA.debugLineNum = 15401072;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=15401073;
 //BA.debugLineNum = 15401073;BA.debugLine="For x = 0 To c4.RowCount -1";
{
final int step95 = 1;
final int limit95 = (int) (_c4.getRowCount()-1);
_x = (int) (0) ;
for (;_x <= limit95 ;_x = _x + step95 ) {
RDebugUtils.currentLine=15401074;
 //BA.debugLineNum = 15401074;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=15401075;
 //BA.debugLineNum = 15401075;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=15401076;
 //BA.debugLineNum = 15401076;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=15401081;
 //BA.debugLineNum = 15401081;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=15401082;
 //BA.debugLineNum = 15401082;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=15401084;
 //BA.debugLineNum = 15401084;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=15401085;
 //BA.debugLineNum = 15401085;BA.debugLine="Log(\"si entre2\")";
__c.LogImpl("815401085","si entre2",0);
 }else 
{RDebugUtils.currentLine=15401087;
 //BA.debugLineNum = 15401087;BA.debugLine="Else If ESTATUS = \"RECHAZADO\" Then";
if ((__ref._estatus /*String*/ ).equals("RECHAZADO")) { 
RDebugUtils.currentLine=15401089;
 //BA.debugLineNum = 15401089;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=15401091;
 //BA.debugLineNum = 15401091;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=15401092;
 //BA.debugLineNum = 15401092;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=15401093;
 //BA.debugLineNum = 15401093;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=15401094;
 //BA.debugLineNum = 15401094;BA.debugLine="For hjf = 0 To vc.RowCount - 1";
{
final int step110 = 1;
final int limit110 = (int) (_vc.getRowCount()-1);
_hjf = (int) (0) ;
for (;_hjf <= limit110 ;_hjf = _hjf + step110 ) {
RDebugUtils.currentLine=15401095;
 //BA.debugLineNum = 15401095;BA.debugLine="vc.Position = hjf";
_vc.setPosition(_hjf);
RDebugUtils.currentLine=15401096;
 //BA.debugLineNum = 15401096;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=15401098;
 //BA.debugLineNum = 15401098;BA.debugLine="arti = arti + (vc.GetString(\"HVD_RECHAZOCAN";
_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT")))));
RDebugUtils.currentLine=15401099;
 //BA.debugLineNum = 15401099;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=15401104;
 //BA.debugLineNum = 15401104;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=15401105;
 //BA.debugLineNum = 15401105;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=15401106;
 //BA.debugLineNum = 15401106;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=15401107;
 //BA.debugLineNum = 15401107;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=15401108;
 //BA.debugLineNum = 15401108;BA.debugLine="For h = 0 To vc2.RowCount - 1";
{
final int step121 = 1;
final int limit121 = (int) (_vc2.getRowCount()-1);
_h = (int) (0) ;
for (;_h <= limit121 ;_h = _h + step121 ) {
RDebugUtils.currentLine=15401109;
 //BA.debugLineNum = 15401109;BA.debugLine="vc2.Position = h";
_vc2.setPosition(_h);
RDebugUtils.currentLine=15401110;
 //BA.debugLineNum = 15401110;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=15401111;
 //BA.debugLineNum = 15401111;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=15401112;
 //BA.debugLineNum = 15401112;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=15401113;
 //BA.debugLineNum = 15401113;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=15401114;
 //BA.debugLineNum = 15401114;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=15401115;
 //BA.debugLineNum = 15401115;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_RECHAZ";
_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble((_vc2.GetString("HVD_RECHAZOCANT")))));
 };
 }
};
 };
RDebugUtils.currentLine=15401121;
 //BA.debugLineNum = 15401121;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=15401122;
 //BA.debugLineNum = 15401122;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=15401123;
 //BA.debugLineNum = 15401123;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=15401124;
 //BA.debugLineNum = 15401124;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=15401126;
 //BA.debugLineNum = 15401126;BA.debugLine="For k = 0 To vc4.RowCount - 1";
{
final int step136 = 1;
final int limit136 = (int) (_vc4.getRowCount()-1);
_k = (int) (0) ;
for (;_k <= limit136 ;_k = _k + step136 ) {
RDebugUtils.currentLine=15401127;
 //BA.debugLineNum = 15401127;BA.debugLine="vc4.Position = k";
_vc4.setPosition(_k);
RDebugUtils.currentLine=15401128;
 //BA.debugLineNum = 15401128;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=15401129;
 //BA.debugLineNum = 15401129;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=15401130;
 //BA.debugLineNum = 15401130;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=15401131;
 //BA.debugLineNum = 15401131;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=15401133;
 //BA.debugLineNum = 15401133;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=15401134;
 //BA.debugLineNum = 15401134;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=15401135;
 //BA.debugLineNum = 15401135;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=15401137;
 //BA.debugLineNum = 15401137;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=15401138;
 //BA.debugLineNum = 15401138;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_RECHA";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT")))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=15401147;
 //BA.debugLineNum = 15401147;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=15401148;
 //BA.debugLineNum = 15401148;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=15401149;
 //BA.debugLineNum = 15401149;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=15401150;
 //BA.debugLineNum = 15401150;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=15401151;
 //BA.debugLineNum = 15401151;BA.debugLine="For x = 0 To c4.RowCount -1";
{
final int step157 = 1;
final int limit157 = (int) (_c4.getRowCount()-1);
_x = (int) (0) ;
for (;_x <= limit157 ;_x = _x + step157 ) {
RDebugUtils.currentLine=15401152;
 //BA.debugLineNum = 15401152;BA.debugLine="c4.Position = x";
_c4.setPosition(_x);
RDebugUtils.currentLine=15401153;
 //BA.debugLineNum = 15401153;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=15401154;
 //BA.debugLineNum = 15401154;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=15401159;
 //BA.debugLineNum = 15401159;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=15401160;
 //BA.debugLineNum = 15401160;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=15401162;
 //BA.debugLineNum = 15401162;BA.debugLine="Log(\"si entre\")";
__c.LogImpl("815401162","si entre",0);
RDebugUtils.currentLine=15401163;
 //BA.debugLineNum = 15401163;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=15401200;
 //BA.debugLineNum = 15401200;BA.debugLine="End Sub";
return "";
}
public void  _b_imp_inventario_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_imp_inventario_click", false))
	 {Debug.delegate(ba, "b_imp_inventario_click", null); return;}
ResumableSub_b_imp_inventario_Click rsub = new ResumableSub_b_imp_inventario_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_imp_inventario_Click extends BA.ResumableSub {
public ResumableSub_b_imp_inventario_Click(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_principal __ref;
reparto_izca.keymon.lat.c_principal parent;
int _cont = 0;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
reparto_izca.keymon.lat.escposprinter._animage _myimage = null;
String _sdate = "";
String _stime = "";
int _i = 0;
String _firstchar = "";
String _productoinven = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _sumainv = null;
int step56;
int limit56;
int step62;
int limit62;

@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=16515103;
 //BA.debugLineNum = 16515103;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=16515104;
 //BA.debugLineNum = 16515104;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=16515105;
 //BA.debugLineNum = 16515105;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

case 1:
//if
this.state = 38;
if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { 
this.state = 3;
}else {
this.state = 21;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=16515107;
 //BA.debugLineNum = 16515107;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=16515108;
 //BA.debugLineNum = 16515108;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=16515109;
 //BA.debugLineNum = 16515109;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

case 4:
//do while
this.state = 19;
while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) {
this.state = 6;
if (true) break;
}
if (true) break;

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=16515110;
 //BA.debugLineNum = 16515110;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000));
this.state = 57;
return;
case 57:
//C
this.state = 7;
;
RDebugUtils.currentLine=16515111;
 //BA.debugLineNum = 16515111;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=16515112;
 //BA.debugLineNum = 16515112;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
if (true) break;

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

case 9:
//C
this.state = 12;
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 12:
//C
this.state = 13;
;
RDebugUtils.currentLine=16515113;
 //BA.debugLineNum = 16515113;BA.debugLine="If cont > 15 Then impresoraConectada = True";
if (true) break;

case 13:
//if
this.state = 18;
if (_cont>15) { 
this.state = 15;
;}if (true) break;

case 15:
//C
this.state = 18;
__ref._impresoraconectada /*boolean*/  = parent.__c.True;
if (true) break;

case 18:
//C
this.state = 4;
;
 if (true) break;

case 19:
//C
this.state = 38;
;
RDebugUtils.currentLine=16515115;
 //BA.debugLineNum = 16515115;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (500));
this.state = 58;
return;
case 58:
//C
this.state = 38;
;
RDebugUtils.currentLine=16515116;
 //BA.debugLineNum = 16515116;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=16515119;
 //BA.debugLineNum = 16515119;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=16515120;
 //BA.debugLineNum = 16515120;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=16515121;
 //BA.debugLineNum = 16515121;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

case 22:
//do while
this.state = 37;
while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=16515122;
 //BA.debugLineNum = 16515122;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000));
this.state = 59;
return;
case 59:
//C
this.state = 25;
;
RDebugUtils.currentLine=16515123;
 //BA.debugLineNum = 16515123;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=16515124;
 //BA.debugLineNum = 16515124;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

case 25:
//if
this.state = 30;
if (_cont==2) { 
this.state = 27;
;}if (true) break;

case 27:
//C
this.state = 30;
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 30:
//C
this.state = 31;
;
RDebugUtils.currentLine=16515125;
 //BA.debugLineNum = 16515125;BA.debugLine="If cont > 4 Then impresoraConectada = True";
if (true) break;

case 31:
//if
this.state = 36;
if (_cont>4) { 
this.state = 33;
;}if (true) break;

case 33:
//C
this.state = 36;
__ref._impresoraconectada /*boolean*/  = parent.__c.True;
if (true) break;

case 36:
//C
this.state = 22;
;
 if (true) break;

case 37:
//C
this.state = 38;
;
RDebugUtils.currentLine=16515127;
 //BA.debugLineNum = 16515127;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (500));
this.state = 60;
return;
case 60:
//C
this.state = 38;
;
RDebugUtils.currentLine=16515128;
 //BA.debugLineNum = 16515128;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=16515131;
 //BA.debugLineNum = 16515131;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=16515132;
 //BA.debugLineNum = 16515132;BA.debugLine="ESPACIO = 28";
__ref._espacio /*int*/  = (int) (28);
RDebugUtils.currentLine=16515133;
 //BA.debugLineNum = 16515133;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=16515134;
 //BA.debugLineNum = 16515134;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=16515135;
 //BA.debugLineNum = 16515135;BA.debugLine="Printer1.Justify= 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=16515136;
 //BA.debugLineNum = 16515136;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"inventarios";
_bmp.InitializeResize(parent.__c.File.getDirAssets(),"inventarios.jpg",(int) (92),(int) (92),parent.__c.True);
RDebugUtils.currentLine=16515137;
 //BA.debugLineNum = 16515137;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage(";
_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._imagetobwimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_bmp);
RDebugUtils.currentLine=16515138;
 //BA.debugLineNum = 16515138;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._ditherimage2d /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_myimage,(int) (128));
RDebugUtils.currentLine=16515139;
 //BA.debugLineNum = 16515139;BA.debugLine="myimage= Printer1.PackImage(myimage)";
_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._packimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_myimage);
RDebugUtils.currentLine=16515140;
 //BA.debugLineNum = 16515140;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF);
RDebugUtils.currentLine=16515141;
 //BA.debugLineNum = 16515141;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF);
RDebugUtils.currentLine=16515142;
 //BA.debugLineNum = 16515142;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._reverse /*String*/ );
RDebugUtils.currentLine=16515143;
 //BA.debugLineNum = 16515143;BA.debugLine="Printer1.PrintImage(myimage)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._printimage /*int*/ (null,_myimage);
RDebugUtils.currentLine=16515144;
 //BA.debugLineNum = 16515144;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._unreverse /*String*/ );
RDebugUtils.currentLine=16515145;
 //BA.debugLineNum = 16515145;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515146;
 //BA.debugLineNum = 16515146;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c = (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_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=16515147;
 //BA.debugLineNum = 16515147;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label.setTextColor(parent.__c.Colors.White);
RDebugUtils.currentLine=16515148;
 //BA.debugLineNum = 16515148;BA.debugLine="lv_prod_Prin.Clear";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=16515149;
 //BA.debugLineNum = 16515149;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16515150;
 //BA.debugLineNum = 16515150;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=16515151;
 //BA.debugLineNum = 16515151;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=16515152;
 //BA.debugLineNum = 16515152;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=16515153;
 //BA.debugLineNum = 16515153;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=16515154;
 //BA.debugLineNum = 16515154;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=16515155;
 //BA.debugLineNum = 16515155;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha: "+_sdate+parent.__c.CRLF);
RDebugUtils.currentLine=16515156;
 //BA.debugLineNum = 16515156;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Hora: "+_stime+parent.__c.CRLF);
RDebugUtils.currentLine=16515157;
 //BA.debugLineNum = 16515157;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Ruta: "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=16515158;
 //BA.debugLineNum = 16515158;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF);
RDebugUtils.currentLine=16515160;
 //BA.debugLineNum = 16515160;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515161;
 //BA.debugLineNum = 16515161;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=16515162;
 //BA.debugLineNum = 16515162;BA.debugLine="For i = 0 To c.RowCount - 1";
if (true) break;

case 42:
//for
this.state = 55;
step56 = 1;
limit56 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 61;
if (true) break;

case 61:
//C
this.state = 55;
if ((step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56)) this.state = 44;
if (true) break;

case 62:
//C
this.state = 61;
_i = ((int)(0 + _i + step56)) ;
if (true) break;

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=16515163;
 //BA.debugLineNum = 16515163;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16515165;
 //BA.debugLineNum = 16515165;BA.debugLine="Printer1.WriteString(\"-----------INVENTARIO----";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------INVENTARIO-----------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515166;
 //BA.debugLineNum = 16515166;BA.debugLine="Printer1.WriteString(\"-------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515167;
 //BA.debugLineNum = 16515167;BA.debugLine="Printer1.WriteString(\"Cant.      Producto\" &  C";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Producto"+parent.__c.CRLF);
RDebugUtils.currentLine=16515168;
 //BA.debugLineNum = 16515168;BA.debugLine="Printer1.WriteString(\"-------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515169;
 //BA.debugLineNum = 16515169;BA.debugLine="For i=0 To c.RowCount -1";
if (true) break;

case 45:
//for
this.state = 54;
step62 = 1;
limit62 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 63;
if (true) break;

case 63:
//C
this.state = 54;
if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 47;
if (true) break;

case 64:
//C
this.state = 63;
_i = ((int)(0 + _i + step62)) ;
if (true) break;

case 47:
//C
this.state = 48;
RDebugUtils.currentLine=16515170;
 //BA.debugLineNum = 16515170;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16515173;
 //BA.debugLineNum = 16515173;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16515174;
 //BA.debugLineNum = 16515174;BA.debugLine="Printer1.WriteString( (c.GetString(\"HVD_CANT\")";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"))+"- ");
RDebugUtils.currentLine=16515175;
 //BA.debugLineNum = 16515175;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16515176;
 //BA.debugLineNum = 16515176;BA.debugLine="Dim firstChar As String = c.GetString(\"HVD_PRO";
_firstchar = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE").substring((int) (0),(int) (1));
RDebugUtils.currentLine=16515177;
 //BA.debugLineNum = 16515177;BA.debugLine="Dim productoinven As String";
_productoinven = "";
RDebugUtils.currentLine=16515180;
 //BA.debugLineNum = 16515180;BA.debugLine="If Asc(firstChar) >= Asc(\"0\") And Asc(firstCha";
if (true) break;

case 48:
//if
this.state = 53;
if (parent.__c.Asc(BA.ObjectToChar(_firstchar))>=parent.__c.Asc(BA.ObjectToChar("0")) && parent.__c.Asc(BA.ObjectToChar(_firstchar))<=parent.__c.Asc(BA.ObjectToChar("9"))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

case 50:
//C
this.state = 53;
RDebugUtils.currentLine=16515182;
 //BA.debugLineNum = 16515182;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\").";
_productoinven = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE").substring((int) (4));
 if (true) break;

case 52:
//C
this.state = 53;
RDebugUtils.currentLine=16515185;
 //BA.debugLineNum = 16515185;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")";
_productoinven = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE");
 if (true) break;

case 53:
//C
this.state = 64;
;
RDebugUtils.currentLine=16515189;
 //BA.debugLineNum = 16515189;BA.debugLine="Printer1.WriteString(productoinven)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_productoinven);
RDebugUtils.currentLine=16515190;
 //BA.debugLineNum = 16515190;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515191;
 //BA.debugLineNum = 16515191;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;
if (true) break;

case 54:
//C
this.state = 62;
;
 if (true) break;
if (true) break;

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

case 56:
//C
this.state = -1;
;
RDebugUtils.currentLine=16515198;
 //BA.debugLineNum = 16515198;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16515200;
 //BA.debugLineNum = 16515200;BA.debugLine="Dim sumainv As Cursor = Starter.skmt.ExecQuery(\"S";
_sumainv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_sumainv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID")));
RDebugUtils.currentLine=16515201;
 //BA.debugLineNum = 16515201;BA.debugLine="sumainv.Position = 0";
_sumainv.setPosition((int) (0));
RDebugUtils.currentLine=16515203;
 //BA.debugLineNum = 16515203;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515204;
 //BA.debugLineNum = 16515204;BA.debugLine="Printer1.WriteString(\"Total piezas: \" & sumainv.G";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total piezas: "+_sumainv.GetString("CANTIDAD")+parent.__c.CRLF);
RDebugUtils.currentLine=16515205;
 //BA.debugLineNum = 16515205;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16515206;
 //BA.debugLineNum = 16515206;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16515207;
 //BA.debugLineNum = 16515207;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515208;
 //BA.debugLineNum = 16515208;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515209;
 //BA.debugLineNum = 16515209;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515210;
 //BA.debugLineNum = 16515210;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16515211;
 //BA.debugLineNum = 16515211;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000));
this.state = 65;
return;
case 65:
//C
this.state = -1;
;
RDebugUtils.currentLine=16515212;
 //BA.debugLineNum = 16515212;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=16515213;
 //BA.debugLineNum = 16515213;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=16515214;
 //BA.debugLineNum = 16515214;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b_impresion_rec_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_impresion_rec_click", false))
	 {Debug.delegate(ba, "b_impresion_rec_click", null); return;}
ResumableSub_b_impresion_rec_Click rsub = new ResumableSub_b_impresion_rec_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_impresion_rec_Click extends BA.ResumableSub {
public ResumableSub_b_impresion_rec_Click(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_principal __ref;
reparto_izca.keymon.lat.c_principal parent;
int _totalentrega = 0;
int _totalrechazo = 0;
int _totalpiezas = 0;
String _sdate = "";
String _stime = "";
int _cont = 0;
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
String _resta = "";
int step46;
int limit46;

@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=16580609;
 //BA.debugLineNum = 16580609;BA.debugLine="Dim totalentrega As Int";
_totalentrega = 0;
RDebugUtils.currentLine=16580610;
 //BA.debugLineNum = 16580610;BA.debugLine="Dim totalrechazo As Int";
_totalrechazo = 0;
RDebugUtils.currentLine=16580611;
 //BA.debugLineNum = 16580611;BA.debugLine="Dim totalpiezas As Int";
_totalpiezas = 0;
RDebugUtils.currentLine=16580612;
 //BA.debugLineNum = 16580612;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=16580613;
 //BA.debugLineNum = 16580613;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=16580614;
 //BA.debugLineNum = 16580614;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16580615;
 //BA.debugLineNum = 16580615;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=16580617;
 //BA.debugLineNum = 16580617;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=16580618;
 //BA.debugLineNum = 16580618;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=16580619;
 //BA.debugLineNum = 16580619;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=16580620;
 //BA.debugLineNum = 16580620;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=16580621;
 //BA.debugLineNum = 16580621;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16580627;
 //BA.debugLineNum = 16580627;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=16580628;
 //BA.debugLineNum = 16580628;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=16580629;
 //BA.debugLineNum = 16580629;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

case 1:
//if
this.state = 38;
if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { 
this.state = 3;
}else {
this.state = 21;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=16580631;
 //BA.debugLineNum = 16580631;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=16580632;
 //BA.debugLineNum = 16580632;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=16580633;
 //BA.debugLineNum = 16580633;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

case 4:
//do while
this.state = 19;
while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) {
this.state = 6;
if (true) break;
}
if (true) break;

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=16580634;
 //BA.debugLineNum = 16580634;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000));
this.state = 53;
return;
case 53:
//C
this.state = 7;
;
RDebugUtils.currentLine=16580636;
 //BA.debugLineNum = 16580636;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=16580637;
 //BA.debugLineNum = 16580637;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
if (true) break;

case 7:
//if
this.state = 12;
if (_cont==2) { 
this.state = 9;
;}if (true) break;

case 9:
//C
this.state = 12;
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 12:
//C
this.state = 13;
;
RDebugUtils.currentLine=16580638;
 //BA.debugLineNum = 16580638;BA.debugLine="If cont > 3 Then impresoraConectada = True";
if (true) break;

case 13:
//if
this.state = 18;
if (_cont>3) { 
this.state = 15;
;}if (true) break;

case 15:
//C
this.state = 18;
__ref._impresoraconectada /*boolean*/  = parent.__c.True;
if (true) break;

case 18:
//C
this.state = 4;
;
 if (true) break;

case 19:
//C
this.state = 38;
;
RDebugUtils.currentLine=16580640;
 //BA.debugLineNum = 16580640;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (500));
this.state = 54;
return;
case 54:
//C
this.state = 38;
;
RDebugUtils.currentLine=16580641;
 //BA.debugLineNum = 16580641;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=16580644;
 //BA.debugLineNum = 16580644;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=16580645;
 //BA.debugLineNum = 16580645;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=16580646;
 //BA.debugLineNum = 16580646;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

case 22:
//do while
this.state = 37;
while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=16580647;
 //BA.debugLineNum = 16580647;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000));
this.state = 55;
return;
case 55:
//C
this.state = 25;
;
RDebugUtils.currentLine=16580649;
 //BA.debugLineNum = 16580649;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=16580650;
 //BA.debugLineNum = 16580650;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

case 25:
//if
this.state = 30;
if (_cont==2) { 
this.state = 27;
;}if (true) break;

case 27:
//C
this.state = 30;
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 30:
//C
this.state = 31;
;
RDebugUtils.currentLine=16580651;
 //BA.debugLineNum = 16580651;BA.debugLine="If cont > 3 Then impresoraConectada = True";
if (true) break;

case 31:
//if
this.state = 36;
if (_cont>3) { 
this.state = 33;
;}if (true) break;

case 33:
//C
this.state = 36;
__ref._impresoraconectada /*boolean*/  = parent.__c.True;
if (true) break;

case 36:
//C
this.state = 22;
;
 if (true) break;

case 37:
//C
this.state = 38;
;
RDebugUtils.currentLine=16580653;
 //BA.debugLineNum = 16580653;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (500));
this.state = 56;
return;
case 56:
//C
this.state = 38;
;
RDebugUtils.currentLine=16580654;
 //BA.debugLineNum = 16580654;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=16580657;
 //BA.debugLineNum = 16580657;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=16580658;
 //BA.debugLineNum = 16580658;BA.debugLine="ESPACIO = 28";
__ref._espacio /*int*/  = (int) (28);
RDebugUtils.currentLine=16580659;
 //BA.debugLineNum = 16580659;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=16580661;
 //BA.debugLineNum = 16580661;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF);
RDebugUtils.currentLine=16580662;
 //BA.debugLineNum = 16580662;BA.debugLine="Printer1.WriteString(sDate & \" \" &sTime &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_sdate+" "+_stime+parent.__c.CRLF);
RDebugUtils.currentLine=16580664;
 //BA.debugLineNum = 16580664;BA.debugLine="Printer1.WriteString(\"------------ENTREGA--------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------ENTREGA-----------"+parent.__c.CRLF);
RDebugUtils.currentLine=16580665;
 //BA.debugLineNum = 16580665;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c = (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_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=16580666;
 //BA.debugLineNum = 16580666;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=16580667;
 //BA.debugLineNum = 16580667;BA.debugLine="For i = 0 To c.RowCount - 1";
if (true) break;

case 42:
//for
this.state = 51;
step46 = 1;
limit46 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 57;
if (true) break;

case 57:
//C
this.state = 51;
if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44;
if (true) break;

case 58:
//C
this.state = 57;
_i = ((int)(0 + _i + step46)) ;
if (true) break;

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=16580668;
 //BA.debugLineNum = 16580668;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16580671;
 //BA.debugLineNum = 16580671;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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=16580672;
 //BA.debugLineNum = 16580672;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=16580674;
 //BA.debugLineNum = 16580674;BA.debugLine="If c3.RowCount > 0 Then";
if (true) break;

case 45:
//if
this.state = 50;
if (_c3.getRowCount()>0) { 
this.state = 47;
}else {
this.state = 49;
}if (true) break;

case 47:
//C
this.state = 50;
RDebugUtils.currentLine=16580675;
 //BA.debugLineNum = 16580675;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=16580676;
 //BA.debugLineNum = 16580676;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 if (true) break;

case 49:
//C
this.state = 50;
RDebugUtils.currentLine=16580678;
 //BA.debugLineNum = 16580678;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 if (true) break;

case 50:
//C
this.state = 58;
;
RDebugUtils.currentLine=16580680;
 //BA.debugLineNum = 16580680;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16580681;
 //BA.debugLineNum = 16580681;BA.debugLine="Printer1.WriteString(c.GetString(\"HVD_PRONOMBRE";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=16580682;
 //BA.debugLineNum = 16580682;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16580683;
 //BA.debugLineNum = 16580683;BA.debugLine="Printer1.WriteString(\"TP: \"& c.GetInt(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"TP: "+BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_CANT"))+"  ");
RDebugUtils.currentLine=16580684;
 //BA.debugLineNum = 16580684;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=16580685;
 //BA.debugLineNum = 16580685;BA.debugLine="Printer1.WriteString(\"   TE: \" & (c.GetInt(\"tot";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"   TE: "+BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("total")+(double)(Double.parseDouble(_resta))))+"  ");
RDebugUtils.currentLine=16580686;
 //BA.debugLineNum = 16580686;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=16580687;
 //BA.debugLineNum = 16580687;BA.debugLine="Printer1.WriteString(\"   TR: \" & (c.GetInt(\"HVD";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"   TR: "+BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))+"  ");
RDebugUtils.currentLine=16580688;
 //BA.debugLineNum = 16580688;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=16580689;
 //BA.debugLineNum = 16580689;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580691;
 //BA.debugLineNum = 16580691;BA.debugLine="totalentrega = totalentrega + c.GetInt(\"total\")";
_totalentrega = (int) (_totalentrega+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("total")+(double)(Double.parseDouble(_resta)));
RDebugUtils.currentLine=16580692;
 //BA.debugLineNum = 16580692;BA.debugLine="totalrechazo = totalrechazo + c.GetInt(\"HVD_REC";
_totalrechazo = (int) (_totalrechazo+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)));
RDebugUtils.currentLine=16580693;
 //BA.debugLineNum = 16580693;BA.debugLine="totalpiezas = totalpiezas + c.GetInt(\"HVD_CANT\"";
_totalpiezas = (int) (_totalpiezas+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_CANT"));
 if (true) break;
if (true) break;

case 51:
//C
this.state = 52;
;
 if (true) break;

case 52:
//C
this.state = -1;
;
RDebugUtils.currentLine=16580698;
 //BA.debugLineNum = 16580698;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16580699;
 //BA.debugLineNum = 16580699;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580700;
 //BA.debugLineNum = 16580700;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580701;
 //BA.debugLineNum = 16580701;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580703;
 //BA.debugLineNum = 16580703;BA.debugLine="Printer1.WriteString(\"Total Piezas:  \"& totalpiez";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Piezas:  "+BA.NumberToString(_totalpiezas)+parent.__c.CRLF);
RDebugUtils.currentLine=16580704;
 //BA.debugLineNum = 16580704;BA.debugLine="Printer1.WriteString(\"Total Entrega:  \"& totalent";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Entrega:  "+BA.NumberToString(_totalentrega)+parent.__c.CRLF);
RDebugUtils.currentLine=16580705;
 //BA.debugLineNum = 16580705;BA.debugLine="Printer1.WriteString(\"Total Rechazo:  \"& totalrec";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Rechazo:  "+BA.NumberToString(_totalrechazo)+parent.__c.CRLF);
RDebugUtils.currentLine=16580708;
 //BA.debugLineNum = 16580708;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16580709;
 //BA.debugLineNum = 16580709;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=16580710;
 //BA.debugLineNum = 16580710;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580711;
 //BA.debugLineNum = 16580711;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580712;
 //BA.debugLineNum = 16580712;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=16580713;
 //BA.debugLineNum = 16580713;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000));
this.state = 59;
return;
case 59:
//C
this.state = -1;
;
RDebugUtils.currentLine=16580714;
 //BA.debugLineNum = 16580714;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=16580716;
 //BA.debugLineNum = 16580716;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=16580717;
 //BA.debugLineNum = 16580717;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_mapa_click(reparto_izca.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=15138816;
 //BA.debugLineNum = 15138816;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=15138818;
 //BA.debugLineNum = 15138818;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
_b4xpages._showpage /*String*/ (ba,"mapas");
RDebugUtils.currentLine=15138819;
 //BA.debugLineNum = 15138819;BA.debugLine="End Sub";
return "";
}
public String  _b_pc_env_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_pc_env_click", false))
	 {return ((String) Debug.delegate(ba, "b_pc_env_click", null));}
String _sdate = "";
String _stime = "";
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
String _inputtext = "";
anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null;
String _cantidadrestar = "";
anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
String _idtext = "";
String[] _idparts = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
String[] _fechatabulador = null;
String _fechatabulador3 = "";
int _restado = 0;
RDebugUtils.currentLine=16711680;
 //BA.debugLineNum = 16711680;BA.debugLine="Private Sub B_PC_ENV_Click";
RDebugUtils.currentLine=16711681;
 //BA.debugLineNum = 16711681;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=16711682;
 //BA.debugLineNum = 16711682;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=16711683;
 //BA.debugLineNum = 16711683;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=16711684;
 //BA.debugLineNum = 16711684;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=16711685;
 //BA.debugLineNum = 16711685;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=16711688;
 //BA.debugLineNum = 16711688;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
{
final int step6 = 1;
final int limit6 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
RDebugUtils.currentLine=16711690;
 //BA.debugLineNum = 16711690;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=16711691;
 //BA.debugLineNum = 16711691;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
RDebugUtils.currentLine=16711692;
 //BA.debugLineNum = 16711692;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
RDebugUtils.currentLine=16711693;
 //BA.debugLineNum = 16711693;BA.debugLine="Dim inputText As String = editText.As(EditText).";
_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
RDebugUtils.currentLine=16711694;
 //BA.debugLineNum = 16711694;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)";
_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_labelcant = _innerpanel.GetView((int) (2));
RDebugUtils.currentLine=16711695;
 //BA.debugLineNum = 16711695;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe";
_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText();
RDebugUtils.currentLine=16711698;
 //BA.debugLineNum = 16711698;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
RDebugUtils.currentLine=16711699;
 //BA.debugLineNum = 16711699;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 };
RDebugUtils.currentLine=16711703;
 //BA.debugLineNum = 16711703;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=16711704;
 //BA.debugLineNum = 16711704;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=16711705;
 //BA.debugLineNum = 16711705;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
_idparts = __c.Regex.Split(__c.CRLF,_idtext);
RDebugUtils.currentLine=16711707;
 //BA.debugLineNum = 16711707;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
__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=16711708;
 //BA.debugLineNum = 16711708;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16711710;
 //BA.debugLineNum = 16711710;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
__ref._a /*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=16711711;
 //BA.debugLineNum = 16711711;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=16711712;
 //BA.debugLineNum = 16711712;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=16711714;
 //BA.debugLineNum = 16711714;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=16711715;
 //BA.debugLineNum = 16711715;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=16711716;
 //BA.debugLineNum = 16711716;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
RDebugUtils.currentLine=16711718;
 //BA.debugLineNum = 16711718;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=16711719;
 //BA.debugLineNum = 16711719;BA.debugLine="k.Close";
_k.Close();
RDebugUtils.currentLine=16711720;
 //BA.debugLineNum = 16711720;BA.debugLine="If inputText <> \"\" Then";
if ((_inputtext).equals("") == false) { 
RDebugUtils.currentLine=16711721;
 //BA.debugLineNum = 16711721;BA.debugLine="Log(idParts(0))";
__c.LogImpl("816711721",_idparts[(int) (0)],0);
RDebugUtils.currentLine=16711722;
 //BA.debugLineNum = 16711722;BA.debugLine="Log(cantidadrestar)";
__c.LogImpl("816711722",_cantidadrestar,0);
RDebugUtils.currentLine=16711723;
 //BA.debugLineNum = 16711723;BA.debugLine="Log(inputText)";
__c.LogImpl("816711723",_inputtext,0);
RDebugUtils.currentLine=16711724;
 //BA.debugLineNum = 16711724;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext)));
RDebugUtils.currentLine=16711725;
 //BA.debugLineNum = 16711725;BA.debugLine="Log(cantidadrestar - inputText)";
__c.LogImpl("816711725",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0);
RDebugUtils.currentLine=16711726;
 //BA.debugLineNum = 16711726;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
__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*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=16711727;
 //BA.debugLineNum = 16711727;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=16711731;
 //BA.debugLineNum = 16711731;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)}));
 }else {
RDebugUtils.currentLine=16711736;
 //BA.debugLineNum = 16711736;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]}));
 };
 };
RDebugUtils.currentLine=16711740;
 //BA.debugLineNum = 16711740;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16711741;
 //BA.debugLineNum = 16711741;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16711742;
 //BA.debugLineNum = 16711742;BA.debugLine="Log(\"Processed item \" & i)";
__c.LogImpl("816711742","Processed item "+BA.NumberToString(_i),0);
 }
};
RDebugUtils.currentLine=16711745;
 //BA.debugLineNum = 16711745;BA.debugLine="End Sub";
return "";
}
public String  _b_rechazos_click(reparto_izca.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=15794176;
 //BA.debugLineNum = 15794176;BA.debugLine="Private Sub b_rechazos_Click";
RDebugUtils.currentLine=15794177;
 //BA.debugLineNum = 15794177;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=15794178;
 //BA.debugLineNum = 15794178;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
_label1 = __ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=15794179;
 //BA.debugLineNum = 15794179;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=15794180;
 //BA.debugLineNum = 15794180;BA.debugLine="p_prod.Width = Root.Width";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=15794181;
 //BA.debugLineNum = 15794181;BA.debugLine="p_prod.Height = Root.Height";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=15794184;
 //BA.debugLineNum = 15794184;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=15794185;
 //BA.debugLineNum = 15794185;BA.debugLine="b_impresion_rec.Top = p_prod.Height - b_impresion";
__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()));
RDebugUtils.currentLine=15794187;
 //BA.debugLineNum = 15794187;BA.debugLine="p_prod.Visible = True";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15794188;
 //BA.debugLineNum = 15794188;BA.debugLine="p_prod.BringToFront";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=15794190;
 //BA.debugLineNum = 15794190;BA.debugLine="If l_ctast.Text = \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=15794191;
 //BA.debugLineNum = 15794191;BA.debugLine="b_impresion_rec.Enabled = True";
__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
 }else 
{RDebugUtils.currentLine=15794192;
 //BA.debugLineNum = 15794192;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=15794193;
 //BA.debugLineNum = 15794193;BA.debugLine="b_impresion_rec.Enabled = False";
__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
 }}
;
RDebugUtils.currentLine=15794197;
 //BA.debugLineNum = 15794197;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=15794199;
 //BA.debugLineNum = 15794199;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=15794200;
 //BA.debugLineNum = 15794200;BA.debugLine="lv_prod_Prin.Clear";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=15794201;
 //BA.debugLineNum = 15794201;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15794202;
 //BA.debugLineNum = 15794202;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step19 = 1;
final int limit19 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit19 ;_i = _i + step19 ) {
RDebugUtils.currentLine=15794203;
 //BA.debugLineNum = 15794203;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15794204;
 //BA.debugLineNum = 15794204;BA.debugLine="Dim itemText As String";
_itemtext = "";
RDebugUtils.currentLine=15794206;
 //BA.debugLineNum = 15794206;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=15794207;
 //BA.debugLineNum = 15794207;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=15794209;
 //BA.debugLineNum = 15794209;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=15794210;
 //BA.debugLineNum = 15794210;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=15794211;
 //BA.debugLineNum = 15794211;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=15794213;
 //BA.debugLineNum = 15794213;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=15794215;
 //BA.debugLineNum = 15794215;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=15794218;
 //BA.debugLineNum = 15794218;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=15794219;
 //BA.debugLineNum = 15794219;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 };
 }
};
 }else {
RDebugUtils.currentLine=15794225;
 //BA.debugLineNum = 15794225;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=15794227;
 //BA.debugLineNum = 15794227;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=15794230;
 //BA.debugLineNum = 15794230;BA.debugLine="End Sub";
return "";
}
public String  _b_regresa_click(reparto_izca.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=15466496;
 //BA.debugLineNum = 15466496;BA.debugLine="Sub B_REGRESA_Click";
RDebugUtils.currentLine=15466497;
 //BA.debugLineNum = 15466497;BA.debugLine="Log(\"B_REGRESA_Click\")";
__c.LogImpl("815466497","B_REGRESA_Click",0);
RDebugUtils.currentLine=15466498;
 //BA.debugLineNum = 15466498;BA.debugLine="BUSCA.Visible = False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15466499;
 //BA.debugLineNum = 15466499;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466500;
 //BA.debugLineNum = 15466500;BA.debugLine="trabajar.Visible = True";
__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466501;
 //BA.debugLineNum = 15466501;BA.debugLine="B_CLIEPROD.Visible = True";
__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466502;
 //BA.debugLineNum = 15466502;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15466503;
 //BA.debugLineNum = 15466503;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=15466504;
 //BA.debugLineNum = 15466504;BA.debugLine="End Sub";
return "";
}
public String  _b_regreso_click(reparto_izca.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=15859712;
 //BA.debugLineNum = 15859712;BA.debugLine="Private Sub b_regreso_Click";
RDebugUtils.currentLine=15859713;
 //BA.debugLineNum = 15859713;BA.debugLine="p_prod.Visible = False";
__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15859714;
 //BA.debugLineNum = 15859714;BA.debugLine="End Sub";
return "";
}
public String  _b_tabulador_click(reparto_izca.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=15597568;
 //BA.debugLineNum = 15597568;BA.debugLine="Private Sub b_tabulador_Click";
RDebugUtils.currentLine=15597569;
 //BA.debugLineNum = 15597569;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=15597570;
 //BA.debugLineNum = 15597570;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=15597572;
 //BA.debugLineNum = 15597572;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
_b4xpages._showpage /*String*/ (ba,"tabulador");
 };
RDebugUtils.currentLine=15597574;
 //BA.debugLineNum = 15597574;BA.debugLine="End Sub";
return "";
}
public String  _b_terpc_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_terpc_click", false))
	 {return ((String) Debug.delegate(ba, "b_terpc_click", null));}
String _sdate = "";
String _stime = "";
int _consecutivo = 0;
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
String _inputtext = "";
anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null;
String _cantidadrestar = "";
anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
String _idtext = "";
String[] _idparts = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
String[] _fechatabulador = null;
String _fechatabulador3 = "";
int _restado = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
String _preciofull = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _faltantes = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _restadoanterior = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _sobrantes = null;
RDebugUtils.currentLine=16646144;
 //BA.debugLineNum = 16646144;BA.debugLine="Private Sub b_terpc_Click";
RDebugUtils.currentLine=16646146;
 //BA.debugLineNum = 16646146;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=16646147;
 //BA.debugLineNum = 16646147;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=16646148;
 //BA.debugLineNum = 16646148;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=16646149;
 //BA.debugLineNum = 16646149;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=16646150;
 //BA.debugLineNum = 16646150;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=16646152;
 //BA.debugLineNum = 16646152;BA.debugLine="Dim consecutivo As Int = 1000";
_consecutivo = (int) (1000);
RDebugUtils.currentLine=16646153;
 //BA.debugLineNum = 16646153;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
{
final int step7 = 1;
final int limit7 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=16646155;
 //BA.debugLineNum = 16646155;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=16646156;
 //BA.debugLineNum = 16646156;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
RDebugUtils.currentLine=16646157;
 //BA.debugLineNum = 16646157;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
RDebugUtils.currentLine=16646158;
 //BA.debugLineNum = 16646158;BA.debugLine="Dim inputText As String = editText.As(EditText).";
_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
RDebugUtils.currentLine=16646159;
 //BA.debugLineNum = 16646159;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)";
_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_labelcant = _innerpanel.GetView((int) (2));
RDebugUtils.currentLine=16646160;
 //BA.debugLineNum = 16646160;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe";
_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText();
RDebugUtils.currentLine=16646163;
 //BA.debugLineNum = 16646163;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
RDebugUtils.currentLine=16646164;
 //BA.debugLineNum = 16646164;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 };
RDebugUtils.currentLine=16646168;
 //BA.debugLineNum = 16646168;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=16646169;
 //BA.debugLineNum = 16646169;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=16646170;
 //BA.debugLineNum = 16646170;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
_idparts = __c.Regex.Split(__c.CRLF,_idtext);
RDebugUtils.currentLine=16646172;
 //BA.debugLineNum = 16646172;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
__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=16646173;
 //BA.debugLineNum = 16646173;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16646175;
 //BA.debugLineNum = 16646175;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
__ref._a /*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=16646176;
 //BA.debugLineNum = 16646176;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=16646177;
 //BA.debugLineNum = 16646177;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=16646179;
 //BA.debugLineNum = 16646179;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=16646180;
 //BA.debugLineNum = 16646180;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=16646181;
 //BA.debugLineNum = 16646181;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
RDebugUtils.currentLine=16646183;
 //BA.debugLineNum = 16646183;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=16646184;
 //BA.debugLineNum = 16646184;BA.debugLine="k.Close";
_k.Close();
RDebugUtils.currentLine=16646185;
 //BA.debugLineNum = 16646185;BA.debugLine="If inputText <> \"\" And inputText <> 0 Then";
if ((_inputtext).equals("") == false && (_inputtext).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=16646186;
 //BA.debugLineNum = 16646186;BA.debugLine="Log(\"IMPUT DIFERENTE DE CERO\")";
__c.LogImpl("816646186","IMPUT DIFERENTE DE CERO",0);
RDebugUtils.currentLine=16646187;
 //BA.debugLineNum = 16646187;BA.debugLine="Log(idParts(0))";
__c.LogImpl("816646187",_idparts[(int) (0)],0);
RDebugUtils.currentLine=16646188;
 //BA.debugLineNum = 16646188;BA.debugLine="Log(cantidadrestar)";
__c.LogImpl("816646188",_cantidadrestar,0);
RDebugUtils.currentLine=16646189;
 //BA.debugLineNum = 16646189;BA.debugLine="Log(inputText)";
__c.LogImpl("816646189",_inputtext,0);
RDebugUtils.currentLine=16646190;
 //BA.debugLineNum = 16646190;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext)));
RDebugUtils.currentLine=16646191;
 //BA.debugLineNum = 16646191;BA.debugLine="Log(cantidadrestar - inputText)";
__c.LogImpl("816646191",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0);
RDebugUtils.currentLine=16646192;
 //BA.debugLineNum = 16646192;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
__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*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=16646194;
 //BA.debugLineNum = 16646194;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=16646199;
 //BA.debugLineNum = 16646199;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)}));
RDebugUtils.currentLine=16646200;
 //BA.debugLineNum = 16646200;BA.debugLine="If restado > 0 And inputText <> 0 Then";
if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=16646202;
 //BA.debugLineNum = 16646202;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646203;
 //BA.debugLineNum = 16646203;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646204;
 //BA.debugLineNum = 16646204;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646205;
 //BA.debugLineNum = 16646205;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646207;
 //BA.debugLineNum = 16646207;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646208;
 //BA.debugLineNum = 16646208;BA.debugLine="Log(\"MAYOR A CERO\")";
__c.LogImpl("816646208","MAYOR A CERO",0);
RDebugUtils.currentLine=16646209;
 //BA.debugLineNum = 16646209;BA.debugLine="consecutivo = consecutivo + 1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=16646210;
 //BA.debugLineNum = 16646210;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=16646211;
 //BA.debugLineNum = 16646211;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646212;
 //BA.debugLineNum = 16646212;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646213;
 //BA.debugLineNum = 16646213;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else {
RDebugUtils.currentLine=16646215;
 //BA.debugLineNum = 16646215;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
 };
 }else 
{RDebugUtils.currentLine=16646217;
 //BA.debugLineNum = 16646217;BA.debugLine="Else If restado < 0 And inputText <> 0 Then";
if (_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=16646219;
 //BA.debugLineNum = 16646219;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646220;
 //BA.debugLineNum = 16646220;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646221;
 //BA.debugLineNum = 16646221;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646222;
 //BA.debugLineNum = 16646222;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646224;
 //BA.debugLineNum = 16646224;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646225;
 //BA.debugLineNum = 16646225;BA.debugLine="Log(\"MENOR A CERO\")";
__c.LogImpl("816646225","MENOR A CERO",0);
RDebugUtils.currentLine=16646226;
 //BA.debugLineNum = 16646226;BA.debugLine="consecutivo = consecutivo + 1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=16646227;
 //BA.debugLineNum = 16646227;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=16646228;
 //BA.debugLineNum = 16646228;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646229;
 //BA.debugLineNum = 16646229;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646230;
 //BA.debugLineNum = 16646230;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else {
RDebugUtils.currentLine=16646232;
 //BA.debugLineNum = 16646232;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
 };
 }}
;
 }else {
RDebugUtils.currentLine=16646238;
 //BA.debugLineNum = 16646238;BA.debugLine="Dim restadoanterior As Cursor = Starter.skmt.E";
_restadoanterior = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_restadoanterior = (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 RESTA from PICK_CIEGO WHERE PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646239;
 //BA.debugLineNum = 16646239;BA.debugLine="restadoanterior.Position = 0";
_restadoanterior.setPosition((int) (0));
RDebugUtils.currentLine=16646242;
 //BA.debugLineNum = 16646242;BA.debugLine="If restadoanterior.GetInt(\"RESTA\") > 0 And res";
if (_restadoanterior.GetInt("RESTA")>0 && _restadoanterior.GetInt("RESTA")!=_restado) { 
RDebugUtils.currentLine=16646245;
 //BA.debugLineNum = 16646245;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=16646247;
 //BA.debugLineNum = 16646247;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646248;
 //BA.debugLineNum = 16646248;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646249;
 //BA.debugLineNum = 16646249;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646250;
 //BA.debugLineNum = 16646250;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646251;
 //BA.debugLineNum = 16646251;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646252;
 //BA.debugLineNum = 16646252;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646254;
 //BA.debugLineNum = 16646254;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646256;
 //BA.debugLineNum = 16646256;BA.debugLine="Log(\"MAYOR A CERO UPDATE\")";
__c.LogImpl("816646256","MAYOR A CERO UPDATE",0);
RDebugUtils.currentLine=16646257;
 //BA.debugLineNum = 16646257;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]}));
RDebugUtils.currentLine=16646258;
 //BA.debugLineNum = 16646258;BA.debugLine="If restado > 0 Then";
if (_restado>0) { 
RDebugUtils.currentLine=16646259;
 //BA.debugLineNum = 16646259;BA.debugLine="Log(\"AQUI ES FALTANTE\")";
__c.LogImpl("816646259","AQUI ES FALTANTE",0);
RDebugUtils.currentLine=16646261;
 //BA.debugLineNum = 16646261;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else 
{RDebugUtils.currentLine=16646262;
 //BA.debugLineNum = 16646262;BA.debugLine="Else If restado < 0 Then";
if (_restado<0) { 
RDebugUtils.currentLine=16646263;
 //BA.debugLineNum = 16646263;BA.debugLine="Log(\"AQUI ES SOBRANTE\")";
__c.LogImpl("816646263","AQUI ES SOBRANTE",0);
RDebugUtils.currentLine=16646265;
 //BA.debugLineNum = 16646265;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else 
{RDebugUtils.currentLine=16646266;
 //BA.debugLineNum = 16646266;BA.debugLine="Else If restado = 0 Then";
if (_restado==0) { 
RDebugUtils.currentLine=16646267;
 //BA.debugLineNum = 16646267;BA.debugLine="Log(\"AQUI ES SOBRANTE\")";
__c.LogImpl("816646267","AQUI ES SOBRANTE",0);
RDebugUtils.currentLine=16646268;
 //BA.debugLineNum = 16646268;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }}}
;
 };
 }else 
{RDebugUtils.currentLine=16646273;
 //BA.debugLineNum = 16646273;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") < 0 An";
if (_restadoanterior.GetInt("RESTA")<0 && _restadoanterior.GetInt("RESTA")!=_restado) { 
RDebugUtils.currentLine=16646274;
 //BA.debugLineNum = 16646274;BA.debugLine="Log(\"es sobrante\")";
__c.LogImpl("816646274","es sobrante",0);
RDebugUtils.currentLine=16646275;
 //BA.debugLineNum = 16646275;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQu";
_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_sobrantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'SOBRANTE'"))));
RDebugUtils.currentLine=16646276;
 //BA.debugLineNum = 16646276;BA.debugLine="If sobrantes.RowCount > 0 Then";
if (_sobrantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646277;
 //BA.debugLineNum = 16646277;BA.debugLine="sobrantes.Position = 0";
_sobrantes.setPosition((int) (0));
RDebugUtils.currentLine=16646279;
 //BA.debugLineNum = 16646279;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646280;
 //BA.debugLineNum = 16646280;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646281;
 //BA.debugLineNum = 16646281;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646282;
 //BA.debugLineNum = 16646282;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646284;
 //BA.debugLineNum = 16646284;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646286;
 //BA.debugLineNum = 16646286;BA.debugLine="Log(\"MENOR A CERO UPDATE\")";
__c.LogImpl("816646286","MENOR A CERO UPDATE",0);
RDebugUtils.currentLine=16646287;
 //BA.debugLineNum = 16646287;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]}));
RDebugUtils.currentLine=16646288;
 //BA.debugLineNum = 16646288;BA.debugLine="If restado > 0 Then";
if (_restado>0) { 
RDebugUtils.currentLine=16646291;
 //BA.debugLineNum = 16646291;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'"));
 }else 
{RDebugUtils.currentLine=16646292;
 //BA.debugLineNum = 16646292;BA.debugLine="Else If restado < 0 Then";
if (_restado<0) { 
RDebugUtils.currentLine=16646295;
 //BA.debugLineNum = 16646295;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'"));
 }else 
{RDebugUtils.currentLine=16646296;
 //BA.debugLineNum = 16646296;BA.debugLine="Else If restado = 0 Then";
if (_restado==0) { 
RDebugUtils.currentLine=16646297;
 //BA.debugLineNum = 16646297;BA.debugLine="Log(\"a eliminar\")";
__c.LogImpl("816646297","a eliminar",0);
RDebugUtils.currentLine=16646298;
 //BA.debugLineNum = 16646298;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'"));
 }}}
;
 };
 }else 
{RDebugUtils.currentLine=16646302;
 //BA.debugLineNum = 16646302;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An";
if (_restadoanterior.GetInt("RESTA")==0 && _restadoanterior.GetInt("RESTA")!=_restado) { 
RDebugUtils.currentLine=16646303;
 //BA.debugLineNum = 16646303;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]}));
RDebugUtils.currentLine=16646304;
 //BA.debugLineNum = 16646304;BA.debugLine="If restado > 0 And inputText <> 0 Then";
if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=16646306;
 //BA.debugLineNum = 16646306;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646307;
 //BA.debugLineNum = 16646307;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646308;
 //BA.debugLineNum = 16646308;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646309;
 //BA.debugLineNum = 16646309;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646311;
 //BA.debugLineNum = 16646311;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646312;
 //BA.debugLineNum = 16646312;BA.debugLine="Log(\"MAYOR A CERO\")";
__c.LogImpl("816646312","MAYOR A CERO",0);
RDebugUtils.currentLine=16646313;
 //BA.debugLineNum = 16646313;BA.debugLine="consecutivo = consecutivo + 1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=16646314;
 //BA.debugLineNum = 16646314;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=16646315;
 //BA.debugLineNum = 16646315;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646316;
 //BA.debugLineNum = 16646316;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646317;
 //BA.debugLineNum = 16646317;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else {
RDebugUtils.currentLine=16646319;
 //BA.debugLineNum = 16646319;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
 };
 }else 
{RDebugUtils.currentLine=16646321;
 //BA.debugLineNum = 16646321;BA.debugLine="Else If restado < 0 And inputText <> 0 Then";
if (_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=16646323;
 //BA.debugLineNum = 16646323;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646324;
 //BA.debugLineNum = 16646324;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646325;
 //BA.debugLineNum = 16646325;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646326;
 //BA.debugLineNum = 16646326;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646328;
 //BA.debugLineNum = 16646328;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646329;
 //BA.debugLineNum = 16646329;BA.debugLine="Log(\"MENOR A CERO\")";
__c.LogImpl("816646329","MENOR A CERO",0);
RDebugUtils.currentLine=16646330;
 //BA.debugLineNum = 16646330;BA.debugLine="consecutivo = consecutivo + 1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=16646331;
 //BA.debugLineNum = 16646331;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'"))));
RDebugUtils.currentLine=16646332;
 //BA.debugLineNum = 16646332;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646333;
 //BA.debugLineNum = 16646333;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646334;
 //BA.debugLineNum = 16646334;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'"));
 }else {
RDebugUtils.currentLine=16646336;
 //BA.debugLineNum = 16646336;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
 };
 }}
;
 }else 
{RDebugUtils.currentLine=16646339;
 //BA.debugLineNum = 16646339;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An";
if (_restadoanterior.GetInt("RESTA")==0 && _restado==0) { 
RDebugUtils.currentLine=16646340;
 //BA.debugLineNum = 16646340;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND PE_TIPO NOT IN ('DANADO') "));
 }}}}
;
 };
 }else 
{RDebugUtils.currentLine=16646343;
 //BA.debugLineNum = 16646343;BA.debugLine="Else If inputText = \"\" Or inputText = 0 Then";
if ((_inputtext).equals("") || (_inputtext).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=16646344;
 //BA.debugLineNum = 16646344;BA.debugLine="Log(\"IMPUT IGUAL DE CERO\")";
__c.LogImpl("816646344","IMPUT IGUAL DE CERO",0);
RDebugUtils.currentLine=16646345;
 //BA.debugLineNum = 16646345;BA.debugLine="Log(idParts(0))";
__c.LogImpl("816646345",_idparts[(int) (0)],0);
RDebugUtils.currentLine=16646346;
 //BA.debugLineNum = 16646346;BA.debugLine="Log(cantidadrestar)";
__c.LogImpl("816646346",_cantidadrestar,0);
RDebugUtils.currentLine=16646347;
 //BA.debugLineNum = 16646347;BA.debugLine="Log(inputText)";
__c.LogImpl("816646347",_inputtext,0);
RDebugUtils.currentLine=16646348;
 //BA.debugLineNum = 16646348;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext)));
RDebugUtils.currentLine=16646349;
 //BA.debugLineNum = 16646349;BA.debugLine="Log(cantidadrestar - inputText)";
__c.LogImpl("816646349",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0);
RDebugUtils.currentLine=16646350;
 //BA.debugLineNum = 16646350;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQuer";
_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=16646351;
 //BA.debugLineNum = 16646351;BA.debugLine="If faltantes.RowCount > 0 Then";
if (_faltantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646352;
 //BA.debugLineNum = 16646352;BA.debugLine="faltantes.Position = 0";
_faltantes.setPosition((int) (0));
RDebugUtils.currentLine=16646353;
 //BA.debugLineNum = 16646353;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PICK_C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PICK_CIEGO where  PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"));
 };
RDebugUtils.currentLine=16646356;
 //BA.debugLineNum = 16646356;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQuer";
_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_sobrantes = (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 PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403'"))));
RDebugUtils.currentLine=16646357;
 //BA.debugLineNum = 16646357;BA.debugLine="If sobrantes.RowCount > 0 Then";
if (_sobrantes.getRowCount()>0) { 
RDebugUtils.currentLine=16646358;
 //BA.debugLineNum = 16646358;BA.debugLine="sobrantes.Position = 0";
_sobrantes.setPosition((int) (0));
RDebugUtils.currentLine=16646359;
 //BA.debugLineNum = 16646359;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'"));
 };
RDebugUtils.currentLine=16646362;
 //BA.debugLineNum = 16646362;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQuer";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'"))));
RDebugUtils.currentLine=16646363;
 //BA.debugLineNum = 16646363;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=16646364;
 //BA.debugLineNum = 16646364;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=16646365;
 //BA.debugLineNum = 16646365;BA.debugLine="Dim preciofull As String = preciocat.GetString";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=16646367;
 //BA.debugLineNum = 16646367;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=16646368;
 //BA.debugLineNum = 16646368;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDIDO(";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
 }}
;
RDebugUtils.currentLine=16646371;
 //BA.debugLineNum = 16646371;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16646372;
 //BA.debugLineNum = 16646372;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16646373;
 //BA.debugLineNum = 16646373;BA.debugLine="Log(\"Processed item \" & i)";
__c.LogImpl("816646373","Processed item "+BA.NumberToString(_i),0);
 }
};
RDebugUtils.currentLine=16646376;
 //BA.debugLineNum = 16646376;BA.debugLine="P_CIEGO.Visible = False";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=16646377;
 //BA.debugLineNum = 16646377;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=16646378;
 //BA.debugLineNum = 16646378;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_emp_click(reparto_izca.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));}
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
String _resta = "";
RDebugUtils.currentLine=15990784;
 //BA.debugLineNum = 15990784;BA.debugLine="Private Sub b_venta_emp_Click";
RDebugUtils.currentLine=15990785;
 //BA.debugLineNum = 15990785;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=15990786;
 //BA.debugLineNum = 15990786;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=15990788;
 //BA.debugLineNum = 15990788;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=15990789;
 //BA.debugLineNum = 15990789;BA.debugLine="P_CIEGO.Width = Root.Width";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=15990790;
 //BA.debugLineNum = 15990790;BA.debugLine="P_CIEGO.Height = Root.Height";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=15990792;
 //BA.debugLineNum = 15990792;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=15990794;
 //BA.debugLineNum = 15990794;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, ifnull(PC_CANT,0) AS PC_CAN from HIST_VENTAS INNER JOIN PICK_CIEGO ON PC_ID_PROD = HVD_PROID WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=15990795;
 //BA.debugLineNum = 15990795;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=15990798;
 //BA.debugLineNum = 15990798;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=15990799;
 //BA.debugLineNum = 15990799;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15990802;
 //BA.debugLineNum = 15990802;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")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=15990803;
 //BA.debugLineNum = 15990803;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=15990805;
 //BA.debugLineNum = 15990805;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=15990806;
 //BA.debugLineNum = 15990806;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=15990807;
 //BA.debugLineNum = 15990807;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=15990809;
 //BA.debugLineNum = 15990809;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=15990811;
 //BA.debugLineNum = 15990811;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=15990814;
 //BA.debugLineNum = 15990814;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CAN"),BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i));
 };
 }
};
RDebugUtils.currentLine=15990820;
 //BA.debugLineNum = 15990820;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBRE";
__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 HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0  and HVD_PROID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO) GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=15990822;
 //BA.debugLineNum = 15990822;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step25 = 1;
final int limit25 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit25 ;_i = _i + step25 ) {
RDebugUtils.currentLine=15990823;
 //BA.debugLineNum = 15990823;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15990826;
 //BA.debugLineNum = 15990826;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._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=15990827;
 //BA.debugLineNum = 15990827;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=15990829;
 //BA.debugLineNum = 15990829;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=15990830;
 //BA.debugLineNum = 15990830;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=15990831;
 //BA.debugLineNum = 15990831;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=15990833;
 //BA.debugLineNum = 15990833;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=15990835;
 //BA.debugLineNum = 15990835;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
if ((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { 
 }else {
RDebugUtils.currentLine=15990838;
 //BA.debugLineNum = 15990838;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i));
 };
 }
};
 }else 
{RDebugUtils.currentLine=15990844;
 //BA.debugLineNum = 15990844;BA.debugLine="Else If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=15990845;
 //BA.debugLineNum = 15990845;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBRE";
__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 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=15990847;
 //BA.debugLineNum = 15990847;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step42 = 1;
final int limit42 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit42 ;_i = _i + step42 ) {
RDebugUtils.currentLine=15990848;
 //BA.debugLineNum = 15990848;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=15990851;
 //BA.debugLineNum = 15990851;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._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))));
RDebugUtils.currentLine=15990852;
 //BA.debugLineNum = 15990852;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=15990854;
 //BA.debugLineNum = 15990854;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=15990855;
 //BA.debugLineNum = 15990855;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=15990856;
 //BA.debugLineNum = 15990856;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=15990858;
 //BA.debugLineNum = 15990858;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=15990860;
 //BA.debugLineNum = 15990860;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
if ((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { 
 }else {
RDebugUtils.currentLine=15990863;
 //BA.debugLineNum = 15990863;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i));
 };
 }
};
 }}
;
RDebugUtils.currentLine=15990870;
 //BA.debugLineNum = 15990870;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(reparto_izca.keymon.lat.c_principal __ref,String _id_prod,String _prod,String _cant,String _cantreal) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_id_prod,_prod,_cant,_cantreal}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=16842752;
 //BA.debugLineNum = 16842752;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
RDebugUtils.currentLine=16842753;
 //BA.debugLineNum = 16842753;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=16842754;
 //BA.debugLineNum = 16842754;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=16842755;
 //BA.debugLineNum = 16842755;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=16842756;
 //BA.debugLineNum = 16842756;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=16842757;
 //BA.debugLineNum = 16842757;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=16842759;
 //BA.debugLineNum = 16842759;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=16842760;
 //BA.debugLineNum = 16842760;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=16842761;
 //BA.debugLineNum = 16842761;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=16842762;
 //BA.debugLineNum = 16842762;BA.debugLine="ET_PICK_CIEGO.Text = cant";
__ref._et_pick_ciego /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_cant));
RDebugUtils.currentLine=16842763;
 //BA.debugLineNum = 16842763;BA.debugLine="L_CANT_PCIK.Text = cantreal";
__ref._l_cant_pcik /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cantreal));
RDebugUtils.currentLine=16842766;
 //BA.debugLineNum = 16842766;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=16842767;
 //BA.debugLineNum = 16842767;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(reparto_izca.keymon.lat.c_principal __ref,String _id_prod,String _prod,String _cantreal) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "createlistitem2", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_id_prod,_prod,_cantreal}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=16908288;
 //BA.debugLineNum = 16908288;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
RDebugUtils.currentLine=16908289;
 //BA.debugLineNum = 16908289;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=16908290;
 //BA.debugLineNum = 16908290;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=16908291;
 //BA.debugLineNum = 16908291;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=16908292;
 //BA.debugLineNum = 16908292;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=16908293;
 //BA.debugLineNum = 16908293;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=16908295;
 //BA.debugLineNum = 16908295;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=16908296;
 //BA.debugLineNum = 16908296;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=16908297;
 //BA.debugLineNum = 16908297;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=16908298;
 //BA.debugLineNum = 16908298;BA.debugLine="L_CANT_PCIK.Text = cantreal";
__ref._l_cant_pcik /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cantreal));
RDebugUtils.currentLine=16908301;
 //BA.debugLineNum = 16908301;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=16908302;
 //BA.debugLineNum = 16908302;BA.debugLine="End Sub";
return null;
}
public String  _to_number_vb(reparto_izca.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=14483456;
 //BA.debugLineNum = 14483456;BA.debugLine="Sub to_number_vb (valor As Object) As String";
RDebugUtils.currentLine=14483457;
 //BA.debugLineNum = 14483457;BA.debugLine="Dim valstring As Int";
_valstring = 0;
RDebugUtils.currentLine=14483458;
 //BA.debugLineNum = 14483458;BA.debugLine="Dim valstring2 As String = valor";
_valstring2 = BA.ObjectToString(_valor);
RDebugUtils.currentLine=14483459;
 //BA.debugLineNum = 14483459;BA.debugLine="valstring2.Replace(\":\",\"\")";
_valstring2.replace(":","");
RDebugUtils.currentLine=14483460;
 //BA.debugLineNum = 14483460;BA.debugLine="Try";
try {RDebugUtils.currentLine=14483461;
 //BA.debugLineNum = 14483461;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")";
_valstring = (int)(Double.parseDouble(_valstring2.replace(":","")));
RDebugUtils.currentLine=14483462;
 //BA.debugLineNum = 14483462;BA.debugLine="Return valstring";
if (true) return BA.NumberToString(_valstring);
 } 
       catch (Exception e8) {
			ba.setLastException(e8);RDebugUtils.currentLine=14483464;
 //BA.debugLineNum = 14483464;BA.debugLine="Return 0";
if (true) return BA.NumberToString(0);
 };
RDebugUtils.currentLine=14483466;
 //BA.debugLineNum = 14483466;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_izca.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_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_principal __ref;
reparto_izca.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=14942210;
 //BA.debugLineNum = 14942210;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=14942213;
 //BA.debugLineNum = 14942213;BA.debugLine="Else If P_CIEGO.Visible Then";
if (__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else 
{RDebugUtils.currentLine=14942215;
 //BA.debugLineNum = 14942215;BA.debugLine="Else If p_prod.Visible Then";
if (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 7;
}else {
this.state = 9;
}}}
if (true) break;

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

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

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

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

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_izca.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=14221312;
 //BA.debugLineNum = 14221312;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=14221313;
 //BA.debugLineNum = 14221313;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=14221315;
 //BA.debugLineNum = 14221315;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=14221316;
 //BA.debugLineNum = 14221316;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14221317;
 //BA.debugLineNum = 14221317;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=14221320;
 //BA.debugLineNum = 14221320;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14221321;
 //BA.debugLineNum = 14221321;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=14221322;
 //BA.debugLineNum = 14221322;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14221324;
 //BA.debugLineNum = 14221324;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=14221325;
 //BA.debugLineNum = 14221325;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14221326;
 //BA.debugLineNum = 14221326;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=14221327;
 //BA.debugLineNum = 14221327;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND  CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=14221328;
 //BA.debugLineNum = 14221328;BA.debugLine="D.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14221329;
 //BA.debugLineNum = 14221329;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14221330;
 //BA.debugLineNum = 14221330;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
RDebugUtils.currentLine=14221331;
 //BA.debugLineNum = 14221331;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14221332;
 //BA.debugLineNum = 14221332;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14221333;
 //BA.debugLineNum = 14221333;BA.debugLine="l_aLiquidar.Text = 0";
__ref._l_aliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14221334;
 //BA.debugLineNum = 14221334;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14221335;
 //BA.debugLineNum = 14221335;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14221336;
 //BA.debugLineNum = 14221336;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=14221337;
 //BA.debugLineNum = 14221337;BA.debugLine="l_montoSalida.Text = 0";
__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=14221338;
 //BA.debugLineNum = 14221338;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=14221340;
 //BA.debugLineNum = 14221340;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=14221341;
 //BA.debugLineNum = 14221341;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=14221360;
 //BA.debugLineNum = 14221360;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=14221361;
 //BA.debugLineNum = 14221361;BA.debugLine="If b.RowCount > 0 Then";
if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14221363;
 //BA.debugLineNum = 14221363;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14221365;
 //BA.debugLineNum = 14221365;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14221366;
 //BA.debugLineNum = 14221366;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14221367;
 //BA.debugLineNum = 14221367;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_mards";
RDebugUtils.currentLine=14221368;
 //BA.debugLineNum = 14221368;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"))};
RDebugUtils.currentLine=14221369;
 //BA.debugLineNum = 14221369;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
 };
RDebugUtils.currentLine=14221371;
 //BA.debugLineNum = 14221371;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/  = _subs._dameusuariodedb /*String*/ (ba);
RDebugUtils.currentLine=14221372;
 //BA.debugLineNum = 14221372;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth");
RDebugUtils.currentLine=14221373;
 //BA.debugLineNum = 14221373;BA.debugLine="cmp20.Initialize(\"Printer\")";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer");
RDebugUtils.currentLine=14221374;
 //BA.debugLineNum = 14221374;BA.debugLine="End Sub";
return "";
}
public String  _btn_ubicar_ru_click(reparto_izca.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=15532032;
 //BA.debugLineNum = 15532032;BA.debugLine="Sub Btn_Ubicar_Ru_Click";
RDebugUtils.currentLine=15532033;
 //BA.debugLineNum = 15532033;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=15532034;
 //BA.debugLineNum = 15532034;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=15532037;
 //BA.debugLineNum = 15532037;BA.debugLine="StartActivity(MAPA_RUTAS)";
__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
 };
RDebugUtils.currentLine=15532039;
 //BA.debugLineNum = 15532039;BA.debugLine="End Sub";
return "";
}
public String  _busca_click(reparto_izca.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=15073280;
 //BA.debugLineNum = 15073280;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=15073281;
 //BA.debugLineNum = 15073281;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=15073282;
 //BA.debugLineNum = 15073282;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=15073285;
 //BA.debugLineNum = 15073285;BA.debugLine="B4XPages.ShowPage(\"Buscar\")";
_b4xpages._showpage /*String*/ (ba,"Buscar");
 };
RDebugUtils.currentLine=15073287;
 //BA.debugLineNum = 15073287;BA.debugLine="End Sub";
return "";
}
public String  _cargar____click(reparto_izca.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=14811136;
 //BA.debugLineNum = 14811136;BA.debugLine="Sub cargar____Click";
RDebugUtils.currentLine=14811137;
 //BA.debugLineNum = 14811137;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=14811138;
 //BA.debugLineNum = 14811138;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=14811139;
 //BA.debugLineNum = 14811139;BA.debugLine="If cp.RowCount > 0 Then";
if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14811140;
 //BA.debugLineNum = 14811140;BA.debugLine="cp.Position = 0";
__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14811141;
 //BA.debugLineNum = 14811141;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA");
RDebugUtils.currentLine=14811142;
 //BA.debugLineNum = 14811142;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
__c.LogImpl("814811142",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0);
RDebugUtils.currentLine=14811143;
 //BA.debugLineNum = 14811143;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ );
RDebugUtils.currentLine=14811144;
 //BA.debugLineNum = 14811144;BA.debugLine="Log(fecha2(0))";
__c.LogImpl("814811144",_fecha2[(int) (0)],0);
RDebugUtils.currentLine=14811145;
 //BA.debugLineNum = 14811145;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
RDebugUtils.currentLine=14811146;
 //BA.debugLineNum = 14811146;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=14811147;
 //BA.debugLineNum = 14811147;BA.debugLine="DateTime.TimeFormat = \"\"";
__c.DateTime.setTimeFormat("");
RDebugUtils.currentLine=14811148;
 //BA.debugLineNum = 14811148;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
RDebugUtils.currentLine=14811149;
 //BA.debugLineNum = 14811149;BA.debugLine="Log(dia)";
__c.LogImpl("814811149",_dia,0);
RDebugUtils.currentLine=14811150;
 //BA.debugLineNum = 14811150;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14811151;
 //BA.debugLineNum = 14811151;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("814811151",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=14811152;
 //BA.debugLineNum = 14811152;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=14811153;
 //BA.debugLineNum = 14811153;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=14811156;
 //BA.debugLineNum = 14811156;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=14811157;
 //BA.debugLineNum = 14811157;BA.debugLine="Log(\"CUMPLE\")";
__c.LogImpl("814811157","CUMPLE",0);
RDebugUtils.currentLine=14811158;
 //BA.debugLineNum = 14811158;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14811159;
 //BA.debugLineNum = 14811159;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=14811160;
 //BA.debugLineNum = 14811160;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=14811161;
 //BA.debugLineNum = 14811161;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
__c.LogImpl("814811161",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=14811162;
 //BA.debugLineNum = 14811162;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=14811164;
 //BA.debugLineNum = 14811164;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14811165;
 //BA.debugLineNum = 14811165;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811166;
 //BA.debugLineNum = 14811166;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_IZCA2";
RDebugUtils.currentLine=14811167;
 //BA.debugLineNum = 14811167;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
__ref._cmd /*reparto_izca.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=14811168;
 //BA.debugLineNum = 14811168;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=14811171;
 //BA.debugLineNum = 14811171;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=14811172;
 //BA.debugLineNum = 14811172;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=14811173;
 //BA.debugLineNum = 14811173;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=14811174;
 //BA.debugLineNum = 14811174;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=14811175;
 //BA.debugLineNum = 14811175;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=14811177;
 //BA.debugLineNum = 14811177;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
RDebugUtils.currentLine=14811178;
 //BA.debugLineNum = 14811178;BA.debugLine="If l_ruta.Text = \"0\" Then '";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=14811179;
 //BA.debugLineNum = 14811179;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
__c.LogImpl("814811179","*********************  No hay ruta, BORRAMOS TODO",0);
RDebugUtils.currentLine=14811180;
 //BA.debugLineNum = 14811180;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=14811181;
 //BA.debugLineNum = 14811181;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=14811182;
 //BA.debugLineNum = 14811182;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=14811183;
 //BA.debugLineNum = 14811183;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=14811184;
 //BA.debugLineNum = 14811184;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
RDebugUtils.currentLine=14811185;
 //BA.debugLineNum = 14811185;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
 }else {
RDebugUtils.currentLine=14811187;
 //BA.debugLineNum = 14811187;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
__c.LogImpl("814811187","*********************  Hay ruta, NO BORRAMOS TODO",0);
 };
RDebugUtils.currentLine=14811191;
 //BA.debugLineNum = 14811191;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=14811192;
 //BA.debugLineNum = 14811192;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14811193;
 //BA.debugLineNum = 14811193;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=14811195;
 //BA.debugLineNum = 14811195;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811196;
 //BA.debugLineNum = 14811196;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_mards_re_REPG";
RDebugUtils.currentLine=14811197;
 //BA.debugLineNum = 14811197;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.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=14811198;
 //BA.debugLineNum = 14811198;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=14811199;
 //BA.debugLineNum = 14811199;BA.debugLine="Log($\"Pedimos Punteo\"$)";
__c.LogImpl("814811199",("Pedimos Punteo"),0);
RDebugUtils.currentLine=14811200;
 //BA.debugLineNum = 14811200;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=14811203;
 //BA.debugLineNum = 14811203;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811204;
 //BA.debugLineNum = 14811204;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_mards_re_REPG";
RDebugUtils.currentLine=14811205;
 //BA.debugLineNum = 14811205;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14811206;
 //BA.debugLineNum = 14811206;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=14811207;
 //BA.debugLineNum = 14811207;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
__c.LogImpl("814811207",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0);
RDebugUtils.currentLine=14811208;
 //BA.debugLineNum = 14811208;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=14811212;
 //BA.debugLineNum = 14811212;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811213;
 //BA.debugLineNum = 14811213;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_mards_re_REPG";
RDebugUtils.currentLine=14811214;
 //BA.debugLineNum = 14811214;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.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=14811215;
 //BA.debugLineNum = 14811215;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=14811216;
 //BA.debugLineNum = 14811216;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
__c.LogImpl("814811216",("Pedimos kmt_datos"),0);
RDebugUtils.currentLine=14811217;
 //BA.debugLineNum = 14811217;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=14811219;
 //BA.debugLineNum = 14811219;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811220;
 //BA.debugLineNum = 14811220;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad_mards_re_REPG";
RDebugUtils.currentLine=14811221;
 //BA.debugLineNum = 14811221;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14811222;
 //BA.debugLineNum = 14811222;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=14811223;
 //BA.debugLineNum = 14811223;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
__c.LogImpl("814811223",("Pedimos hist_datos"),0);
RDebugUtils.currentLine=14811224;
 //BA.debugLineNum = 14811224;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
RDebugUtils.currentLine=14811241;
 //BA.debugLineNum = 14811241;BA.debugLine="If ALMACEN = \"32\" Then";
if ((__ref._almacen /*String*/ ).equals("32")) { 
RDebugUtils.currentLine=14811242;
 //BA.debugLineNum = 14811242;BA.debugLine="ALMACEN = \"33\"";
__ref._almacen /*String*/  = "33";
RDebugUtils.currentLine=14811243;
 //BA.debugLineNum = 14811243;BA.debugLine="cargo = 2";
__ref._cargo /*String*/  = BA.NumberToString(2);
RDebugUtils.currentLine=14811244;
 //BA.debugLineNum = 14811244;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811245;
 //BA.debugLineNum = 14811245;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_mards_re_REPG";
RDebugUtils.currentLine=14811246;
 //BA.debugLineNum = 14811246;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_izca.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=14811247;
 //BA.debugLineNum = 14811247;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=14811248;
 //BA.debugLineNum = 14811248;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=14811250;
 //BA.debugLineNum = 14811250;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811251;
 //BA.debugLineNum = 14811251;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_mards_re_REPG";
RDebugUtils.currentLine=14811252;
 //BA.debugLineNum = 14811252;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14811253;
 //BA.debugLineNum = 14811253;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=14811254;
 //BA.debugLineNum = 14811254;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=14811256;
 //BA.debugLineNum = 14811256;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811257;
 //BA.debugLineNum = 14811257;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_mards_re_REPG";
RDebugUtils.currentLine=14811258;
 //BA.debugLineNum = 14811258;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_izca.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=14811259;
 //BA.debugLineNum = 14811259;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=14811260;
 //BA.debugLineNum = 14811260;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=14811262;
 //BA.debugLineNum = 14811262;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14811263;
 //BA.debugLineNum = 14811263;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad_mards_re_REPG";
RDebugUtils.currentLine=14811264;
 //BA.debugLineNum = 14811264;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14811265;
 //BA.debugLineNum = 14811265;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=14811266;
 //BA.debugLineNum = 14811266;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
 };
RDebugUtils.currentLine=14811300;
 //BA.debugLineNum = 14811300;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=14811301;
 //BA.debugLineNum = 14811301;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14811302;
 //BA.debugLineNum = 14811302;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=14811303;
 //BA.debugLineNum = 14811303;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14811304;
 //BA.debugLineNum = 14811304;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14811305;
 //BA.debugLineNum = 14811305;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14811306;
 //BA.debugLineNum = 14811306;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14811307;
 //BA.debugLineNum = 14811307;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14811308;
 //BA.debugLineNum = 14811308;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=14811309;
 //BA.debugLineNum = 14811309;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False);
RDebugUtils.currentLine=14811310;
 //BA.debugLineNum = 14811310;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
 }else {
RDebugUtils.currentLine=14811314;
 //BA.debugLineNum = 14811314;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("814811314","XXXX",0);
RDebugUtils.currentLine=14811315;
 //BA.debugLineNum = 14811315;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=14811318;
 //BA.debugLineNum = 14811318;BA.debugLine="End Sub";
return "";
}
public boolean  _isconnectedtointernet(reparto_izca.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=14417920;
 //BA.debugLineNum = 14417920;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
RDebugUtils.currentLine=14417921;
 //BA.debugLineNum = 14417921;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
RDebugUtils.currentLine=14417922;
 //BA.debugLineNum = 14417922;BA.debugLine="r.Target = r.GetContext";
_r.Target = (Object)(_r.GetContext(ba));
RDebugUtils.currentLine=14417923;
 //BA.debugLineNum = 14417923;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String");
RDebugUtils.currentLine=14417924;
 //BA.debugLineNum = 14417924;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
_r.Target = _r.RunMethod("getActiveNetworkInfo");
RDebugUtils.currentLine=14417925;
 //BA.debugLineNum = 14417925;BA.debugLine="If r.Target <> Null Then";
if (_r.Target!= null) { 
RDebugUtils.currentLine=14417926;
 //BA.debugLineNum = 14417926;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting"));
 };
RDebugUtils.currentLine=14417928;
 //BA.debugLineNum = 14417928;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=14417929;
 //BA.debugLineNum = 14417929;BA.debugLine="End Sub";
return false;
}
public String  _cargar_click(reparto_izca.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=14745600;
 //BA.debugLineNum = 14745600;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=14745601;
 //BA.debugLineNum = 14745601;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=14745602;
 //BA.debugLineNum = 14745602;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=14745603;
 //BA.debugLineNum = 14745603;BA.debugLine="If cp.RowCount > 0 Then";
if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14745604;
 //BA.debugLineNum = 14745604;BA.debugLine="cp.Position = 0";
__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14745605;
 //BA.debugLineNum = 14745605;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA");
RDebugUtils.currentLine=14745606;
 //BA.debugLineNum = 14745606;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
__c.LogImpl("814745606",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0);
RDebugUtils.currentLine=14745607;
 //BA.debugLineNum = 14745607;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ );
RDebugUtils.currentLine=14745608;
 //BA.debugLineNum = 14745608;BA.debugLine="Log(fecha2(0))";
__c.LogImpl("814745608",_fecha2[(int) (0)],0);
RDebugUtils.currentLine=14745609;
 //BA.debugLineNum = 14745609;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
RDebugUtils.currentLine=14745610;
 //BA.debugLineNum = 14745610;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=14745611;
 //BA.debugLineNum = 14745611;BA.debugLine="DateTime.TimeFormat = \"\"";
__c.DateTime.setTimeFormat("");
RDebugUtils.currentLine=14745612;
 //BA.debugLineNum = 14745612;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
RDebugUtils.currentLine=14745613;
 //BA.debugLineNum = 14745613;BA.debugLine="Log(dia)";
__c.LogImpl("814745613",_dia,0);
RDebugUtils.currentLine=14745614;
 //BA.debugLineNum = 14745614;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14745615;
 //BA.debugLineNum = 14745615;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("814745615",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=14745616;
 //BA.debugLineNum = 14745616;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=14745617;
 //BA.debugLineNum = 14745617;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=14745620;
 //BA.debugLineNum = 14745620;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=14745621;
 //BA.debugLineNum = 14745621;BA.debugLine="P_carga.Visible = True";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14745622;
 //BA.debugLineNum = 14745622;BA.debugLine="P_carga.Width = Root.Width";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=14745623;
 //BA.debugLineNum = 14745623;BA.debugLine="P_carga.Height = Root.Height";
__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=14745624;
 //BA.debugLineNum = 14745624;BA.debugLine="l_carga2.Text = \"CARGANDO\"";
__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=14745625;
 //BA.debugLineNum = 14745625;BA.debugLine="L_carga.Text = \"CARGANDO\"";
__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=14745626;
 //BA.debugLineNum = 14745626;BA.debugLine="PB_carga.Progress = 0";
__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=14745627;
 //BA.debugLineNum = 14745627;BA.debugLine="PB_carga2.Progress = 0";
__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=14745628;
 //BA.debugLineNum = 14745628;BA.debugLine="Log(\"CUMPLE\")";
__c.LogImpl("814745628","CUMPLE",0);
RDebugUtils.currentLine=14745629;
 //BA.debugLineNum = 14745629;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14745630;
 //BA.debugLineNum = 14745630;BA.debugLine="reqs.Initialize";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=14745631;
 //BA.debugLineNum = 14745631;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=14745632;
 //BA.debugLineNum = 14745632;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
__c.LogImpl("814745632",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=14745633;
 //BA.debugLineNum = 14745633;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=14745635;
 //BA.debugLineNum = 14745635;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14745636;
 //BA.debugLineNum = 14745636;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745637;
 //BA.debugLineNum = 14745637;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_IZCA2";
RDebugUtils.currentLine=14745638;
 //BA.debugLineNum = 14745638;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
__ref._cmd /*reparto_izca.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=14745639;
 //BA.debugLineNum = 14745639;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=14745642;
 //BA.debugLineNum = 14745642;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=14745643;
 //BA.debugLineNum = 14745643;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=14745644;
 //BA.debugLineNum = 14745644;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=14745645;
 //BA.debugLineNum = 14745645;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=14745646;
 //BA.debugLineNum = 14745646;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=14745647;
 //BA.debugLineNum = 14745647;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=14745648;
 //BA.debugLineNum = 14745648;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=14745650;
 //BA.debugLineNum = 14745650;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
RDebugUtils.currentLine=14745651;
 //BA.debugLineNum = 14745651;BA.debugLine="If l_ruta.Text = \"0\" Then '";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=14745652;
 //BA.debugLineNum = 14745652;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
__c.LogImpl("814745652","*********************  No hay ruta, BORRAMOS TODO",0);
RDebugUtils.currentLine=14745653;
 //BA.debugLineNum = 14745653;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=14745654;
 //BA.debugLineNum = 14745654;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=14745655;
 //BA.debugLineNum = 14745655;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
RDebugUtils.currentLine=14745656;
 //BA.debugLineNum = 14745656;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
RDebugUtils.currentLine=14745657;
 //BA.debugLineNum = 14745657;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
 }else {
RDebugUtils.currentLine=14745659;
 //BA.debugLineNum = 14745659;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
__c.LogImpl("814745659","*********************  Hay ruta, NO BORRAMOS TODO",0);
 };
RDebugUtils.currentLine=14745663;
 //BA.debugLineNum = 14745663;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=14745664;
 //BA.debugLineNum = 14745664;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14745665;
 //BA.debugLineNum = 14745665;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=14745667;
 //BA.debugLineNum = 14745667;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745668;
 //BA.debugLineNum = 14745668;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_punteo_re_REPG_IZCA";
RDebugUtils.currentLine=14745669;
 //BA.debugLineNum = 14745669;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.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=14745670;
 //BA.debugLineNum = 14745670;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo"));
RDebugUtils.currentLine=14745671;
 //BA.debugLineNum = 14745671;BA.debugLine="Log($\"Pedimos Punteo\"$)";
__c.LogImpl("814745671",("Pedimos Punteo"),0);
RDebugUtils.currentLine=14745672;
 //BA.debugLineNum = 14745672;BA.debugLine="reqs.Add(\"punteo\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo"));
RDebugUtils.currentLine=14745674;
 //BA.debugLineNum = 14745674;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745675;
 //BA.debugLineNum = 14745675;BA.debugLine="cmd.Name = \"select_almacen_IZCA_re_REPG2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_almacen_IZCA_re_REPG2";
RDebugUtils.currentLine=14745676;
 //BA.debugLineNum = 14745676;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14745677;
 //BA.debugLineNum = 14745677;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=14745678;
 //BA.debugLineNum = 14745678;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
__c.LogImpl("814745678",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0);
RDebugUtils.currentLine=14745679;
 //BA.debugLineNum = 14745679;BA.debugLine="reqs.Add(\"gunaprod\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod"));
RDebugUtils.currentLine=14745686;
 //BA.debugLineNum = 14745686;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745687;
 //BA.debugLineNum = 14745687;BA.debugLine="cmd.Name = \"select_cliente_IZCA_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cliente_IZCA_re_REPG";
RDebugUtils.currentLine=14745688;
 //BA.debugLineNum = 14745688;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.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=14745689;
 //BA.debugLineNum = 14745689;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=14745690;
 //BA.debugLineNum = 14745690;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
__c.LogImpl("814745690",("Pedimos kmt_datos"),0);
RDebugUtils.currentLine=14745691;
 //BA.debugLineNum = 14745691;BA.debugLine="reqs.Add(\"kmt_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos"));
RDebugUtils.currentLine=14745693;
 //BA.debugLineNum = 14745693;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745694;
 //BA.debugLineNum = 14745694;BA.debugLine="cmd.Name = \"select_ventad2_IZCA_re_REPG\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ventad2_IZCA_re_REPG";
RDebugUtils.currentLine=14745695;
 //BA.debugLineNum = 14745695;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14745696;
 //BA.debugLineNum = 14745696;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=14745697;
 //BA.debugLineNum = 14745697;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
__c.LogImpl("814745697",("Pedimos hist_datos"),0);
RDebugUtils.currentLine=14745698;
 //BA.debugLineNum = 14745698;BA.debugLine="reqs.Add(\"hist_datos\")";
__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos"));
RDebugUtils.currentLine=14745700;
 //BA.debugLineNum = 14745700;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745701;
 //BA.debugLineNum = 14745701;BA.debugLine="cmd.Name = \"select_coords_almacen_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coords_almacen_IZCA";
RDebugUtils.currentLine=14745702;
 //BA.debugLineNum = 14745702;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14745703;
 //BA.debugLineNum = 14745703;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen"));
RDebugUtils.currentLine=14745705;
 //BA.debugLineNum = 14745705;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14745706;
 //BA.debugLineNum = 14745706;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod3_IZCA";
RDebugUtils.currentLine=14745707;
 //BA.debugLineNum = 14745707;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14745708;
 //BA.debugLineNum = 14745708;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod3"));
RDebugUtils.currentLine=14745745;
 //BA.debugLineNum = 14745745;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=14745746;
 //BA.debugLineNum = 14745746;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14745747;
 //BA.debugLineNum = 14745747;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=14745748;
 //BA.debugLineNum = 14745748;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14745749;
 //BA.debugLineNum = 14745749;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14745750;
 //BA.debugLineNum = 14745750;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14745751;
 //BA.debugLineNum = 14745751;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14745752;
 //BA.debugLineNum = 14745752;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14745753;
 //BA.debugLineNum = 14745753;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=14745755;
 //BA.debugLineNum = 14745755;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
 }else {
RDebugUtils.currentLine=14745759;
 //BA.debugLineNum = 14745759;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("814745759","XXXX",0);
RDebugUtils.currentLine=14745760;
 //BA.debugLineNum = 14745760;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=14745763;
 //BA.debugLineNum = 14745763;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=14090240;
 //BA.debugLineNum = 14090240;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=14090241;
 //BA.debugLineNum = 14090241;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=14090242;
 //BA.debugLineNum = 14090242;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=14090243;
 //BA.debugLineNum = 14090243;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=14090244;
 //BA.debugLineNum = 14090244;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=14090245;
 //BA.debugLineNum = 14090245;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=14090246;
 //BA.debugLineNum = 14090246;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=14090247;
 //BA.debugLineNum = 14090247;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=14090248;
 //BA.debugLineNum = 14090248;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090249;
 //BA.debugLineNum = 14090249;BA.debugLine="Dim c, a As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090250;
 //BA.debugLineNum = 14090250;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090251;
 //BA.debugLineNum = 14090251;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090252;
 //BA.debugLineNum = 14090252;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090253;
 //BA.debugLineNum = 14090253;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090254;
 //BA.debugLineNum = 14090254;BA.debugLine="Dim f1 As Cursor";
_f1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090255;
 //BA.debugLineNum = 14090255;BA.debugLine="Dim f2 As Cursor";
_f2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090256;
 //BA.debugLineNum = 14090256;BA.debugLine="Dim f3 As Cursor";
_f3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090257;
 //BA.debugLineNum = 14090257;BA.debugLine="Dim F4 As Cursor";
_f4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090258;
 //BA.debugLineNum = 14090258;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=14090259;
 //BA.debugLineNum = 14090259;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090260;
 //BA.debugLineNum = 14090260;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090261;
 //BA.debugLineNum = 14090261;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=14090262;
 //BA.debugLineNum = 14090262;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=14090263;
 //BA.debugLineNum = 14090263;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090264;
 //BA.debugLineNum = 14090264;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=14090265;
 //BA.debugLineNum = 14090265;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090266;
 //BA.debugLineNum = 14090266;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14090267;
 //BA.debugLineNum = 14090267;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=14090268;
 //BA.debugLineNum = 14090268;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=14090269;
 //BA.debugLineNum = 14090269;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=14090270;
 //BA.debugLineNum = 14090270;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=14090271;
 //BA.debugLineNum = 14090271;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=14090272;
 //BA.debugLineNum = 14090272;BA.debugLine="Dim L As Cursor";
_l = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090273;
 //BA.debugLineNum = 14090273;BA.debugLine="Dim l_aLiquidar As Label";
_l_aliquidar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090274;
 //BA.debugLineNum = 14090274;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090275;
 //BA.debugLineNum = 14090275;BA.debugLine="Dim l_montoSalida As Label";
_l_montosalida = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090277;
 //BA.debugLineNum = 14090277;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090278;
 //BA.debugLineNum = 14090278;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090279;
 //BA.debugLineNum = 14090279;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=14090280;
 //BA.debugLineNum = 14090280;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090281;
 //BA.debugLineNum = 14090281;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=14090282;
 //BA.debugLineNum = 14090282;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090283;
 //BA.debugLineNum = 14090283;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090284;
 //BA.debugLineNum = 14090284;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090285;
 //BA.debugLineNum = 14090285;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=14090286;
 //BA.debugLineNum = 14090286;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=14090287;
 //BA.debugLineNum = 14090287;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=14090288;
 //BA.debugLineNum = 14090288;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=14090289;
 //BA.debugLineNum = 14090289;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=14090290;
 //BA.debugLineNum = 14090290;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=14090291;
 //BA.debugLineNum = 14090291;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=14090292;
 //BA.debugLineNum = 14090292;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=14090293;
 //BA.debugLineNum = 14090293;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=14090294;
 //BA.debugLineNum = 14090294;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=14090295;
 //BA.debugLineNum = 14090295;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=14090296;
 //BA.debugLineNum = 14090296;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=14090297;
 //BA.debugLineNum = 14090297;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=14090298;
 //BA.debugLineNum = 14090298;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=14090299;
 //BA.debugLineNum = 14090299;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=14090300;
 //BA.debugLineNum = 14090300;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=14090302;
 //BA.debugLineNum = 14090302;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090304;
 //BA.debugLineNum = 14090304;BA.debugLine="Private L_MONTOE As Label";
_l_montoe = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090305;
 //BA.debugLineNum = 14090305;BA.debugLine="Private B_CLIEPROD As Button";
_b_clieprod = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090306;
 //BA.debugLineNum = 14090306;BA.debugLine="Private ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=14090307;
 //BA.debugLineNum = 14090307;BA.debugLine="Private B_REGRESA As Button";
_b_regresa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090308;
 //BA.debugLineNum = 14090308;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090309;
 //BA.debugLineNum = 14090309;BA.debugLine="Dim ESTATUS As String";
_estatus = "";
RDebugUtils.currentLine=14090310;
 //BA.debugLineNum = 14090310;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=14090311;
 //BA.debugLineNum = 14090311;BA.debugLine="Private bu As BatteryUtilities";
_bu = new reparto_izca.keymon.lat.batteryutilities();
RDebugUtils.currentLine=14090312;
 //BA.debugLineNum = 14090312;BA.debugLine="Dim RUTA_T As String";
_ruta_t = "";
RDebugUtils.currentLine=14090313;
 //BA.debugLineNum = 14090313;BA.debugLine="Dim reqs As List";
_reqs = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=14090315;
 //BA.debugLineNum = 14090315;BA.debugLine="Private Btn_Ubicar_Ru As Button";
_btn_ubicar_ru = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090316;
 //BA.debugLineNum = 14090316;BA.debugLine="Dim cargo As String";
_cargo = "";
RDebugUtils.currentLine=14090317;
 //BA.debugLineNum = 14090317;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090318;
 //BA.debugLineNum = 14090318;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=14090319;
 //BA.debugLineNum = 14090319;BA.debugLine="Private b_tabulador As Button";
_b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090321;
 //BA.debugLineNum = 14090321;BA.debugLine="Private l_rutasP As Label";
_l_rutasp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090322;
 //BA.debugLineNum = 14090322;BA.debugLine="Private l_rechazo As Label";
_l_rechazo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090323;
 //BA.debugLineNum = 14090323;BA.debugLine="Private Label9 As Label";
_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090324;
 //BA.debugLineNum = 14090324;BA.debugLine="Dim cp As Cursor";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090325;
 //BA.debugLineNum = 14090325;BA.debugLine="Private b_check As Button";
_b_check = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090326;
 //BA.debugLineNum = 14090326;BA.debugLine="Private b_rechazos As Button";
_b_rechazos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090327;
 //BA.debugLineNum = 14090327;BA.debugLine="Private p_prod As Panel";
_p_prod = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090328;
 //BA.debugLineNum = 14090328;BA.debugLine="Private b_regreso As Button";
_b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090329;
 //BA.debugLineNum = 14090329;BA.debugLine="Private lv_prod_Prin As ListView";
_lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=14090330;
 //BA.debugLineNum = 14090330;BA.debugLine="Private b_venta_emp As Button";
_b_venta_emp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090333;
 //BA.debugLineNum = 14090333;BA.debugLine="Dim t8 As Timer";
_t8 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=14090334;
 //BA.debugLineNum = 14090334;BA.debugLine="Private B_carga As Button";
_b_carga = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090335;
 //BA.debugLineNum = 14090335;BA.debugLine="Private P_carga As Panel";
_p_carga = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090336;
 //BA.debugLineNum = 14090336;BA.debugLine="Private L_carga As Label";
_l_carga = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090337;
 //BA.debugLineNum = 14090337;BA.debugLine="Private PB_carga As ProgressBar";
_pb_carga = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=14090338;
 //BA.debugLineNum = 14090338;BA.debugLine="Private PB_carga2 As ProgressBar";
_pb_carga2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=14090339;
 //BA.debugLineNum = 14090339;BA.debugLine="Private l_carga2 As Label";
_l_carga2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090342;
 //BA.debugLineNum = 14090342;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
RDebugUtils.currentLine=14090343;
 //BA.debugLineNum = 14090343;BA.debugLine="Dim cmp20 As Serial";
_cmp20 = new anywheresoftware.b4a.objects.Serial();
RDebugUtils.currentLine=14090344;
 //BA.debugLineNum = 14090344;BA.debugLine="Dim printer As TextWriter";
_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
RDebugUtils.currentLine=14090345;
 //BA.debugLineNum = 14090345;BA.debugLine="Dim TAMANO As Int";
_tamano = 0;
RDebugUtils.currentLine=14090346;
 //BA.debugLineNum = 14090346;BA.debugLine="Dim ESPACIO As Int";
_espacio = 0;
RDebugUtils.currentLine=14090347;
 //BA.debugLineNum = 14090347;BA.debugLine="Dim BLANCO As String";
_blanco = "";
RDebugUtils.currentLine=14090348;
 //BA.debugLineNum = 14090348;BA.debugLine="Dim Printer1 As EscPosPrinter";
_printer1 = new reparto_izca.keymon.lat.escposprinter();
RDebugUtils.currentLine=14090349;
 //BA.debugLineNum = 14090349;BA.debugLine="Dim impresoraConectada As Boolean = False";
_impresoraconectada = __c.False;
RDebugUtils.currentLine=14090350;
 //BA.debugLineNum = 14090350;BA.debugLine="Dim errorImpresora As Int = 0";
_errorimpresora = (int) (0);
RDebugUtils.currentLine=14090351;
 //BA.debugLineNum = 14090351;BA.debugLine="Private inventario As ImageView";
_inventario = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=14090352;
 //BA.debugLineNum = 14090352;BA.debugLine="Dim PASA_IMP As String";
_pasa_imp = "";
RDebugUtils.currentLine=14090353;
 //BA.debugLineNum = 14090353;BA.debugLine="Private b_imp_inventario As Button";
_b_imp_inventario = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090355;
 //BA.debugLineNum = 14090355;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=14090356;
 //BA.debugLineNum = 14090356;BA.debugLine="Private PrinterIsReady As Boolean = False";
_printerisready = __c.False;
RDebugUtils.currentLine=14090357;
 //BA.debugLineNum = 14090357;BA.debugLine="Private LastConnectionAttempt As Long = 0";
_lastconnectionattempt = (long) (0);
RDebugUtils.currentLine=14090358;
 //BA.debugLineNum = 14090358;BA.debugLine="Private b_impresion_rec As Button";
_b_impresion_rec = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090359;
 //BA.debugLineNum = 14090359;BA.debugLine="Private L_clientes_visit As Label";
_l_clientes_visit = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090360;
 //BA.debugLineNum = 14090360;BA.debugLine="Private l_clientes_recha As Label";
_l_clientes_recha = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090361;
 //BA.debugLineNum = 14090361;BA.debugLine="Private l_clientes_visitados As Label";
_l_clientes_visitados = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090362;
 //BA.debugLineNum = 14090362;BA.debugLine="Private l_numtickets As Label";
_l_numtickets = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090363;
 //BA.debugLineNum = 14090363;BA.debugLine="Private P_CIEGO As Panel";
_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090364;
 //BA.debugLineNum = 14090364;BA.debugLine="Private B_PC_ENV As Button";
_b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090365;
 //BA.debugLineNum = 14090365;BA.debugLine="Private b_terpc As Button";
_b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=14090366;
 //BA.debugLineNum = 14090366;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
_clv_pick_ciego = new b4a.example3.customlistview();
RDebugUtils.currentLine=14090367;
 //BA.debugLineNum = 14090367;BA.debugLine="Private L_PICK_CIEGO As Label";
_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090368;
 //BA.debugLineNum = 14090368;BA.debugLine="Private ET_PICK_CIEGO As EditText";
_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=14090369;
 //BA.debugLineNum = 14090369;BA.debugLine="Private P_PICK_CIEGO As Panel";
_p_pick_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=14090370;
 //BA.debugLineNum = 14090370;BA.debugLine="Private L_CANT_PCIK As Label";
_l_cant_pcik = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=14090371;
 //BA.debugLineNum = 14090371;BA.debugLine="End Sub";
return "";
}
public String  _connecta_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_click", false))
	 {return ((String) Debug.delegate(ba, "connecta_click", null));}
RDebugUtils.currentLine=15007744;
 //BA.debugLineNum = 15007744;BA.debugLine="Sub connecta_Click";
RDebugUtils.currentLine=15007745;
 //BA.debugLineNum = 15007745;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("815007745",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=15007746;
 //BA.debugLineNum = 15007746;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=15007747;
 //BA.debugLineNum = 15007747;BA.debugLine="If e_ruta.Text <> \"\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=15007748;
 //BA.debugLineNum = 15007748;BA.debugLine="imei = \"\" 'p.GetDeviceId";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=15007749;
 //BA.debugLineNum = 15007749;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=15007750;
 //BA.debugLineNum = 15007750;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=15007751;
 //BA.debugLineNum = 15007751;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=15007752;
 //BA.debugLineNum = 15007752;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=15007753;
 //BA.debugLineNum = 15007753;BA.debugLine="cmd.Name = \"select_version_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_IZCA";
RDebugUtils.currentLine=15007754;
 //BA.debugLineNum = 15007754;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
RDebugUtils.currentLine=15007755;
 //BA.debugLineNum = 15007755;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=15007756;
 //BA.debugLineNum = 15007756;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=15007759;
 //BA.debugLineNum = 15007759;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_IZCA2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_re_REPG_IZCA2";
RDebugUtils.currentLine=15007760;
 //BA.debugLineNum = 15007760;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ )};
RDebugUtils.currentLine=15007761;
 //BA.debugLineNum = 15007761;BA.debugLine="Log($\"${ALMACEN}, ${e_ruta.text}, ${usuario}\"$)";
__c.LogImpl("815007761",(""+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+", "+__c.SmartStringFormatter("",(Object)(__ref._usuario /*String*/ ))+""),0);
RDebugUtils.currentLine=15007762;
 //BA.debugLineNum = 15007762;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
RDebugUtils.currentLine=15007764;
 //BA.debugLineNum = 15007764;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
RDebugUtils.currentLine=15007765;
 //BA.debugLineNum = 15007765;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=15007766;
 //BA.debugLineNum = 15007766;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=15007767;
 //BA.debugLineNum = 15007767;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
 };
RDebugUtils.currentLine=15007769;
 //BA.debugLineNum = 15007769;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(reparto_izca.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=15204352;
 //BA.debugLineNum = 15204352;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=15204353;
 //BA.debugLineNum = 15204353;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=15204354;
 //BA.debugLineNum = 15204354;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=15204355;
 //BA.debugLineNum = 15204355;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=15204357;
 //BA.debugLineNum = 15204357;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=15204358;
 //BA.debugLineNum = 15204358;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
RDebugUtils.currentLine=15204359;
 //BA.debugLineNum = 15204359;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO_GEO");
RDebugUtils.currentLine=15204360;
 //BA.debugLineNum = 15204360;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=15204361;
 //BA.debugLineNum = 15204361;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
RDebugUtils.currentLine=15204362;
 //BA.debugLineNum = 15204362;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
RDebugUtils.currentLine=15204363;
 //BA.debugLineNum = 15204363;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
RDebugUtils.currentLine=15204364;
 //BA.debugLineNum = 15204364;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=15204365;
 //BA.debugLineNum = 15204365;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=15204366;
 //BA.debugLineNum = 15204366;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=15204367;
 //BA.debugLineNum = 15204367;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
RDebugUtils.currentLine=15204368;
 //BA.debugLineNum = 15204368;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=15204369;
 //BA.debugLineNum = 15204369;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
RDebugUtils.currentLine=15204370;
 //BA.debugLineNum = 15204370;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=15204371;
 //BA.debugLineNum = 15204371;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=15204372;
 //BA.debugLineNum = 15204372;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
RDebugUtils.currentLine=15204373;
 //BA.debugLineNum = 15204373;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
RDebugUtils.currentLine=15204374;
 //BA.debugLineNum = 15204374;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
RDebugUtils.currentLine=15204375;
 //BA.debugLineNum = 15204375;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=15204376;
 //BA.debugLineNum = 15204376;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
RDebugUtils.currentLine=15204377;
 //BA.debugLineNum = 15204377;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
RDebugUtils.currentLine=15204378;
 //BA.debugLineNum = 15204378;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO");
RDebugUtils.currentLine=15204379;
 //BA.debugLineNum = 15204379;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
RDebugUtils.currentLine=15204382;
 //BA.debugLineNum = 15204382;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
 };
RDebugUtils.currentLine=15204384;
 //BA.debugLineNum = 15204384;BA.debugLine="End Sub";
return "";
}
public String  _envioinfo(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "envioinfo", false))
	 {return ((String) Debug.delegate(ba, "envioinfo", null));}
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null;
int _rx = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pa = null;
int _pag = 0;
String[] _fechaenvio = null;
String[] _fechacap = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _ab1 = null;
String[] _fechatabulador = null;
String _fechatabulador3 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _d4 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
String _restacant = "";
String[] _fecha1 = null;
String _fecha3 = "";
String _hora = "";
String _sdate = "";
String _stime = "";
RDebugUtils.currentLine=14680064;
 //BA.debugLineNum = 14680064;BA.debugLine="Sub envioinfo";
RDebugUtils.currentLine=14680069;
 //BA.debugLineNum = 14680069;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA")));
RDebugUtils.currentLine=14680070;
 //BA.debugLineNum = 14680070;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=14680071;
 //BA.debugLineNum = 14680071;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680072;
 //BA.debugLineNum = 14680072;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step4 = 1;
final int limit4 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=14680073;
 //BA.debugLineNum = 14680073;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680074;
 //BA.debugLineNum = 14680074;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")";
__ref._foto1 /*byte[]*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("NV_FOTO");
RDebugUtils.currentLine=14680075;
 //BA.debugLineNum = 14680075;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680076;
 //BA.debugLineNum = 14680076;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680077;
 //BA.debugLineNum = 14680077;BA.debugLine="cmd.Name = \"insert_reparto_REPG_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_REPG_IZCA";
RDebugUtils.currentLine=14680078;
 //BA.debugLineNum = 14680078;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LON")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_REPROGRAMAR"))};
RDebugUtils.currentLine=14680079;
 //BA.debugLineNum = 14680079;BA.debugLine="reqManager.ExecuteCommand(cmd ,  \"inst_noventa_";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa_"));
 }
};
RDebugUtils.currentLine=14680081;
 //BA.debugLineNum = 14680081;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14680083;
 //BA.debugLineNum = 14680083;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680084;
 //BA.debugLineNum = 14680084;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=14680085;
 //BA.debugLineNum = 14680085;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680088;
 //BA.debugLineNum = 14680088;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *";
_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from noventa where nv_reprogramar = 1")));
RDebugUtils.currentLine=14680089;
 //BA.debugLineNum = 14680089;BA.debugLine="If r.RowCount > 0 Then";
if (_r.getRowCount()>0) { 
RDebugUtils.currentLine=14680090;
 //BA.debugLineNum = 14680090;BA.debugLine="For rx = 0 To r.RowCount - 1";
{
final int step20 = 1;
final int limit20 = (int) (_r.getRowCount()-1);
_rx = (int) (0) ;
for (;_rx <= limit20 ;_rx = _rx + step20 ) {
RDebugUtils.currentLine=14680091;
 //BA.debugLineNum = 14680091;BA.debugLine="r.Position = rx";
_r.setPosition(_rx);
RDebugUtils.currentLine=14680092;
 //BA.debugLineNum = 14680092;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele";
_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",new String[]{_r.GetString("NV_CLIENTE")})));
RDebugUtils.currentLine=14680093;
 //BA.debugLineNum = 14680093;BA.debugLine="If o.RowCount > 0 Then";
if (_o.getRowCount()>0) { 
RDebugUtils.currentLine=14680094;
 //BA.debugLineNum = 14680094;BA.debugLine="o.Position = 0";
_o.setPosition((int) (0));
RDebugUtils.currentLine=14680095;
 //BA.debugLineNum = 14680095;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)";
__c.LogImpl("814680095","Enviamos reprogramados: "+BA.NumberToString(_r.getRowCount()),0);
RDebugUtils.currentLine=14680097;
 //BA.debugLineNum = 14680097;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680098;
 //BA.debugLineNum = 14680098;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680099;
 //BA.debugLineNum = 14680099;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_reprogramar3_IZCA";
RDebugUtils.currentLine=14680100;
 //BA.debugLineNum = 14680100;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_r.GetString("NV_CLIENTE")),(Object)(_r.GetString("NV_REPROGRAMAR")),(Object)(_o.GetString("HVD_FECHA")),(Object)(_o.GetString("CAT_CL_RUTA")),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=14680101;
 //BA.debugLineNum = 14680101;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_reprogramar"));
 };
 }
};
 };
RDebugUtils.currentLine=14680105;
 //BA.debugLineNum = 14680105;BA.debugLine="r.Close";
_r.Close();
RDebugUtils.currentLine=14680162;
 //BA.debugLineNum = 14680162;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select";
_pa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PA_ALMACEN,PA_RUTA_REP,PA_RUTAPREV,PA_FECHA_PREV,PA_CAPTURA,PA_MONTO,PA_USUARIO,PA_CLIENTE from PAGARES")));
RDebugUtils.currentLine=14680163;
 //BA.debugLineNum = 14680163;BA.debugLine="If pa.RowCount > 0 Then";
if (_pa.getRowCount()>0) { 
RDebugUtils.currentLine=14680164;
 //BA.debugLineNum = 14680164;BA.debugLine="For pag = 0 To pa.RowCount - 1";
{
final int step37 = 1;
final int limit37 = (int) (_pa.getRowCount()-1);
_pag = (int) (0) ;
for (;_pag <= limit37 ;_pag = _pag + step37 ) {
RDebugUtils.currentLine=14680165;
 //BA.debugLineNum = 14680165;BA.debugLine="pa.Position = pag";
_pa.setPosition(_pag);
RDebugUtils.currentLine=14680166;
 //BA.debugLineNum = 14680166;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680167;
 //BA.debugLineNum = 14680167;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680168;
 //BA.debugLineNum = 14680168;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_IZCA_VN\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_reparto_PAGARES_IZCA_VN";
RDebugUtils.currentLine=14680169;
 //BA.debugLineNum = 14680169;BA.debugLine="Dim fechaenvio() As String";
_fechaenvio = new String[(int) (0)];
java.util.Arrays.fill(_fechaenvio,"");
RDebugUtils.currentLine=14680170;
 //BA.debugLineNum = 14680170;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F";
_fechaenvio = __c.Regex.Split(" ",_pa.GetString("PA_FECHA_PREV"));
RDebugUtils.currentLine=14680177;
 //BA.debugLineNum = 14680177;BA.debugLine="Dim fechacap() As String";
_fechacap = new String[(int) (0)];
java.util.Arrays.fill(_fechacap,"");
RDebugUtils.currentLine=14680178;
 //BA.debugLineNum = 14680178;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP";
_fechacap = __c.Regex.Split("/",_pa.GetString("PA_CAPTURA"));
RDebugUtils.currentLine=14680184;
 //BA.debugLineNum = 14680184;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString(";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_pa.GetString("PA_CLIENTE")),(Object)(_pa.GetString("PA_MONTO")),(Object)(_fechaenvio[(int) (0)]),(Object)(_pa.GetString("PA_ALMACEN")),(Object)(_pa.GetString("PA_RUTAPREV")),(Object)(_pa.GetString("PA_RUTA_REP")),(Object)(_pa.GetString("PA_CAPTURA")),(Object)(_pa.GetString("PA_USUARIO")),(Object)("")};
RDebugUtils.currentLine=14680186;
 //BA.debugLineNum = 14680186;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pagares"));
 }
};
 };
RDebugUtils.currentLine=14680189;
 //BA.debugLineNum = 14680189;BA.debugLine="pa.Close";
_pa.Close();
RDebugUtils.currentLine=14680192;
 //BA.debugLineNum = 14680192;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=14680193;
 //BA.debugLineNum = 14680193;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680194;
 //BA.debugLineNum = 14680194;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NULL"))));
RDebugUtils.currentLine=14680195;
 //BA.debugLineNum = 14680195;BA.debugLine="Log(ab.RowCount)";
__c.LogImpl("814680195",BA.NumberToString(_ab.getRowCount()),0);
RDebugUtils.currentLine=14680196;
 //BA.debugLineNum = 14680196;BA.debugLine="If ab.RowCount > 0 Then";
if (_ab.getRowCount()>0) { 
RDebugUtils.currentLine=14680197;
 //BA.debugLineNum = 14680197;BA.debugLine="For i=0 To ab.RowCount -1";
{
final int step56 = 1;
final int limit56 = (int) (_ab.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit56 ;_i = _i + step56 ) {
RDebugUtils.currentLine=14680198;
 //BA.debugLineNum = 14680198;BA.debugLine="ab.Position = i";
_ab.setPosition(_i);
RDebugUtils.currentLine=14680200;
 //BA.debugLineNum = 14680200;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE";
_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NULL"))));
RDebugUtils.currentLine=14680201;
 //BA.debugLineNum = 14680201;BA.debugLine="ab1.Position = 0";
_ab1.setPosition((int) (0));
RDebugUtils.currentLine=14680203;
 //BA.debugLineNum = 14680203;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680204;
 //BA.debugLineNum = 14680204;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680205;
 //BA.debugLineNum = 14680205;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_abono_REP_IZCA_VN2";
RDebugUtils.currentLine=14680206;
 //BA.debugLineNum = 14680206;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ ),(Object)("REPARTO"),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(""),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))};
RDebugUtils.currentLine=14680207;
 //BA.debugLineNum = 14680207;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
RDebugUtils.currentLine=14680208;
 //BA.debugLineNum = 14680208;BA.debugLine="ab1.Close";
_ab1.Close();
RDebugUtils.currentLine=14680209;
 //BA.debugLineNum = 14680209;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
__c.LogImpl("814680209",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
 }
};
 };
RDebugUtils.currentLine=14680212;
 //BA.debugLineNum = 14680212;BA.debugLine="ab.Close";
_ab.Close();
RDebugUtils.currentLine=14680213;
 //BA.debugLineNum = 14680213;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680217;
 //BA.debugLineNum = 14680217;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=14680218;
 //BA.debugLineNum = 14680218;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680219;
 //BA.debugLineNum = 14680219;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NOT NULL"))));
RDebugUtils.currentLine=14680220;
 //BA.debugLineNum = 14680220;BA.debugLine="Log(ab.RowCount)";
__c.LogImpl("814680220",BA.NumberToString(_ab.getRowCount()),0);
RDebugUtils.currentLine=14680221;
 //BA.debugLineNum = 14680221;BA.debugLine="If ab.RowCount > 0 Then";
if (_ab.getRowCount()>0) { 
RDebugUtils.currentLine=14680222;
 //BA.debugLineNum = 14680222;BA.debugLine="For i=0 To ab.RowCount -1";
{
final int step76 = 1;
final int limit76 = (int) (_ab.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit76 ;_i = _i + step76 ) {
RDebugUtils.currentLine=14680223;
 //BA.debugLineNum = 14680223;BA.debugLine="ab.Position = i";
_ab.setPosition(_i);
RDebugUtils.currentLine=14680225;
 //BA.debugLineNum = 14680225;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE";
_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NOT NULL"))));
RDebugUtils.currentLine=14680226;
 //BA.debugLineNum = 14680226;BA.debugLine="ab1.Position = 0";
_ab1.setPosition((int) (0));
RDebugUtils.currentLine=14680228;
 //BA.debugLineNum = 14680228;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680229;
 //BA.debugLineNum = 14680229;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680230;
 //BA.debugLineNum = 14680230;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_abono_REP_IZCA_VN2";
RDebugUtils.currentLine=14680231;
 //BA.debugLineNum = 14680231;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ ),(Object)("REPARTO"),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)("1"),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))};
RDebugUtils.currentLine=14680232;
 //BA.debugLineNum = 14680232;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
RDebugUtils.currentLine=14680233;
 //BA.debugLineNum = 14680233;BA.debugLine="ab1.Close";
_ab1.Close();
RDebugUtils.currentLine=14680234;
 //BA.debugLineNum = 14680234;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
__c.LogImpl("814680234",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
 }
};
 };
RDebugUtils.currentLine=14680237;
 //BA.debugLineNum = 14680237;BA.debugLine="ab.Close";
_ab.Close();
RDebugUtils.currentLine=14680238;
 //BA.debugLineNum = 14680238;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680262;
 //BA.debugLineNum = 14680262;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO")));
RDebugUtils.currentLine=14680263;
 //BA.debugLineNum = 14680263;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680264;
 //BA.debugLineNum = 14680264;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step93 = 1;
final int limit93 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit93 ;_i = _i + step93 ) {
RDebugUtils.currentLine=14680265;
 //BA.debugLineNum = 14680265;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680266;
 //BA.debugLineNum = 14680266;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680267;
 //BA.debugLineNum = 14680267;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680268;
 //BA.debugLineNum = 14680268;BA.debugLine="cmd.Name = \"insert_pedido_REP_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_REP_IZCA";
RDebugUtils.currentLine=14680269;
 //BA.debugLineNum = 14680269;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
__ref._cmd /*reparto_izca.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=14680270;
 //BA.debugLineNum = 14680270;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido_Inmtex"));
 }
};
RDebugUtils.currentLine=14680272;
 //BA.debugLineNum = 14680272;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14680336;
 //BA.debugLineNum = 14680336;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD, PC";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO")));
RDebugUtils.currentLine=14680337;
 //BA.debugLineNum = 14680337;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680338;
 //BA.debugLineNum = 14680338;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step105 = 1;
final int limit105 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit105 ;_i = _i + step105 ) {
RDebugUtils.currentLine=14680339;
 //BA.debugLineNum = 14680339;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680340;
 //BA.debugLineNum = 14680340;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680341;
 //BA.debugLineNum = 14680341;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680342;
 //BA.debugLineNum = 14680342;BA.debugLine="cmd.Name = \"select_HIST_PICKCIEGO_IZCA\" '";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_HIST_PICKCIEGO_IZCA";
RDebugUtils.currentLine=14680343;
 //BA.debugLineNum = 14680343;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")};
RDebugUtils.currentLine=14680344;
 //BA.debugLineNum = 14680344;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, $\"PICK_C_${c.G";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)(("PICK_C_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")))+"")));
 }
};
 };
RDebugUtils.currentLine=14680347;
 //BA.debugLineNum = 14680347;BA.debugLine="c.close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680350;
 //BA.debugLineNum = 14680350;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")));
RDebugUtils.currentLine=14680351;
 //BA.debugLineNum = 14680351;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=14680352;
 //BA.debugLineNum = 14680352;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=14680353;
 //BA.debugLineNum = 14680353;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=14680354;
 //BA.debugLineNum = 14680354;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680355;
 //BA.debugLineNum = 14680355;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680356;
 //BA.debugLineNum = 14680356;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680357;
 //BA.debugLineNum = 14680357;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680358;
 //BA.debugLineNum = 14680358;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step123 = 1;
final int limit123 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit123 ;_i = _i + step123 ) {
RDebugUtils.currentLine=14680359;
 //BA.debugLineNum = 14680359;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680360;
 //BA.debugLineNum = 14680360;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680361;
 //BA.debugLineNum = 14680361;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=14680363;
 //BA.debugLineNum = 14680363;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=14680364;
 //BA.debugLineNum = 14680364;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680365;
 //BA.debugLineNum = 14680365;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_monedas_IZCA";
RDebugUtils.currentLine=14680366;
 //BA.debugLineNum = 14680366;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R";
__ref._cmd /*reparto_izca.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=14680367;
 //BA.debugLineNum = 14680367;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_mon"));
 }
};
RDebugUtils.currentLine=14680369;
 //BA.debugLineNum = 14680369;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680370;
 //BA.debugLineNum = 14680370;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680371;
 //BA.debugLineNum = 14680371;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680372;
 //BA.debugLineNum = 14680372;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14680375;
 //BA.debugLineNum = 14680375;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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS, CANTC FROM HIST_VENTAS")));
RDebugUtils.currentLine=14680376;
 //BA.debugLineNum = 14680376;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680377;
 //BA.debugLineNum = 14680377;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step140 = 1;
final int limit140 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit140 ;_i = _i + step140 ) {
RDebugUtils.currentLine=14680378;
 //BA.debugLineNum = 14680378;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680379;
 //BA.debugLineNum = 14680379;BA.debugLine="Log(c.GetString(\"HVD_CLIENTE\"))";
__c.LogImpl("814680379",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),0);
RDebugUtils.currentLine=14680380;
 //BA.debugLineNum = 14680380;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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"'"))));
RDebugUtils.currentLine=14680381;
 //BA.debugLineNum = 14680381;BA.debugLine="d4.Position = 0";
_d4.setPosition((int) (0));
RDebugUtils.currentLine=14680382;
 //BA.debugLineNum = 14680382;BA.debugLine="Log(d4.GetString(\"CAT_CL_RUTA\"))";
__c.LogImpl("814680382",_d4.GetString("CAT_CL_RUTA"),0);
RDebugUtils.currentLine=14680383;
 //BA.debugLineNum = 14680383;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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') "))));
RDebugUtils.currentLine=14680384;
 //BA.debugLineNum = 14680384;BA.debugLine="d5.Position = 0";
_d5.setPosition((int) (0));
RDebugUtils.currentLine=14680385;
 //BA.debugLineNum = 14680385;BA.debugLine="Private restacant As String = d5.GetString(\"PE_";
_restacant = _d5.GetString("PE_CANT");
RDebugUtils.currentLine=14680386;
 //BA.debugLineNum = 14680386;BA.debugLine="d5.Close";
_d5.Close();
RDebugUtils.currentLine=14680388;
 //BA.debugLineNum = 14680388;BA.debugLine="Dim fecha1() As String = Regex.Split(\" \", c.Get";
_fecha1 = __c.Regex.Split(" ",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=14680390;
 //BA.debugLineNum = 14680390;BA.debugLine="Dim fecha3 As String = fecha1(0)";
_fecha3 = _fecha1[(int) (0)];
RDebugUtils.currentLine=14680391;
 //BA.debugLineNum = 14680391;BA.debugLine="Log(fecha3)";
__c.LogImpl("814680391",_fecha3,0);
RDebugUtils.currentLine=14680392;
 //BA.debugLineNum = 14680392;BA.debugLine="Dim hora As String = fecha1(1)";
_hora = _fecha1[(int) (1)];
RDebugUtils.currentLine=14680395;
 //BA.debugLineNum = 14680395;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=14680396;
 //BA.debugLineNum = 14680396;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=14680397;
 //BA.debugLineNum = 14680397;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=14680398;
 //BA.debugLineNum = 14680398;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=14680399;
 //BA.debugLineNum = 14680399;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=14680400;
 //BA.debugLineNum = 14680400;BA.debugLine="If c.GetString(\"HVD_RECHAZOCANT\") <> \"0\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")).equals("0") == false) { 
RDebugUtils.currentLine=14680401;
 //BA.debugLineNum = 14680401;BA.debugLine="Log((c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
__c.LogImpl("814680401",BA.NumberToString(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))),0);
RDebugUtils.currentLine=14680402;
 //BA.debugLineNum = 14680402;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680403;
 //BA.debugLineNum = 14680403;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVD_izcarep2";
RDebugUtils.currentLine=14680404;
 //BA.debugLineNum = 14680404;BA.debugLine="cmd.Parameters = Array As String(c.GetString(\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = (Object[])(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"),_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,_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")});
RDebugUtils.currentLine=14680405;
 //BA.debugLineNum = 14680405;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd"));
 }else {
RDebugUtils.currentLine=14680407;
 //BA.debugLineNum = 14680407;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680408;
 //BA.debugLineNum = 14680408;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVD_izcarep2";
RDebugUtils.currentLine=14680409;
 //BA.debugLineNum = 14680409;BA.debugLine="Log( c.GetString(\"CANTC\")& c.GetString(\"HVD_CL";
__c.LogImpl("814680409",__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+_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=14680410;
 //BA.debugLineNum = 14680410;BA.debugLine="cmd.Parameters = Array As String(\"\",\"\",\"\", c.G";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = (Object[])(new String[]{"","","",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_fecha3+" "+_hora,_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")});
RDebugUtils.currentLine=14680411;
 //BA.debugLineNum = 14680411;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd"));
 };
RDebugUtils.currentLine=14680413;
 //BA.debugLineNum = 14680413;BA.debugLine="d4.Close";
_d4.Close();
 }
};
 };
RDebugUtils.currentLine=14680416;
 //BA.debugLineNum = 14680416;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680419;
 //BA.debugLineNum = 14680419;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")));
RDebugUtils.currentLine=14680420;
 //BA.debugLineNum = 14680420;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=14680421;
 //BA.debugLineNum = 14680421;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=14680422;
 //BA.debugLineNum = 14680422;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=14680423;
 //BA.debugLineNum = 14680423;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680424;
 //BA.debugLineNum = 14680424;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680425;
 //BA.debugLineNum = 14680425;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14680426;
 //BA.debugLineNum = 14680426;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14680427;
 //BA.debugLineNum = 14680427;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step184 = 1;
final int limit184 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit184 ;_i = _i + step184 ) {
RDebugUtils.currentLine=14680428;
 //BA.debugLineNum = 14680428;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=14680429;
 //BA.debugLineNum = 14680429;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680434;
 //BA.debugLineNum = 14680434;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"));
RDebugUtils.currentLine=14680436;
 //BA.debugLineNum = 14680436;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
_fechatabulador3 = _fechatabulador[(int) (0)];
RDebugUtils.currentLine=14680438;
 //BA.debugLineNum = 14680438;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680439;
 //BA.debugLineNum = 14680439;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_tabulador_billetes_IZCA";
RDebugUtils.currentLine=14680440;
 //BA.debugLineNum = 14680440;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I";
__ref._cmd /*reparto_izca.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=14680441;
 //BA.debugLineNum = 14680441;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_bill"));
 }
};
RDebugUtils.currentLine=14680443;
 //BA.debugLineNum = 14680443;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680444;
 //BA.debugLineNum = 14680444;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680445;
 //BA.debugLineNum = 14680445;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14680446;
 //BA.debugLineNum = 14680446;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14680450;
 //BA.debugLineNum = 14680450;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14680451;
 //BA.debugLineNum = 14680451;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14680452;
 //BA.debugLineNum = 14680452;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_rep_IZCA2";
RDebugUtils.currentLine=14680453;
 //BA.debugLineNum = 14680453;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=14680454;
 //BA.debugLineNum = 14680454;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=14680455;
 //BA.debugLineNum = 14680455;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),__c.True);
RDebugUtils.currentLine=14680456;
 //BA.debugLineNum = 14680456;BA.debugLine="End Sub";
return "";
}
public String  _inv_click(reparto_izca.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=15269888;
 //BA.debugLineNum = 15269888;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=15269889;
 //BA.debugLineNum = 15269889;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=15269890;
 //BA.debugLineNum = 15269890;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_izca.keymon.lat.c_principal __ref,reparto_izca.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_izca.keymon.lat.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _cat_cl_codigo = "";
String _cat_cl_ruta = "";
String _cat_cl_nombre = "";
String _cat_cl_atiende1 = "";
String _cat_cl_atiente2 = "";
String _cat_cl_telefono = "";
String _cat_cl_email = "";
String _cat_cl_calle = "";
String _cat_cl_noext = "";
String _cat_cl_noint = "";
String _cat_cl_calle1 = "";
String _cat_cl_calle2 = "";
String _cat_cl_colonia = "";
String _cat_cl_muni = "";
String _cat_cl_edo = "";
String _cat_cl_cp = "";
String _cat_cl_long = "";
String _cat_cl_lat = "";
String _cat_cl_bcredito = "";
String _nota = "";
String _cliente = "";
String _saldo_pendiente = "";
String _detalle = "";
String _conteo_cat = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _clientes = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _detalleventa = null;
String _id = "";
String _cuenta = "";
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;
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_bcredito = "";
String _bcajas = "";
String _cantc = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _tc = null;
String _cat_va_descripcion = "";
String _cat_va_valor = "";
String _tmp_monto_pagare = "";
String _tmp_cliente = "";
int _cuantosp = 0;
int _cuantosc = 0;
int _cuantosn = 0;
String _cat_ve_version = "";
String _valido = "";
double _lat = 0;
double _lon = 0;
String _k = "";
RDebugUtils.currentLine=14876672;
 //BA.debugLineNum = 14876672;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=14876674;
 //BA.debugLineNum = 14876674;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=14876675;
 //BA.debugLineNum = 14876675;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
__c.LogImpl("814876675","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
 }else {
RDebugUtils.currentLine=14876678;
 //BA.debugLineNum = 14876678;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("814876678","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=14876679;
 //BA.debugLineNum = 14876679;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876680;
 //BA.debugLineNum = 14876680;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876681;
 //BA.debugLineNum = 14876681;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=14876682;
 //BA.debugLineNum = 14876682;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos"))>-1) { 
RDebugUtils.currentLine=14876683;
 //BA.debugLineNum = 14876683;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=14876686;
 //BA.debugLineNum = 14876686;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=14876688;
 //BA.debugLineNum = 14876688;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group12 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen12 = group12.getSize()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (Object[])(group12.Get(index12));
RDebugUtils.currentLine=14876689;
 //BA.debugLineNum = 14876689;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=14876690;
 //BA.debugLineNum = 14876690;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=14876691;
 //BA.debugLineNum = 14876691;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=14876692;
 //BA.debugLineNum = 14876692;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=14876693;
 //BA.debugLineNum = 14876693;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=14876694;
 //BA.debugLineNum = 14876694;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=14876695;
 //BA.debugLineNum = 14876695;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=14876696;
 //BA.debugLineNum = 14876696;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=14876697;
 //BA.debugLineNum = 14876697;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=14876698;
 //BA.debugLineNum = 14876698;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=14876699;
 //BA.debugLineNum = 14876699;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=14876700;
 //BA.debugLineNum = 14876700;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=14876701;
 //BA.debugLineNum = 14876701;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=14876702;
 //BA.debugLineNum = 14876702;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=14876703;
 //BA.debugLineNum = 14876703;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=14876704;
 //BA.debugLineNum = 14876704;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=14876705;
 //BA.debugLineNum = 14876705;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=14876706;
 //BA.debugLineNum = 14876706;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=14876707;
 //BA.debugLineNum = 14876707;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=14876710;
 //BA.debugLineNum = 14876710;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_bcredito)}));
 }
};
RDebugUtils.currentLine=14876712;
 //BA.debugLineNum = 14876712;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)("PRODUCTO DAÑADO"),(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=14876714;
 //BA.debugLineNum = 14876714;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=14876715;
 //BA.debugLineNum = 14876715;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=14876716;
 //BA.debugLineNum = 14876716;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14876717;
 //BA.debugLineNum = 14876717;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=14876718;
 //BA.debugLineNum = 14876718;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876719;
 //BA.debugLineNum = 14876719;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876720;
 //BA.debugLineNum = 14876720;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876721;
 //BA.debugLineNum = 14876721;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
RDebugUtils.currentLine=14876725;
 //BA.debugLineNum = 14876725;BA.debugLine="t8.Initialize(\"t8\", 20000) ' 1000 = 1 second";
__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"t8",(long) (20000));
RDebugUtils.currentLine=14876726;
 //BA.debugLineNum = 14876726;BA.debugLine="t8.Enabled = True";
__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
 };
 };
RDebugUtils.currentLine=14876731;
 //BA.debugLineNum = 14876731;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876732;
 //BA.debugLineNum = 14876732;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876733;
 //BA.debugLineNum = 14876733;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { 
RDebugUtils.currentLine=14876734;
 //BA.debugLineNum = 14876734;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group51 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen51 = group51.getSize()
;int index51 = 0;
;
for (; index51 < groupLen51;index51++){
_records = (Object[])(group51.Get(index51));
RDebugUtils.currentLine=14876735;
 //BA.debugLineNum = 14876735;BA.debugLine="Dim NOTA As String = records(result.Columns.G";
_nota = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("NOTA"))))]);
RDebugUtils.currentLine=14876736;
 //BA.debugLineNum = 14876736;BA.debugLine="Dim CLIENTE As String = records(result.Column";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTE"))))]);
RDebugUtils.currentLine=14876737;
 //BA.debugLineNum = 14876737;BA.debugLine="Dim SALDO_PENDIENTE As String = records(resul";
_saldo_pendiente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("SALDO_PENDIENTE"))))]);
RDebugUtils.currentLine=14876739;
 //BA.debugLineNum = 14876739;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente)}));
 }
};
 };
 };
RDebugUtils.currentLine=14876744;
 //BA.debugLineNum = 14876744;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876745;
 //BA.debugLineNum = 14876745;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876746;
 //BA.debugLineNum = 14876746;BA.debugLine="If result.Tag = \"CONTEO_DATOS\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CONTEO_DATOS"))) { 
RDebugUtils.currentLine=14876747;
 //BA.debugLineNum = 14876747;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=14876748;
 //BA.debugLineNum = 14876748;BA.debugLine="Dim DETALLE As String = records(result.Column";
_detalle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("DETALE"))))]);
RDebugUtils.currentLine=14876749;
 //BA.debugLineNum = 14876749;BA.debugLine="Dim CONTEO_CAT As String = records(result.Col";
_conteo_cat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CONTEO_CAT"))))]);
 }
};
RDebugUtils.currentLine=14876754;
 //BA.debugLineNum = 14876754;BA.debugLine="Dim clientes As Cursor = Starter.skmt.ExecQuer";
_clientes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_clientes = (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 clientes from kmt_info WHERE CAT_CL_CODIGO <> 63403")));
RDebugUtils.currentLine=14876755;
 //BA.debugLineNum = 14876755;BA.debugLine="clientes.Position = 0";
_clientes.setPosition((int) (0));
RDebugUtils.currentLine=14876757;
 //BA.debugLineNum = 14876757;BA.debugLine="Dim detalleventa As Cursor = Starter.skmt.Exec";
_detalleventa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_detalleventa = (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 detalle from hist_ventas")));
RDebugUtils.currentLine=14876758;
 //BA.debugLineNum = 14876758;BA.debugLine="detalleventa.Position = 0";
_detalleventa.setPosition((int) (0));
RDebugUtils.currentLine=14876760;
 //BA.debugLineNum = 14876760;BA.debugLine="Log(CONTEO_CAT)";
__c.LogImpl("814876760",_conteo_cat,0);
RDebugUtils.currentLine=14876761;
 //BA.debugLineNum = 14876761;BA.debugLine="Log(clientes.GetString(\"clientes\"))";
__c.LogImpl("814876761",_clientes.GetString("clientes"),0);
RDebugUtils.currentLine=14876762;
 //BA.debugLineNum = 14876762;BA.debugLine="If clientes.GetString(\"clientes\") = CONTEO_CAT";
if ((_clientes.GetString("clientes")).equals(_conteo_cat)) { 
RDebugUtils.currentLine=14876763;
 //BA.debugLineNum = 14876763;BA.debugLine="PB_carga2.Progress = 100";
__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14876764;
 //BA.debugLineNum = 14876764;BA.debugLine="l_carga2.Text = \"LISTO\"";
__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }else {
 };
RDebugUtils.currentLine=14876769;
 //BA.debugLineNum = 14876769;BA.debugLine="Log(DETALLE)";
__c.LogImpl("814876769",_detalle,0);
RDebugUtils.currentLine=14876770;
 //BA.debugLineNum = 14876770;BA.debugLine="Log(detalleventa.GetString(\"detalle\"))";
__c.LogImpl("814876770",_detalleventa.GetString("detalle"),0);
RDebugUtils.currentLine=14876771;
 //BA.debugLineNum = 14876771;BA.debugLine="If detalleventa.GetString(\"detalle\") = DETALLE";
if ((_detalleventa.GetString("detalle")).equals(_detalle)) { 
RDebugUtils.currentLine=14876772;
 //BA.debugLineNum = 14876772;BA.debugLine="PB_carga.Progress = 100";
__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=14876773;
 //BA.debugLineNum = 14876773;BA.debugLine="L_carga.Text = \"LISTO\"";
__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }else {
 };
RDebugUtils.currentLine=14876778;
 //BA.debugLineNum = 14876778;BA.debugLine="clientes.Close";
_clientes.Close();
RDebugUtils.currentLine=14876779;
 //BA.debugLineNum = 14876779;BA.debugLine="detalleventa.Close";
_detalleventa.Close();
 };
 };
RDebugUtils.currentLine=14876784;
 //BA.debugLineNum = 14876784;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876785;
 //BA.debugLineNum = 14876785;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876786;
 //BA.debugLineNum = 14876786;BA.debugLine="If result.Tag.As(String).IndexOf(\"PICK_C_\") > -";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).indexOf("PICK_C_")>-1) { 
RDebugUtils.currentLine=14876788;
 //BA.debugLineNum = 14876788;BA.debugLine="Private id As String= result.Tag";
_id = BA.ObjectToString(_result.Tag /*Object*/ );
RDebugUtils.currentLine=14876789;
 //BA.debugLineNum = 14876789;BA.debugLine="id = id.SubString(id.IndexOf(\"_\")+3)";
_id = _id.substring((int) (_id.indexOf("_")+3));
RDebugUtils.currentLine=14876790;
 //BA.debugLineNum = 14876790;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group93 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen93 = group93.getSize()
;int index93 = 0;
;
for (; index93 < groupLen93;index93++){
_records = (Object[])(group93.Get(index93));
RDebugUtils.currentLine=14876791;
 //BA.debugLineNum = 14876791;BA.debugLine="Dim CUENTA As String = records(result.Columns";
_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
RDebugUtils.currentLine=14876792;
 //BA.debugLineNum = 14876792;BA.debugLine="Log(CUENTA)";
__c.LogImpl("814876792",_cuenta,0);
RDebugUtils.currentLine=14876793;
 //BA.debugLineNum = 14876793;BA.debugLine="Log(id)";
__c.LogImpl("814876793",_id,0);
RDebugUtils.currentLine=14876794;
 //BA.debugLineNum = 14876794;BA.debugLine="If CUENTA = 0 Then";
if ((_cuenta).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14876795;
 //BA.debugLineNum = 14876795;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?",new String[]{_id})));
RDebugUtils.currentLine=14876796;
 //BA.debugLineNum = 14876796;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14876798;
 //BA.debugLineNum = 14876798;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14876799;
 //BA.debugLineNum = 14876799;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14876800;
 //BA.debugLineNum = 14876800;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14876801;
 //BA.debugLineNum = 14876801;BA.debugLine="cmd.Name = \"insert_PICKCIEGO_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_PICKCIEGO_IZCA";
RDebugUtils.currentLine=14876802;
 //BA.debugLineNum = 14876802;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOM_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")};
RDebugUtils.currentLine=14876803;
 //BA.debugLineNum = 14876803;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_PC\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_PC"));
 };
RDebugUtils.currentLine=14876806;
 //BA.debugLineNum = 14876806;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=14876807;
 //BA.debugLineNum = 14876807;BA.debugLine="Else if CUENTA > 0 Then";
if ((double)(Double.parseDouble(_cuenta))>0) { 
RDebugUtils.currentLine=14876808;
 //BA.debugLineNum = 14876808;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?",new String[]{_id})));
RDebugUtils.currentLine=14876809;
 //BA.debugLineNum = 14876809;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=14876811;
 //BA.debugLineNum = 14876811;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14876812;
 //BA.debugLineNum = 14876812;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=14876813;
 //BA.debugLineNum = 14876813;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=14876814;
 //BA.debugLineNum = 14876814;BA.debugLine="cmd.Name = \"update_PICKCIEGO_IZCA\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_PICKCIEGO_IZCA";
RDebugUtils.currentLine=14876815;
 //BA.debugLineNum = 14876815;BA.debugLine="Log(\"FECHA\" & c.GetString(\"PC_FECHA\"))";
__c.LogImpl("814876815","FECHA"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA"),0);
RDebugUtils.currentLine=14876816;
 //BA.debugLineNum = 14876816;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")};
RDebugUtils.currentLine=14876817;
 //BA.debugLineNum = 14876817;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_PC\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_PC"));
 };
RDebugUtils.currentLine=14876820;
 //BA.debugLineNum = 14876820;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
 }
};
 };
 };
RDebugUtils.currentLine=14876828;
 //BA.debugLineNum = 14876828;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876829;
 //BA.debugLineNum = 14876829;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876830;
 //BA.debugLineNum = 14876830;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) { 
RDebugUtils.currentLine=14876831;
 //BA.debugLineNum = 14876831;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3"))>-1) { 
RDebugUtils.currentLine=14876832;
 //BA.debugLineNum = 14876832;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=14876833;
 //BA.debugLineNum = 14876833;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814876833",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14876835;
 //BA.debugLineNum = 14876835;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=14876836;
 //BA.debugLineNum = 14876836;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group132 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen132 = group132.getSize()
;int index132 = 0;
;
for (; index132 < groupLen132;index132++){
_records = (Object[])(group132.Get(index132));
RDebugUtils.currentLine=14876837;
 //BA.debugLineNum = 14876837;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=14876838;
 //BA.debugLineNum = 14876838;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=14876839;
 //BA.debugLineNum = 14876839;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=14876840;
 //BA.debugLineNum = 14876840;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=14876841;
 //BA.debugLineNum = 14876841;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=14876842;
 //BA.debugLineNum = 14876842;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=14876843;
 //BA.debugLineNum = 14876843;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=14876844;
 //BA.debugLineNum = 14876844;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=14876845;
 //BA.debugLineNum = 14876845;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=14876846;
 //BA.debugLineNum = 14876846;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=14876847;
 //BA.debugLineNum = 14876847;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=14876849;
 //BA.debugLineNum = 14876849;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=14876850;
 //BA.debugLineNum = 14876850;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=14876851;
 //BA.debugLineNum = 14876851;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=14876852;
 //BA.debugLineNum = 14876852;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=14876856;
 //BA.debugLineNum = 14876856;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) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_dp_precio4),(Object)(_cat_dp_conversion1)}));
 }
};
RDebugUtils.currentLine=14876858;
 //BA.debugLineNum = 14876858;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=14876859;
 //BA.debugLineNum = 14876859;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=14876860;
 //BA.debugLineNum = 14876860;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14876861;
 //BA.debugLineNum = 14876861;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=14876862;
 //BA.debugLineNum = 14876862;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876863;
 //BA.debugLineNum = 14876863;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876864;
 //BA.debugLineNum = 14876864;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876865;
 //BA.debugLineNum = 14876865;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14876870;
 //BA.debugLineNum = 14876870;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876871;
 //BA.debugLineNum = 14876871;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876872;
 //BA.debugLineNum = 14876872;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=14876873;
 //BA.debugLineNum = 14876873;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------";
__c.LogImpl("814876873","Entramos a GUNA_PROD<---------------------------------",0);
RDebugUtils.currentLine=14876874;
 //BA.debugLineNum = 14876874;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod"))>-1) { 
RDebugUtils.currentLine=14876875;
 //BA.debugLineNum = 14876875;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=14876876;
 //BA.debugLineNum = 14876876;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814876876",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14876878;
 //BA.debugLineNum = 14876878;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=14876879;
 //BA.debugLineNum = 14876879;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group170 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen170 = group170.getSize()
;int index170 = 0;
;
for (; index170 < groupLen170;index170++){
_records = (Object[])(group170.Get(index170));
RDebugUtils.currentLine=14876880;
 //BA.debugLineNum = 14876880;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=14876881;
 //BA.debugLineNum = 14876881;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=14876882;
 //BA.debugLineNum = 14876882;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=14876883;
 //BA.debugLineNum = 14876883;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=14876884;
 //BA.debugLineNum = 14876884;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=14876885;
 //BA.debugLineNum = 14876885;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=14876886;
 //BA.debugLineNum = 14876886;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=14876887;
 //BA.debugLineNum = 14876887;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=14876888;
 //BA.debugLineNum = 14876888;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=14876889;
 //BA.debugLineNum = 14876889;BA.debugLine="Dim CONVERSION As String = 0'records(result.C";
_conversion = BA.NumberToString(0);
RDebugUtils.currentLine=14876890;
 //BA.debugLineNum = 14876890;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul";
_precioconver = BA.NumberToString(0);
RDebugUtils.currentLine=14876891;
 //BA.debugLineNum = 14876891;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=14876896;
 //BA.debugLineNum = 14876896;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------";
__c.LogImpl("814876896",_cat_gp_nombre+"<-------------------------------------",0);
RDebugUtils.currentLine=14876897;
 //BA.debugLineNum = 14876897;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=14876899;
 //BA.debugLineNum = 14876899;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=14876900;
 //BA.debugLineNum = 14876900;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=14876901;
 //BA.debugLineNum = 14876901;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14876902;
 //BA.debugLineNum = 14876902;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=14876903;
 //BA.debugLineNum = 14876903;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876904;
 //BA.debugLineNum = 14876904;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876905;
 //BA.debugLineNum = 14876905;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876906;
 //BA.debugLineNum = 14876906;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14876911;
 //BA.debugLineNum = 14876911;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876912;
 //BA.debugLineNum = 14876912;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876913;
 //BA.debugLineNum = 14876913;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=14876914;
 //BA.debugLineNum = 14876914;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp"))>-1) { 
RDebugUtils.currentLine=14876915;
 //BA.debugLineNum = 14876915;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=14876916;
 //BA.debugLineNum = 14876916;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814876916",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14876918;
 //BA.debugLineNum = 14876918;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group204 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen204 = group204.getSize()
;int index204 = 0;
;
for (; index204 < groupLen204;index204++){
_records = (Object[])(group204.Get(index204));
RDebugUtils.currentLine=14876919;
 //BA.debugLineNum = 14876919;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=14876920;
 //BA.debugLineNum = 14876920;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=14876921;
 //BA.debugLineNum = 14876921;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=14876922;
 //BA.debugLineNum = 14876922;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=14876923;
 //BA.debugLineNum = 14876923;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=14876924;
 //BA.debugLineNum = 14876924;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=14876925;
 //BA.debugLineNum = 14876925;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=14876926;
 //BA.debugLineNum = 14876926;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=14876927;
 //BA.debugLineNum = 14876927;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=14876928;
 //BA.debugLineNum = 14876928;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=14876931;
 //BA.debugLineNum = 14876931;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=14876933;
 //BA.debugLineNum = 14876933;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14876934;
 //BA.debugLineNum = 14876934;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=14876935;
 //BA.debugLineNum = 14876935;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876936;
 //BA.debugLineNum = 14876936;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876937;
 //BA.debugLineNum = 14876937;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876938;
 //BA.debugLineNum = 14876938;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14876939;
 //BA.debugLineNum = 14876939;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=14876940;
 //BA.debugLineNum = 14876940;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876941;
 //BA.debugLineNum = 14876941;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876942;
 //BA.debugLineNum = 14876942;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876943;
 //BA.debugLineNum = 14876943;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14876948;
 //BA.debugLineNum = 14876948;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876949;
 //BA.debugLineNum = 14876949;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876950;
 //BA.debugLineNum = 14876950;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=14876951;
 //BA.debugLineNum = 14876951;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq"))>-1) { 
RDebugUtils.currentLine=14876952;
 //BA.debugLineNum = 14876952;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=14876953;
 //BA.debugLineNum = 14876953;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814876953",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14876955;
 //BA.debugLineNum = 14876955;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group238 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen238 = group238.getSize()
;int index238 = 0;
;
for (; index238 < groupLen238;index238++){
_records = (Object[])(group238.Get(index238));
RDebugUtils.currentLine=14876956;
 //BA.debugLineNum = 14876956;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=14876957;
 //BA.debugLineNum = 14876957;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=14876958;
 //BA.debugLineNum = 14876958;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=14876959;
 //BA.debugLineNum = 14876959;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=14876960;
 //BA.debugLineNum = 14876960;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=14876961;
 //BA.debugLineNum = 14876961;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=14876962;
 //BA.debugLineNum = 14876962;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=14876963;
 //BA.debugLineNum = 14876963;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=14876964;
 //BA.debugLineNum = 14876964;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=14876965;
 //BA.debugLineNum = 14876965;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=14876966;
 //BA.debugLineNum = 14876966;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=14876968;
 //BA.debugLineNum = 14876968;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=14876970;
 //BA.debugLineNum = 14876970;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14876971;
 //BA.debugLineNum = 14876971;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=14876972;
 //BA.debugLineNum = 14876972;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876973;
 //BA.debugLineNum = 14876973;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876974;
 //BA.debugLineNum = 14876974;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876975;
 //BA.debugLineNum = 14876975;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=14876976;
 //BA.debugLineNum = 14876976;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=14876977;
 //BA.debugLineNum = 14876977;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14876978;
 //BA.debugLineNum = 14876978;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14876979;
 //BA.debugLineNum = 14876979;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14876980;
 //BA.debugLineNum = 14876980;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=14876985;
 //BA.debugLineNum = 14876985;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14876986;
 //BA.debugLineNum = 14876986;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14876987;
 //BA.debugLineNum = 14876987;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { 
RDebugUtils.currentLine=14876988;
 //BA.debugLineNum = 14876988;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group269 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen269 = group269.getSize()
;int index269 = 0;
;
for (; index269 < groupLen269;index269++){
_records = (Object[])(group269.Get(index269));
RDebugUtils.currentLine=14876989;
 //BA.debugLineNum = 14876989;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=14876990;
 //BA.debugLineNum = 14876990;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
RDebugUtils.currentLine=14876992;
 //BA.debugLineNum = 14876992;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=14876994;
 //BA.debugLineNum = 14876994;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 };
 }
};
 };
 };
RDebugUtils.currentLine=14877000;
 //BA.debugLineNum = 14877000;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877001;
 //BA.debugLineNum = 14877001;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877002;
 //BA.debugLineNum = 14877002;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("punteo"))) { 
RDebugUtils.currentLine=14877003;
 //BA.debugLineNum = 14877003;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>-1) { 
RDebugUtils.currentLine=14877004;
 //BA.debugLineNum = 14877004;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=14877007;
 //BA.debugLineNum = 14877007;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>0) { 
RDebugUtils.currentLine=14877008;
 //BA.debugLineNum = 14877008;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=14877009;
 //BA.debugLineNum = 14877009;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814877009",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14877011;
 //BA.debugLineNum = 14877011;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=14877012;
 //BA.debugLineNum = 14877012;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group290 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen290 = group290.getSize()
;int index290 = 0;
;
for (; index290 < groupLen290;index290++){
_records = (Object[])(group290.Get(index290));
RDebugUtils.currentLine=14877013;
 //BA.debugLineNum = 14877013;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=14877014;
 //BA.debugLineNum = 14877014;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=14877015;
 //BA.debugLineNum = 14877015;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=14877017;
 //BA.debugLineNum = 14877017;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=14877019;
 //BA.debugLineNum = 14877019;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=14877020;
 //BA.debugLineNum = 14877020;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
 };
 };
RDebugUtils.currentLine=14877024;
 //BA.debugLineNum = 14877024;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877025;
 //BA.debugLineNum = 14877025;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877026;
 //BA.debugLineNum = 14877026;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=14877027;
 //BA.debugLineNum = 14877027;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos"))>-1) { 
RDebugUtils.currentLine=14877028;
 //BA.debugLineNum = 14877028;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=14877031;
 //BA.debugLineNum = 14877031;BA.debugLine="Log(l_ruta.text)";
__c.LogImpl("814877031",__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=14877032;
 //BA.debugLineNum = 14877032;BA.debugLine="Log($\"********  Insertamos HV - ${result.Rows.";
__c.LogImpl("814877032",("********  Insertamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
RDebugUtils.currentLine=14877033;
 //BA.debugLineNum = 14877033;BA.debugLine="Starter.skmt.BeginTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=14877034;
 //BA.debugLineNum = 14877034;BA.debugLine="Dim consecutivo  As Int= 0";
_consecutivo = (int) (0);
RDebugUtils.currentLine=14877035;
 //BA.debugLineNum = 14877035;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group310 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen310 = group310.getSize()
;int index310 = 0;
;
for (; index310 < groupLen310;index310++){
_records = (Object[])(group310.Get(index310));
RDebugUtils.currentLine=14877036;
 //BA.debugLineNum = 14877036;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=14877037;
 //BA.debugLineNum = 14877037;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=14877038;
 //BA.debugLineNum = 14877038;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=14877039;
 //BA.debugLineNum = 14877039;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=14877040;
 //BA.debugLineNum = 14877040;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=14877041;
 //BA.debugLineNum = 14877041;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=14877042;
 //BA.debugLineNum = 14877042;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=14877043;
 //BA.debugLineNum = 14877043;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=14877044;
 //BA.debugLineNum = 14877044;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=14877045;
 //BA.debugLineNum = 14877045;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=14877046;
 //BA.debugLineNum = 14877046;BA.debugLine="Dim HVD_BCREDITO As String = records(result.C";
_hvd_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_BCREDITO"))))]);
RDebugUtils.currentLine=14877048;
 //BA.debugLineNum = 14877048;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col";
_bcajas = BA.NumberToString(0);
RDebugUtils.currentLine=14877049;
 //BA.debugLineNum = 14877049;BA.debugLine="Dim cantc As String = 0 'records(result.Colum";
_cantc = BA.NumberToString(0);
RDebugUtils.currentLine=14877051;
 //BA.debugLineNum = 14877051;BA.debugLine="consecutivo = consecutivo +1";
_consecutivo = (int) (_consecutivo+1);
RDebugUtils.currentLine=14877052;
 //BA.debugLineNum = 14877052;BA.debugLine="Log(HVD_PRONOMBRE & \", \" & HVD_CANT & \", \" &H";
__c.LogImpl("814877052",_hvd_pronombre+", "+_hvd_cant+", "+_hvd_cliente,0);
RDebugUtils.currentLine=14877053;
 //BA.debugLineNum = 14877053;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=14877054;
 //BA.debugLineNum = 14877054;BA.debugLine="Log(\"No hay ruta, guardamos todos\")";
__c.LogImpl("814877054","No hay ruta, guardamos todos",0);
RDebugUtils.currentLine=14877055;
 //BA.debugLineNum = 14877055;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito)}));
RDebugUtils.currentLine=14877056;
 //BA.debugLineNum = 14877056;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=14877059;
 //BA.debugLineNum = 14877059;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))+"' AND HVD_CANT = '"+__c.SmartStringFormatter("",(Object)(_hvd_cant))+"' AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_hvd_codpromo))+"' "))));
RDebugUtils.currentLine=14877060;
 //BA.debugLineNum = 14877060;BA.debugLine="If tc.RowCount = 0 Then";
if (_tc.getRowCount()==0) { 
RDebugUtils.currentLine=14877061;
 //BA.debugLineNum = 14877061;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)";
__c.LogImpl("814877061",("Guardamos "+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+""),0);
RDebugUtils.currentLine=14877062;
 //BA.debugLineNum = 14877062;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito)}));
RDebugUtils.currentLine=14877063;
 //BA.debugLineNum = 14877063;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=14877067;
 //BA.debugLineNum = 14877067;BA.debugLine="Starter.skmt.TransactionSuccessful";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=14877068;
 //BA.debugLineNum = 14877068;BA.debugLine="Starter.skmt.EndTransaction";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
RDebugUtils.currentLine=14877069;
 //BA.debugLineNum = 14877069;BA.debugLine="Log($\"********  Terminamos HV - ${result.Rows.";
__c.LogImpl("814877069",("********  Terminamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
RDebugUtils.currentLine=14877083;
 //BA.debugLineNum = 14877083;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=14877084;
 //BA.debugLineNum = 14877084;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=14877085;
 //BA.debugLineNum = 14877085;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
RDebugUtils.currentLine=14877086;
 //BA.debugLineNum = 14877086;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=14877087;
 //BA.debugLineNum = 14877087;BA.debugLine="img2.Visible = False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14877088;
 //BA.debugLineNum = 14877088;BA.debugLine="EJECUTANDO = 0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=14877094;
 //BA.debugLineNum = 14877094;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877095;
 //BA.debugLineNum = 14877095;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877096;
 //BA.debugLineNum = 14877096;BA.debugLine="If result.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=14877097;
 //BA.debugLineNum = 14877097;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=14877098;
 //BA.debugLineNum = 14877098;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=14877099;
 //BA.debugLineNum = 14877099;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=14877101;
 //BA.debugLineNum = 14877101;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=14877107;
 //BA.debugLineNum = 14877107;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877108;
 //BA.debugLineNum = 14877108;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877109;
 //BA.debugLineNum = 14877109;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("PAGARES"))) { 
RDebugUtils.currentLine=14877110;
 //BA.debugLineNum = 14877110;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group364 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen364 = group364.getSize()
;int index364 = 0;
;
for (; index364 < groupLen364;index364++){
_records = (Object[])(group364.Get(index364));
RDebugUtils.currentLine=14877112;
 //BA.debugLineNum = 14877112;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=14877113;
 //BA.debugLineNum = 14877113;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=14877115;
 //BA.debugLineNum = 14877115;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=14877120;
 //BA.debugLineNum = 14877120;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877121;
 //BA.debugLineNum = 14877121;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877122;
 //BA.debugLineNum = 14877122;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=14877123;
 //BA.debugLineNum = 14877123;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group374 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen374 = group374.getSize()
;int index374 = 0;
;
for (; index374 < groupLen374;index374++){
_records = (Object[])(group374.Get(index374));
RDebugUtils.currentLine=14877124;
 //BA.debugLineNum = 14877124;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=14877125;
 //BA.debugLineNum = 14877125;BA.debugLine="If cuantos_pedido = CUANTOSP Then";
if ((__ref._cuantos_pedido /*String*/ ).equals(BA.NumberToString(_cuantosp))) { 
RDebugUtils.currentLine=14877127;
 //BA.debugLineNum = 14877127;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=14877129;
 //BA.debugLineNum = 14877129;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=14877137;
 //BA.debugLineNum = 14877137;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877138;
 //BA.debugLineNum = 14877138;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877139;
 //BA.debugLineNum = 14877139;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=14877140;
 //BA.debugLineNum = 14877140;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group387 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen387 = group387.getSize()
;int index387 = 0;
;
for (; index387 < groupLen387;index387++){
_records = (Object[])(group387.Get(index387));
RDebugUtils.currentLine=14877141;
 //BA.debugLineNum = 14877141;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=14877142;
 //BA.debugLineNum = 14877142;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=14877144;
 //BA.debugLineNum = 14877144;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=14877146;
 //BA.debugLineNum = 14877146;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=14877152;
 //BA.debugLineNum = 14877152;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877153;
 //BA.debugLineNum = 14877153;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877154;
 //BA.debugLineNum = 14877154;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=14877155;
 //BA.debugLineNum = 14877155;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group400 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen400 = group400.getSize()
;int index400 = 0;
;
for (; index400 < groupLen400;index400++){
_records = (Object[])(group400.Get(index400));
RDebugUtils.currentLine=14877156;
 //BA.debugLineNum = 14877156;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=14877157;
 //BA.debugLineNum = 14877157;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=14877159;
 //BA.debugLineNum = 14877159;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=14877161;
 //BA.debugLineNum = 14877161;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=14877167;
 //BA.debugLineNum = 14877167;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877168;
 //BA.debugLineNum = 14877168;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877169;
 //BA.debugLineNum = 14877169;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("insert_pedido"))) { 
RDebugUtils.currentLine=14877170;
 //BA.debugLineNum = 14877170;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
 };
 };
RDebugUtils.currentLine=14877174;
 //BA.debugLineNum = 14877174;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877175;
 //BA.debugLineNum = 14877175;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877176;
 //BA.debugLineNum = 14877176;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=14877177;
 //BA.debugLineNum = 14877177;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group419 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen419 = group419.getSize()
;int index419 = 0;
;
for (; index419 < groupLen419;index419++){
_records = (Object[])(group419.Get(index419));
RDebugUtils.currentLine=14877178;
 //BA.debugLineNum = 14877178;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=14877179;
 //BA.debugLineNum = 14877179;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=14877181;
 //BA.debugLineNum = 14877181;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=14877186;
 //BA.debugLineNum = 14877186;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877187;
 //BA.debugLineNum = 14877187;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877188;
 //BA.debugLineNum = 14877188;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=14877189;
 //BA.debugLineNum = 14877189;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group429 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen429 = group429.getSize()
;int index429 = 0;
;
for (; index429 < groupLen429;index429++){
_records = (Object[])(group429.Get(index429));
RDebugUtils.currentLine=14877190;
 //BA.debugLineNum = 14877190;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=14877195;
 //BA.debugLineNum = 14877195;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877196;
 //BA.debugLineNum = 14877196;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877197;
 //BA.debugLineNum = 14877197;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=14877198;
 //BA.debugLineNum = 14877198;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta"))>-1) { 
RDebugUtils.currentLine=14877199;
 //BA.debugLineNum = 14877199;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=14877200;
 //BA.debugLineNum = 14877200;BA.debugLine="Log(reqs.Size)";
__c.LogImpl("814877200",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 };
RDebugUtils.currentLine=14877202;
 //BA.debugLineNum = 14877202;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group441 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen441 = group441.getSize()
;int index441 = 0;
;
for (; index441 < groupLen441;index441++){
_records = (Object[])(group441.Get(index441));
RDebugUtils.currentLine=14877203;
 //BA.debugLineNum = 14877203;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=14877205;
 //BA.debugLineNum = 14877205;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=14877206;
 //BA.debugLineNum = 14877206;BA.debugLine="If l_ctast.Text = \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=14877207;
 //BA.debugLineNum = 14877207;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else 
{RDebugUtils.currentLine=14877208;
 //BA.debugLineNum = 14877208;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=14877209;
 //BA.debugLineNum = 14877209;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
RDebugUtils.currentLine=14877211;
 //BA.debugLineNum = 14877211;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=14877212;
 //BA.debugLineNum = 14877212;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then";
if ((_subs._dameusuariodedb /*String*/ (ba)).equals("ROOT")) { 
RDebugUtils.currentLine=14877213;
 //BA.debugLineNum = 14877213;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=14877215;
 //BA.debugLineNum = 14877215;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14877216;
 //BA.debugLineNum = 14877216;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
RDebugUtils.currentLine=14877219;
 //BA.debugLineNum = 14877219;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=14877221;
 //BA.debugLineNum = 14877221;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=14877223;
 //BA.debugLineNum = 14877223;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=14877224;
 //BA.debugLineNum = 14877224;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=14877227;
 //BA.debugLineNum = 14877227;BA.debugLine="MsgboxAsync(\"La ruta no esta asignada a este";
__c.MsgboxAsync(BA.ObjectToCharSequence("La ruta no esta asignada a este usuario"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=14877228;
 //BA.debugLineNum = 14877228;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14877229;
 //BA.debugLineNum = 14877229;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14877230;
 //BA.debugLineNum = 14877230;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=14877231;
 //BA.debugLineNum = 14877231;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }
};
 };
 };
RDebugUtils.currentLine=14877237;
 //BA.debugLineNum = 14877237;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877238;
 //BA.debugLineNum = 14877238;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877239;
 //BA.debugLineNum = 14877239;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
RDebugUtils.currentLine=14877240;
 //BA.debugLineNum = 14877240;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group473 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen473 = group473.getSize()
;int index473 = 0;
;
for (; index473 < groupLen473;index473++){
_records = (Object[])(group473.Get(index473));
RDebugUtils.currentLine=14877241;
 //BA.debugLineNum = 14877241;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
__c.LogImpl("814877241","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0);
RDebugUtils.currentLine=14877242;
 //BA.debugLineNum = 14877242;BA.debugLine="Private lat, lon As Double";
_lat = 0;
_lon = 0;
RDebugUtils.currentLine=14877243;
 //BA.debugLineNum = 14877243;BA.debugLine="lat = 0.0";
_lat = 0.0;
RDebugUtils.currentLine=14877244;
 //BA.debugLineNum = 14877244;BA.debugLine="lon = 0.0";
_lon = 0.0;
RDebugUtils.currentLine=14877245;
 //BA.debugLineNum = 14877245;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=14877246;
 //BA.debugLineNum = 14877246;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=14877247;
 //BA.debugLineNum = 14877247;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=14877249;
 //BA.debugLineNum = 14877249;BA.debugLine="Starter.cedisLocation.Latitude = lat";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
RDebugUtils.currentLine=14877250;
 //BA.debugLineNum = 14877250;BA.debugLine="Starter.cedisLocation.Longitude = lon";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
RDebugUtils.currentLine=14877251;
 //BA.debugLineNum = 14877251;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=14877252;
 //BA.debugLineNum = 14877252;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=14877258;
 //BA.debugLineNum = 14877258;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877259;
 //BA.debugLineNum = 14877259;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877260;
 //BA.debugLineNum = 14877260;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_reparto"))) { 
RDebugUtils.currentLine=14877261;
 //BA.debugLineNum = 14877261;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group492 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen492 = group492.getSize()
;int index492 = 0;
;
for (; index492 < groupLen492;index492++){
_records = (Object[])(group492.Get(index492));
RDebugUtils.currentLine=14877262;
 //BA.debugLineNum = 14877262;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group493 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen493 = group493.getSize()
;int index493 = 0;
;
for (; index493 < groupLen493;index493++){
_k = BA.ObjectToString(group493.Get(index493));
RDebugUtils.currentLine=14877263;
 //BA.debugLineNum = 14877263;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
__c.LogImpl("814877263",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=14877269;
 //BA.debugLineNum = 14877269;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=14877270;
 //BA.debugLineNum = 14877270;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=14877271;
 //BA.debugLineNum = 14877271;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) { 
RDebugUtils.currentLine=14877272;
 //BA.debugLineNum = 14877272;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group502 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen502 = group502.getSize()
;int index502 = 0;
;
for (; index502 < groupLen502;index502++){
_records = (Object[])(group502.Get(index502));
RDebugUtils.currentLine=14877273;
 //BA.debugLineNum = 14877273;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group503 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen503 = group503.getSize()
;int index503 = 0;
;
for (; index503 < groupLen503;index503++){
_k = BA.ObjectToString(group503.Get(index503));
RDebugUtils.currentLine=14877274;
 //BA.debugLineNum = 14877274;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
__c.LogImpl("814877274",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=14877279;
 //BA.debugLineNum = 14877279;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=14877282;
 //BA.debugLineNum = 14877282;BA.debugLine="If reqs.Size = 0 Then";
if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { 
RDebugUtils.currentLine=14877288;
 //BA.debugLineNum = 14877288;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=14877289;
 //BA.debugLineNum = 14877289;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14877290;
 //BA.debugLineNum = 14877290;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=14877291;
 //BA.debugLineNum = 14877291;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=14877293;
 //BA.debugLineNum = 14877293;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=14877296;
 //BA.debugLineNum = 14877296;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=14877302;
 //BA.debugLineNum = 14877302;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(reparto_izca.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=15728640;
 //BA.debugLineNum = 15728640;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,";
RDebugUtils.currentLine=15728641;
 //BA.debugLineNum = 15728641;BA.debugLine="Log(Value)";
__c.LogImpl("815728641",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=15728643;
 //BA.debugLineNum = 15728643;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu";
_clieasing = __c.Regex.Split(" ",BA.ObjectToString(_value));
RDebugUtils.currentLine=15728644;
 //BA.debugLineNum = 15728644;BA.debugLine="Log(clieasing(0))";
__c.LogImpl("815728644",_clieasing[(int) (0)],0);
RDebugUtils.currentLine=15728646;
 //BA.debugLineNum = 15728646;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=15728647;
 //BA.debugLineNum = 15728647;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=15728648;
 //BA.debugLineNum = 15728648;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=15728649;
 //BA.debugLineNum = 15728649;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15728650;
 //BA.debugLineNum = 15728650;BA.debugLine="End Sub";
return "";
}
public String  _p_carga_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_carga_click", false))
	 {return ((String) Debug.delegate(ba, "p_carga_click", null));}
RDebugUtils.currentLine=16121856;
 //BA.debugLineNum = 16121856;BA.debugLine="Private Sub P_carga_Click";
RDebugUtils.currentLine=16121858;
 //BA.debugLineNum = 16121858;BA.debugLine="End Sub";
return "";
}
public String  _p_ciego_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_ciego_click", false))
	 {return ((String) Debug.delegate(ba, "p_ciego_click", null));}
RDebugUtils.currentLine=16777216;
 //BA.debugLineNum = 16777216;BA.debugLine="Private Sub P_CIEGO_Click";
RDebugUtils.currentLine=16777218;
 //BA.debugLineNum = 16777218;BA.debugLine="End Sub";
return "";
}
public String  _p_prod_click(reparto_izca.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=15925248;
 //BA.debugLineNum = 15925248;BA.debugLine="Private Sub p_prod_Click";
RDebugUtils.currentLine=15925250;
 //BA.debugLineNum = 15925250;BA.debugLine="End Sub";
return "";
}
public String  _printer_connected(reparto_izca.keymon.lat.c_principal __ref,boolean _success) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "printer_connected", false))
	 {return ((String) Debug.delegate(ba, "printer_connected", new Object[] {_success}));}
RDebugUtils.currentLine=16384000;
 //BA.debugLineNum = 16384000;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
RDebugUtils.currentLine=16384001;
 //BA.debugLineNum = 16384001;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=16384003;
 //BA.debugLineNum = 16384003;BA.debugLine="PASA_IMP = \"1\"";
__ref._pasa_imp /*String*/  = "1";
 }else {
RDebugUtils.currentLine=16384006;
 //BA.debugLineNum = 16384006;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
if (__c.Msgbox2(BA.ObjectToCharSequence(""),BA.ObjectToCharSequence("Printer Error"),"Reprint","Cancel","",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) { 
RDebugUtils.currentLine=16384007;
 //BA.debugLineNum = 16384007;BA.debugLine="StartPrinter";
__ref._startprinter /*String*/ (null);
 };
 };
RDebugUtils.currentLine=16384010;
 //BA.debugLineNum = 16384010;BA.debugLine="End Sub";
return "";
}
public String  _startprinter(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "startprinter", false))
	 {return ((String) Debug.delegate(ba, "startprinter", null));}
anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
anywheresoftware.b4a.objects.collections.List _l1 = null;
int _resimp = 0;
int _i = 0;
RDebugUtils.currentLine=16449536;
 //BA.debugLineNum = 16449536;BA.debugLine="Sub StartPrinter";
RDebugUtils.currentLine=16449537;
 //BA.debugLineNum = 16449537;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=16449538;
 //BA.debugLineNum = 16449538;BA.debugLine="Dim L1 As List";
_l1 = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=16449539;
 //BA.debugLineNum = 16449539;BA.debugLine="Dim resimp As Int";
_resimp = 0;
RDebugUtils.currentLine=16449540;
 //BA.debugLineNum = 16449540;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
RDebugUtils.currentLine=16449541;
 //BA.debugLineNum = 16449541;BA.debugLine="PairedDevices.Initialize";
_paireddevices.Initialize();
RDebugUtils.currentLine=16449542;
 //BA.debugLineNum = 16449542;BA.debugLine="Try";
try {RDebugUtils.currentLine=16449543;
 //BA.debugLineNum = 16449543;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
_paireddevices = __ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices();
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=16449545;
 //BA.debugLineNum = 16449545;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=16449546;
 //BA.debugLineNum = 16449546;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=16449547;
 //BA.debugLineNum = 16449547;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
RDebugUtils.currentLine=16449550;
 //BA.debugLineNum = 16449550;BA.debugLine="If PairedDevices.Size = 0 Then";
if (_paireddevices.getSize()==0) { 
RDebugUtils.currentLine=16449551;
 //BA.debugLineNum = 16449551;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
__c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=16449552;
 //BA.debugLineNum = 16449552;BA.debugLine="Return";
if (true) return "";
 };
RDebugUtils.currentLine=16449555;
 //BA.debugLineNum = 16449555;BA.debugLine="If PairedDevices.Size = 1 Then";
if (_paireddevices.getSize()==1) { 
RDebugUtils.currentLine=16449556;
 //BA.debugLineNum = 16449556;BA.debugLine="Try";
try {RDebugUtils.currentLine=16449557;
 //BA.debugLineNum = 16449557;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0)))));
 } 
       catch (Exception e21) {
			ba.setLastException(e21);RDebugUtils.currentLine=16449559;
 //BA.debugLineNum = 16449559;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=16449560;
 //BA.debugLineNum = 16449560;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=16449561;
 //BA.debugLineNum = 16449561;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
 }else {
RDebugUtils.currentLine=16449564;
 //BA.debugLineNum = 16449564;BA.debugLine="L1.Initialize";
_l1.Initialize();
RDebugUtils.currentLine=16449565;
 //BA.debugLineNum = 16449565;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
{
final int step27 = 1;
final int limit27 = (int) (_paireddevices.getSize()-1);
_i = (int) (0) ;
for (;_i <= limit27 ;_i = _i + step27 ) {
RDebugUtils.currentLine=16449566;
 //BA.debugLineNum = 16449566;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
_l1.Add(_paireddevices.GetKeyAt(_i));
 }
};
RDebugUtils.currentLine=16449568;
 //BA.debugLineNum = 16449568;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
RDebugUtils.currentLine=16449569;
 //BA.debugLineNum = 16449569;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
if (_resimp!=__c.DialogResponse.CANCEL) { 
RDebugUtils.currentLine=16449570;
 //BA.debugLineNum = 16449570;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp))));
 };
 };
RDebugUtils.currentLine=16449573;
 //BA.debugLineNum = 16449573;BA.debugLine="End Sub";
return "";
}
public String  _printer1_connected(reparto_izca.keymon.lat.c_principal __ref,boolean _success) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "printer1_connected", false))
	 {return ((String) Debug.delegate(ba, "printer1_connected", new Object[] {_success}));}
RDebugUtils.currentLine=16252928;
 //BA.debugLineNum = 16252928;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
RDebugUtils.currentLine=16252930;
 //BA.debugLineNum = 16252930;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=16252931;
 //BA.debugLineNum = 16252931;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
RDebugUtils.currentLine=16252932;
 //BA.debugLineNum = 16252932;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 Object[]{(Object)("MACIMP")}));
RDebugUtils.currentLine=16252933;
 //BA.debugLineNum = 16252933;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)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )}));
RDebugUtils.currentLine=16252936;
 //BA.debugLineNum = 16252936;BA.debugLine="impresoraConectada = True";
__ref._impresoraconectada /*boolean*/  = __c.True;
 }else {
RDebugUtils.currentLine=16252940;
 //BA.debugLineNum = 16252940;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("816252940","Error conectando la impresora",__c.Colors.Red);
RDebugUtils.currentLine=16252941;
 //BA.debugLineNum = 16252941;BA.debugLine="errorImpresora = errorImpresora + 1";
__ref._errorimpresora /*int*/  = (int) (__ref._errorimpresora /*int*/ +1);
RDebugUtils.currentLine=16252942;
 //BA.debugLineNum = 16252942;BA.debugLine="If errorImpresora > 1 Then";
if (__ref._errorimpresora /*int*/ >1) { 
RDebugUtils.currentLine=16252943;
 //BA.debugLineNum = 16252943;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
_starter._mac_impresora /*String*/  = "0";
RDebugUtils.currentLine=16252944;
 //BA.debugLineNum = 16252944;BA.debugLine="errorImpresora = 0";
__ref._errorimpresora /*int*/  = (int) (0);
 };
 };
RDebugUtils.currentLine=16252947;
 //BA.debugLineNum = 16252947;BA.debugLine="End Sub";
return "";
}
public String  _printer1_error(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "printer1_error", false))
	 {return ((String) Debug.delegate(ba, "printer1_error", null));}
RDebugUtils.currentLine=16318464;
 //BA.debugLineNum = 16318464;BA.debugLine="Sub Printer1_Error";
RDebugUtils.currentLine=16318465;
 //BA.debugLineNum = 16318465;BA.debugLine="Log(\"error printer\")";
__c.LogImpl("816318465","error printer",0);
RDebugUtils.currentLine=16318466;
 //BA.debugLineNum = 16318466;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(reparto_izca.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=14614528;
 //BA.debugLineNum = 14614528;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=14614529;
 //BA.debugLineNum = 14614529;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=14614530;
 //BA.debugLineNum = 14614530;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=14614531;
 //BA.debugLineNum = 14614531;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=14614532;
 //BA.debugLineNum = 14614532;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=14614533;
 //BA.debugLineNum = 14614533;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14614535;
 //BA.debugLineNum = 14614535;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCKEN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO")));
RDebugUtils.currentLine=14614536;
 //BA.debugLineNum = 14614536;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=14614537;
 //BA.debugLineNum = 14614537;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKENV";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
RDebugUtils.currentLine=14614538;
 //BA.debugLineNum = 14614538;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 }else {
RDebugUtils.currentLine=14614540;
 //BA.debugLineNum = 14614540;BA.debugLine="envioinfo";
__ref._envioinfo /*String*/ (null);
 };
RDebugUtils.currentLine=14614542;
 //BA.debugLineNum = 14614542;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=14614548;
 //BA.debugLineNum = 14614548;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(reparto_izca.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=15335424;
 //BA.debugLineNum = 15335424;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=15335425;
 //BA.debugLineNum = 15335425;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=15335426;
 //BA.debugLineNum = 15335426;BA.debugLine="cmd.Name = \"select_cuantos_pedido\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido";
RDebugUtils.currentLine=15335427;
 //BA.debugLineNum = 15335427;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=15335428;
 //BA.debugLineNum = 15335428;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=15335430;
 //BA.debugLineNum = 15335430;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=15335431;
 //BA.debugLineNum = 15335431;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_mards";
RDebugUtils.currentLine=15335432;
 //BA.debugLineNum = 15335432;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=15335433;
 //BA.debugLineNum = 15335433;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=15335435;
 //BA.debugLineNum = 15335435;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=15335436;
 //BA.debugLineNum = 15335436;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc";
RDebugUtils.currentLine=15335437;
 //BA.debugLineNum = 15335437;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=15335438;
 //BA.debugLineNum = 15335438;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=15335439;
 //BA.debugLineNum = 15335439;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=15335440;
 //BA.debugLineNum = 15335440;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=15335441;
 //BA.debugLineNum = 15335441;BA.debugLine="End Sub";
return "";
}
public String  _t8_tick(reparto_izca.keymon.lat.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "t8_tick", false))
	 {return ((String) Debug.delegate(ba, "t8_tick", null));}
RDebugUtils.currentLine=16056320;
 //BA.debugLineNum = 16056320;BA.debugLine="Sub t8_tick";
RDebugUtils.currentLine=16056321;
 //BA.debugLineNum = 16056321;BA.debugLine="cmd.Initialize";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=16056322;
 //BA.debugLineNum = 16056322;BA.debugLine="cmd.Name = \"select_conteo_izca\"";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_conteo_izca";
RDebugUtils.currentLine=16056323;
 //BA.debugLineNum = 16056323;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=16056324;
 //BA.debugLineNum = 16056324;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"CONTEO_DATOS\")";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("CONTEO_DATOS"));
RDebugUtils.currentLine=16056325;
 //BA.debugLineNum = 16056325;BA.debugLine="l_carga2.Text = \"VALIDANDO\"";
__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO"));
RDebugUtils.currentLine=16056326;
 //BA.debugLineNum = 16056326;BA.debugLine="L_carga.Text = \"VALIDANDO\"";
__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO"));
RDebugUtils.currentLine=16056327;
 //BA.debugLineNum = 16056327;BA.debugLine="PB_carga.Progress = 50";
__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (50));
RDebugUtils.currentLine=16056328;
 //BA.debugLineNum = 16056328;BA.debugLine="PB_carga2.Progress = 50";
__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (50));
RDebugUtils.currentLine=16056329;
 //BA.debugLineNum = 16056329;BA.debugLine="t8.Enabled = False";
__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=16056330;
 //BA.debugLineNum = 16056330;BA.debugLine="End Sub";
return "";
}
public String  _trabajar_click(reparto_izca.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=14548992;
 //BA.debugLineNum = 14548992;BA.debugLine="Sub trabajar_Click";
RDebugUtils.currentLine=14548993;
 //BA.debugLineNum = 14548993;BA.debugLine="If b_check.Visible = True Then";
if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=14548994;
 //BA.debugLineNum = 14548994;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=14548997;
 //BA.debugLineNum = 14548997;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 };
RDebugUtils.currentLine=14549000;
 //BA.debugLineNum = 14549000;BA.debugLine="End Sub";
return "";
}
}