package reparto_intmex.keymon.lat;


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

public class c_cliente extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_intmex.keymon.lat.c_cliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_intmex.keymon.lat.c_cliente.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 anywheresoftware.b4a.gps.GPS _g = null;
public String _clie_id = "";
public String _sdate = "";
public String _stime = "";
public String _usuario = "";
public String _cuenta = "";
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 anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
public anywheresoftware.b4a.objects.collections.List _l = null;
public int _tamano = 0;
public int _espacio = 0;
public String _blanco = "";
public boolean _impresoraconectada = false;
public String _longitud = "";
public String _latitud = "";
public String _nombre = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_cuenta = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_nombre = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_calle = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_numero = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_nint = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_edo = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_pob = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_col = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_cp = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_zona = null;
public anywheresoftware.b4a.objects.ButtonWrapper _gest = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_saldotot = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_saldooper = null;
public reparto_intmex.keymon.lat.dbrequestmanager _reqmanager = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_noentrega = null;
public anywheresoftware.b4a.objects.LabelWrapper _label10 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label11 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public anywheresoftware.b4a.objects.IME _ime = null;
public anywheresoftware.b4a.objects.ButtonWrapper _tar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_qr = null;
public anywheresoftware.b4a.objects.ButtonWrapper _bt_qr = null;
public reparto_intmex.keymon.lat.escposprinter _printer1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_comm = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_actdte = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_usuario = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_resultado = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_entre1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_entre2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_atiende = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_atiende2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _datos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _guardar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _nuevo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.objects.ButtonWrapper _hist = null;
public String _pasa_imp = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_imp = null;
public String _total_cliente = "";
public String _credito = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_paso2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
public int _errorimpresora = 0;
public int _banderaimp = 0;
public anywheresoftware.b4a.objects.LabelWrapper _l_credi = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pagare = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_montopag = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efectivo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_montoefec = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_credito = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acred = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancred = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_montoacredito = null;
public anywheresoftware.b4a.objects.LabelWrapper _label16 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_limite = null;
public String _almacen = "";
public String _fechaprev = "";
public String _rutaprev = "";
public String _rutarep = "";
public String _montopagare = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_abono = null;
public b4a.example3.customlistview _clv_abonos = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_abono = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_abono = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_montoabonostotal = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _h = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _j = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_folio = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_saldo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cxc = null;
public reparto_intmex.keymon.lat.b4xcombobox _cb_tipopago = null;
public String _itemselect = "";
public b4a.example.dateutils _dateutils = null;
public reparto_intmex.keymon.lat.main _main = null;
public reparto_intmex.keymon.lat.appupdater _appupdater = null;
public reparto_intmex.keymon.lat.foto _foto = null;
public reparto_intmex.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_intmex.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_intmex.keymon.lat.starter _starter = null;
public reparto_intmex.keymon.lat.subs _subs = null;
public reparto_intmex.keymon.lat.tracker _tracker = null;
public reparto_intmex.keymon.lat.newinst2 _newinst2 = null;
public reparto_intmex.keymon.lat.b4xpages _b4xpages = null;
public reparto_intmex.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_intmex.keymon.lat.httputils2service _httputils2service = null;
public reparto_intmex.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_intmex.keymon.lat.c_cliente __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=43319296;
 //BA.debugLineNum = 43319296;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=43319297;
 //BA.debugLineNum = 43319297;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=43319298;
 //BA.debugLineNum = 43319298;BA.debugLine="End Sub";
return null;
}
public String  _activity_pause(reparto_intmex.keymon.lat.c_cliente __ref,boolean _userclosed) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
RDebugUtils.currentLine=43515904;
 //BA.debugLineNum = 43515904;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
RDebugUtils.currentLine=43515906;
 //BA.debugLineNum = 43515906;BA.debugLine="End Sub";
return "";
}
public void  _b_abono_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_abono_click", false))
	 {Debug.delegate(ba, "b_abono_click", null); return;}
ResumableSub_b_abono_Click rsub = new ResumableSub_b_abono_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_abono_Click extends BA.ResumableSub {
public ResumableSub_b_abono_Click(reparto_intmex.keymon.lat.c_cliente parent,reparto_intmex.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.c_cliente __ref;
reparto_intmex.keymon.lat.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _con = null;
int _consecutivo = 0;
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
int _resultado = 0;
int step10;
int limit10;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=45219842;
 //BA.debugLineNum = 45219842;BA.debugLine="If et_abono.Text <> \"\" Then";
if (true) break;

case 1:
//if
this.state = 28;
if ((__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=45219843;
 //BA.debugLineNum = 45219843;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then";
if (true) break;

case 4:
//if
this.state = 27;
if ((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>(double)(Double.parseDouble(__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))) { 
this.state = 6;
}else {
this.state = 8;
}if (true) break;

case 6:
//C
this.state = 27;
RDebugUtils.currentLine=45219844;
 //BA.debugLineNum = 45219844;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser may";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("El monto a abonar no puede ser mayor que el monto total"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

case 8:
//C
this.state = 9;
RDebugUtils.currentLine=45219846;
 //BA.debugLineNum = 45219846;BA.debugLine="If et_abono.Text <> \"\" And et_abono.Text > 0 Th";
if (true) break;

case 9:
//if
this.state = 26;
if ((__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false && (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>0) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=45219847;
 //BA.debugLineNum = 45219847;BA.debugLine="If itemselect <> \"SELECCIONA UNA OPCION\" Then";
if (true) break;

case 12:
//if
this.state = 25;
if ((__ref._itemselect /*String*/ ).equals("SELECCIONA UNA OPCION") == false) { 
this.state = 14;
}else {
this.state = 24;
}if (true) break;

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=45219857;
 //BA.debugLineNum = 45219857;BA.debugLine="Dim con As Cursor = Starter.skmt.ExecQuery(\"S";
_con = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_con = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ABONOS WHERE a_cliente in (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=45219858;
 //BA.debugLineNum = 45219858;BA.debugLine="Private consecutivo As Int = con.RowCount +1";
_consecutivo = (int) (_con.getRowCount()+1);
RDebugUtils.currentLine=45219860;
 //BA.debugLineNum = 45219860;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT NOTA, SALD";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE in (SELECT CUENTA FROM CUENTAA) AND SALDO_PENDIENTE <> 0")));
RDebugUtils.currentLine=45219862;
 //BA.debugLineNum = 45219862;BA.debugLine="For i = 0 To d.RowCount - 1";
if (true) break;

case 15:
//for
this.state = 18;
step10 = 1;
limit10 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 29;
if (true) break;

case 29:
//C
this.state = 18;
if ((step10 > 0 && _i <= limit10) || (step10 < 0 && _i >= limit10)) this.state = 17;
if (true) break;

case 30:
//C
this.state = 29;
_i = ((int)(0 + _i + step10)) ;
if (true) break;

case 17:
//C
this.state = 30;
RDebugUtils.currentLine=45219863;
 //BA.debugLineNum = 45219863;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=45219864;
 //BA.debugLineNum = 45219864;BA.debugLine="Log(d.GetString(\"NOTA\"))";
parent.__c.LogImpl("245219864",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=45219865;
 //BA.debugLineNum = 45219865;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
parent.__c.LogImpl("245219865",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
 if (true) break;
if (true) break;

case 18:
//C
this.state = 19;
;
RDebugUtils.currentLine=45219870;
 //BA.debugLineNum = 45219870;BA.debugLine="Dim d5 As Cursor= Starter.skmt.ExecQuery(\"SEL";
_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=45219872;
 //BA.debugLineNum = 45219872;BA.debugLine="d5.Position = 0";
_d5.setPosition((int) (0));
RDebugUtils.currentLine=45219878;
 //BA.debugLineNum = 45219878;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar u";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("¿Seguro que quieres realizar un abono de $"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+" para este cliente?")),BA.ObjectToCharSequence("Guardar Abono"),"Guardar","Cancelar","",(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(parent.__c.Null)),ba,parent.__c.True);
RDebugUtils.currentLine=45219879;
 //BA.debugLineNum = 45219879;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_abono_click"), null);
this.state = 31;
return;
case 31:
//C
this.state = 19;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=45219880;
 //BA.debugLineNum = 45219880;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 19:
//if
this.state = 22;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 21;
}if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=45219881;
 //BA.debugLineNum = 45219881;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=45219882;
 //BA.debugLineNum = 45219882;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABON";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha, TIPO_PAGO, CONSECUTIVO, NUM_TICKET, RUTA_REP) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(__ref._itemselect /*String*/ ))+"', '"+parent.__c.SmartStringFormatter("",(Object)(_consecutivo))+"', '"+parent.__c.SmartStringFormatter("",(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA")))+"' , '"+parent.__c.SmartStringFormatter("",(Object)(_d5.GetString("RUTAA")))+"')"));
RDebugUtils.currentLine=45219883;
 //BA.debugLineNum = 45219883;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
 if (true) break;

case 22:
//C
this.state = 25;
;
RDebugUtils.currentLine=45219899;
 //BA.debugLineNum = 45219899;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=45219900;
 //BA.debugLineNum = 45219900;BA.debugLine="d5.Close";
_d5.Close();
 if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=45219902;
 //BA.debugLineNum = 45219902;BA.debugLine="MsgboxAsync(\"Por favor selecciona un metodo d";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor selecciona un metodo de pago"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

case 25:
//C
this.state = 26;
;
 if (true) break;

case 26:
//C
this.state = 27;
;
 if (true) break;

case 27:
//C
this.state = 28;
;
 if (true) break;

case 28:
//C
this.state = -1;
;
RDebugUtils.currentLine=45219907;
 //BA.debugLineNum = 45219907;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=45219908;
 //BA.debugLineNum = 45219908;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_acred_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_acred_click", false))
	 {return ((String) Debug.delegate(ba, "b_acred_click", null));}
RDebugUtils.currentLine=44761088;
 //BA.debugLineNum = 44761088;BA.debugLine="Private Sub b_acred_Click";
RDebugUtils.currentLine=44761089;
 //BA.debugLineNum = 44761089;BA.debugLine="If et_montoacredito.Text > l_total.Text.Replace(\"";
if ((double)(Double.parseDouble(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>(double)(Double.parseDouble(__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText().replace(",","")))) { 
RDebugUtils.currentLine=44761090;
 //BA.debugLineNum = 44761090;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser ma";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor a la venta"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=44761092;
 //BA.debugLineNum = 44761092;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=44761093;
 //BA.debugLineNum = 44761093;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=44761094;
 //BA.debugLineNum = 44761094;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=44761095;
 //BA.debugLineNum = 44761095;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=44761097;
 //BA.debugLineNum = 44761097;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue";
__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 CUENTA from cuentaa")));
RDebugUtils.currentLine=44761098;
 //BA.debugLineNum = 44761098;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761099;
 //BA.debugLineNum = 44761099;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=44761100;
 //BA.debugLineNum = 44761100;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761102;
 //BA.debugLineNum = 44761102;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=44761103;
 //BA.debugLineNum = 44761103;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761104;
 //BA.debugLineNum = 44761104;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=44761105;
 //BA.debugLineNum = 44761105;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761107;
 //BA.debugLineNum = 44761107;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=44761108;
 //BA.debugLineNum = 44761108;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761109;
 //BA.debugLineNum = 44761109;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=44761110;
 //BA.debugLineNum = 44761110;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761112;
 //BA.debugLineNum = 44761112;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_FECHA 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 HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=44761113;
 //BA.debugLineNum = 44761113;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761114;
 //BA.debugLineNum = 44761114;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")";
__ref._fechaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=44761115;
 //BA.debugLineNum = 44761115;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761117;
 //BA.debugLineNum = 44761117;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fro";
__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 CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=44761118;
 //BA.debugLineNum = 44761118;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761119;
 //BA.debugLineNum = 44761119;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")";
__ref._rutaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=44761120;
 //BA.debugLineNum = 44761120;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761122;
 //BA.debugLineNum = 44761122;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from 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 RUTAA from RUTAA")));
RDebugUtils.currentLine=44761123;
 //BA.debugLineNum = 44761123;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44761124;
 //BA.debugLineNum = 44761124;BA.debugLine="rutarep = c.GetString(\"RUTAA\")";
__ref._rutarep /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=44761125;
 //BA.debugLineNum = 44761125;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44761126;
 //BA.debugLineNum = 44761126;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO  PAGARES";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO  PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._rutarep /*String*/ ),(Object)(__ref._rutaprev /*String*/ ),(Object)(__ref._fechaprev /*String*/ ),(Object)((__ref._sdate /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._cuenta /*String*/ )}));
RDebugUtils.currentLine=44761127;
 //BA.debugLineNum = 44761127;BA.debugLine="et_montoacredito.Text = \"\"";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=44761128;
 //BA.debugLineNum = 44761128;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=44761129;
 //BA.debugLineNum = 44761129;BA.debugLine="Guardado";
__ref._guardado /*String*/ (null);
 };
RDebugUtils.currentLine=44761131;
 //BA.debugLineNum = 44761131;BA.debugLine="End Sub";
return "";
}
public String  _guardado(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "guardado", false))
	 {return ((String) Debug.delegate(ba, "guardado", null));}
String _ruta = "";
String _rutapre = "";
String _rutaactualizar = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
RDebugUtils.currentLine=43778048;
 //BA.debugLineNum = 43778048;BA.debugLine="Sub Guardado";
RDebugUtils.currentLine=43778049;
 //BA.debugLineNum = 43778049;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=43778050;
 //BA.debugLineNum = 43778050;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=43778051;
 //BA.debugLineNum = 43778051;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=43778052;
 //BA.debugLineNum = 43778052;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=43778053;
 //BA.debugLineNum = 43778053;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
__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 CUENTA from cuentaa")));
RDebugUtils.currentLine=43778054;
 //BA.debugLineNum = 43778054;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43778055;
 //BA.debugLineNum = 43778055;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=43778056;
 //BA.debugLineNum = 43778056;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=43778057;
 //BA.debugLineNum = 43778057;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43778058;
 //BA.debugLineNum = 43778058;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=43778059;
 //BA.debugLineNum = 43778059;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43778060;
 //BA.debugLineNum = 43778060;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=43778061;
 //BA.debugLineNum = 43778061;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43778062;
 //BA.debugLineNum = 43778062;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=43778063;
 //BA.debugLineNum = 43778063;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43778064;
 //BA.debugLineNum = 43778064;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA FR";
__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 CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=43778065;
 //BA.debugLineNum = 43778065;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43778066;
 //BA.debugLineNum = 43778066;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA\"";
_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=43778067;
 //BA.debugLineNum = 43778067;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43778071;
 //BA.debugLineNum = 43778071;BA.debugLine="Dim fechaprev As String = Subs.traefECHAPREV";
_fechaprev = _subs._traefechaprev /*String*/ (ba);
RDebugUtils.currentLine=43778074;
 //BA.debugLineNum = 43778074;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=43778075;
 //BA.debugLineNum = 43778075;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=43778076;
 //BA.debugLineNum = 43778076;BA.debugLine="If rut.RowCount > 0 Then";
if (_rut.getRowCount()>0) { 
RDebugUtils.currentLine=43778077;
 //BA.debugLineNum = 43778077;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=43778078;
 //BA.debugLineNum = 43778078;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 };
RDebugUtils.currentLine=43778081;
 //BA.debugLineNum = 43778081;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA W";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) "));
RDebugUtils.currentLine=43778082;
 //BA.debugLineNum = 43778082;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA (";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_RUTA) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("ENTREGA"),(Object)("ENTREGA COMPLETA"),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar)}));
RDebugUtils.currentLine=43778083;
 //BA.debugLineNum = 43778083;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_G";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"ENTREGADO"}));
RDebugUtils.currentLine=43778084;
 //BA.debugLineNum = 43778084;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 2, HORAENT = '"+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' "));
RDebugUtils.currentLine=43778085;
 //BA.debugLineNum = 43778085;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_ESTATUS = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=43778086;
 //BA.debugLineNum = 43778086;BA.debugLine="mandaPendientesreparto";
__ref._mandapendientesreparto /*String*/ (null);
RDebugUtils.currentLine=43778093;
 //BA.debugLineNum = 43778093;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=43778095;
 //BA.debugLineNum = 43778095;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelar_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cancelar_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancelar_click", null));}
RDebugUtils.currentLine=45154304;
 //BA.debugLineNum = 45154304;BA.debugLine="Private Sub b_cancelar_Click";
RDebugUtils.currentLine=45154305;
 //BA.debugLineNum = 45154305;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=45154306;
 //BA.debugLineNum = 45154306;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=45154307;
 //BA.debugLineNum = 45154307;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=45154308;
 //BA.debugLineNum = 45154308;BA.debugLine="End Sub";
return "";
}
public String  _b_cancred_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cancred_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancred_click", null));}
RDebugUtils.currentLine=44826624;
 //BA.debugLineNum = 44826624;BA.debugLine="Private Sub b_cancred_Click";
RDebugUtils.currentLine=44826625;
 //BA.debugLineNum = 44826625;BA.debugLine="et_montoacredito.Text = \"\"";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=44826626;
 //BA.debugLineNum = 44826626;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=44826627;
 //BA.debugLineNum = 44826627;BA.debugLine="End Sub";
return "";
}
public String  _b_cxc_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cxc_click", false))
	 {return ((String) Debug.delegate(ba, "b_cxc_click", null));}
anywheresoftware.b4a.objects.collections.List _items = null;
double _total = 0;
int _i = 0;
RDebugUtils.currentLine=44957696;
 //BA.debugLineNum = 44957696;BA.debugLine="Private Sub b_cxc_Click";
RDebugUtils.currentLine=44957697;
 //BA.debugLineNum = 44957697;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU";
__ref._h /*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 CUENTA from CUENTAA")));
RDebugUtils.currentLine=44957698;
 //BA.debugLineNum = 44957698;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44957699;
 //BA.debugLineNum = 44957699;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
__c.LogImpl("244957699",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=44957702;
 //BA.debugLineNum = 44957702;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=44957703;
 //BA.debugLineNum = 44957703;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=44957705;
 //BA.debugLineNum = 44957705;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")";
_items.Add((Object)("SELECCIONA UNA OPCION"));
RDebugUtils.currentLine=44957706;
 //BA.debugLineNum = 44957706;BA.debugLine="Items.Add(\"TRANSFERENCIA\")";
_items.Add((Object)("TRANSFERENCIA"));
RDebugUtils.currentLine=44957707;
 //BA.debugLineNum = 44957707;BA.debugLine="Items.Add(\"EFECTIVO\")";
_items.Add((Object)("EFECTIVO"));
RDebugUtils.currentLine=44957708;
 //BA.debugLineNum = 44957708;BA.debugLine="Items.Add(\"CHEQUE\")";
_items.Add((Object)("CHEQUE"));
RDebugUtils.currentLine=44957710;
 //BA.debugLineNum = 44957710;BA.debugLine="cb_tipopago.SetItems(Items)";
__ref._cb_tipopago /*reparto_intmex.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items);
RDebugUtils.currentLine=44957712;
 //BA.debugLineNum = 44957712;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\"";
__ref._itemselect /*String*/  = "SELECCIONA UNA OPCION";
RDebugUtils.currentLine=44957714;
 //BA.debugLineNum = 44957714;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM";
__ref._j /*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 a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=44957715;
 //BA.debugLineNum = 44957715;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44957716;
 //BA.debugLineNum = 44957716;BA.debugLine="Log(j.RowCount)";
__c.LogImpl("244957716",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=44957717;
 //BA.debugLineNum = 44957717;BA.debugLine="If j.RowCount = 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=44957718;
 //BA.debugLineNum = 44957718;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=44957719;
 //BA.debugLineNum = 44957719;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=44957720;
 //BA.debugLineNum = 44957720;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=44957721;
 //BA.debugLineNum = 44957721;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=44957722;
 //BA.debugLineNum = 44957722;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=44957723;
 //BA.debugLineNum = 44957723;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=44957724;
 //BA.debugLineNum = 44957724;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44957725;
 //BA.debugLineNum = 44957725;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_";
__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*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=44957726;
 //BA.debugLineNum = 44957726;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=44957727;
 //BA.debugLineNum = 44957727;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=44957728;
 //BA.debugLineNum = 44957728;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=44957729;
 //BA.debugLineNum = 44957729;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
__ref._clv_abonos /*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._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i));
RDebugUtils.currentLine=44957730;
 //BA.debugLineNum = 44957730;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("244957730",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=44957731;
 //BA.debugLineNum = 44957731;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("244957731",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=44957732;
 //BA.debugLineNum = 44957732;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")));
RDebugUtils.currentLine=44957733;
 //BA.debugLineNum = 44957733;BA.debugLine="Log(total)";
__c.LogImpl("244957733",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=44957735;
 //BA.debugLineNum = 44957735;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957736;
 //BA.debugLineNum = 44957736;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT  a_abono FRO";
__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*/ .ExecQuery2("SELECT  a_abono FROM ABONOS WHERE a_cliente = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=44957737;
 //BA.debugLineNum = 44957737;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=44957738;
 //BA.debugLineNum = 44957738;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step36 = 1;
final int limit36 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit36 ;_i = _i + step36 ) {
RDebugUtils.currentLine=44957739;
 //BA.debugLineNum = 44957739;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=44957740;
 //BA.debugLineNum = 44957740;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d";
__ref._clv_abonos /*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,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i));
RDebugUtils.currentLine=44957741;
 //BA.debugLineNum = 44957741;BA.debugLine="total = total - d.GetString(\"a_abono\")";
_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")));
RDebugUtils.currentLine=44957742;
 //BA.debugLineNum = 44957742;BA.debugLine="Log(total)";
__c.LogImpl("244957742",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=44957745;
 //BA.debugLineNum = 44957745;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,";
__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=44957746;
 //BA.debugLineNum = 44957746;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957747;
 //BA.debugLineNum = 44957747;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=44957748;
 //BA.debugLineNum = 44957748;BA.debugLine="Else If j.RowCount > 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=44957749;
 //BA.debugLineNum = 44957749;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=44957750;
 //BA.debugLineNum = 44957750;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=44957751;
 //BA.debugLineNum = 44957751;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=44957752;
 //BA.debugLineNum = 44957752;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=44957753;
 //BA.debugLineNum = 44957753;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=44957754;
 //BA.debugLineNum = 44957754;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=44957755;
 //BA.debugLineNum = 44957755;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44957756;
 //BA.debugLineNum = 44957756;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_";
__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*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=44957757;
 //BA.debugLineNum = 44957757;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=44957758;
 //BA.debugLineNum = 44957758;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step56 = 1;
final int limit56 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit56 ;_i = _i + step56 ) {
RDebugUtils.currentLine=44957759;
 //BA.debugLineNum = 44957759;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=44957760;
 //BA.debugLineNum = 44957760;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
__ref._clv_abonos /*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._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i));
RDebugUtils.currentLine=44957761;
 //BA.debugLineNum = 44957761;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("244957761",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=44957762;
 //BA.debugLineNum = 44957762;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("244957762",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=44957763;
 //BA.debugLineNum = 44957763;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")));
RDebugUtils.currentLine=44957764;
 //BA.debugLineNum = 44957764;BA.debugLine="Log(total)";
__c.LogImpl("244957764",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=44957766;
 //BA.debugLineNum = 44957766;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957767;
 //BA.debugLineNum = 44957767;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT  a_abono FRO";
__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*/ .ExecQuery2("SELECT  a_abono FROM ABONOS WHERE a_cliente = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=44957768;
 //BA.debugLineNum = 44957768;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=44957769;
 //BA.debugLineNum = 44957769;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step67 = 1;
final int limit67 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit67 ;_i = _i + step67 ) {
RDebugUtils.currentLine=44957770;
 //BA.debugLineNum = 44957770;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=44957771;
 //BA.debugLineNum = 44957771;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d";
__ref._clv_abonos /*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,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i));
RDebugUtils.currentLine=44957772;
 //BA.debugLineNum = 44957772;BA.debugLine="total = total - d.GetString(\"a_abono\")";
_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")));
RDebugUtils.currentLine=44957773;
 //BA.debugLineNum = 44957773;BA.debugLine="Log(total)";
__c.LogImpl("244957773",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=44957776;
 //BA.debugLineNum = 44957776;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,";
__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=44957777;
 //BA.debugLineNum = 44957777;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957778;
 //BA.debugLineNum = 44957778;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=44957781;
 //BA.debugLineNum = 44957781;BA.debugLine="h.Close";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957782;
 //BA.debugLineNum = 44957782;BA.debugLine="j.Close";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44957783;
 //BA.debugLineNum = 44957783;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(reparto_intmex.keymon.lat.c_cliente __ref,String _mostrar,String _mostrar1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_mostrar,_mostrar1}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
RDebugUtils.currentLine=45088768;
 //BA.debugLineNum = 45088768;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
RDebugUtils.currentLine=45088769;
 //BA.debugLineNum = 45088769;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=45088770;
 //BA.debugLineNum = 45088770;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=45088771;
 //BA.debugLineNum = 45088771;BA.debugLine="p.LoadLayout(\"folioabono\")";
_p.LoadLayout("folioabono",ba);
RDebugUtils.currentLine=45088772;
 //BA.debugLineNum = 45088772;BA.debugLine="p.Height= 32dip";
_p.setHeight(__c.DipToCurrent((int) (32)));
RDebugUtils.currentLine=45088773;
 //BA.debugLineNum = 45088773;BA.debugLine="p.Width = 80dip";
_p.setWidth(__c.DipToCurrent((int) (80)));
RDebugUtils.currentLine=45088775;
 //BA.debugLineNum = 45088775;BA.debugLine="l_folio.Text = mostrar";
__ref._l_folio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar));
RDebugUtils.currentLine=45088776;
 //BA.debugLineNum = 45088776;BA.debugLine="l_saldo.Text = mostrar1";
__ref._l_saldo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar1));
RDebugUtils.currentLine=45088779;
 //BA.debugLineNum = 45088779;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=45088780;
 //BA.debugLineNum = 45088780;BA.debugLine="End Sub";
return null;
}
public String  _b_imp_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_imp_click", false))
	 {return ((String) Debug.delegate(ba, "b_imp_click", null));}
RDebugUtils.currentLine=44302336;
 //BA.debugLineNum = 44302336;BA.debugLine="Sub B_IMP_Click";
RDebugUtils.currentLine=44302750;
 //BA.debugLineNum = 44302750;BA.debugLine="Guardado";
__ref._guardado /*String*/ (null);
RDebugUtils.currentLine=44302751;
 //BA.debugLineNum = 44302751;BA.debugLine="End Sub";
return "";
}
public String  _b_noentrega_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_noentrega_click", false))
	 {return ((String) Debug.delegate(ba, "b_noentrega_click", null));}
RDebugUtils.currentLine=43843584;
 //BA.debugLineNum = 43843584;BA.debugLine="Sub b_noEntrega_Click";
RDebugUtils.currentLine=43843586;
 //BA.debugLineNum = 43843586;BA.debugLine="B4XPages.ShowPage(\"noVenta\")";
_b4xpages._showpage /*String*/ (ba,"noVenta");
RDebugUtils.currentLine=43843587;
 //BA.debugLineNum = 43843587;BA.debugLine="End Sub";
return "";
}
public String  _b_paso2_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_paso2_click", false))
	 {return ((String) Debug.delegate(ba, "b_paso2_click", null));}
RDebugUtils.currentLine=44564480;
 //BA.debugLineNum = 44564480;BA.debugLine="Sub B_PASO2_Click";
RDebugUtils.currentLine=44564481;
 //BA.debugLineNum = 44564481;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=44564482;
 //BA.debugLineNum = 44564482;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=44564483;
 //BA.debugLineNum = 44564483;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=44564484;
 //BA.debugLineNum = 44564484;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
__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 CUENTA from cuentaa")));
RDebugUtils.currentLine=44564485;
 //BA.debugLineNum = 44564485;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44564486;
 //BA.debugLineNum = 44564486;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=44564487;
 //BA.debugLineNum = 44564487;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=44564488;
 //BA.debugLineNum = 44564488;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=44564489;
 //BA.debugLineNum = 44564489;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=44564490;
 //BA.debugLineNum = 44564490;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=44564491;
 //BA.debugLineNum = 44564491;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)");
RDebugUtils.currentLine=44564492;
 //BA.debugLineNum = 44564492;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO  NOVENTA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO  NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PASO"),(Object)("PASO ESPERA"),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
RDebugUtils.currentLine=44564498;
 //BA.debugLineNum = 44564498;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=44564500;
 //BA.debugLineNum = 44564500;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
anywheresoftware.b4a.objects.collections.Map _cym = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
String _cuenta0 = "";
String _arti = "";
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null;
String _cuenta1 = "";
String _arti1 = "";
float _preu = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null;
String _cuenta2 = "";
String _arti2 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
String _cuenta3 = "";
String _arti3 = "";
String _cabonos = "";
RDebugUtils.currentLine=43450368;
 //BA.debugLineNum = 43450368;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=43450369;
 //BA.debugLineNum = 43450369;BA.debugLine="banderaimp = 0";
__ref._banderaimp /*int*/  = (int) (0);
RDebugUtils.currentLine=43450370;
 //BA.debugLineNum = 43450370;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=43450371;
 //BA.debugLineNum = 43450371;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_starter._ruta /*String*/ ,"kmt.db",__c.True);
RDebugUtils.currentLine=43450372;
 //BA.debugLineNum = 43450372;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=43450373;
 //BA.debugLineNum = 43450373;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,CA";
__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 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  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
RDebugUtils.currentLine=43450374;
 //BA.debugLineNum = 43450374;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=43450375;
 //BA.debugLineNum = 43450375;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43450376;
 //BA.debugLineNum = 43450376;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43450377;
 //BA.debugLineNum = 43450377;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")));
RDebugUtils.currentLine=43450378;
 //BA.debugLineNum = 43450378;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")));
RDebugUtils.currentLine=43450379;
 //BA.debugLineNum = 43450379;BA.debugLine="NOMBRE = c.GetString(\"CAT_CL_NOMBRE\")";
__ref._nombre /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE");
RDebugUtils.currentLine=43450380;
 //BA.debugLineNum = 43450380;BA.debugLine="LONGITUD = c.GetString(\"CAT_CL_LONG\")";
__ref._longitud /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG");
RDebugUtils.currentLine=43450381;
 //BA.debugLineNum = 43450381;BA.debugLine="LATITUD = c.GetString(\"CAT_CL_LAT\")";
__ref._latitud /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT");
RDebugUtils.currentLine=43450382;
 //BA.debugLineNum = 43450382;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G";
__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT")));
RDebugUtils.currentLine=43450383;
 //BA.debugLineNum = 43450383;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_COLONIA")));
RDebugUtils.currentLine=43450384;
 //BA.debugLineNum = 43450384;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
__ref._la_edo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EDO")));
RDebugUtils.currentLine=43450385;
 //BA.debugLineNum = 43450385;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")";
__ref._la_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CP")));
RDebugUtils.currentLine=43450386;
 //BA.debugLineNum = 43450386;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
__ref._l_entre1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1")));
RDebugUtils.currentLine=43450387;
 //BA.debugLineNum = 43450387;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
__ref._l_entre2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE2")));
RDebugUtils.currentLine=43450388;
 //BA.debugLineNum = 43450388;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")).equals("null") == false) { 
RDebugUtils.currentLine=43450389;
 //BA.debugLineNum = 43450389;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")));
 }else {
RDebugUtils.currentLine=43450391;
 //BA.debugLineNum = 43450391;BA.debugLine="l_atiende.Text = \" \"";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=43450393;
 //BA.debugLineNum = 43450393;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { 
RDebugUtils.currentLine=43450394;
 //BA.debugLineNum = 43450394;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")));
 }else {
RDebugUtils.currentLine=43450396;
 //BA.debugLineNum = 43450396;BA.debugLine="l_atiende2.Text = \" \"";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=43450398;
 //BA.debugLineNum = 43450398;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")";
__ref._la_saldotot /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO")));
RDebugUtils.currentLine=43450399;
 //BA.debugLineNum = 43450399;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
__ref._la_saldooper /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EMAIL")));
RDebugUtils.currentLine=43450401;
 //BA.debugLineNum = 43450401;BA.debugLine="CREDITO = C.GetString(\"CAT_CL_BCREDITO\")";
__ref._credito /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_BCREDITO");
RDebugUtils.currentLine=43450404;
 //BA.debugLineNum = 43450404;BA.debugLine="Private cym As Map = Subs.traeCantYMonto2(Subs.tr";
_cym = new anywheresoftware.b4a.objects.collections.Map();
_cym = _subs._traecantymonto2 /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_subs._traecliente /*String*/ (ba));
RDebugUtils.currentLine=43450405;
 //BA.debugLineNum = 43450405;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
RDebugUtils.currentLine=43450406;
 //BA.debugLineNum = 43450406;BA.debugLine="l_total.Text = Round2(cym.Get(\"monto\"), 2)";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2))));
RDebugUtils.currentLine=43450414;
 //BA.debugLineNum = 43450414;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE HIST_VENTAS set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE HIST_VENTAS set ESPROMO = 1  where HVD_CODPROMO = HVD_PROID AND HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=43450415;
 //BA.debugLineNum = 43450415;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 HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa)"))));
RDebugUtils.currentLine=43450417;
 //BA.debugLineNum = 43450417;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=43450418;
 //BA.debugLineNum = 43450418;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=43450419;
 //BA.debugLineNum = 43450419;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=43450420;
 //BA.debugLineNum = 43450420;BA.debugLine="For i = 0 To vc.RowCount - 1";
{
final int step41 = 1;
final int limit41 = (int) (_vc.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit41 ;_i = _i + step41 ) {
RDebugUtils.currentLine=43450421;
 //BA.debugLineNum = 43450421;BA.debugLine="vc.Position = i";
_vc.setPosition(_i);
RDebugUtils.currentLine=43450424;
 //BA.debugLineNum = 43450424;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CANT\")";
_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=43450429;
 //BA.debugLineNum = 43450429;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge";
_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT")))));
 }
};
 };
RDebugUtils.currentLine=43450435;
 //BA.debugLineNum = 43450435;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s";
_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 in (select cuenta from cuentaa) AND BCAJAS = 1")));
RDebugUtils.currentLine=43450436;
 //BA.debugLineNum = 43450436;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=43450437;
 //BA.debugLineNum = 43450437;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=43450438;
 //BA.debugLineNum = 43450438;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=43450439;
 //BA.debugLineNum = 43450439;BA.debugLine="For i = 0 To vc2.RowCount - 1";
{
final int step51 = 1;
final int limit51 = (int) (_vc2.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit51 ;_i = _i + step51 ) {
RDebugUtils.currentLine=43450440;
 //BA.debugLineNum = 43450440;BA.debugLine="vc2.Position = i";
_vc2.setPosition(_i);
RDebugUtils.currentLine=43450441;
 //BA.debugLineNum = 43450441;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString";
_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=43450442;
 //BA.debugLineNum = 43450442;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery(";
_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=43450443;
 //BA.debugLineNum = 43450443;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=43450444;
 //BA.debugLineNum = 43450444;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=43450445;
 //BA.debugLineNum = 43450445;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=43450446;
 //BA.debugLineNum = 43450446;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v";
_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))));
 };
 }
};
 };
RDebugUtils.currentLine=43450452;
 //BA.debugLineNum = 43450452;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\"";
_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_PRONOMBRE,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
RDebugUtils.currentLine=43450453;
 //BA.debugLineNum = 43450453;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=43450454;
 //BA.debugLineNum = 43450454;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=43450455;
 //BA.debugLineNum = 43450455;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=43450457;
 //BA.debugLineNum = 43450457;BA.debugLine="For i = 0 To vc4.RowCount - 1";
{
final int step66 = 1;
final int limit66 = (int) (_vc4.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit66 ;_i = _i + step66 ) {
RDebugUtils.currentLine=43450458;
 //BA.debugLineNum = 43450458;BA.debugLine="vc4.Position = i";
_vc4.setPosition(_i);
RDebugUtils.currentLine=43450459;
 //BA.debugLineNum = 43450459;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString(";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=43450460;
 //BA.debugLineNum = 43450460;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=43450461;
 //BA.debugLineNum = 43450461;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
RDebugUtils.currentLine=43450462;
 //BA.debugLineNum = 43450462;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=43450464;
 //BA.debugLineNum = 43450464;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer";
_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=43450465;
 //BA.debugLineNum = 43450465;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=43450466;
 //BA.debugLineNum = 43450466;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=43450468;
 //BA.debugLineNum = 43450468;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT";
_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))))));
RDebugUtils.currentLine=43450469;
 //BA.debugLineNum = 43450469;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v";
_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT")))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=43450477;
 //BA.debugLineNum = 43450477;BA.debugLine="Subs.centraPanel(p_credito, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=43450478;
 //BA.debugLineNum = 43450478;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S";
_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 IN (SELECT CUENTA FROM CUENTAA)"))));
RDebugUtils.currentLine=43450479;
 //BA.debugLineNum = 43450479;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=43450480;
 //BA.debugLineNum = 43450480;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=43450481;
 //BA.debugLineNum = 43450481;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=43450482;
 //BA.debugLineNum = 43450482;BA.debugLine="For i = 0 To c4.RowCount -1";
{
final int step88 = 1;
final int limit88 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit88 ;_i = _i + step88 ) {
RDebugUtils.currentLine=43450483;
 //BA.debugLineNum = 43450483;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
RDebugUtils.currentLine=43450484;
 //BA.debugLineNum = 43450484;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=43450485;
 //BA.debugLineNum = 43450485;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\"";
_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
 }
};
 };
RDebugUtils.currentLine=43450488;
 //BA.debugLineNum = 43450488;BA.debugLine="Log(cuenta0)";
__c.LogImpl("243450488",_cuenta0,0);
RDebugUtils.currentLine=43450489;
 //BA.debugLineNum = 43450489;BA.debugLine="Log(Cuenta1)";
__c.LogImpl("243450489",_cuenta1,0);
RDebugUtils.currentLine=43450490;
 //BA.debugLineNum = 43450490;BA.debugLine="Log(Cuenta2)";
__c.LogImpl("243450490",_cuenta2,0);
RDebugUtils.currentLine=43450491;
 //BA.debugLineNum = 43450491;BA.debugLine="Log(Cuenta3)";
__c.LogImpl("243450491",_cuenta3,0);
RDebugUtils.currentLine=43450493;
 //BA.debugLineNum = 43450493;BA.debugLine="l_total.Text = NumberFormat2((cuenta0 + Cuenta1 +";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True)));
RDebugUtils.currentLine=43450494;
 //BA.debugLineNum = 43450494;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True)));
RDebugUtils.currentLine=43450499;
 //BA.debugLineNum = 43450499;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=43450500;
 //BA.debugLineNum = 43450500;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=43450501;
 //BA.debugLineNum = 43450501;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43450502;
 //BA.debugLineNum = 43450502;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=43450504;
 //BA.debugLineNum = 43450504;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
if ((_starter._mac_impresora /*String*/ ).equals("")) { 
_starter._mac_impresora /*String*/  = "0";};
RDebugUtils.currentLine=43450506;
 //BA.debugLineNum = 43450506;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
__ref._printer1 /*reparto_intmex.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1");
RDebugUtils.currentLine=43450508;
 //BA.debugLineNum = 43450508;BA.debugLine="If Printer1.IsConnected = False Then";
if (__ref._printer1 /*reparto_intmex.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { 
 }else {
RDebugUtils.currentLine=43450512;
 //BA.debugLineNum = 43450512;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_intmex.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=43450513;
 //BA.debugLineNum = 43450513;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_intmex.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=43450514;
 //BA.debugLineNum = 43450514;BA.debugLine="Log(\"2\")";
__c.LogImpl("243450514","2",0);
 };
RDebugUtils.currentLine=43450544;
 //BA.debugLineNum = 43450544;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=43450545;
 //BA.debugLineNum = 43450545;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43450546;
 //BA.debugLineNum = 43450546;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=43450547;
 //BA.debugLineNum = 43450547;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43450550;
 //BA.debugLineNum = 43450550;BA.debugLine="If almacen = \"3\" Or almacen = 3 Or almacen = \"5\"";
if ((__ref._almacen /*String*/ ).equals("3") || (__ref._almacen /*String*/ ).equals(BA.NumberToString(3)) || (__ref._almacen /*String*/ ).equals("5") || (__ref._almacen /*String*/ ).equals(BA.NumberToString(5))) { 
RDebugUtils.currentLine=43450551;
 //BA.debugLineNum = 43450551;BA.debugLine="Tar.Visible = False";
__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=43450552;
 //BA.debugLineNum = 43450552;BA.debugLine="Log(\"SI AQUI\")";
__c.LogImpl("243450552","SI AQUI",0);
RDebugUtils.currentLine=43450553;
 //BA.debugLineNum = 43450553;BA.debugLine="b = Starter.skmt.ExecQuery(\"select COUNT(*) AS C";
__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 CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=43450554;
 //BA.debugLineNum = 43450554;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43450555;
 //BA.debugLineNum = 43450555;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
_cabonos = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE");
RDebugUtils.currentLine=43450556;
 //BA.debugLineNum = 43450556;BA.debugLine="If cabonos = 0 Then";
if ((_cabonos).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=43450557;
 //BA.debugLineNum = 43450557;BA.debugLine="b_cxc.Visible = False";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=43450559;
 //BA.debugLineNum = 43450559;BA.debugLine="b_cxc.Visible = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
 };
RDebugUtils.currentLine=43450563;
 //BA.debugLineNum = 43450563;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(reparto_intmex.keymon.lat.c_cliente parent,reparto_intmex.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.c_cliente __ref;
reparto_intmex.keymon.lat.c_cliente parent;

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

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

case 1:
//if
this.state = 6;
if (__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
RDebugUtils.currentLine=43909124;
 //BA.debugLineNum = 43909124;BA.debugLine="et_montoacredito.Text = \"\"";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=43909125;
 //BA.debugLineNum = 43909125;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=43909126;
 //BA.debugLineNum = 43909126;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=43909128;
 //BA.debugLineNum = 43909128;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
parent._b4xpages._showpage /*String*/ (ba,"Clientes");
RDebugUtils.currentLine=43909129;
 //BA.debugLineNum = 43909129;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_intmex.keymon.lat.c_cliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=43384832;
 //BA.debugLineNum = 43384832;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=43384833;
 //BA.debugLineNum = 43384833;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=43384835;
 //BA.debugLineNum = 43384835;BA.debugLine="g.Initialize(\"GPS\")";
__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS");
RDebugUtils.currentLine=43384837;
 //BA.debugLineNum = 43384837;BA.debugLine="Root.LoadLayout(\"cliente\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("cliente",ba);
RDebugUtils.currentLine=43384838;
 //BA.debugLineNum = 43384838;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO, 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 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  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
RDebugUtils.currentLine=43384839;
 //BA.debugLineNum = 43384839;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=43384840;
 //BA.debugLineNum = 43384840;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43384841;
 //BA.debugLineNum = 43384841;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43384842;
 //BA.debugLineNum = 43384842;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")));
RDebugUtils.currentLine=43384843;
 //BA.debugLineNum = 43384843;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")));
RDebugUtils.currentLine=43384844;
 //BA.debugLineNum = 43384844;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G";
__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT")));
RDebugUtils.currentLine=43384845;
 //BA.debugLineNum = 43384845;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_COLONIA")));
RDebugUtils.currentLine=43384846;
 //BA.debugLineNum = 43384846;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
__ref._la_edo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EDO")));
RDebugUtils.currentLine=43384847;
 //BA.debugLineNum = 43384847;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")";
__ref._la_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CP")));
RDebugUtils.currentLine=43384848;
 //BA.debugLineNum = 43384848;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
__ref._l_entre1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1")));
RDebugUtils.currentLine=43384849;
 //BA.debugLineNum = 43384849;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
__ref._l_entre2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE2")));
RDebugUtils.currentLine=43384850;
 //BA.debugLineNum = 43384850;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")).equals("null") == false) { 
RDebugUtils.currentLine=43384851;
 //BA.debugLineNum = 43384851;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")));
 }else {
RDebugUtils.currentLine=43384853;
 //BA.debugLineNum = 43384853;BA.debugLine="l_atiende.Text = \" \"";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=43384855;
 //BA.debugLineNum = 43384855;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { 
RDebugUtils.currentLine=43384856;
 //BA.debugLineNum = 43384856;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")));
RDebugUtils.currentLine=43384857;
 //BA.debugLineNum = 43384857;BA.debugLine="Log(\"|\"&c.GetString(\"CAT_CL_ATIENTE2\")&\"|\")";
__c.LogImpl("243384857","|"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")+"|",0);
 }else {
RDebugUtils.currentLine=43384859;
 //BA.debugLineNum = 43384859;BA.debugLine="l_atiende2.Text = \" \"";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=43384861;
 //BA.debugLineNum = 43384861;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")";
__ref._la_saldotot /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO")));
RDebugUtils.currentLine=43384862;
 //BA.debugLineNum = 43384862;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
__ref._la_saldooper /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EMAIL")));
RDebugUtils.currentLine=43384864;
 //BA.debugLineNum = 43384864;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth");
RDebugUtils.currentLine=43384865;
 //BA.debugLineNum = 43384865;BA.debugLine="cmp20.Initialize(\"Printer\")";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer");
RDebugUtils.currentLine=43384866;
 //BA.debugLineNum = 43384866;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=43384867;
 //BA.debugLineNum = 43384867;BA.debugLine="End Sub";
return "";
}
public String  _cb_tipopago_selectedindexchanged(reparto_intmex.keymon.lat.c_cliente __ref,int _index) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "cb_tipopago_selectedindexchanged", false))
	 {return ((String) Debug.delegate(ba, "cb_tipopago_selectedindexchanged", new Object[] {_index}));}
RDebugUtils.currentLine=45285376;
 //BA.debugLineNum = 45285376;BA.debugLine="Private Sub cb_tipopago_SelectedIndexChanged (Inde";
RDebugUtils.currentLine=45285377;
 //BA.debugLineNum = 45285377;BA.debugLine="itemselect = cb_tipopago.SelectedItem";
__ref._itemselect /*String*/  = __ref._cb_tipopago /*reparto_intmex.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null);
RDebugUtils.currentLine=45285378;
 //BA.debugLineNum = 45285378;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
RDebugUtils.currentLine=43253760;
 //BA.debugLineNum = 43253760;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=43253761;
 //BA.debugLineNum = 43253761;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=43253762;
 //BA.debugLineNum = 43253762;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=43253763;
 //BA.debugLineNum = 43253763;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=43253764;
 //BA.debugLineNum = 43253764;BA.debugLine="Dim clie_id As String";
_clie_id = "";
RDebugUtils.currentLine=43253765;
 //BA.debugLineNum = 43253765;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=43253766;
 //BA.debugLineNum = 43253766;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=43253767;
 //BA.debugLineNum = 43253767;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=43253768;
 //BA.debugLineNum = 43253768;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
RDebugUtils.currentLine=43253769;
 //BA.debugLineNum = 43253769;BA.debugLine="Dim cmp20 As Serial";
_cmp20 = new anywheresoftware.b4a.objects.Serial();
RDebugUtils.currentLine=43253770;
 //BA.debugLineNum = 43253770;BA.debugLine="Dim printer As TextWriter";
_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
RDebugUtils.currentLine=43253771;
 //BA.debugLineNum = 43253771;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=43253772;
 //BA.debugLineNum = 43253772;BA.debugLine="Dim L As List";
_l = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=43253773;
 //BA.debugLineNum = 43253773;BA.debugLine="Dim TAMANO As Int";
_tamano = 0;
RDebugUtils.currentLine=43253774;
 //BA.debugLineNum = 43253774;BA.debugLine="Dim ESPACIO As Int";
_espacio = 0;
RDebugUtils.currentLine=43253775;
 //BA.debugLineNum = 43253775;BA.debugLine="Dim BLANCO As String";
_blanco = "";
RDebugUtils.currentLine=43253776;
 //BA.debugLineNum = 43253776;BA.debugLine="Dim impresoraConectada As Boolean = False";
_impresoraconectada = __c.False;
RDebugUtils.currentLine=43253777;
 //BA.debugLineNum = 43253777;BA.debugLine="Dim LONGITUD As String";
_longitud = "";
RDebugUtils.currentLine=43253778;
 //BA.debugLineNum = 43253778;BA.debugLine="Dim LATITUD As String";
_latitud = "";
RDebugUtils.currentLine=43253779;
 //BA.debugLineNum = 43253779;BA.debugLine="Dim NOMBRE As String";
_nombre = "";
RDebugUtils.currentLine=43253780;
 //BA.debugLineNum = 43253780;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=43253781;
 //BA.debugLineNum = 43253781;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=43253782;
 //BA.debugLineNum = 43253782;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=43253783;
 //BA.debugLineNum = 43253783;BA.debugLine="Dim la_cuenta As Label";
_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253784;
 //BA.debugLineNum = 43253784;BA.debugLine="Dim La_nombre As Label";
_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253785;
 //BA.debugLineNum = 43253785;BA.debugLine="Dim la_Calle As Label";
_la_calle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253786;
 //BA.debugLineNum = 43253786;BA.debugLine="Dim la_numero As Label";
_la_numero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253787;
 //BA.debugLineNum = 43253787;BA.debugLine="Dim la_nint As Label";
_la_nint = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253788;
 //BA.debugLineNum = 43253788;BA.debugLine="Dim la_edo As Label";
_la_edo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253789;
 //BA.debugLineNum = 43253789;BA.debugLine="Dim la_pob As Label";
_la_pob = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253790;
 //BA.debugLineNum = 43253790;BA.debugLine="Dim la_col As Label";
_la_col = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253791;
 //BA.debugLineNum = 43253791;BA.debugLine="Dim la_cp As Label";
_la_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253792;
 //BA.debugLineNum = 43253792;BA.debugLine="Dim la_zona As Label";
_la_zona = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253793;
 //BA.debugLineNum = 43253793;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253794;
 //BA.debugLineNum = 43253794;BA.debugLine="Dim la_saldotot As Label";
_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253795;
 //BA.debugLineNum = 43253795;BA.debugLine="Dim la_saldooper As Label";
_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253796;
 //BA.debugLineNum = 43253796;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_intmex.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=43253797;
 //BA.debugLineNum = 43253797;BA.debugLine="Dim b_noEntrega As Button";
_b_noentrega = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253798;
 //BA.debugLineNum = 43253798;BA.debugLine="Dim Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253799;
 //BA.debugLineNum = 43253799;BA.debugLine="Dim Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253800;
 //BA.debugLineNum = 43253800;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=43253801;
 //BA.debugLineNum = 43253801;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=43253802;
 //BA.debugLineNum = 43253802;BA.debugLine="Dim Tar As Button";
_tar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253803;
 //BA.debugLineNum = 43253803;BA.debugLine="Private L_QR As Label";
_l_qr = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253804;
 //BA.debugLineNum = 43253804;BA.debugLine="Private BT_QR As Button";
_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253805;
 //BA.debugLineNum = 43253805;BA.debugLine="Dim Printer1 As EscPosPrinter";
_printer1 = new reparto_intmex.keymon.lat.escposprinter();
RDebugUtils.currentLine=43253806;
 //BA.debugLineNum = 43253806;BA.debugLine="Dim la_comm As Label";
_la_comm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253807;
 //BA.debugLineNum = 43253807;BA.debugLine="Dim la_actdte As Label";
_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253808;
 //BA.debugLineNum = 43253808;BA.debugLine="Dim la_usuario As Label";
_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253809;
 //BA.debugLineNum = 43253809;BA.debugLine="Dim la_resultado As Label";
_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253810;
 //BA.debugLineNum = 43253810;BA.debugLine="Dim l_entre1 As Label";
_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253811;
 //BA.debugLineNum = 43253811;BA.debugLine="Dim l_entre2 As Label";
_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253812;
 //BA.debugLineNum = 43253812;BA.debugLine="Dim l_atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253813;
 //BA.debugLineNum = 43253813;BA.debugLine="Dim l_atiende2 As Label";
_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253814;
 //BA.debugLineNum = 43253814;BA.debugLine="Dim DATOS As Button";
_datos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253815;
 //BA.debugLineNum = 43253815;BA.debugLine="Dim Guardar As Button";
_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253816;
 //BA.debugLineNum = 43253816;BA.debugLine="Dim NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253817;
 //BA.debugLineNum = 43253817;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253818;
 //BA.debugLineNum = 43253818;BA.debugLine="Private HIST As Button";
_hist = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253819;
 //BA.debugLineNum = 43253819;BA.debugLine="Dim PASA_IMP As String";
_pasa_imp = "";
RDebugUtils.currentLine=43253820;
 //BA.debugLineNum = 43253820;BA.debugLine="Private B_IMP As Button";
_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253821;
 //BA.debugLineNum = 43253821;BA.debugLine="Dim total_cliente As String";
_total_cliente = "";
RDebugUtils.currentLine=43253822;
 //BA.debugLineNum = 43253822;BA.debugLine="Dim CREDITO As String";
_credito = "";
RDebugUtils.currentLine=43253823;
 //BA.debugLineNum = 43253823;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=43253824;
 //BA.debugLineNum = 43253824;BA.debugLine="Private B_PASO2 As Button";
_b_paso2 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253825;
 //BA.debugLineNum = 43253825;BA.debugLine="Private L_CANT As Label";
_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253826;
 //BA.debugLineNum = 43253826;BA.debugLine="Dim errorImpresora As Int = 0";
_errorimpresora = (int) (0);
RDebugUtils.currentLine=43253827;
 //BA.debugLineNum = 43253827;BA.debugLine="Dim banderaimp As Int";
_banderaimp = 0;
RDebugUtils.currentLine=43253828;
 //BA.debugLineNum = 43253828;BA.debugLine="Private l_credi As Label";
_l_credi = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253829;
 //BA.debugLineNum = 43253829;BA.debugLine="Private l_pagare As Label";
_l_pagare = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253830;
 //BA.debugLineNum = 43253830;BA.debugLine="Private l_montopag As Label";
_l_montopag = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253831;
 //BA.debugLineNum = 43253831;BA.debugLine="Private l_efectivo As Label";
_l_efectivo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253832;
 //BA.debugLineNum = 43253832;BA.debugLine="Private l_montoefec As Label";
_l_montoefec = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253833;
 //BA.debugLineNum = 43253833;BA.debugLine="Private p_credito As Panel";
_p_credito = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=43253834;
 //BA.debugLineNum = 43253834;BA.debugLine="Private b_acred As Button";
_b_acred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253835;
 //BA.debugLineNum = 43253835;BA.debugLine="Private b_cancred As Button";
_b_cancred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253836;
 //BA.debugLineNum = 43253836;BA.debugLine="Private et_montoacredito As EditText";
_et_montoacredito = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=43253837;
 //BA.debugLineNum = 43253837;BA.debugLine="Private Label16 As Label";
_label16 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253838;
 //BA.debugLineNum = 43253838;BA.debugLine="Private l_limite As Label";
_l_limite = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253839;
 //BA.debugLineNum = 43253839;BA.debugLine="Dim almacen As String";
_almacen = "";
RDebugUtils.currentLine=43253840;
 //BA.debugLineNum = 43253840;BA.debugLine="Dim fechaprev As String";
_fechaprev = "";
RDebugUtils.currentLine=43253841;
 //BA.debugLineNum = 43253841;BA.debugLine="Dim rutaprev As String";
_rutaprev = "";
RDebugUtils.currentLine=43253842;
 //BA.debugLineNum = 43253842;BA.debugLine="Dim rutarep As String";
_rutarep = "";
RDebugUtils.currentLine=43253843;
 //BA.debugLineNum = 43253843;BA.debugLine="Dim montopagare As String";
_montopagare = "";
RDebugUtils.currentLine=43253844;
 //BA.debugLineNum = 43253844;BA.debugLine="Private p_abono As Panel";
_p_abono = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=43253845;
 //BA.debugLineNum = 43253845;BA.debugLine="Private clv_abonos As CustomListView";
_clv_abonos = new b4a.example3.customlistview();
RDebugUtils.currentLine=43253846;
 //BA.debugLineNum = 43253846;BA.debugLine="Private et_abono As EditText";
_et_abono = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=43253847;
 //BA.debugLineNum = 43253847;BA.debugLine="Private b_cancelar As Button";
_b_cancelar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253848;
 //BA.debugLineNum = 43253848;BA.debugLine="Private b_abono As Button";
_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253849;
 //BA.debugLineNum = 43253849;BA.debugLine="Private l_montoabonostotal As Label";
_l_montoabonostotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253850;
 //BA.debugLineNum = 43253850;BA.debugLine="Dim h, j,b, f As Cursor";
_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_j = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=43253851;
 //BA.debugLineNum = 43253851;BA.debugLine="Private l_folio As Label";
_l_folio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253852;
 //BA.debugLineNum = 43253852;BA.debugLine="Private l_saldo As Label";
_l_saldo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=43253853;
 //BA.debugLineNum = 43253853;BA.debugLine="Private b_cxc As Button";
_b_cxc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=43253854;
 //BA.debugLineNum = 43253854;BA.debugLine="Private cb_tipopago As B4XComboBox";
_cb_tipopago = new reparto_intmex.keymon.lat.b4xcombobox();
RDebugUtils.currentLine=43253855;
 //BA.debugLineNum = 43253855;BA.debugLine="Dim itemselect As String";
_itemselect = "";
RDebugUtils.currentLine=43253856;
 //BA.debugLineNum = 43253856;BA.debugLine="End Sub";
return "";
}
public String  _datos_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "datos_click", false))
	 {return ((String) Debug.delegate(ba, "datos_click", null));}
RDebugUtils.currentLine=44040192;
 //BA.debugLineNum = 44040192;BA.debugLine="Sub DATOS_Click";
RDebugUtils.currentLine=44040194;
 //BA.debugLineNum = 44040194;BA.debugLine="End Sub";
return "";
}
public void  _gest_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "gest_click", false))
	 {Debug.delegate(ba, "gest_click", null); return;}
ResumableSub_gest_Click rsub = new ResumableSub_gest_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_gest_Click extends BA.ResumableSub {
public ResumableSub_gest_Click(reparto_intmex.keymon.lat.c_cliente parent,reparto_intmex.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.c_cliente __ref;
reparto_intmex.keymon.lat.c_cliente parent;
int _result = 0;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=43712514;
 //BA.debugLineNum = 43712514;BA.debugLine="If CREDITO = 1 Then";
if (true) break;

case 1:
//if
this.state = 14;
if ((__ref._credito /*String*/ ).equals(BA.NumberToString(1))) { 
this.state = 3;
}else {
this.state = 13;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=43712515;
 //BA.debugLineNum = 43712515;BA.debugLine="Msgbox2Async(\"Forma de pago\",\"EL CLIENTE PUEDE T";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Forma de pago"),BA.ObjectToCharSequence("EL CLIENTE PUEDE TENER CREDITO"),"Parcial","Total","Efectivo",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=43712516;
 //BA.debugLineNum = 43712516;BA.debugLine="Wait For Msgbox_Result (Result As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "gest_click"), null);
this.state = 15;
return;
case 15:
//C
this.state = 4;
_result = (Integer) result[1];
;
RDebugUtils.currentLine=43712517;
 //BA.debugLineNum = 43712517;BA.debugLine="If Result= DialogResponse.POSITIVE Then";
if (true) break;

case 4:
//if
this.state = 11;
if (_result==parent.__c.DialogResponse.POSITIVE) { 
this.state = 6;
}else 
{RDebugUtils.currentLine=43712526;
 //BA.debugLineNum = 43712526;BA.debugLine="Else If Result = DialogResponse.NEGATIVE Then";
if (_result==parent.__c.DialogResponse.NEGATIVE) { 
this.state = 8;
}else 
{RDebugUtils.currentLine=43712530;
 //BA.debugLineNum = 43712530;BA.debugLine="Else If Result = DialogResponse.CANCEL Then";
if (_result==parent.__c.DialogResponse.CANCEL) { 
this.state = 10;
}}}
if (true) break;

case 6:
//C
this.state = 11;
RDebugUtils.currentLine=43712518;
 //BA.debugLineNum = 43712518;BA.debugLine="Log(1)";
parent.__c.LogImpl("243712518",BA.NumberToString(1),0);
RDebugUtils.currentLine=43712519;
 //BA.debugLineNum = 43712519;BA.debugLine="p_credito.Visible = True";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=43712521;
 //BA.debugLineNum = 43712521;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(HVD_COSTO_";
__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 sum(HVD_COSTO_TOT) AS MONTO from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_RECHAZO = 0 AND HVD_PARCIAL = 0")));
RDebugUtils.currentLine=43712522;
 //BA.debugLineNum = 43712522;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712523;
 //BA.debugLineNum = 43712523;BA.debugLine="montopagare = c.GetString(\"MONTO\")";
__ref._montopagare /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO");
RDebugUtils.currentLine=43712524;
 //BA.debugLineNum = 43712524;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712525;
 //BA.debugLineNum = 43712525;BA.debugLine="l_limite.Text = \"Monto de la venta: $\" & l_tota";
__ref._l_limite /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Monto de la venta: $"+__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
 if (true) break;

case 8:
//C
this.state = 11;
RDebugUtils.currentLine=43712527;
 //BA.debugLineNum = 43712527;BA.debugLine="Log(2)";
parent.__c.LogImpl("243712527",BA.NumberToString(2),0);
RDebugUtils.currentLine=43712528;
 //BA.debugLineNum = 43712528;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
RDebugUtils.currentLine=43712529;
 //BA.debugLineNum = 43712529;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

case 10:
//C
this.state = 11;
RDebugUtils.currentLine=43712531;
 //BA.debugLineNum = 43712531;BA.debugLine="Log(3)";
parent.__c.LogImpl("243712531",BA.NumberToString(3),0);
RDebugUtils.currentLine=43712532;
 //BA.debugLineNum = 43712532;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=43712533;
 //BA.debugLineNum = 43712533;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=43712534;
 //BA.debugLineNum = 43712534;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=43712535;
 //BA.debugLineNum = 43712535;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=43712537;
 //BA.debugLineNum = 43712537;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cu";
__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 CUENTA from cuentaa")));
RDebugUtils.currentLine=43712538;
 //BA.debugLineNum = 43712538;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712539;
 //BA.debugLineNum = 43712539;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=43712540;
 //BA.debugLineNum = 43712540;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712542;
 //BA.debugLineNum = 43712542;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u";
__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=43712543;
 //BA.debugLineNum = 43712543;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712544;
 //BA.debugLineNum = 43712544;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=43712545;
 //BA.debugLineNum = 43712545;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712547;
 //BA.debugLineNum = 43712547;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN fro";
__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 ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=43712548;
 //BA.debugLineNum = 43712548;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712549;
 //BA.debugLineNum = 43712549;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=43712550;
 //BA.debugLineNum = 43712550;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712552;
 //BA.debugLineNum = 43712552;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_FECHA 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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=43712553;
 //BA.debugLineNum = 43712553;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712554;
 //BA.debugLineNum = 43712554;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")";
__ref._fechaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=43712555;
 //BA.debugLineNum = 43712555;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712557;
 //BA.debugLineNum = 43712557;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fr";
__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 CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=43712558;
 //BA.debugLineNum = 43712558;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712559;
 //BA.debugLineNum = 43712559;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")";
__ref._rutaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=43712560;
 //BA.debugLineNum = 43712560;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712562;
 //BA.debugLineNum = 43712562;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUT";
__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 RUTAA from RUTAA")));
RDebugUtils.currentLine=43712563;
 //BA.debugLineNum = 43712563;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712564;
 //BA.debugLineNum = 43712564;BA.debugLine="rutarep = c.GetString(\"RUTAA\")";
__ref._rutarep /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=43712565;
 //BA.debugLineNum = 43712565;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712567;
 //BA.debugLineNum = 43712567;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(HVD_COSTO_";
__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 sum(HVD_COSTO_TOT) AS MONTO from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_RECHAZO = 0 AND HVD_PARCIAL = 0")));
RDebugUtils.currentLine=43712568;
 //BA.debugLineNum = 43712568;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=43712569;
 //BA.debugLineNum = 43712569;BA.debugLine="montopagare = c.GetString(\"MONTO\")";
__ref._montopagare /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO");
RDebugUtils.currentLine=43712570;
 //BA.debugLineNum = 43712570;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=43712571;
 //BA.debugLineNum = 43712571;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO  PAGARE";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO  PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._rutarep /*String*/ ),(Object)(__ref._rutaprev /*String*/ ),(Object)(__ref._fechaprev /*String*/ ),(Object)((__ref._sdate /*String*/ )),(Object)(__ref._montopagare /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._cuenta /*String*/ )}));
RDebugUtils.currentLine=43712572;
 //BA.debugLineNum = 43712572;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
RDebugUtils.currentLine=43712573;
 //BA.debugLineNum = 43712573;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

case 11:
//C
this.state = 14;
;
 if (true) break;

case 13:
//C
this.state = 14;
RDebugUtils.currentLine=43712576;
 //BA.debugLineNum = 43712576;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
RDebugUtils.currentLine=43712577;
 //BA.debugLineNum = 43712577;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

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

            }
        }
    }
}
public String  _gps_locationchanged(reparto_intmex.keymon.lat.c_cliente __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=43581440;
 //BA.debugLineNum = 43581440;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=43581443;
 //BA.debugLineNum = 43581443;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=43581444;
 //BA.debugLineNum = 43581444;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=43581445;
 //BA.debugLineNum = 43581445;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=43581446;
 //BA.debugLineNum = 43581446;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=43581447;
 //BA.debugLineNum = 43581447;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=43581448;
 //BA.debugLineNum = 43581448;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO  HIST_GPS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO  HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
RDebugUtils.currentLine=43581449;
 //BA.debugLineNum = 43581449;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientesreparto(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapendientesreparto", false))
	 {return ((String) Debug.delegate(ba, "mandapendientesreparto", null));}
RDebugUtils.currentLine=44630016;
 //BA.debugLineNum = 44630016;BA.debugLine="Sub mandaPendientesreparto";
RDebugUtils.currentLine=44630032;
 //BA.debugLineNum = 44630032;BA.debugLine="End Sub";
return "";
}
public String  _guardar_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "guardar_click", false))
	 {return ((String) Debug.delegate(ba, "guardar_click", null));}
RDebugUtils.currentLine=44105728;
 //BA.debugLineNum = 44105728;BA.debugLine="Sub Guardar_Click";
RDebugUtils.currentLine=44105733;
 //BA.debugLineNum = 44105733;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=44105735;
 //BA.debugLineNum = 44105735;BA.debugLine="End Sub";
return "";
}
public String  _hist_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "hist_click", false))
	 {return ((String) Debug.delegate(ba, "hist_click", null));}
RDebugUtils.currentLine=44236800;
 //BA.debugLineNum = 44236800;BA.debugLine="Sub HIST_Click";
RDebugUtils.currentLine=44236804;
 //BA.debugLineNum = 44236804;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initializ";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_intmex.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=44236806;
 //BA.debugLineNum = 44236806;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")";
_b4xpages._showpage /*String*/ (ba,"DetalleVenta");
RDebugUtils.currentLine=44236807;
 //BA.debugLineNum = 44236807;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_intmex.keymon.lat.c_cliente __ref,reparto_intmex.keymon.lat.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
reparto_intmex.keymon.lat.dbrequestmanager._dbresult _resultado = null;
String _cliente = "";
Object[] _records = null;
String _k = "";
RDebugUtils.currentLine=44695552;
 //BA.debugLineNum = 44695552;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=44695553;
 //BA.debugLineNum = 44695553;BA.debugLine="Log(Job.Success)";
__c.LogImpl("244695553",BA.ObjectToString(_job._success /*boolean*/ ),0);
RDebugUtils.currentLine=44695554;
 //BA.debugLineNum = 44695554;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 }else {
RDebugUtils.currentLine=44695557;
 //BA.debugLineNum = 44695557;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("244695557","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=44695558;
 //BA.debugLineNum = 44695558;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=44695559;
 //BA.debugLineNum = 44695559;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=44695560;
 //BA.debugLineNum = 44695560;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) { 
RDebugUtils.currentLine=44695561;
 //BA.debugLineNum = 44695561;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=44695562;
 //BA.debugLineNum = 44695562;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
RDebugUtils.currentLine=44695563;
 //BA.debugLineNum = 44695563;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("244695563",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
RDebugUtils.currentLine=44695564;
 //BA.debugLineNum = 44695564;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"}));
RDebugUtils.currentLine=44695565;
 //BA.debugLineNum = 44695565;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group12 = _resultado.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=44695566;
 //BA.debugLineNum = 44695566;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen13 = group13.getSize()
;int index13 = 0;
;
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.Get(index13));
RDebugUtils.currentLine=44695567;
 //BA.debugLineNum = 44695567;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("244695567",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=44695572;
 //BA.debugLineNum = 44695572;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=44695575;
 //BA.debugLineNum = 44695575;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemlongclick(reparto_intmex.keymon.lat.c_cliente __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=43646976;
 //BA.debugLineNum = 43646976;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
RDebugUtils.currentLine=43646978;
 //BA.debugLineNum = 43646978;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "nuevo_click", false))
	 {return ((String) Debug.delegate(ba, "nuevo_click", null));}
RDebugUtils.currentLine=44171264;
 //BA.debugLineNum = 44171264;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=44171265;
 //BA.debugLineNum = 44171265;BA.debugLine="StartActivity(MAPA_CLIENTE)";
__c.StartActivity(ba,(Object)(_mapa_cliente.getObject()));
RDebugUtils.currentLine=44171266;
 //BA.debugLineNum = 44171266;BA.debugLine="End Sub";
return "";
}
public String  _p_abono_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "p_abono_click", false))
	 {return ((String) Debug.delegate(ba, "p_abono_click", null));}
RDebugUtils.currentLine=45023232;
 //BA.debugLineNum = 45023232;BA.debugLine="Private Sub p_abono_Click";
RDebugUtils.currentLine=45023234;
 //BA.debugLineNum = 45023234;BA.debugLine="End Sub";
return "";
}
public String  _p_credito_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "p_credito_click", false))
	 {return ((String) Debug.delegate(ba, "p_credito_click", null));}
RDebugUtils.currentLine=44892160;
 //BA.debugLineNum = 44892160;BA.debugLine="Private Sub p_credito_Click";
RDebugUtils.currentLine=44892162;
 //BA.debugLineNum = 44892162;BA.debugLine="End Sub";
return "";
}
public String  _printer_connected(reparto_intmex.keymon.lat.c_cliente __ref,boolean _success) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "printer_connected", false))
	 {return ((String) Debug.delegate(ba, "printer_connected", new Object[] {_success}));}
RDebugUtils.currentLine=44433408;
 //BA.debugLineNum = 44433408;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
RDebugUtils.currentLine=44433409;
 //BA.debugLineNum = 44433409;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=44433410;
 //BA.debugLineNum = 44433410;BA.debugLine="B_IMP.Enabled = True";
__ref._b_imp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=44433411;
 //BA.debugLineNum = 44433411;BA.debugLine="PASA_IMP = \"1\"";
__ref._pasa_imp /*String*/  = "1";
 }else {
RDebugUtils.currentLine=44433413;
 //BA.debugLineNum = 44433413;BA.debugLine="B_IMP.Enabled = False";
__ref._b_imp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=44433414;
 //BA.debugLineNum = 44433414;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=44433415;
 //BA.debugLineNum = 44433415;BA.debugLine="StartPrinter";
__ref._startprinter /*String*/ (null);
 };
 };
RDebugUtils.currentLine=44433418;
 //BA.debugLineNum = 44433418;BA.debugLine="End Sub";
return "";
}
public String  _startprinter(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "startprinter", false))
	 {return ((String) Debug.delegate(ba, "startprinter", null));}
int _resimp = 0;
int _i = 0;
RDebugUtils.currentLine=44498944;
 //BA.debugLineNum = 44498944;BA.debugLine="Sub StartPrinter";
RDebugUtils.currentLine=44498945;
 //BA.debugLineNum = 44498945;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=44498946;
 //BA.debugLineNum = 44498946;BA.debugLine="Dim L As List";
_l = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=44498947;
 //BA.debugLineNum = 44498947;BA.debugLine="Dim resimp As Int";
_resimp = 0;
RDebugUtils.currentLine=44498948;
 //BA.debugLineNum = 44498948;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
RDebugUtils.currentLine=44498949;
 //BA.debugLineNum = 44498949;BA.debugLine="PairedDevices.Initialize";
__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=44498950;
 //BA.debugLineNum = 44498950;BA.debugLine="Try";
try {RDebugUtils.currentLine=44498951;
 //BA.debugLineNum = 44498951;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/  = __ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices();
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=44498953;
 //BA.debugLineNum = 44498953;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=44498954;
 //BA.debugLineNum = 44498954;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=44498955;
 //BA.debugLineNum = 44498955;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
RDebugUtils.currentLine=44498957;
 //BA.debugLineNum = 44498957;BA.debugLine="If PairedDevices.Size = 0 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==0) { 
RDebugUtils.currentLine=44498958;
 //BA.debugLineNum = 44498958;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=44498959;
 //BA.debugLineNum = 44498959;BA.debugLine="Return";
if (true) return "";
 };
RDebugUtils.currentLine=44498961;
 //BA.debugLineNum = 44498961;BA.debugLine="If PairedDevices.Size = 1 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==1) { 
RDebugUtils.currentLine=44498962;
 //BA.debugLineNum = 44498962;BA.debugLine="Try";
try {RDebugUtils.currentLine=44498964;
 //BA.debugLineNum = 44498964;BA.debugLine="cmp20.ConnectInsecure(btAdmin,PairedDevices.Get";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .ConnectInsecure(ba,__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ ,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt((int) (0)))),(int) (1));
 } 
       catch (Exception e21) {
			ba.setLastException(e21);RDebugUtils.currentLine=44498967;
 //BA.debugLineNum = 44498967;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=44498968;
 //BA.debugLineNum = 44498968;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=44498969;
 //BA.debugLineNum = 44498969;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
 }else {
RDebugUtils.currentLine=44498972;
 //BA.debugLineNum = 44498972;BA.debugLine="L.Initialize";
__ref._l /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=44498973;
 //BA.debugLineNum = 44498973;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
{
final int step27 = 1;
final int limit27 = (int) (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()-1);
_i = (int) (0) ;
for (;_i <= limit27 ;_i = _i + step27 ) {
RDebugUtils.currentLine=44498974;
 //BA.debugLineNum = 44498974;BA.debugLine="L.Add(PairedDevices.GetKeyAt(i))";
__ref._l /*anywheresoftware.b4a.objects.collections.List*/ .Add(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt(_i));
 }
};
RDebugUtils.currentLine=44498976;
 //BA.debugLineNum = 44498976;BA.debugLine="resimp = InputList(L, \"Choose device\", -1) 'igno";
_resimp = __c.InputList(__ref._l /*anywheresoftware.b4a.objects.collections.List*/ ,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
RDebugUtils.currentLine=44498977;
 //BA.debugLineNum = 44498977;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
if (_resimp!=__c.DialogResponse.CANCEL) { 
RDebugUtils.currentLine=44498978;
 //BA.debugLineNum = 44498978;BA.debugLine="cmp20.Connect(PairedDevices.Get(L.Get(resimp)))";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(__ref._l /*anywheresoftware.b4a.objects.collections.List*/ .Get(_resimp))));
 };
 };
RDebugUtils.currentLine=44498981;
 //BA.debugLineNum = 44498981;BA.debugLine="End Sub";
return "";
}
public String  _printer1_connected(reparto_intmex.keymon.lat.c_cliente __ref,boolean _success) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "printer1_connected", false))
	 {return ((String) Debug.delegate(ba, "printer1_connected", new Object[] {_success}));}
RDebugUtils.currentLine=44367872;
 //BA.debugLineNum = 44367872;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
RDebugUtils.currentLine=44367874;
 //BA.debugLineNum = 44367874;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=44367875;
 //BA.debugLineNum = 44367875;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
RDebugUtils.currentLine=44367876;
 //BA.debugLineNum = 44367876;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=44367877;
 //BA.debugLineNum = 44367877;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=44367878;
 //BA.debugLineNum = 44367878;BA.debugLine="LogColor(\"Impresora conectada\", Colors.Green)";
__c.LogImpl("244367878","Impresora conectada",__c.Colors.Green);
RDebugUtils.currentLine=44367880;
 //BA.debugLineNum = 44367880;BA.debugLine="impresoraConectada = True";
__ref._impresoraconectada /*boolean*/  = __c.True;
 }else {
RDebugUtils.currentLine=44367884;
 //BA.debugLineNum = 44367884;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("244367884","Error conectando la impresora",__c.Colors.Red);
RDebugUtils.currentLine=44367885;
 //BA.debugLineNum = 44367885;BA.debugLine="errorImpresora = errorImpresora + 1";
__ref._errorimpresora /*int*/  = (int) (__ref._errorimpresora /*int*/ +1);
RDebugUtils.currentLine=44367886;
 //BA.debugLineNum = 44367886;BA.debugLine="If errorImpresora > 1 Then";
if (__ref._errorimpresora /*int*/ >1) { 
RDebugUtils.currentLine=44367887;
 //BA.debugLineNum = 44367887;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
_starter._mac_impresora /*String*/  = "0";
RDebugUtils.currentLine=44367888;
 //BA.debugLineNum = 44367888;BA.debugLine="errorImpresora = 0";
__ref._errorimpresora /*int*/  = (int) (0);
 };
 };
RDebugUtils.currentLine=44367891;
 //BA.debugLineNum = 44367891;BA.debugLine="End Sub";
return "";
}
public String  _tar_click(reparto_intmex.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "tar_click", false))
	 {return ((String) Debug.delegate(ba, "tar_click", null));}
RDebugUtils.currentLine=43974656;
 //BA.debugLineNum = 43974656;BA.debugLine="Sub Tar_Click";
RDebugUtils.currentLine=43974658;
 //BA.debugLineNum = 43974658;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=43974659;
 //BA.debugLineNum = 43974659;BA.debugLine="End Sub";
return "";
}
}