package reparto_izca.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_izca.keymon.lat.c_cliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_izca.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_izca.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_izca.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_izca.keymon.lat.b4xcombobox _cb_tipopago = null;
public String _itemselect = "";
public String _tipo_abonox = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancel_pagare = null;
public String _nota = "";
public b4a.example.dateutils _dateutils = null;
public reparto_izca.keymon.lat.main _main = null;
public reparto_izca.keymon.lat.appupdater _appupdater = null;
public reparto_izca.keymon.lat.subs _subs = null;
public reparto_izca.keymon.lat.foto _foto = null;
public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_izca.keymon.lat.starter _starter = null;
public reparto_izca.keymon.lat.tracker _tracker = null;
public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_izca.keymon.lat.c_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=7667712;
 //BA.debugLineNum = 7667712;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=7667713;
 //BA.debugLineNum = 7667713;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=7667714;
 //BA.debugLineNum = 7667714;BA.debugLine="End Sub";
return null;
}
public String  _activity_pause(reparto_izca.keymon.lat.c_cliente __ref,boolean _userclosed) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
RDebugUtils.currentLine=7864320;
 //BA.debugLineNum = 7864320;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
RDebugUtils.currentLine=7864322;
 //BA.debugLineNum = 7864322;BA.debugLine="End Sub";
return "";
}
public void  _b_abono_click(reparto_izca.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_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
int _resultado = 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=9764866;
 //BA.debugLineNum = 9764866;BA.debugLine="If et_abono.Text <> \"\" Then";
if (true) break;

case 1:
//if
this.state = 24;
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=9764867;
 //BA.debugLineNum = 9764867;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then";
if (true) break;

case 4:
//if
this.state = 23;
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 = 23;
RDebugUtils.currentLine=9764868;
 //BA.debugLineNum = 9764868;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=9764870;
 //BA.debugLineNum = 9764870;BA.debugLine="If et_abono.Text <> \"\" And et_abono.Text > 0 Th";
if (true) break;

case 9:
//if
this.state = 22;
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=9764871;
 //BA.debugLineNum = 9764871;BA.debugLine="If itemselect <> \"SELECCIONA UNA OPCION\" Then";
if (true) break;

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

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=9764879;
 //BA.debugLineNum = 9764879;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=9764880;
 //BA.debugLineNum = 9764880;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 = 25;
return;
case 25:
//C
this.state = 15;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9764881;
 //BA.debugLineNum = 9764881;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 15:
//if
this.state = 18;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 17;
}if (true) break;

case 17:
//C
this.state = 18;
RDebugUtils.currentLine=9764882;
 //BA.debugLineNum = 9764882;BA.debugLine="imprime_abonopagare";
__ref._imprime_abonopagare /*void*/ (null);
 if (true) break;

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

case 20:
//C
this.state = 21;
RDebugUtils.currentLine=9764899;
 //BA.debugLineNum = 9764899;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 21:
//C
this.state = 22;
;
 if (true) break;

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

case 23:
//C
this.state = 24;
;
 if (true) break;

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

            }
        }
    }
}
public void  _imprime_abonopagare(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "imprime_abonopagare", false))
	 {Debug.delegate(ba, "imprime_abonopagare", null); return;}
ResumableSub_imprime_abonopagare rsub = new ResumableSub_imprime_abonopagare(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_imprime_abonopagare extends BA.ResumableSub {
public ResumableSub_imprime_abonopagare(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
int _cont = 0;
String _telefono = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null;
String _notaabono = "";
double _saldopendiente = 0;
double _saldopendiente1 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null;
int _numpago = 0;
String _tipopagotick = "";
int _resultado = 0;
String _rutaactualizar = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
double _textedit = 0;
double _sumaresta = 0;
String _ruta = "";
String _rutapre = "";

@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=9437185;
 //BA.debugLineNum = 9437185;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=9437186;
 //BA.debugLineNum = 9437186;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437187;
 //BA.debugLineNum = 9437187;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=9437188;
 //BA.debugLineNum = 9437188;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=9437189;
 //BA.debugLineNum = 9437189;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=9437190;
 //BA.debugLineNum = 9437190;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9437191;
 //BA.debugLineNum = 9437191;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9437192;
 //BA.debugLineNum = 9437192;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437223;
 //BA.debugLineNum = 9437223;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=9437224;
 //BA.debugLineNum = 9437224;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9437225;
 //BA.debugLineNum = 9437225;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

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

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

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=9437230;
 //BA.debugLineNum = 9437230;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000));
this.state = 145;
return;
case 145:
//C
this.state = 7;
;
RDebugUtils.currentLine=9437231;
 //BA.debugLineNum = 9437231;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=9437232;
 //BA.debugLineNum = 9437232;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
if (true) break;

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

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

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

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

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

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

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

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

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

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=9437242;
 //BA.debugLineNum = 9437242;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000));
this.state = 147;
return;
case 147:
//C
this.state = 25;
;
RDebugUtils.currentLine=9437243;
 //BA.debugLineNum = 9437243;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=9437244;
 //BA.debugLineNum = 9437244;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=9437250;
 //BA.debugLineNum = 9437250;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9437251;
 //BA.debugLineNum = 9437251;BA.debugLine="ESPACIO = 22";
__ref._espacio /*int*/  = (int) (22);
RDebugUtils.currentLine=9437252;
 //BA.debugLineNum = 9437252;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9437262;
 //BA.debugLineNum = 9437262;BA.debugLine="Dim telefono As String = \"\"";
_telefono = "";
RDebugUtils.currentLine=9437263;
 //BA.debugLineNum = 9437263;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select";
_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437264;
 //BA.debugLineNum = 9437264;BA.debugLine="If c7.RowCount > 0 Then";
if (true) break;

case 39:
//if
this.state = 42;
if (_c7.getRowCount()>0) { 
this.state = 41;
}if (true) break;

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=9437265;
 //BA.debugLineNum = 9437265;BA.debugLine="c7.Position = 0";
_c7.setPosition((int) (0));
RDebugUtils.currentLine=9437266;
 //BA.debugLineNum = 9437266;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")";
_telefono = _c7.GetString("CAT_CL_TELEFONO");
 if (true) break;

case 42:
//C
this.state = 43;
;
RDebugUtils.currentLine=9437268;
 //BA.debugLineNum = 9437268;BA.debugLine="c7.Close";
_c7.Close();
RDebugUtils.currentLine=9437272;
 //BA.debugLineNum = 9437272;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF);
RDebugUtils.currentLine=9437274;
 //BA.debugLineNum = 9437274;BA.debugLine="Printer1.WriteString(sDate &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9437275;
 //BA.debugLineNum = 9437275;BA.debugLine="Printer1.WriteString(sTime &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9437276;
 //BA.debugLineNum = 9437276;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario &  CRLF";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Reparto:"+__ref._usuario /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9437277;
 //BA.debugLineNum = 9437277;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9437278;
 //BA.debugLineNum = 9437278;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9437279;
 //BA.debugLineNum = 9437279;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9437280;
 //BA.debugLineNum = 9437280;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9437281;
 //BA.debugLineNum = 9437281;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono &  C";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Telefono: "+_telefono+parent.__c.CRLF);
RDebugUtils.currentLine=9437282;
 //BA.debugLineNum = 9437282;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437283;
 //BA.debugLineNum = 9437283;BA.debugLine="Dim notaabono As String";
_notaabono = "";
RDebugUtils.currentLine=9437284;
 //BA.debugLineNum = 9437284;BA.debugLine="Dim saldopendiente As Double";
_saldopendiente = 0;
RDebugUtils.currentLine=9437286;
 //BA.debugLineNum = 9437286;BA.debugLine="If tipo_abonox = \"abono\" Then";
if (true) break;

case 43:
//if
this.state = 68;
if ((__ref._tipo_abonox /*String*/ ).equals("abono")) { 
this.state = 45;
}else 
{RDebugUtils.currentLine=9437316;
 //BA.debugLineNum = 9437316;BA.debugLine="Else If tipo_abonox = \"cxc\" Then";
if ((__ref._tipo_abonox /*String*/ ).equals("cxc")) { 
this.state = 59;
}}
if (true) break;

case 45:
//C
this.state = 46;
RDebugUtils.currentLine=9437289;
 //BA.debugLineNum = 9437289;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"'"))));
RDebugUtils.currentLine=9437290;
 //BA.debugLineNum = 9437290;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 48:
//C
this.state = 49;
RDebugUtils.currentLine=9437291;
 //BA.debugLineNum = 9437291;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437292;
 //BA.debugLineNum = 9437292;BA.debugLine="notaabono = c.GetString(\"HVD_NUM_TICKET\")";
_notaabono = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET");
 if (true) break;

case 49:
//C
this.state = 50;
;
RDebugUtils.currentLine=9437294;
 //BA.debugLineNum = 9437294;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437296;
 //BA.debugLineNum = 9437296;BA.debugLine="c = Starter.skmt.ExecQuery($\"select iFNULL(sum(P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(sum(PA_MONTO),0) AS SALDO_PENDIENTE from PAGARES where PA_CLIENTE = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"'"))));
RDebugUtils.currentLine=9437297;
 //BA.debugLineNum = 9437297;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 52:
//C
this.state = 53;
RDebugUtils.currentLine=9437298;
 //BA.debugLineNum = 9437298;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437299;
 //BA.debugLineNum = 9437299;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")";
_saldopendiente = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SALDO_PENDIENTE");
RDebugUtils.currentLine=9437300;
 //BA.debugLineNum = 9437300;BA.debugLine="Log(c.GetString(\"SALDO_PENDIENTE\"))";
parent.__c.LogImpl("89437300",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
 if (true) break;

case 53:
//C
this.state = 54;
;
RDebugUtils.currentLine=9437302;
 //BA.debugLineNum = 9437302;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437305;
 //BA.debugLineNum = 9437305;BA.debugLine="Dim saldopendiente1 As Double = 0";
_saldopendiente1 = 0;
RDebugUtils.currentLine=9437306;
 //BA.debugLineNum = 9437306;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT";
_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null")));
RDebugUtils.currentLine=9437307;
 //BA.debugLineNum = 9437307;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 54:
//if
this.state = 57;
if (_c4.getRowCount()>0) { 
this.state = 56;
}if (true) break;

case 56:
//C
this.state = 57;
RDebugUtils.currentLine=9437308;
 //BA.debugLineNum = 9437308;BA.debugLine="c4.Position = 0";
_c4.setPosition((int) (0));
RDebugUtils.currentLine=9437309;
 //BA.debugLineNum = 9437309;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC";
_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null")));
RDebugUtils.currentLine=9437310;
 //BA.debugLineNum = 9437310;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE";
_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE");
 if (true) break;

case 57:
//C
this.state = 68;
;
RDebugUtils.currentLine=9437314;
 //BA.debugLineNum = 9437314;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 59:
//C
this.state = 60;
RDebugUtils.currentLine=9437317;
 //BA.debugLineNum = 9437317;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NOTA, SUM(SAL";
__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 NOTA, SUM(SALDO_PENDIENTE) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437318;
 //BA.debugLineNum = 9437318;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 62:
//C
this.state = 63;
RDebugUtils.currentLine=9437319;
 //BA.debugLineNum = 9437319;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437320;
 //BA.debugLineNum = 9437320;BA.debugLine="notaabono = c.GetString(\"NOTA\")";
_notaabono = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA");
RDebugUtils.currentLine=9437321;
 //BA.debugLineNum = 9437321;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")";
_saldopendiente = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SALDO_PENDIENTE");
 if (true) break;

case 63:
//C
this.state = 64;
;
RDebugUtils.currentLine=9437323;
 //BA.debugLineNum = 9437323;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437325;
 //BA.debugLineNum = 9437325;BA.debugLine="Dim saldopendiente1 As Double = 0";
_saldopendiente1 = 0;
RDebugUtils.currentLine=9437326;
 //BA.debugLineNum = 9437326;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT";
_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null")));
RDebugUtils.currentLine=9437327;
 //BA.debugLineNum = 9437327;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 64:
//if
this.state = 67;
if (_c4.getRowCount()>0) { 
this.state = 66;
}if (true) break;

case 66:
//C
this.state = 67;
RDebugUtils.currentLine=9437328;
 //BA.debugLineNum = 9437328;BA.debugLine="c4.Position = 0";
_c4.setPosition((int) (0));
RDebugUtils.currentLine=9437329;
 //BA.debugLineNum = 9437329;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC";
_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null")));
RDebugUtils.currentLine=9437330;
 //BA.debugLineNum = 9437330;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE";
_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE");
 if (true) break;

case 67:
//C
this.state = 68;
;
RDebugUtils.currentLine=9437335;
 //BA.debugLineNum = 9437335;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 68:
//C
this.state = 69;
;
RDebugUtils.currentLine=9437345;
 //BA.debugLineNum = 9437345;BA.debugLine="Dim numpago As Int = c5.RowCount + 1";
_numpago = (int) (_c5.getRowCount()+1);
RDebugUtils.currentLine=9437346;
 //BA.debugLineNum = 9437346;BA.debugLine="Log(notaabono)";
parent.__c.LogImpl("89437346",_notaabono,0);
RDebugUtils.currentLine=9437347;
 //BA.debugLineNum = 9437347;BA.debugLine="Log(et_abono.Text)";
parent.__c.LogImpl("89437347",__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),0);
RDebugUtils.currentLine=9437348;
 //BA.debugLineNum = 9437348;BA.debugLine="Printer1.WriteString(\"Comprobante de pago del pag";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Comprobante de pago del pagare"+parent.__c.CRLF);
RDebugUtils.currentLine=9437349;
 //BA.debugLineNum = 9437349;BA.debugLine="Printer1.WriteString(\"Folio:  \" & notaabono &\"-\"&";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Folio:  "+_notaabono+"-"+BA.NumberToString((_numpago))+parent.__c.CRLF);
RDebugUtils.currentLine=9437350;
 //BA.debugLineNum = 9437350;BA.debugLine="Printer1.WriteString(\"Monto deuda:  \" & (NumberFo";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto deuda:  "+(parent.__c.NumberFormat(_saldopendiente-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF);
RDebugUtils.currentLine=9437351;
 //BA.debugLineNum = 9437351;BA.debugLine="Printer1.WriteString(\"Monto abono:  \" & (NumberFo";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto abono:  "+(parent.__c.NumberFormat((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())),(int) (0),(int) (2)))+parent.__c.CRLF);
RDebugUtils.currentLine=9437352;
 //BA.debugLineNum = 9437352;BA.debugLine="Printer1.WriteString(\"Restante: \" &(NumberFormat(";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Restante: "+(parent.__c.NumberFormat(_saldopendiente-(double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF);
RDebugUtils.currentLine=9437353;
 //BA.debugLineNum = 9437353;BA.debugLine="Printer1.WriteString(\"Fecha Abono: \" & sDate &  C";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha Abono: "+__ref._sdate /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9437354;
 //BA.debugLineNum = 9437354;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437355;
 //BA.debugLineNum = 9437355;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437356;
 //BA.debugLineNum = 9437356;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437357;
 //BA.debugLineNum = 9437357;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437358;
 //BA.debugLineNum = 9437358;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437359;
 //BA.debugLineNum = 9437359;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437360;
 //BA.debugLineNum = 9437360;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437361;
 //BA.debugLineNum = 9437361;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9437362;
 //BA.debugLineNum = 9437362;BA.debugLine="Printer1.WriteString(\"-------------FIRMA---------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------------FIRMA------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9437363;
 //BA.debugLineNum = 9437363;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437364;
 //BA.debugLineNum = 9437364;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437365;
 //BA.debugLineNum = 9437365;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437366;
 //BA.debugLineNum = 9437366;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\"";
parent.__c.DateTime.setDateFormat("ddMMyyyy");
RDebugUtils.currentLine=9437367;
 //BA.debugLineNum = 9437367;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9437373;
 //BA.debugLineNum = 9437373;BA.debugLine="Dim tipopagotick As String = \"\"";
_tipopagotick = "";
RDebugUtils.currentLine=9437374;
 //BA.debugLineNum = 9437374;BA.debugLine="If itemselect = \"TRANSFERENCIA\" Then";
if (true) break;

case 69:
//if
this.state = 76;
if ((__ref._itemselect /*String*/ ).equals("TRANSFERENCIA")) { 
this.state = 71;
}else 
{RDebugUtils.currentLine=9437376;
 //BA.debugLineNum = 9437376;BA.debugLine="Else If itemselect = \"EFECTIVO\" Then";
if ((__ref._itemselect /*String*/ ).equals("EFECTIVO")) { 
this.state = 73;
}else 
{RDebugUtils.currentLine=9437378;
 //BA.debugLineNum = 9437378;BA.debugLine="Else If itemselect = \"CHEQUE\" Then";
if ((__ref._itemselect /*String*/ ).equals("CHEQUE")) { 
this.state = 75;
}}}
if (true) break;

case 71:
//C
this.state = 76;
RDebugUtils.currentLine=9437375;
 //BA.debugLineNum = 9437375;BA.debugLine="tipopagotick = \"T\"";
_tipopagotick = "T";
 if (true) break;

case 73:
//C
this.state = 76;
RDebugUtils.currentLine=9437377;
 //BA.debugLineNum = 9437377;BA.debugLine="tipopagotick = \"E\"";
_tipopagotick = "E";
 if (true) break;

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=9437379;
 //BA.debugLineNum = 9437379;BA.debugLine="tipopagotick = \"C\"";
_tipopagotick = "C";
 if (true) break;

case 76:
//C
this.state = 77;
;
RDebugUtils.currentLine=9437382;
 //BA.debugLineNum = 9437382;BA.debugLine="Printer1.WriteBarCode(\"I\",notaabono&sDate&tipopag";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writebarcode /*String*/ (null,"I",_notaabono+__ref._sdate /*String*/ +_tipopagotick+BA.NumberToString(_numpago));
RDebugUtils.currentLine=9437383;
 //BA.debugLineNum = 9437383;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437384;
 //BA.debugLineNum = 9437384;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437385;
 //BA.debugLineNum = 9437385;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9437386;
 //BA.debugLineNum = 9437386;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000));
this.state = 149;
return;
case 149:
//C
this.state = 77;
;
RDebugUtils.currentLine=9437387;
 //BA.debugLineNum = 9437387;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9437388;
 //BA.debugLineNum = 9437388;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=9437391;
 //BA.debugLineNum = 9437391;BA.debugLine="If tipo_abonox = \"abono\" Then";
if (true) break;

case 77:
//if
this.state = 144;
if ((__ref._tipo_abonox /*String*/ ).equals("abono")) { 
this.state = 79;
}else 
{RDebugUtils.currentLine=9437404;
 //BA.debugLineNum = 9437404;BA.debugLine="Else If tipo_abonox = \"cxc\" Then";
if ((__ref._tipo_abonox /*String*/ ).equals("cxc")) { 
this.state = 87;
}}
if (true) break;

case 79:
//C
this.state = 80;
RDebugUtils.currentLine=9437392;
 //BA.debugLineNum = 9437392;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9437394;
 //BA.debugLineNum = 9437394;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"), null);
this.state = 150;
return;
case 150:
//C
this.state = 80;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9437395;
 //BA.debugLineNum = 9437395;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 80:
//if
this.state = 85;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 82;
}else {
this.state = 84;
}if (true) break;

case 82:
//C
this.state = 85;
RDebugUtils.currentLine=9437396;
 //BA.debugLineNum = 9437396;BA.debugLine="imprime_abonopagare";
__ref._imprime_abonopagare /*void*/ (null);
 if (true) break;

case 84:
//C
this.state = 85;
RDebugUtils.currentLine=9437398;
 //BA.debugLineNum = 9437398;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=9437400;
 //BA.debugLineNum = 9437400;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS(";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,a_tipoabono,TIPO_PAGO,a_ticket,a_numpago) 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()))))+"', 1,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._itemselect /*String*/ ))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')"));
RDebugUtils.currentLine=9437401;
 //BA.debugLineNum = 9437401;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
 if (true) break;

case 85:
//C
this.state = 144;
;
 if (true) break;

case 87:
//C
this.state = 88;
RDebugUtils.currentLine=9437405;
 //BA.debugLineNum = 9437405;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9437406;
 //BA.debugLineNum = 9437406;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"), null);
this.state = 151;
return;
case 151:
//C
this.state = 88;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9437407;
 //BA.debugLineNum = 9437407;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 88:
//if
this.state = 143;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 90;
}else {
this.state = 92;
}if (true) break;

case 90:
//C
this.state = 143;
RDebugUtils.currentLine=9437408;
 //BA.debugLineNum = 9437408;BA.debugLine="imprime_abonopagare";
__ref._imprime_abonopagare /*void*/ (null);
 if (true) break;

case 92:
//C
this.state = 93;
RDebugUtils.currentLine=9437414;
 //BA.debugLineNum = 9437414;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=9437415;
 //BA.debugLineNum = 9437415;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437416;
 //BA.debugLineNum = 9437416;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
parent.__c.LogImpl("89437416",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=9437417;
 //BA.debugLineNum = 9437417;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO";
__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)(parent._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=9437418;
 //BA.debugLineNum = 9437418;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437419;
 //BA.debugLineNum = 9437419;BA.debugLine="If j.RowCount = 0 Then";
if (true) break;

case 93:
//if
this.state = 142;
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 95;
}else {
this.state = 119;
}if (true) break;

case 95:
//C
this.state = 96;
RDebugUtils.currentLine=9437420;
 //BA.debugLineNum = 9437420;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=9437421;
 //BA.debugLineNum = 9437421;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) 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)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')"));
RDebugUtils.currentLine=9437422;
 //BA.debugLineNum = 9437422;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
RDebugUtils.currentLine=9437423;
 //BA.debugLineNum = 9437423;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=9437424;
 //BA.debugLineNum = 9437424;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE";
_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)(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=9437425;
 //BA.debugLineNum = 9437425;BA.debugLine="If rut.RowCount > 0 Then";
if (true) break;

case 96:
//if
this.state = 99;
if (_rut.getRowCount()>0) { 
this.state = 98;
}if (true) break;

case 98:
//C
this.state = 99;
RDebugUtils.currentLine=9437426;
 //BA.debugLineNum = 9437426;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=9437427;
 //BA.debugLineNum = 9437427;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 if (true) break;

case 99:
//C
this.state = 100;
;
RDebugUtils.currentLine=9437429;
 //BA.debugLineNum = 9437429;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
RDebugUtils.currentLine=9437430;
 //BA.debugLineNum = 9437430;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"));
RDebugUtils.currentLine=9437431;
 //BA.debugLineNum = 9437431;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437432;
 //BA.debugLineNum = 9437432;BA.debugLine="If c3.RowCount = 0 Then";
if (true) break;

case 100:
//if
this.state = 105;
if (_c3.getRowCount()==0) { 
this.state = 102;
}else {
this.state = 104;
}if (true) break;

case 102:
//C
this.state = 105;
RDebugUtils.currentLine=9437433;
 //BA.debugLineNum = 9437433;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0,  HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR  WHERE HVD_cliente in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=9437434;
 //BA.debugLineNum = 9437434;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 if (true) break;

case 104:
//C
this.state = 105;
RDebugUtils.currentLine=9437436;
 //BA.debugLineNum = 9437436;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

case 105:
//C
this.state = 106;
;
RDebugUtils.currentLine=9437438;
 //BA.debugLineNum = 9437438;BA.debugLine="Dim textedit As Double = et_abono.Text";
_textedit = (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()));
RDebugUtils.currentLine=9437439;
 //BA.debugLineNum = 9437439;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte";
_sumaresta = _saldopendiente-_textedit-_saldopendiente1;
RDebugUtils.currentLine=9437440;
 //BA.debugLineNum = 9437440;BA.debugLine="Log(NumberFormat2(sumaresta,0,2,2,False))";
parent.__c.LogImpl("89437440",parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
RDebugUtils.currentLine=9437441;
 //BA.debugLineNum = 9437441;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-.";
if (true) break;

case 106:
//if
this.state = 117;
if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { 
this.state = 108;
}if (true) break;

case 108:
//C
this.state = 109;
RDebugUtils.currentLine=9437442;
 //BA.debugLineNum = 9437442;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \".";
if (true) break;

case 109:
//if
this.state = 116;
if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { 
this.state = 111;
}if (true) break;

case 111:
//C
this.state = 112;
RDebugUtils.currentLine=9437443;
 //BA.debugLineNum = 9437443;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=9437444;
 //BA.debugLineNum = 9437444;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"";
_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)(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=9437445;
 //BA.debugLineNum = 9437445;BA.debugLine="If rut.RowCount > 0 Then";
if (true) break;

case 112:
//if
this.state = 115;
if (_rut.getRowCount()>0) { 
this.state = 114;
}if (true) break;

case 114:
//C
this.state = 115;
RDebugUtils.currentLine=9437446;
 //BA.debugLineNum = 9437446;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=9437447;
 //BA.debugLineNum = 9437447;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 if (true) break;

case 115:
//C
this.state = 116;
;
RDebugUtils.currentLine=9437449;
 //BA.debugLineNum = 9437449;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
RDebugUtils.currentLine=9437450;
 //BA.debugLineNum = 9437450;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"));
RDebugUtils.currentLine=9437451;
 //BA.debugLineNum = 9437451;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE";
parent._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_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)}));
RDebugUtils.currentLine=9437452;
 //BA.debugLineNum = 9437452;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=9437453;
 //BA.debugLineNum = 9437453;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2,  HVD_RECHAZOCANT = HVD_RECHAZOCANT  WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=9437454;
 //BA.debugLineNum = 9437454;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=9437455;
 //BA.debugLineNum = 9437455;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA 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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=9437456;
 //BA.debugLineNum = 9437456;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437457;
 //BA.debugLineNum = 9437457;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=9437458;
 //BA.debugLineNum = 9437458;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437459;
 //BA.debugLineNum = 9437459;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU";
__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 CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437460;
 //BA.debugLineNum = 9437460;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437461;
 //BA.debugLineNum = 9437461;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_";
_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=9437462;
 //BA.debugLineNum = 9437462;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437463;
 //BA.debugLineNum = 9437463;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA";
__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 HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437464;
 //BA.debugLineNum = 9437464;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437465;
 //BA.debugLineNum = 9437465;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F";
parent._fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=9437466;
 //BA.debugLineNum = 9437466;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437467;
 //BA.debugLineNum = 9437467;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA 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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=9437468;
 //BA.debugLineNum = 9437468;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437469;
 //BA.debugLineNum = 9437469;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"}));
RDebugUtils.currentLine=9437470;
 //BA.debugLineNum = 9437470;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
parent._b4xpages._showpage /*String*/ (ba,"Principal");
 if (true) break;

case 116:
//C
this.state = 117;
;
 if (true) break;

case 117:
//C
this.state = 142;
;
 if (true) break;

case 119:
//C
this.state = 120;
RDebugUtils.currentLine=9437474;
 //BA.debugLineNum = 9437474;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=9437475;
 //BA.debugLineNum = 9437475;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) 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)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')"));
RDebugUtils.currentLine=9437476;
 //BA.debugLineNum = 9437476;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
RDebugUtils.currentLine=9437477;
 //BA.debugLineNum = 9437477;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=9437478;
 //BA.debugLineNum = 9437478;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE";
_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)(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=9437479;
 //BA.debugLineNum = 9437479;BA.debugLine="If rut.RowCount > 0 Then";
if (true) break;

case 120:
//if
this.state = 123;
if (_rut.getRowCount()>0) { 
this.state = 122;
}if (true) break;

case 122:
//C
this.state = 123;
RDebugUtils.currentLine=9437480;
 //BA.debugLineNum = 9437480;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=9437481;
 //BA.debugLineNum = 9437481;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 if (true) break;

case 123:
//C
this.state = 124;
;
RDebugUtils.currentLine=9437483;
 //BA.debugLineNum = 9437483;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
RDebugUtils.currentLine=9437484;
 //BA.debugLineNum = 9437484;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"));
RDebugUtils.currentLine=9437485;
 //BA.debugLineNum = 9437485;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437486;
 //BA.debugLineNum = 9437486;BA.debugLine="If c3.RowCount = 0 Then";
if (true) break;

case 124:
//if
this.state = 129;
if (_c3.getRowCount()==0) { 
this.state = 126;
}else {
this.state = 128;
}if (true) break;

case 126:
//C
this.state = 129;
RDebugUtils.currentLine=9437487;
 //BA.debugLineNum = 9437487;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0,  HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR  WHERE HVD_cliente in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=9437488;
 //BA.debugLineNum = 9437488;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 if (true) break;

case 128:
//C
this.state = 129;
RDebugUtils.currentLine=9437490;
 //BA.debugLineNum = 9437490;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

case 129:
//C
this.state = 130;
;
RDebugUtils.currentLine=9437492;
 //BA.debugLineNum = 9437492;BA.debugLine="Dim textedit As Double = et_abono.Text";
_textedit = (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()));
RDebugUtils.currentLine=9437493;
 //BA.debugLineNum = 9437493;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte";
_sumaresta = _saldopendiente-_textedit-_saldopendiente1;
RDebugUtils.currentLine=9437495;
 //BA.debugLineNum = 9437495;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-.";
if (true) break;

case 130:
//if
this.state = 141;
if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { 
this.state = 132;
}if (true) break;

case 132:
//C
this.state = 133;
RDebugUtils.currentLine=9437496;
 //BA.debugLineNum = 9437496;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \".";
if (true) break;

case 133:
//if
this.state = 140;
if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { 
this.state = 135;
}if (true) break;

case 135:
//C
this.state = 136;
RDebugUtils.currentLine=9437497;
 //BA.debugLineNum = 9437497;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=9437498;
 //BA.debugLineNum = 9437498;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"";
_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)(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=9437499;
 //BA.debugLineNum = 9437499;BA.debugLine="If rut.RowCount > 0 Then";
if (true) break;

case 136:
//if
this.state = 139;
if (_rut.getRowCount()>0) { 
this.state = 138;
}if (true) break;

case 138:
//C
this.state = 139;
RDebugUtils.currentLine=9437500;
 //BA.debugLineNum = 9437500;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=9437501;
 //BA.debugLineNum = 9437501;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 if (true) break;

case 139:
//C
this.state = 140;
;
RDebugUtils.currentLine=9437503;
 //BA.debugLineNum = 9437503;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
RDebugUtils.currentLine=9437504;
 //BA.debugLineNum = 9437504;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"));
RDebugUtils.currentLine=9437505;
 //BA.debugLineNum = 9437505;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE";
parent._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_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)}));
RDebugUtils.currentLine=9437506;
 //BA.debugLineNum = 9437506;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=9437507;
 //BA.debugLineNum = 9437507;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2,  HVD_RECHAZOCANT = HVD_RECHAZOCANT  WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=9437508;
 //BA.debugLineNum = 9437508;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=9437509;
 //BA.debugLineNum = 9437509;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA 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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
RDebugUtils.currentLine=9437510;
 //BA.debugLineNum = 9437510;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437511;
 //BA.debugLineNum = 9437511;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=9437512;
 //BA.debugLineNum = 9437512;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437513;
 //BA.debugLineNum = 9437513;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU";
__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 CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437514;
 //BA.debugLineNum = 9437514;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437515;
 //BA.debugLineNum = 9437515;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_";
_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=9437516;
 //BA.debugLineNum = 9437516;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437517;
 //BA.debugLineNum = 9437517;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA";
__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 HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9437518;
 //BA.debugLineNum = 9437518;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437519;
 //BA.debugLineNum = 9437519;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F";
parent._fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=9437520;
 //BA.debugLineNum = 9437520;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9437521;
 //BA.debugLineNum = 9437521;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA 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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=9437522;
 //BA.debugLineNum = 9437522;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9437523;
 //BA.debugLineNum = 9437523;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"}));
RDebugUtils.currentLine=9437524;
 //BA.debugLineNum = 9437524;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
parent._b4xpages._showpage /*String*/ (ba,"Principal");
 if (true) break;

case 140:
//C
this.state = 141;
;
 if (true) break;

case 141:
//C
this.state = 142;
;
 if (true) break;

case 142:
//C
this.state = 143;
;
 if (true) break;

case 143:
//C
this.state = 144;
;
 if (true) break;

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

            }
        }
    }
}
public String  _b_acred_click(reparto_izca.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));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagacheca = null;
RDebugUtils.currentLine=9175040;
 //BA.debugLineNum = 9175040;BA.debugLine="Private Sub b_acred_Click";
RDebugUtils.currentLine=9175044;
 //BA.debugLineNum = 9175044;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=9175045;
 //BA.debugLineNum = 9175045;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=9175046;
 //BA.debugLineNum = 9175046;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=9175047;
 //BA.debugLineNum = 9175047;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=9175049;
 //BA.debugLineNum = 9175049;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=9175050;
 //BA.debugLineNum = 9175050;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175051;
 //BA.debugLineNum = 9175051;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=9175052;
 //BA.debugLineNum = 9175052;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175054;
 //BA.debugLineNum = 9175054;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=9175055;
 //BA.debugLineNum = 9175055;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175056;
 //BA.debugLineNum = 9175056;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=9175057;
 //BA.debugLineNum = 9175057;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175059;
 //BA.debugLineNum = 9175059;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=9175060;
 //BA.debugLineNum = 9175060;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175061;
 //BA.debugLineNum = 9175061;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=9175062;
 //BA.debugLineNum = 9175062;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175064;
 //BA.debugLineNum = 9175064;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=9175065;
 //BA.debugLineNum = 9175065;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175066;
 //BA.debugLineNum = 9175066;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")";
__ref._fechaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=9175067;
 //BA.debugLineNum = 9175067;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175069;
 //BA.debugLineNum = 9175069;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=9175070;
 //BA.debugLineNum = 9175070;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175071;
 //BA.debugLineNum = 9175071;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")";
__ref._rutaprev /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=9175072;
 //BA.debugLineNum = 9175072;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175074;
 //BA.debugLineNum = 9175074;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=9175075;
 //BA.debugLineNum = 9175075;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175076;
 //BA.debugLineNum = 9175076;BA.debugLine="rutarep = c.GetString(\"RUTAA\")";
__ref._rutarep /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=9175077;
 //BA.debugLineNum = 9175077;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175079;
 //BA.debugLineNum = 9175079;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"' AND HVD_BCREDITO = '1'"))));
RDebugUtils.currentLine=9175080;
 //BA.debugLineNum = 9175080;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9175081;
 //BA.debugLineNum = 9175081;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9175082;
 //BA.debugLineNum = 9175082;BA.debugLine="NOTA = c.GetString(\"HVD_NUM_TICKET\")";
__ref._nota /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET");
 };
RDebugUtils.currentLine=9175084;
 //BA.debugLineNum = 9175084;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9175086;
 //BA.debugLineNum = 9175086;BA.debugLine="Dim pagacheca As Cursor = Starter.skmt.ExecQuery(";
_pagacheca = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagacheca = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9175088;
 //BA.debugLineNum = 9175088;BA.debugLine="If pagacheca.RowCount > 0 Then";
if (_pagacheca.getRowCount()>0) { 
RDebugUtils.currentLine=9175091;
 //BA.debugLineNum = 9175091;BA.debugLine="Guardado";
__ref._guardado /*String*/ (null);
 }else {
RDebugUtils.currentLine=9175094;
 //BA.debugLineNum = 9175094;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,PA_TICKET) 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._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._nota /*String*/ )}));
RDebugUtils.currentLine=9175097;
 //BA.debugLineNum = 9175097;BA.debugLine="Guardado";
__ref._guardado /*String*/ (null);
 };
RDebugUtils.currentLine=9175105;
 //BA.debugLineNum = 9175105;BA.debugLine="End Sub";
return "";
}
public String  _guardado(reparto_izca.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=8126464;
 //BA.debugLineNum = 8126464;BA.debugLine="Sub Guardado";
RDebugUtils.currentLine=8126465;
 //BA.debugLineNum = 8126465;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=8126466;
 //BA.debugLineNum = 8126466;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=8126467;
 //BA.debugLineNum = 8126467;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=8126468;
 //BA.debugLineNum = 8126468;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=8126469;
 //BA.debugLineNum = 8126469;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=8126470;
 //BA.debugLineNum = 8126470;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8126471;
 //BA.debugLineNum = 8126471;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=8126472;
 //BA.debugLineNum = 8126472;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=8126473;
 //BA.debugLineNum = 8126473;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8126474;
 //BA.debugLineNum = 8126474;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=8126475;
 //BA.debugLineNum = 8126475;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8126476;
 //BA.debugLineNum = 8126476;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=8126477;
 //BA.debugLineNum = 8126477;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8126478;
 //BA.debugLineNum = 8126478;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=8126479;
 //BA.debugLineNum = 8126479;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8126480;
 //BA.debugLineNum = 8126480;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=8126481;
 //BA.debugLineNum = 8126481;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8126482;
 //BA.debugLineNum = 8126482;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=8126483;
 //BA.debugLineNum = 8126483;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8126487;
 //BA.debugLineNum = 8126487;BA.debugLine="Dim fechaprev As String = Subs.traefECHAPREV";
_fechaprev = _subs._traefechaprev /*String*/ (ba);
RDebugUtils.currentLine=8126490;
 //BA.debugLineNum = 8126490;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=8126491;
 //BA.debugLineNum = 8126491;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=8126492;
 //BA.debugLineNum = 8126492;BA.debugLine="If rut.RowCount > 0 Then";
if (_rut.getRowCount()>0) { 
RDebugUtils.currentLine=8126493;
 //BA.debugLineNum = 8126493;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=8126494;
 //BA.debugLineNum = 8126494;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 };
RDebugUtils.currentLine=8126497;
 //BA.debugLineNum = 8126497;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) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' "));
RDebugUtils.currentLine=8126498;
 //BA.debugLineNum = 8126498;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_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar)}));
RDebugUtils.currentLine=8126499;
 //BA.debugLineNum = 8126499;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_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"ENTREGADO"}));
RDebugUtils.currentLine=8126500;
 //BA.debugLineNum = 8126500;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=8126501;
 //BA.debugLineNum = 8126501;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=8126502;
 //BA.debugLineNum = 8126502;BA.debugLine="mandaPendientesreparto";
__ref._mandapendientesreparto /*String*/ (null);
RDebugUtils.currentLine=8126509;
 //BA.debugLineNum = 8126509;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=8126511;
 //BA.debugLineNum = 8126511;BA.debugLine="End Sub";
return "";
}
public String  _b_cancel_pagare_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cancel_pagare_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancel_pagare_click", null));}
anywheresoftware.b4a.objects.collections.List _items = null;
double _total = 0;
int _i = 0;
RDebugUtils.currentLine=9502720;
 //BA.debugLineNum = 9502720;BA.debugLine="Private Sub b_cancel_pagare_Click";
RDebugUtils.currentLine=9502721;
 //BA.debugLineNum = 9502721;BA.debugLine="tipo_abonox = \"abono\"";
__ref._tipo_abonox /*String*/  = "abono";
RDebugUtils.currentLine=9502723;
 //BA.debugLineNum = 9502723;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=9502724;
 //BA.debugLineNum = 9502724;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=9502726;
 //BA.debugLineNum = 9502726;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")";
_items.Add((Object)("SELECCIONA UNA OPCION"));
RDebugUtils.currentLine=9502727;
 //BA.debugLineNum = 9502727;BA.debugLine="Items.Add(\"TRANSFERENCIA\")";
_items.Add((Object)("TRANSFERENCIA"));
RDebugUtils.currentLine=9502728;
 //BA.debugLineNum = 9502728;BA.debugLine="Items.Add(\"EFECTIVO\")";
_items.Add((Object)("EFECTIVO"));
RDebugUtils.currentLine=9502729;
 //BA.debugLineNum = 9502729;BA.debugLine="Items.Add(\"CHEQUE\")";
_items.Add((Object)("CHEQUE"));
RDebugUtils.currentLine=9502731;
 //BA.debugLineNum = 9502731;BA.debugLine="cb_tipopago.SetItems(Items)";
__ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items);
RDebugUtils.currentLine=9502733;
 //BA.debugLineNum = 9502733;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\"";
__ref._itemselect /*String*/  = "SELECCIONA UNA OPCION";
RDebugUtils.currentLine=9502735;
 //BA.debugLineNum = 9502735;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=9502736;
 //BA.debugLineNum = 9502736;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9502737;
 //BA.debugLineNum = 9502737;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
__c.LogImpl("89502737",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=9502738;
 //BA.debugLineNum = 9502738;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 = ? and a_tipoabono is null",new String[]{__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9502739;
 //BA.debugLineNum = 9502739;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9502740;
 //BA.debugLineNum = 9502740;BA.debugLine="Log(j.RowCount)";
__c.LogImpl("89502740",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=9502741;
 //BA.debugLineNum = 9502741;BA.debugLine="If j.RowCount = 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=9502742;
 //BA.debugLineNum = 9502742;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=9502743;
 //BA.debugLineNum = 9502743;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=9502744;
 //BA.debugLineNum = 9502744;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=9502745;
 //BA.debugLineNum = 9502745;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9502746;
 //BA.debugLineNum = 9502746;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=9502747;
 //BA.debugLineNum = 9502747;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=9502748;
 //BA.debugLineNum = 9502748;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9502749;
 //BA.debugLineNum = 9502749;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_";
__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 distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ?",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9502750;
 //BA.debugLineNum = 9502750;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=9502751;
 //BA.debugLineNum = 9502751;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step26 = 1;
final int limit26 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit26 ;_i = _i + step26 ) {
RDebugUtils.currentLine=9502752;
 //BA.debugLineNum = 9502752;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9502753;
 //BA.debugLineNum = 9502753;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T";
__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("PA_TICKET"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO")).getObject())),(Object)(_i));
RDebugUtils.currentLine=9502755;
 //BA.debugLineNum = 9502755;BA.debugLine="total = total + d.GetString(\"PA_MONTO\")";
_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO")));
RDebugUtils.currentLine=9502756;
 //BA.debugLineNum = 9502756;BA.debugLine="Log(total)";
__c.LogImpl("89502756",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=9502758;
 //BA.debugLineNum = 9502758;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502759;
 //BA.debugLineNum = 9502759;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 = ? and a_tipoabono is not null ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9502760;
 //BA.debugLineNum = 9502760;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9502761;
 //BA.debugLineNum = 9502761;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step35 = 1;
final int limit35 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit35 ;_i = _i + step35 ) {
RDebugUtils.currentLine=9502762;
 //BA.debugLineNum = 9502762;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9502763;
 //BA.debugLineNum = 9502763;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=9502764;
 //BA.debugLineNum = 9502764;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=9502765;
 //BA.debugLineNum = 9502765;BA.debugLine="Log(total)";
__c.LogImpl("89502765",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=9502768;
 //BA.debugLineNum = 9502768;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=9502769;
 //BA.debugLineNum = 9502769;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502770;
 //BA.debugLineNum = 9502770;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=9502771;
 //BA.debugLineNum = 9502771;BA.debugLine="Else If j.RowCount > 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9502772;
 //BA.debugLineNum = 9502772;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=9502773;
 //BA.debugLineNum = 9502773;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=9502774;
 //BA.debugLineNum = 9502774;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=9502775;
 //BA.debugLineNum = 9502775;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9502776;
 //BA.debugLineNum = 9502776;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=9502777;
 //BA.debugLineNum = 9502777;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=9502778;
 //BA.debugLineNum = 9502778;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9502779;
 //BA.debugLineNum = 9502779;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_";
__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 distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9502780;
 //BA.debugLineNum = 9502780;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=9502781;
 //BA.debugLineNum = 9502781;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step55 = 1;
final int limit55 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit55 ;_i = _i + step55 ) {
RDebugUtils.currentLine=9502782;
 //BA.debugLineNum = 9502782;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9502783;
 //BA.debugLineNum = 9502783;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T";
__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("PA_TICKET"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO")).getObject())),(Object)(_i));
RDebugUtils.currentLine=9502785;
 //BA.debugLineNum = 9502785;BA.debugLine="total = total + d.GetString(\"PA_MONTO\").Replace";
_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO").replace(",","")));
RDebugUtils.currentLine=9502786;
 //BA.debugLineNum = 9502786;BA.debugLine="Log(total)";
__c.LogImpl("89502786",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=9502788;
 //BA.debugLineNum = 9502788;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502789;
 //BA.debugLineNum = 9502789;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 = ? and a_tipoabono is not null ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9502790;
 //BA.debugLineNum = 9502790;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9502791;
 //BA.debugLineNum = 9502791;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step64 = 1;
final int limit64 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit64 ;_i = _i + step64 ) {
RDebugUtils.currentLine=9502792;
 //BA.debugLineNum = 9502792;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9502793;
 //BA.debugLineNum = 9502793;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=9502794;
 //BA.debugLineNum = 9502794;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=9502795;
 //BA.debugLineNum = 9502795;BA.debugLine="Log(total)";
__c.LogImpl("89502795",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=9502798;
 //BA.debugLineNum = 9502798;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=9502799;
 //BA.debugLineNum = 9502799;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502800;
 //BA.debugLineNum = 9502800;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=9502803;
 //BA.debugLineNum = 9502803;BA.debugLine="h.Close";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502804;
 //BA.debugLineNum = 9502804;BA.debugLine="j.Close";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9502811;
 //BA.debugLineNum = 9502811;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(reparto_izca.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=9633792;
 //BA.debugLineNum = 9633792;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
RDebugUtils.currentLine=9633793;
 //BA.debugLineNum = 9633793;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=9633794;
 //BA.debugLineNum = 9633794;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=9633795;
 //BA.debugLineNum = 9633795;BA.debugLine="p.LoadLayout(\"folioabono\")";
_p.LoadLayout("folioabono",ba);
RDebugUtils.currentLine=9633796;
 //BA.debugLineNum = 9633796;BA.debugLine="p.Height= 32dip";
_p.setHeight(__c.DipToCurrent((int) (32)));
RDebugUtils.currentLine=9633797;
 //BA.debugLineNum = 9633797;BA.debugLine="p.Width = 80dip";
_p.setWidth(__c.DipToCurrent((int) (80)));
RDebugUtils.currentLine=9633799;
 //BA.debugLineNum = 9633799;BA.debugLine="l_folio.Text = mostrar";
__ref._l_folio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar));
RDebugUtils.currentLine=9633800;
 //BA.debugLineNum = 9633800;BA.debugLine="l_saldo.Text = mostrar1";
__ref._l_saldo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar1));
RDebugUtils.currentLine=9633803;
 //BA.debugLineNum = 9633803;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=9633804;
 //BA.debugLineNum = 9633804;BA.debugLine="End Sub";
return null;
}
public String  _b_cancelar_click(reparto_izca.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=9699328;
 //BA.debugLineNum = 9699328;BA.debugLine="Private Sub b_cancelar_Click";
RDebugUtils.currentLine=9699329;
 //BA.debugLineNum = 9699329;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9699330;
 //BA.debugLineNum = 9699330;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=9699331;
 //BA.debugLineNum = 9699331;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=9699332;
 //BA.debugLineNum = 9699332;BA.debugLine="End Sub";
return "";
}
public String  _b_cancred_click(reparto_izca.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=9240576;
 //BA.debugLineNum = 9240576;BA.debugLine="Private Sub b_cancred_Click";
RDebugUtils.currentLine=9240577;
 //BA.debugLineNum = 9240577;BA.debugLine="et_montoacredito.Text = \"\"";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9240578;
 //BA.debugLineNum = 9240578;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=9240579;
 //BA.debugLineNum = 9240579;BA.debugLine="End Sub";
return "";
}
public String  _b_cxc_click(reparto_izca.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=9371648;
 //BA.debugLineNum = 9371648;BA.debugLine="Private Sub b_cxc_Click";
RDebugUtils.currentLine=9371649;
 //BA.debugLineNum = 9371649;BA.debugLine="tipo_abonox = \"cxc\"";
__ref._tipo_abonox /*String*/  = "cxc";
RDebugUtils.currentLine=9371650;
 //BA.debugLineNum = 9371650;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=9371651;
 //BA.debugLineNum = 9371651;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9371652;
 //BA.debugLineNum = 9371652;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
__c.LogImpl("89371652",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=9371654;
 //BA.debugLineNum = 9371654;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=9371655;
 //BA.debugLineNum = 9371655;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=9371657;
 //BA.debugLineNum = 9371657;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")";
_items.Add((Object)("SELECCIONA UNA OPCION"));
RDebugUtils.currentLine=9371658;
 //BA.debugLineNum = 9371658;BA.debugLine="Items.Add(\"TRANSFERENCIA\")";
_items.Add((Object)("TRANSFERENCIA"));
RDebugUtils.currentLine=9371659;
 //BA.debugLineNum = 9371659;BA.debugLine="Items.Add(\"EFECTIVO\")";
_items.Add((Object)("EFECTIVO"));
RDebugUtils.currentLine=9371660;
 //BA.debugLineNum = 9371660;BA.debugLine="Items.Add(\"CHEQUE\")";
_items.Add((Object)("CHEQUE"));
RDebugUtils.currentLine=9371662;
 //BA.debugLineNum = 9371662;BA.debugLine="cb_tipopago.SetItems(Items)";
__ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items);
RDebugUtils.currentLine=9371664;
 //BA.debugLineNum = 9371664;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\"";
__ref._itemselect /*String*/  = "SELECCIONA UNA OPCION";
RDebugUtils.currentLine=9371666;
 //BA.debugLineNum = 9371666;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=9371667;
 //BA.debugLineNum = 9371667;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9371668;
 //BA.debugLineNum = 9371668;BA.debugLine="Log(j.RowCount)";
__c.LogImpl("89371668",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=9371669;
 //BA.debugLineNum = 9371669;BA.debugLine="If j.RowCount = 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=9371670;
 //BA.debugLineNum = 9371670;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=9371671;
 //BA.debugLineNum = 9371671;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=9371672;
 //BA.debugLineNum = 9371672;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=9371673;
 //BA.debugLineNum = 9371673;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9371674;
 //BA.debugLineNum = 9371674;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=9371675;
 //BA.debugLineNum = 9371675;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=9371676;
 //BA.debugLineNum = 9371676;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9371677;
 //BA.debugLineNum = 9371677;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=9371678;
 //BA.debugLineNum = 9371678;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=9371679;
 //BA.debugLineNum = 9371679;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step26 = 1;
final int limit26 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit26 ;_i = _i + step26 ) {
RDebugUtils.currentLine=9371680;
 //BA.debugLineNum = 9371680;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9371681;
 //BA.debugLineNum = 9371681;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=9371682;
 //BA.debugLineNum = 9371682;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("89371682",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=9371683;
 //BA.debugLineNum = 9371683;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("89371683",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=9371684;
 //BA.debugLineNum = 9371684;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=9371685;
 //BA.debugLineNum = 9371685;BA.debugLine="Log(total)";
__c.LogImpl("89371685",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=9371687;
 //BA.debugLineNum = 9371687;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371688;
 //BA.debugLineNum = 9371688;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 = ? and a_tipoabono is null",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9371689;
 //BA.debugLineNum = 9371689;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9371690;
 //BA.debugLineNum = 9371690;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step37 = 1;
final int limit37 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit37 ;_i = _i + step37 ) {
RDebugUtils.currentLine=9371691;
 //BA.debugLineNum = 9371691;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9371692;
 //BA.debugLineNum = 9371692;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=9371693;
 //BA.debugLineNum = 9371693;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=9371694;
 //BA.debugLineNum = 9371694;BA.debugLine="Log(total)";
__c.LogImpl("89371694",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=9371697;
 //BA.debugLineNum = 9371697;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=9371698;
 //BA.debugLineNum = 9371698;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371699;
 //BA.debugLineNum = 9371699;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=9371700;
 //BA.debugLineNum = 9371700;BA.debugLine="Else If j.RowCount > 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9371701;
 //BA.debugLineNum = 9371701;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=9371702;
 //BA.debugLineNum = 9371702;BA.debugLine="p_abono.Width = Root.Width";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=9371703;
 //BA.debugLineNum = 9371703;BA.debugLine="p_abono.Height = Root.Height";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=9371704;
 //BA.debugLineNum = 9371704;BA.debugLine="et_abono.text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=9371705;
 //BA.debugLineNum = 9371705;BA.debugLine="Dim total As Double = 0";
_total = 0;
RDebugUtils.currentLine=9371706;
 //BA.debugLineNum = 9371706;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=9371707;
 //BA.debugLineNum = 9371707;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9371708;
 //BA.debugLineNum = 9371708;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=9371709;
 //BA.debugLineNum = 9371709;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=9371710;
 //BA.debugLineNum = 9371710;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step57 = 1;
final int limit57 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit57 ;_i = _i + step57 ) {
RDebugUtils.currentLine=9371711;
 //BA.debugLineNum = 9371711;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9371712;
 //BA.debugLineNum = 9371712;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=9371713;
 //BA.debugLineNum = 9371713;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("89371713",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=9371714;
 //BA.debugLineNum = 9371714;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("89371714",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=9371715;
 //BA.debugLineNum = 9371715;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=9371716;
 //BA.debugLineNum = 9371716;BA.debugLine="Log(total)";
__c.LogImpl("89371716",BA.NumberToString(_total),0);
 }
};
RDebugUtils.currentLine=9371718;
 //BA.debugLineNum = 9371718;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371719;
 //BA.debugLineNum = 9371719;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 = ? and a_tipoabono is null",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=9371720;
 //BA.debugLineNum = 9371720;BA.debugLine="If d.RowCount > 0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=9371721;
 //BA.debugLineNum = 9371721;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step68 = 1;
final int limit68 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit68 ;_i = _i + step68 ) {
RDebugUtils.currentLine=9371722;
 //BA.debugLineNum = 9371722;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9371723;
 //BA.debugLineNum = 9371723;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=9371724;
 //BA.debugLineNum = 9371724;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=9371725;
 //BA.debugLineNum = 9371725;BA.debugLine="Log(total)";
__c.LogImpl("89371725",BA.NumberToString(_total),0);
 }
};
 };
RDebugUtils.currentLine=9371728;
 //BA.debugLineNum = 9371728;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=9371729;
 //BA.debugLineNum = 9371729;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371730;
 //BA.debugLineNum = 9371730;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=9371733;
 //BA.debugLineNum = 9371733;BA.debugLine="h.Close";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371734;
 //BA.debugLineNum = 9371734;BA.debugLine="j.Close";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9371735;
 //BA.debugLineNum = 9371735;BA.debugLine="End Sub";
return "";
}
public void  _b_imp_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_imp_click", false))
	 {Debug.delegate(ba, "b_imp_click", null); return;}
ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B_IMP_Click extends BA.ResumableSub {
public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
int _cont = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
int _i = 0;
String _punit = "";
String _ptot = "";
int _e = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
int _resultado = 0;
float _totalcredito = 0f;
int step57;
int limit57;
int step69;
int limit69;
int step92;
int limit92;
int step118;
int limit118;
int step133;
int limit133;
int step164;
int limit164;
int step176;
int limit176;
int step199;
int limit199;
int step225;
int limit225;
int step240;
int limit240;
int step265;
int limit265;
int step275;
int limit275;

@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=8650753;
 //BA.debugLineNum = 8650753;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=8650754;
 //BA.debugLineNum = 8650754;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8650755;
 //BA.debugLineNum = 8650755;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=8650757;
 //BA.debugLineNum = 8650757;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=8650758;
 //BA.debugLineNum = 8650758;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=8650759;
 //BA.debugLineNum = 8650759;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=8650760;
 //BA.debugLineNum = 8650760;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=8650761;
 //BA.debugLineNum = 8650761;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8650767;
 //BA.debugLineNum = 8650767;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=8650768;
 //BA.debugLineNum = 8650768;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=8650769;
 //BA.debugLineNum = 8650769;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

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

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

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

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

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

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

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

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

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

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

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

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

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=8650787;
 //BA.debugLineNum = 8650787;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (1000));
this.state = 199;
return;
case 199:
//C
this.state = 25;
;
RDebugUtils.currentLine=8650789;
 //BA.debugLineNum = 8650789;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=8650790;
 //BA.debugLineNum = 8650790;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=8650797;
 //BA.debugLineNum = 8650797;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8650798;
 //BA.debugLineNum = 8650798;BA.debugLine="ESPACIO = 28";
__ref._espacio /*int*/  = (int) (28);
RDebugUtils.currentLine=8650799;
 //BA.debugLineNum = 8650799;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8650816;
 //BA.debugLineNum = 8650816;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF);
RDebugUtils.currentLine=8650818;
 //BA.debugLineNum = 8650818;BA.debugLine="Printer1.WriteString(sDate &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=8650819;
 //BA.debugLineNum = 8650819;BA.debugLine="Printer1.WriteString(sTime &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=8650820;
 //BA.debugLineNum = 8650820;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=8650821;
 //BA.debugLineNum = 8650821;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8650822;
 //BA.debugLineNum = 8650822;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8650823;
 //BA.debugLineNum = 8650823;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8650824;
 //BA.debugLineNum = 8650824;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8650828;
 //BA.debugLineNum = 8650828;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=8650830;
 //BA.debugLineNum = 8650830;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' ")));
RDebugUtils.currentLine=8650831;
 //BA.debugLineNum = 8650831;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=8650833;
 //BA.debugLineNum = 8650833;BA.debugLine="Dim c2 As Cursor= Starter.skmt.ExecQuery(\"SELECT";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT iFNULL(SUM(HVD_CANT),0) AS HVD_CANT, iFNULL(SUM(HVD_RECHAZOCANT),0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' ")));
RDebugUtils.currentLine=8650834;
 //BA.debugLineNum = 8650834;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=8650835;
 //BA.debugLineNum = 8650835;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ";
if (true) break;

case 42:
//if
this.state = 45;
if (_c2.GetInt("HVD_CANT")-_c2.GetInt("HVD_RECHAZOCANT")>0) { 
this.state = 44;
}if (true) break;

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=8650836;
 //BA.debugLineNum = 8650836;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CREDITO--";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------ENTREGA CREDITO-------"+parent.__c.CRLF);
RDebugUtils.currentLine=8650839;
 //BA.debugLineNum = 8650839;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=8650841;
 //BA.debugLineNum = 8650841;BA.debugLine="Printer1.WriteString(\"-------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
 if (true) break;

case 45:
//C
this.state = 46;
;
RDebugUtils.currentLine=8650845;
 //BA.debugLineNum = 8650845;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by  HVD_PROID"))));
RDebugUtils.currentLine=8650846;
 //BA.debugLineNum = 8650846;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

case 48:
//C
this.state = 49;
RDebugUtils.currentLine=8650847;
 //BA.debugLineNum = 8650847;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 49:
//for
this.state = 70;
step57 = 1;
limit57 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 201;
if (true) break;

case 201:
//C
this.state = 70;
if ((step57 > 0 && _i <= limit57) || (step57 < 0 && _i >= limit57)) this.state = 51;
if (true) break;

case 202:
//C
this.state = 201;
_i = ((int)(0 + _i + step57)) ;
if (true) break;

case 51:
//C
this.state = 52;
RDebugUtils.currentLine=8650848;
 //BA.debugLineNum = 8650848;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8650849;
 //BA.debugLineNum = 8650849;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
parent.__c.LogImpl("88650849",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0);
RDebugUtils.currentLine=8650850;
 //BA.debugLineNum = 8650850;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
if (true) break;

case 52:
//if
this.state = 69;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 54;
}if (true) break;

case 54:
//C
this.state = 55;
RDebugUtils.currentLine=8650853;
 //BA.debugLineNum = 8650853;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
if (true) break;

case 55:
//if
this.state = 68;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { 
this.state = 57;
}else 
{RDebugUtils.currentLine=8650881;
 //BA.debugLineNum = 8650881;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { 
this.state = 63;
}}
if (true) break;

case 57:
//C
this.state = 58;
RDebugUtils.currentLine=8650855;
 //BA.debugLineNum = 8650855;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650856;
 //BA.debugLineNum = 8650856;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8650859;
 //BA.debugLineNum = 8650859;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650860;
 //BA.debugLineNum = 8650860;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650863;
 //BA.debugLineNum = 8650863;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650864;
 //BA.debugLineNum = 8650864;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650866;
 //BA.debugLineNum = 8650866;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8650868;
 //BA.debugLineNum = 8650868;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 58:
//for
this.state = 61;
step69 = 1;
limit69 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 203;
if (true) break;

case 203:
//C
this.state = 61;
if ((step69 > 0 && _e <= limit69) || (step69 < 0 && _e >= limit69)) this.state = 60;
if (true) break;

case 204:
//C
this.state = 203;
_e = ((int)(0 + _e + step69)) ;
if (true) break;

case 60:
//C
this.state = 204;
RDebugUtils.currentLine=8650869;
 //BA.debugLineNum = 8650869;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 61:
//C
this.state = 68;
;
RDebugUtils.currentLine=8650871;
 //BA.debugLineNum = 8650871;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650872;
 //BA.debugLineNum = 8650872;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650873;
 //BA.debugLineNum = 8650873;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8650874;
 //BA.debugLineNum = 8650874;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650875;
 //BA.debugLineNum = 8650875;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8650876;
 //BA.debugLineNum = 8650876;BA.debugLine="Printer1.WriteString( ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8650877;
 //BA.debugLineNum = 8650877;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8650878;
 //BA.debugLineNum = 8650878;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8650879;
 //BA.debugLineNum = 8650879;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

case 63:
//C
this.state = 64;
RDebugUtils.currentLine=8650883;
 //BA.debugLineNum = 8650883;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650884;
 //BA.debugLineNum = 8650884;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8650886;
 //BA.debugLineNum = 8650886;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue";
_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=8650887;
 //BA.debugLineNum = 8650887;BA.debugLine="vc5.Position = 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=8650888;
 //BA.debugLineNum = 8650888;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get";
_punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650889;
 //BA.debugLineNum = 8650889;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650890;
 //BA.debugLineNum = 8650890;BA.debugLine="vc5.Close";
_vc5.Close();
RDebugUtils.currentLine=8650892;
 //BA.debugLineNum = 8650892;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650893;
 //BA.debugLineNum = 8650893;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650895;
 //BA.debugLineNum = 8650895;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8650897;
 //BA.debugLineNum = 8650897;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 64:
//for
this.state = 67;
step92 = 1;
limit92 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 205;
if (true) break;

case 205:
//C
this.state = 67;
if ((step92 > 0 && _e <= limit92) || (step92 < 0 && _e >= limit92)) this.state = 66;
if (true) break;

case 206:
//C
this.state = 205;
_e = ((int)(0 + _e + step92)) ;
if (true) break;

case 66:
//C
this.state = 206;
RDebugUtils.currentLine=8650898;
 //BA.debugLineNum = 8650898;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 67:
//C
this.state = 68;
;
RDebugUtils.currentLine=8650900;
 //BA.debugLineNum = 8650900;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650901;
 //BA.debugLineNum = 8650901;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650902;
 //BA.debugLineNum = 8650902;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8650903;
 //BA.debugLineNum = 8650903;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650904;
 //BA.debugLineNum = 8650904;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8650905;
 //BA.debugLineNum = 8650905;BA.debugLine="Printer1.WriteString(ptot&  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8650906;
 //BA.debugLineNum = 8650906;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8650907;
 //BA.debugLineNum = 8650907;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8650908;
 //BA.debugLineNum = 8650908;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8650909;
 //BA.debugLineNum = 8650909;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 68:
//C
this.state = 69;
;
 if (true) break;

case 69:
//C
this.state = 202;
;
 if (true) break;
if (true) break;

case 70:
//C
this.state = 71;
;
RDebugUtils.currentLine=8650913;
 //BA.debugLineNum = 8650913;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650914;
 //BA.debugLineNum = 8650914;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;

case 71:
//C
this.state = 72;
;
 if (true) break;

case 72:
//C
this.state = 73;
;
RDebugUtils.currentLine=8650918;
 //BA.debugLineNum = 8650918;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8650919;
 //BA.debugLineNum = 8650919;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by  HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
RDebugUtils.currentLine=8650921;
 //BA.debugLineNum = 8650921;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 73:
//if
this.state = 100;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 75;
}if (true) break;

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=8650922;
 //BA.debugLineNum = 8650922;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CREDITO-";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"---PROMOS ENTREGA CREDITO----"+parent.__c.CRLF);
RDebugUtils.currentLine=8650923;
 //BA.debugLineNum = 8650923;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=8650924;
 //BA.debugLineNum = 8650924;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8650926;
 //BA.debugLineNum = 8650926;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 76:
//for
this.state = 99;
step118 = 1;
limit118 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 207;
if (true) break;

case 207:
//C
this.state = 99;
if ((step118 > 0 && _i <= limit118) || (step118 < 0 && _i >= limit118)) this.state = 78;
if (true) break;

case 208:
//C
this.state = 207;
_i = ((int)(0 + _i + step118)) ;
if (true) break;

case 78:
//C
this.state = 79;
RDebugUtils.currentLine=8650927;
 //BA.debugLineNum = 8650927;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8650928;
 //BA.debugLineNum = 8650928;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
if (true) break;

case 79:
//if
this.state = 98;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 81;
}if (true) break;

case 81:
//C
this.state = 82;
RDebugUtils.currentLine=8650931;
 //BA.debugLineNum = 8650931;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if (true) break;

case 82:
//if
this.state = 97;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { 
this.state = 84;
}else {
this.state = 96;
}if (true) break;

case 84:
//C
this.state = 85;
RDebugUtils.currentLine=8650933;
 //BA.debugLineNum = 8650933;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650934;
 //BA.debugLineNum = 8650934;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
if (true) break;

case 85:
//if
this.state = 94;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { 
this.state = 87;
}else {
this.state = 89;
}if (true) break;

case 87:
//C
this.state = 94;
RDebugUtils.currentLine=8650935;
 //BA.debugLineNum = 8650935;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
 if (true) break;

case 89:
//C
this.state = 90;
RDebugUtils.currentLine=8650937;
 //BA.debugLineNum = 8650937;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8650939;
 //BA.debugLineNum = 8650939;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650940;
 //BA.debugLineNum = 8650940;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650943;
 //BA.debugLineNum = 8650943;BA.debugLine="Private ptot As String = NumberFormat2((puni";
_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8650944;
 //BA.debugLineNum = 8650944;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8650947;
 //BA.debugLineNum = 8650947;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8650948;
 //BA.debugLineNum = 8650948;BA.debugLine="Log(ESPACIO)";
parent.__c.LogImpl("88650948",BA.NumberToString(__ref._espacio /*int*/ ),0);
RDebugUtils.currentLine=8650949;
 //BA.debugLineNum = 8650949;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 90:
//for
this.state = 93;
step133 = 1;
limit133 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 209;
if (true) break;

case 209:
//C
this.state = 93;
if ((step133 > 0 && _e <= limit133) || (step133 < 0 && _e >= limit133)) this.state = 92;
if (true) break;

case 210:
//C
this.state = 209;
_e = ((int)(0 + _e + step133)) ;
if (true) break;

case 92:
//C
this.state = 210;
RDebugUtils.currentLine=8650950;
 //BA.debugLineNum = 8650950;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 93:
//C
this.state = 94;
;
RDebugUtils.currentLine=8650952;
 //BA.debugLineNum = 8650952;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8650953;
 //BA.debugLineNum = 8650953;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650954;
 //BA.debugLineNum = 8650954;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8650955;
 //BA.debugLineNum = 8650955;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8650956;
 //BA.debugLineNum = 8650956;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8650957;
 //BA.debugLineNum = 8650957;BA.debugLine="Printer1.WriteString(ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8650958;
 //BA.debugLineNum = 8650958;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8650959;
 //BA.debugLineNum = 8650959;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8650960;
 //BA.debugLineNum = 8650960;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8650961;
 //BA.debugLineNum = 8650961;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 94:
//C
this.state = 97;
;
 if (true) break;

case 96:
//C
this.state = 97;
 if (true) break;

case 97:
//C
this.state = 98;
;
 if (true) break;

case 98:
//C
this.state = 208;
;
 if (true) break;
if (true) break;

case 99:
//C
this.state = 100;
;
 if (true) break;

case 100:
//C
this.state = 101;
;
RDebugUtils.currentLine=8650973;
 //BA.debugLineNum = 8650973;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO <> '1' ")));
RDebugUtils.currentLine=8650974;
 //BA.debugLineNum = 8650974;BA.debugLine="Log(c.RowCount&\"------------------\")";
parent.__c.LogImpl("88650974",BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount())+"------------------",0);
RDebugUtils.currentLine=8650975;
 //BA.debugLineNum = 8650975;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 103:
//C
this.state = 104;
RDebugUtils.currentLine=8650977;
 //BA.debugLineNum = 8650977;BA.debugLine="Dim c2 As Cursor= Starter.skmt.ExecQuery(\"SELECT";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT iFNULL(SUM(HVD_CANT),0) AS HVD_CANT, iFNULL(SUM(HVD_RECHAZOCANT),0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO <> '1' ")));
RDebugUtils.currentLine=8650978;
 //BA.debugLineNum = 8650978;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=8650979;
 //BA.debugLineNum = 8650979;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ";
if (true) break;

case 104:
//if
this.state = 107;
if (_c2.GetInt("HVD_CANT")-_c2.GetInt("HVD_RECHAZOCANT")>0) { 
this.state = 106;
}if (true) break;

case 106:
//C
this.state = 107;
RDebugUtils.currentLine=8650980;
 //BA.debugLineNum = 8650980;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CONTADO--";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------ENTREGA CONTADO-------"+parent.__c.CRLF);
RDebugUtils.currentLine=8650983;
 //BA.debugLineNum = 8650983;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=8650984;
 //BA.debugLineNum = 8650984;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
 if (true) break;

case 107:
//C
this.state = 108;
;
RDebugUtils.currentLine=8650989;
 //BA.debugLineNum = 8650989;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_BCREDITO <> '1' order by  HVD_PROID"))));
RDebugUtils.currentLine=8650990;
 //BA.debugLineNum = 8650990;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 108:
//if
this.state = 133;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 110;
}if (true) break;

case 110:
//C
this.state = 111;
RDebugUtils.currentLine=8650991;
 //BA.debugLineNum = 8650991;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 111:
//for
this.state = 132;
step164 = 1;
limit164 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 211;
if (true) break;

case 211:
//C
this.state = 132;
if ((step164 > 0 && _i <= limit164) || (step164 < 0 && _i >= limit164)) this.state = 113;
if (true) break;

case 212:
//C
this.state = 211;
_i = ((int)(0 + _i + step164)) ;
if (true) break;

case 113:
//C
this.state = 114;
RDebugUtils.currentLine=8650992;
 //BA.debugLineNum = 8650992;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8650993;
 //BA.debugLineNum = 8650993;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
parent.__c.LogImpl("88650993",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0);
RDebugUtils.currentLine=8650994;
 //BA.debugLineNum = 8650994;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
if (true) break;

case 114:
//if
this.state = 131;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 116;
}if (true) break;

case 116:
//C
this.state = 117;
RDebugUtils.currentLine=8650997;
 //BA.debugLineNum = 8650997;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
if (true) break;

case 117:
//if
this.state = 130;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { 
this.state = 119;
}else 
{RDebugUtils.currentLine=8651025;
 //BA.debugLineNum = 8651025;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { 
this.state = 125;
}}
if (true) break;

case 119:
//C
this.state = 120;
RDebugUtils.currentLine=8650999;
 //BA.debugLineNum = 8650999;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651000;
 //BA.debugLineNum = 8651000;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8651003;
 //BA.debugLineNum = 8651003;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651004;
 //BA.debugLineNum = 8651004;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651007;
 //BA.debugLineNum = 8651007;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651008;
 //BA.debugLineNum = 8651008;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651010;
 //BA.debugLineNum = 8651010;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8651012;
 //BA.debugLineNum = 8651012;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 120:
//for
this.state = 123;
step176 = 1;
limit176 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 213;
if (true) break;

case 213:
//C
this.state = 123;
if ((step176 > 0 && _e <= limit176) || (step176 < 0 && _e >= limit176)) this.state = 122;
if (true) break;

case 214:
//C
this.state = 213;
_e = ((int)(0 + _e + step176)) ;
if (true) break;

case 122:
//C
this.state = 214;
RDebugUtils.currentLine=8651013;
 //BA.debugLineNum = 8651013;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 123:
//C
this.state = 130;
;
RDebugUtils.currentLine=8651015;
 //BA.debugLineNum = 8651015;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651016;
 //BA.debugLineNum = 8651016;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651017;
 //BA.debugLineNum = 8651017;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8651018;
 //BA.debugLineNum = 8651018;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651019;
 //BA.debugLineNum = 8651019;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8651020;
 //BA.debugLineNum = 8651020;BA.debugLine="Printer1.WriteString( ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8651021;
 //BA.debugLineNum = 8651021;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8651022;
 //BA.debugLineNum = 8651022;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8651023;
 //BA.debugLineNum = 8651023;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

case 125:
//C
this.state = 126;
RDebugUtils.currentLine=8651027;
 //BA.debugLineNum = 8651027;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651028;
 //BA.debugLineNum = 8651028;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8651030;
 //BA.debugLineNum = 8651030;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue";
_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=8651031;
 //BA.debugLineNum = 8651031;BA.debugLine="vc5.Position = 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=8651032;
 //BA.debugLineNum = 8651032;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get";
_punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651033;
 //BA.debugLineNum = 8651033;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651034;
 //BA.debugLineNum = 8651034;BA.debugLine="vc5.Close";
_vc5.Close();
RDebugUtils.currentLine=8651036;
 //BA.debugLineNum = 8651036;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651037;
 //BA.debugLineNum = 8651037;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651039;
 //BA.debugLineNum = 8651039;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8651041;
 //BA.debugLineNum = 8651041;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 126:
//for
this.state = 129;
step199 = 1;
limit199 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 215;
if (true) break;

case 215:
//C
this.state = 129;
if ((step199 > 0 && _e <= limit199) || (step199 < 0 && _e >= limit199)) this.state = 128;
if (true) break;

case 216:
//C
this.state = 215;
_e = ((int)(0 + _e + step199)) ;
if (true) break;

case 128:
//C
this.state = 216;
RDebugUtils.currentLine=8651042;
 //BA.debugLineNum = 8651042;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 129:
//C
this.state = 130;
;
RDebugUtils.currentLine=8651044;
 //BA.debugLineNum = 8651044;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651045;
 //BA.debugLineNum = 8651045;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651046;
 //BA.debugLineNum = 8651046;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8651047;
 //BA.debugLineNum = 8651047;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651048;
 //BA.debugLineNum = 8651048;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8651049;
 //BA.debugLineNum = 8651049;BA.debugLine="Printer1.WriteString(ptot&  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8651050;
 //BA.debugLineNum = 8651050;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8651051;
 //BA.debugLineNum = 8651051;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8651052;
 //BA.debugLineNum = 8651052;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8651053;
 //BA.debugLineNum = 8651053;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 130:
//C
this.state = 131;
;
 if (true) break;

case 131:
//C
this.state = 212;
;
 if (true) break;
if (true) break;

case 132:
//C
this.state = 133;
;
RDebugUtils.currentLine=8651057;
 //BA.debugLineNum = 8651057;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651058;
 //BA.debugLineNum = 8651058;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;

case 133:
//C
this.state = 134;
;
 if (true) break;

case 134:
//C
this.state = 135;
;
RDebugUtils.currentLine=8651062;
 //BA.debugLineNum = 8651062;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8651063;
 //BA.debugLineNum = 8651063;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO <> '1' order by  HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
RDebugUtils.currentLine=8651065;
 //BA.debugLineNum = 8651065;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 135:
//if
this.state = 162;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 137;
}if (true) break;

case 137:
//C
this.state = 138;
RDebugUtils.currentLine=8651066;
 //BA.debugLineNum = 8651066;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CONTADO-";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"---PROMOS ENTREGA CONTADO----"+parent.__c.CRLF);
RDebugUtils.currentLine=8651067;
 //BA.debugLineNum = 8651067;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=8651068;
 //BA.debugLineNum = 8651068;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651070;
 //BA.debugLineNum = 8651070;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 138:
//for
this.state = 161;
step225 = 1;
limit225 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 217;
if (true) break;

case 217:
//C
this.state = 161;
if ((step225 > 0 && _i <= limit225) || (step225 < 0 && _i >= limit225)) this.state = 140;
if (true) break;

case 218:
//C
this.state = 217;
_i = ((int)(0 + _i + step225)) ;
if (true) break;

case 140:
//C
this.state = 141;
RDebugUtils.currentLine=8651071;
 //BA.debugLineNum = 8651071;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8651072;
 //BA.debugLineNum = 8651072;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
if (true) break;

case 141:
//if
this.state = 160;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 143;
}if (true) break;

case 143:
//C
this.state = 144;
RDebugUtils.currentLine=8651075;
 //BA.debugLineNum = 8651075;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if (true) break;

case 144:
//if
this.state = 159;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { 
this.state = 146;
}else {
this.state = 158;
}if (true) break;

case 146:
//C
this.state = 147;
RDebugUtils.currentLine=8651077;
 //BA.debugLineNum = 8651077;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651078;
 //BA.debugLineNum = 8651078;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
if (true) break;

case 147:
//if
this.state = 156;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { 
this.state = 149;
}else {
this.state = 151;
}if (true) break;

case 149:
//C
this.state = 156;
RDebugUtils.currentLine=8651079;
 //BA.debugLineNum = 8651079;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
 if (true) break;

case 151:
//C
this.state = 152;
RDebugUtils.currentLine=8651081;
 //BA.debugLineNum = 8651081;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8651083;
 //BA.debugLineNum = 8651083;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651084;
 //BA.debugLineNum = 8651084;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651087;
 //BA.debugLineNum = 8651087;BA.debugLine="Private ptot As String = NumberFormat2((puni";
_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651088;
 //BA.debugLineNum = 8651088;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651091;
 //BA.debugLineNum = 8651091;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8651092;
 //BA.debugLineNum = 8651092;BA.debugLine="Log(ESPACIO)";
parent.__c.LogImpl("88651092",BA.NumberToString(__ref._espacio /*int*/ ),0);
RDebugUtils.currentLine=8651093;
 //BA.debugLineNum = 8651093;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 152:
//for
this.state = 155;
step240 = 1;
limit240 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 219;
if (true) break;

case 219:
//C
this.state = 155;
if ((step240 > 0 && _e <= limit240) || (step240 < 0 && _e >= limit240)) this.state = 154;
if (true) break;

case 220:
//C
this.state = 219;
_e = ((int)(0 + _e + step240)) ;
if (true) break;

case 154:
//C
this.state = 220;
RDebugUtils.currentLine=8651094;
 //BA.debugLineNum = 8651094;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 155:
//C
this.state = 156;
;
RDebugUtils.currentLine=8651096;
 //BA.debugLineNum = 8651096;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651097;
 //BA.debugLineNum = 8651097;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651098;
 //BA.debugLineNum = 8651098;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8651099;
 //BA.debugLineNum = 8651099;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651100;
 //BA.debugLineNum = 8651100;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8651101;
 //BA.debugLineNum = 8651101;BA.debugLine="Printer1.WriteString(ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8651102;
 //BA.debugLineNum = 8651102;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8651103;
 //BA.debugLineNum = 8651103;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8651104;
 //BA.debugLineNum = 8651104;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8651105;
 //BA.debugLineNum = 8651105;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 156:
//C
this.state = 159;
;
 if (true) break;

case 158:
//C
this.state = 159;
 if (true) break;

case 159:
//C
this.state = 160;
;
 if (true) break;

case 160:
//C
this.state = 218;
;
 if (true) break;
if (true) break;

case 161:
//C
this.state = 162;
;
RDebugUtils.currentLine=8651115;
 //BA.debugLineNum = 8651115;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;

case 162:
//C
this.state = 163;
;
RDebugUtils.currentLine=8651118;
 //BA.debugLineNum = 8651118;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"))));
RDebugUtils.currentLine=8651120;
 //BA.debugLineNum = 8651120;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 163:
//if
this.state = 174;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 165;
}if (true) break;

case 165:
//C
this.state = 166;
RDebugUtils.currentLine=8651121;
 //BA.debugLineNum = 8651121;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------VENTA------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651122;
 //BA.debugLineNum = 8651122;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=8651123;
 //BA.debugLineNum = 8651123;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651125;
 //BA.debugLineNum = 8651125;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 166:
//for
this.state = 173;
step265 = 1;
limit265 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 221;
if (true) break;

case 221:
//C
this.state = 173;
if ((step265 > 0 && _i <= limit265) || (step265 < 0 && _i >= limit265)) this.state = 168;
if (true) break;

case 222:
//C
this.state = 221;
_i = ((int)(0 + _i + step265)) ;
if (true) break;

case 168:
//C
this.state = 169;
RDebugUtils.currentLine=8651126;
 //BA.debugLineNum = 8651126;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8651128;
 //BA.debugLineNum = 8651128;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651129;
 //BA.debugLineNum = 8651129;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=8651132;
 //BA.debugLineNum = 8651132;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651133;
 //BA.debugLineNum = 8651133;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651135;
 //BA.debugLineNum = 8651135;BA.debugLine="Private ptot As String = NumberFormat2((punit*s";
_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=8651136;
 //BA.debugLineNum = 8651136;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=8651139;
 //BA.debugLineNum = 8651139;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=8651140;
 //BA.debugLineNum = 8651140;BA.debugLine="Log(ESPACIO)";
parent.__c.LogImpl("88651140",BA.NumberToString(__ref._espacio /*int*/ ),0);
RDebugUtils.currentLine=8651141;
 //BA.debugLineNum = 8651141;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 169:
//for
this.state = 172;
step275 = 1;
limit275 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 223;
if (true) break;

case 223:
//C
this.state = 172;
if ((step275 > 0 && _e <= limit275) || (step275 < 0 && _e >= limit275)) this.state = 171;
if (true) break;

case 224:
//C
this.state = 223;
_e = ((int)(0 + _e + step275)) ;
if (true) break;

case 171:
//C
this.state = 224;
RDebugUtils.currentLine=8651142;
 //BA.debugLineNum = 8651142;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 172:
//C
this.state = 222;
;
RDebugUtils.currentLine=8651144;
 //BA.debugLineNum = 8651144;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=8651145;
 //BA.debugLineNum = 8651145;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651146;
 //BA.debugLineNum = 8651146;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=8651147;
 //BA.debugLineNum = 8651147;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=8651148;
 //BA.debugLineNum = 8651148;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=8651149;
 //BA.debugLineNum = 8651149;BA.debugLine="Printer1.WriteString(ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=8651150;
 //BA.debugLineNum = 8651150;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8651151;
 //BA.debugLineNum = 8651151;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=8651152;
 //BA.debugLineNum = 8651152;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8651153;
 //BA.debugLineNum = 8651153;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;
if (true) break;

case 173:
//C
this.state = 174;
;
RDebugUtils.currentLine=8651156;
 //BA.debugLineNum = 8651156;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;

case 174:
//C
this.state = 175;
;
RDebugUtils.currentLine=8651158;
 //BA.debugLineNum = 8651158;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651161;
 //BA.debugLineNum = 8651161;BA.debugLine="Printer1.WriteString(\"Total Articulos:   \" & L_CA";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Articulos:   "+__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8651163;
 //BA.debugLineNum = 8651163;BA.debugLine="Printer1.WriteString(\"Total credito:   $\" & l_mon";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total credito:   $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8651164;
 //BA.debugLineNum = 8651164;BA.debugLine="Printer1.WriteString(\"Total contado:   $\" & l_mon";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total contado:   $"+__ref._l_montoefec /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=8651165;
 //BA.debugLineNum = 8651165;BA.debugLine="Printer1.WriteString(\"Total general:   $\" & l_tot";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total general:   $"+__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText());
RDebugUtils.currentLine=8651168;
 //BA.debugLineNum = 8651168;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=8651169;
 //BA.debugLineNum = 8651169;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651172;
 //BA.debugLineNum = 8651172;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+parent.__c.CRLF);
RDebugUtils.currentLine=8651173;
 //BA.debugLineNum = 8651173;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF);
RDebugUtils.currentLine=8651174;
 //BA.debugLineNum = 8651174;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651175;
 //BA.debugLineNum = 8651175;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=8651176;
 //BA.debugLineNum = 8651176;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=8651177;
 //BA.debugLineNum = 8651177;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=8651178;
 //BA.debugLineNum = 8651178;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=8651179;
 //BA.debugLineNum = 8651179;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (1000));
this.state = 225;
return;
case 225:
//C
this.state = 175;
;
RDebugUtils.currentLine=8651180;
 //BA.debugLineNum = 8651180;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=8651182;
 //BA.debugLineNum = 8651182;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=8651184;
 //BA.debugLineNum = 8651184;BA.debugLine="If banderaimp = 1 Then";
if (true) break;

case 175:
//if
this.state = 196;
if (__ref._banderaimp /*int*/ ==1) { 
this.state = 177;
}else 
{RDebugUtils.currentLine=8651201;
 //BA.debugLineNum = 8651201;BA.debugLine="Else If banderaimp = 0 Then";
if (__ref._banderaimp /*int*/ ==0) { 
this.state = 191;
}}
if (true) break;

case 177:
//C
this.state = 178;
RDebugUtils.currentLine=8651185;
 //BA.debugLineNum = 8651185;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=8651186;
 //BA.debugLineNum = 8651186;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_imp_click"), null);
this.state = 226;
return;
case 226:
//C
this.state = 178;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=8651187;
 //BA.debugLineNum = 8651187;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 178:
//if
this.state = 189;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 180;
}else {
this.state = 182;
}if (true) break;

case 180:
//C
this.state = 189;
RDebugUtils.currentLine=8651188;
 //BA.debugLineNum = 8651188;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
 if (true) break;

case 182:
//C
this.state = 183;
RDebugUtils.currentLine=8651190;
 //BA.debugLineNum = 8651190;BA.debugLine="Dim totalcredito As Float = l_montopag.Text";
_totalcredito = (float)(Double.parseDouble(__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=8651191;
 //BA.debugLineNum = 8651191;BA.debugLine="If totalcredito > 0 Then";
if (true) break;

case 183:
//if
this.state = 188;
if (_totalcredito>0) { 
this.state = 185;
}else {
this.state = 187;
}if (true) break;

case 185:
//C
this.state = 188;
RDebugUtils.currentLine=8651192;
 //BA.debugLineNum = 8651192;BA.debugLine="imprime_pagare";
__ref._imprime_pagare /*void*/ (null);
 if (true) break;

case 187:
//C
this.state = 188;
RDebugUtils.currentLine=8651195;
 //BA.debugLineNum = 8651195;BA.debugLine="Guardado";
__ref._guardado /*String*/ (null);
 if (true) break;

case 188:
//C
this.state = 189;
;
 if (true) break;

case 189:
//C
this.state = 196;
;
 if (true) break;

case 191:
//C
this.state = 192;
RDebugUtils.currentLine=8651202;
 //BA.debugLineNum = 8651202;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=8651203;
 //BA.debugLineNum = 8651203;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_imp_click"), null);
this.state = 227;
return;
case 227:
//C
this.state = 192;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=8651204;
 //BA.debugLineNum = 8651204;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 192:
//if
this.state = 195;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 194;
}if (true) break;

case 194:
//C
this.state = 195;
RDebugUtils.currentLine=8651205;
 //BA.debugLineNum = 8651205;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
 if (true) break;

case 195:
//C
this.state = 196;
;
 if (true) break;

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

            }
        }
    }
}
public void  _imprime_pagare(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "imprime_pagare", false))
	 {Debug.delegate(ba, "imprime_pagare", null); return;}
ResumableSub_imprime_pagare rsub = new ResumableSub_imprime_pagare(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_imprime_pagare extends BA.ResumableSub {
public ResumableSub_imprime_pagare(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
int _cont = 0;
String _telefono = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null;
String _ticket = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null;
int _k = 0;
int _i = 0;
int _resultado = 0;
int step59;
int limit59;
int step76;
int limit76;
int step100;
int limit100;

@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=9830401;
 //BA.debugLineNum = 9830401;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=9830402;
 //BA.debugLineNum = 9830402;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9830403;
 //BA.debugLineNum = 9830403;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=9830404;
 //BA.debugLineNum = 9830404;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=9830405;
 //BA.debugLineNum = 9830405;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9830406;
 //BA.debugLineNum = 9830406;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9830407;
 //BA.debugLineNum = 9830407;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9830438;
 //BA.debugLineNum = 9830438;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=9830439;
 //BA.debugLineNum = 9830439;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9830440;
 //BA.debugLineNum = 9830440;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

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

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

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=9830445;
 //BA.debugLineNum = 9830445;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 117;
return;
case 117:
//C
this.state = 7;
;
RDebugUtils.currentLine=9830446;
 //BA.debugLineNum = 9830446;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=9830447;
 //BA.debugLineNum = 9830447;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
if (true) break;

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

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

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

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

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

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

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

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

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

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=9830457;
 //BA.debugLineNum = 9830457;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 119;
return;
case 119:
//C
this.state = 25;
;
RDebugUtils.currentLine=9830458;
 //BA.debugLineNum = 9830458;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=9830459;
 //BA.debugLineNum = 9830459;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=9830466;
 //BA.debugLineNum = 9830466;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9830467;
 //BA.debugLineNum = 9830467;BA.debugLine="ESPACIO = 28";
__ref._espacio /*int*/  = (int) (28);
RDebugUtils.currentLine=9830468;
 //BA.debugLineNum = 9830468;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9830470;
 //BA.debugLineNum = 9830470;BA.debugLine="Dim telefono As String = \"\"";
_telefono = "";
RDebugUtils.currentLine=9830471;
 //BA.debugLineNum = 9830471;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select";
_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9830472;
 //BA.debugLineNum = 9830472;BA.debugLine="If c7.RowCount > 0 Then";
if (true) break;

case 39:
//if
this.state = 42;
if (_c7.getRowCount()>0) { 
this.state = 41;
}if (true) break;

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=9830473;
 //BA.debugLineNum = 9830473;BA.debugLine="c7.Position = 0";
_c7.setPosition((int) (0));
RDebugUtils.currentLine=9830474;
 //BA.debugLineNum = 9830474;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")";
_telefono = _c7.GetString("CAT_CL_TELEFONO");
 if (true) break;

case 42:
//C
this.state = 43;
;
RDebugUtils.currentLine=9830476;
 //BA.debugLineNum = 9830476;BA.debugLine="c7.Close";
_c7.Close();
RDebugUtils.currentLine=9830495;
 //BA.debugLineNum = 9830495;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=9830496;
 //BA.debugLineNum = 9830496;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=9830497;
 //BA.debugLineNum = 9830497;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9830498;
 //BA.debugLineNum = 9830498;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9830499;
 //BA.debugLineNum = 9830499;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF);
RDebugUtils.currentLine=9830500;
 //BA.debugLineNum = 9830500;BA.debugLine="Printer1.WriteString(sDate &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9830501;
 //BA.debugLineNum = 9830501;BA.debugLine="Printer1.WriteString(sTime &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9830502;
 //BA.debugLineNum = 9830502;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario &  CRLF";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Reparto:"+__ref._usuario /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9830503;
 //BA.debugLineNum = 9830503;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830504;
 //BA.debugLineNum = 9830504;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830505;
 //BA.debugLineNum = 9830505;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830506;
 //BA.debugLineNum = 9830506;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830507;
 //BA.debugLineNum = 9830507;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono &  C";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Telefono: "+_telefono+parent.__c.CRLF);
RDebugUtils.currentLine=9830508;
 //BA.debugLineNum = 9830508;BA.debugLine="Dim Ticket As String = 0";
_ticket = BA.NumberToString(0);
RDebugUtils.currentLine=9830509;
 //BA.debugLineNum = 9830509;BA.debugLine="Dim c6 As Cursor = Starter.skmt.ExecQuery(\"select";
_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c6 = (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 distinct HVD_NUM_TICKET FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_BCREDITO = '1'")));
RDebugUtils.currentLine=9830510;
 //BA.debugLineNum = 9830510;BA.debugLine="If c6.RowCount > 0 Then";
if (true) break;

case 43:
//if
this.state = 50;
if (_c6.getRowCount()>0) { 
this.state = 45;
}if (true) break;

case 45:
//C
this.state = 46;
RDebugUtils.currentLine=9830511;
 //BA.debugLineNum = 9830511;BA.debugLine="For k = 0 To c6.RowCount -1";
if (true) break;

case 46:
//for
this.state = 49;
step59 = 1;
limit59 = (int) (_c6.getRowCount()-1);
_k = (int) (0) ;
this.state = 121;
if (true) break;

case 121:
//C
this.state = 49;
if ((step59 > 0 && _k <= limit59) || (step59 < 0 && _k >= limit59)) this.state = 48;
if (true) break;

case 122:
//C
this.state = 121;
_k = ((int)(0 + _k + step59)) ;
if (true) break;

case 48:
//C
this.state = 122;
RDebugUtils.currentLine=9830512;
 //BA.debugLineNum = 9830512;BA.debugLine="c6.Position = k";
_c6.setPosition(_k);
RDebugUtils.currentLine=9830513;
 //BA.debugLineNum = 9830513;BA.debugLine="Ticket = c6.GetString(\"HVD_NUM_TICKET\")";
_ticket = _c6.GetString("HVD_NUM_TICKET");
RDebugUtils.currentLine=9830514;
 //BA.debugLineNum = 9830514;BA.debugLine="Printer1.WriteString(\"Num. Ticket \" & (k +1)&\":";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Num. Ticket "+BA.NumberToString((_k+1))+": "+_ticket+parent.__c.CRLF);
 if (true) break;
if (true) break;

case 49:
//C
this.state = 50;
;
 if (true) break;

case 50:
//C
this.state = 51;
;
RDebugUtils.currentLine=9830517;
 //BA.debugLineNum = 9830517;BA.debugLine="c6.Close";
_c6.Close();
RDebugUtils.currentLine=9830518;
 //BA.debugLineNum = 9830518;BA.debugLine="Printer1.WriteString(\"Fecha: \" &  sDate &\" \" & sT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha: "+__ref._sdate /*String*/ +" "+__ref._stime /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9830519;
 //BA.debugLineNum = 9830519;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830523;
 //BA.debugLineNum = 9830523;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' ")));
RDebugUtils.currentLine=9830524;
 //BA.debugLineNum = 9830524;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 53:
//C
this.state = 54;
RDebugUtils.currentLine=9830525;
 //BA.debugLineNum = 9830525;BA.debugLine="Printer1.WriteString(\"------------PAGARE--------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------PAGARE------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9830526;
 //BA.debugLineNum = 9830526;BA.debugLine="Printer1.WriteString(\"\" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF);
RDebugUtils.currentLine=9830527;
 //BA.debugLineNum = 9830527;BA.debugLine="Printer1.WriteString(\"Pagare por los articulos\"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Pagare por los articulos"+parent.__c.CRLF);
RDebugUtils.currentLine=9830528;
 //BA.debugLineNum = 9830528;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9830531;
 //BA.debugLineNum = 9830531;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by  HVD_PROID"))));
RDebugUtils.currentLine=9830532;
 //BA.debugLineNum = 9830532;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

case 56:
//C
this.state = 57;
RDebugUtils.currentLine=9830533;
 //BA.debugLineNum = 9830533;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 57:
//for
this.state = 70;
step76 = 1;
limit76 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 123;
if (true) break;

case 123:
//C
this.state = 70;
if ((step76 > 0 && _i <= limit76) || (step76 < 0 && _i >= limit76)) this.state = 59;
if (true) break;

case 124:
//C
this.state = 123;
_i = ((int)(0 + _i + step76)) ;
if (true) break;

case 59:
//C
this.state = 60;
RDebugUtils.currentLine=9830534;
 //BA.debugLineNum = 9830534;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9830535;
 //BA.debugLineNum = 9830535;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
parent.__c.LogImpl("89830535",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0);
RDebugUtils.currentLine=9830536;
 //BA.debugLineNum = 9830536;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
if (true) break;

case 60:
//if
this.state = 69;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 62;
}if (true) break;

case 62:
//C
this.state = 63;
RDebugUtils.currentLine=9830537;
 //BA.debugLineNum = 9830537;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
if (true) break;

case 63:
//if
this.state = 68;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { 
this.state = 65;
}else 
{RDebugUtils.currentLine=9830561;
 //BA.debugLineNum = 9830561;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { 
this.state = 67;
}}
if (true) break;

case 65:
//C
this.state = 68;
RDebugUtils.currentLine=9830538;
 //BA.debugLineNum = 9830538;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9830539;
 //BA.debugLineNum = 9830539;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
 if (true) break;

case 67:
//C
this.state = 68;
RDebugUtils.currentLine=9830562;
 //BA.debugLineNum = 9830562;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9830563;
 //BA.debugLineNum = 9830563;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9830588;
 //BA.debugLineNum = 9830588;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 68:
//C
this.state = 69;
;
 if (true) break;

case 69:
//C
this.state = 124;
;
 if (true) break;
if (true) break;

case 70:
//C
this.state = 71;
;
 if (true) break;

case 71:
//C
this.state = 72;
;
 if (true) break;

case 72:
//C
this.state = 73;
;
RDebugUtils.currentLine=9830594;
 //BA.debugLineNum = 9830594;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9830595;
 //BA.debugLineNum = 9830595;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9830596;
 //BA.debugLineNum = 9830596;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830598;
 //BA.debugLineNum = 9830598;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by  HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
RDebugUtils.currentLine=9830599;
 //BA.debugLineNum = 9830599;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 73:
//if
this.state = 100;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 75;
}if (true) break;

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=9830600;
 //BA.debugLineNum = 9830600;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------PROMOS ENTREGA--------"+parent.__c.CRLF);
RDebugUtils.currentLine=9830601;
 //BA.debugLineNum = 9830601;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=9830602;
 //BA.debugLineNum = 9830602;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9830603;
 //BA.debugLineNum = 9830603;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 76:
//for
this.state = 99;
step100 = 1;
limit100 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 125;
if (true) break;

case 125:
//C
this.state = 99;
if ((step100 > 0 && _i <= limit100) || (step100 < 0 && _i >= limit100)) this.state = 78;
if (true) break;

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

case 78:
//C
this.state = 79;
RDebugUtils.currentLine=9830604;
 //BA.debugLineNum = 9830604;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9830605;
 //BA.debugLineNum = 9830605;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
if (true) break;

case 79:
//if
this.state = 98;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 81;
}if (true) break;

case 81:
//C
this.state = 82;
RDebugUtils.currentLine=9830606;
 //BA.debugLineNum = 9830606;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if (true) break;

case 82:
//if
this.state = 97;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { 
this.state = 84;
}else {
this.state = 96;
}if (true) break;

case 84:
//C
this.state = 85;
RDebugUtils.currentLine=9830607;
 //BA.debugLineNum = 9830607;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9830608;
 //BA.debugLineNum = 9830608;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
if (true) break;

case 85:
//if
this.state = 94;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { 
this.state = 87;
}else {
this.state = 89;
}if (true) break;

case 87:
//C
this.state = 94;
 if (true) break;

case 89:
//C
this.state = 90;
RDebugUtils.currentLine=9830611;
 //BA.debugLineNum = 9830611;BA.debugLine="If s.GetString(\"HVD_PRONOMBRE\") <> \"Cobranza";
if (true) break;

case 90:
//if
this.state = 93;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")).equals("Cobranza Pendiente") == false) { 
this.state = 92;
}if (true) break;

case 92:
//C
this.state = 93;
RDebugUtils.currentLine=9830613;
 //BA.debugLineNum = 9830613;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
 if (true) break;

case 93:
//C
this.state = 94;
;
 if (true) break;

case 94:
//C
this.state = 97;
;
RDebugUtils.currentLine=9830634;
 //BA.debugLineNum = 9830634;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 96:
//C
this.state = 97;
 if (true) break;

case 97:
//C
this.state = 98;
;
 if (true) break;

case 98:
//C
this.state = 126;
;
 if (true) break;
if (true) break;

case 99:
//C
this.state = 100;
;
 if (true) break;

case 100:
//C
this.state = 101;
;
RDebugUtils.currentLine=9830641;
 //BA.debugLineNum = 9830641;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830642;
 //BA.debugLineNum = 9830642;BA.debugLine="Printer1.WriteString(\"Por monto de $\" &l_montopag";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Por monto de $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830643;
 //BA.debugLineNum = 9830643;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830644;
 //BA.debugLineNum = 9830644;BA.debugLine="Printer1.WriteString(\"Debo(mos) y pagare(mos) inc";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Debo(mos) y pagare(mos) incon"+parent.__c.CRLF);
RDebugUtils.currentLine=9830645;
 //BA.debugLineNum = 9830645;BA.debugLine="Printer1.WriteString(\"dicionalmente en __________";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"dicionalmente en _____________"+parent.__c.CRLF);
RDebugUtils.currentLine=9830646;
 //BA.debugLineNum = 9830646;BA.debugLine="Printer1.WriteString(\"o en el lugar donde se me \"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"o en el lugar donde se me "+parent.__c.CRLF);
RDebugUtils.currentLine=9830647;
 //BA.debugLineNum = 9830647;BA.debugLine="Printer1.WriteString(\"requiera por el presente pa";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"requiera por el presente pagare"+parent.__c.CRLF);
RDebugUtils.currentLine=9830648;
 //BA.debugLineNum = 9830648;BA.debugLine="Printer1.WriteString(\"a Izca Distribuciones la \"&";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"a Izca Distribuciones la "+parent.__c.CRLF);
RDebugUtils.currentLine=9830649;
 //BA.debugLineNum = 9830649;BA.debugLine="Printer1.WriteString(\"cantidad de $\"&l_montopag.T";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"cantidad de $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9830650;
 //BA.debugLineNum = 9830650;BA.debugLine="Printer1.WriteString(\"valor recibido a entera \" &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"valor recibido a entera "+parent.__c.CRLF);
RDebugUtils.currentLine=9830651;
 //BA.debugLineNum = 9830651;BA.debugLine="Printer1.WriteString(\"satisfaccion. La falta de p";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"satisfaccion. La falta de pago"+parent.__c.CRLF);
RDebugUtils.currentLine=9830652;
 //BA.debugLineNum = 9830652;BA.debugLine="Printer1.WriteString(\"a la fecha indicada causara";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"a la fecha indicada causara "+parent.__c.CRLF);
RDebugUtils.currentLine=9830653;
 //BA.debugLineNum = 9830653;BA.debugLine="Printer1.WriteString(\"intereses moratorios a razo";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"intereses moratorios a razon "+parent.__c.CRLF);
RDebugUtils.currentLine=9830654;
 //BA.debugLineNum = 9830654;BA.debugLine="Printer1.WriteString(\"de ______% mensual a la fec";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"de ______% mensual a la fecha."+parent.__c.CRLF);
RDebugUtils.currentLine=9830655;
 //BA.debugLineNum = 9830655;BA.debugLine="Printer1.WriteString(\"\" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF);
RDebugUtils.currentLine=9830656;
 //BA.debugLineNum = 9830656;BA.debugLine="Printer1.WriteString(\"\" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF);
RDebugUtils.currentLine=9830657;
 //BA.debugLineNum = 9830657;BA.debugLine="Printer1.WriteString(\"            Recibi";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"            Recibi            "+parent.__c.CRLF);
RDebugUtils.currentLine=9830658;
 //BA.debugLineNum = 9830658;BA.debugLine="Printer1.WriteString(\"\" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF);
RDebugUtils.currentLine=9830659;
 //BA.debugLineNum = 9830659;BA.debugLine="Printer1.WriteString(\"\" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF);
RDebugUtils.currentLine=9830660;
 //BA.debugLineNum = 9830660;BA.debugLine="Printer1.WriteString(\"___________________________";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"______________________________"+parent.__c.CRLF);
RDebugUtils.currentLine=9830662;
 //BA.debugLineNum = 9830662;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830663;
 //BA.debugLineNum = 9830663;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830664;
 //BA.debugLineNum = 9830664;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830665;
 //BA.debugLineNum = 9830665;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\"";
parent.__c.DateTime.setDateFormat("ddMMyyyy");
RDebugUtils.currentLine=9830666;
 //BA.debugLineNum = 9830666;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9830668;
 //BA.debugLineNum = 9830668;BA.debugLine="Printer1.WriteBarCode(\"I\",Ticket&sDate)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writebarcode /*String*/ (null,"I",_ticket+__ref._sdate /*String*/ );
RDebugUtils.currentLine=9830670;
 //BA.debugLineNum = 9830670;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830671;
 //BA.debugLineNum = 9830671;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830672;
 //BA.debugLineNum = 9830672;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9830673;
 //BA.debugLineNum = 9830673;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 127;
return;
case 127:
//C
this.state = 101;
;
RDebugUtils.currentLine=9830674;
 //BA.debugLineNum = 9830674;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9830675;
 //BA.debugLineNum = 9830675;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=9830676;
 //BA.debugLineNum = 9830676;BA.debugLine="If banderaimp = 1 Then";
if (true) break;

case 101:
//if
this.state = 116;
if (__ref._banderaimp /*int*/ ==1) { 
this.state = 103;
}else 
{RDebugUtils.currentLine=9830686;
 //BA.debugLineNum = 9830686;BA.debugLine="Else If banderaimp = 0 Then";
if (__ref._banderaimp /*int*/ ==0) { 
this.state = 111;
}}
if (true) break;

case 103:
//C
this.state = 104;
RDebugUtils.currentLine=9830677;
 //BA.debugLineNum = 9830677;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9830678;
 //BA.debugLineNum = 9830678;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"), null);
this.state = 128;
return;
case 128:
//C
this.state = 104;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9830679;
 //BA.debugLineNum = 9830679;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 104:
//if
this.state = 109;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 106;
}else {
this.state = 108;
}if (true) break;

case 106:
//C
this.state = 109;
RDebugUtils.currentLine=9830680;
 //BA.debugLineNum = 9830680;BA.debugLine="imprime_pagare";
__ref._imprime_pagare /*void*/ (null);
 if (true) break;

case 108:
//C
this.state = 109;
RDebugUtils.currentLine=9830682;
 //BA.debugLineNum = 9830682;BA.debugLine="b_acred_Click";
__ref._b_acred_click /*String*/ (null);
 if (true) break;

case 109:
//C
this.state = 116;
;
 if (true) break;

case 111:
//C
this.state = 112;
RDebugUtils.currentLine=9830687;
 //BA.debugLineNum = 9830687;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9830688;
 //BA.debugLineNum = 9830688;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"), null);
this.state = 129;
return;
case 129:
//C
this.state = 112;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9830689;
 //BA.debugLineNum = 9830689;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 112:
//if
this.state = 115;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 114;
}if (true) break;

case 114:
//C
this.state = 115;
RDebugUtils.currentLine=9830690;
 //BA.debugLineNum = 9830690;BA.debugLine="imprime_pagare";
__ref._imprime_pagare /*void*/ (null);
 if (true) break;

case 115:
//C
this.state = 116;
;
 if (true) break;

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

            }
        }
    }
}
public void  _b_imp2_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_imp2_click", false))
	 {Debug.delegate(ba, "b_imp2_click", null); return;}
ResumableSub_B_IMP2_Click rsub = new ResumableSub_B_IMP2_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B_IMP2_Click extends BA.ResumableSub {
public ResumableSub_B_IMP2_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
int _cont = 0;
int _i = 0;
String _punit = "";
String _ptot = "";
int _e = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
int _resultado = 0;
int step53;
int limit53;
int step65;
int limit65;
int step88;
int limit88;
int step114;
int limit114;
int step131;
int limit131;
int step156;
int limit156;
int step166;
int limit166;

@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=9961595;
 //BA.debugLineNum = 9961595;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=9961596;
 //BA.debugLineNum = 9961596;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=9961597;
 //BA.debugLineNum = 9961597;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=9961599;
 //BA.debugLineNum = 9961599;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=9961600;
 //BA.debugLineNum = 9961600;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=9961601;
 //BA.debugLineNum = 9961601;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9961602;
 //BA.debugLineNum = 9961602;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=9961603;
 //BA.debugLineNum = 9961603;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9961609;
 //BA.debugLineNum = 9961609;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=9961610;
 //BA.debugLineNum = 9961610;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9961611;
 //BA.debugLineNum = 9961611;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

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

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

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

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

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

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

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

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

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

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

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

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

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=9961629;
 //BA.debugLineNum = 9961629;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (1000));
this.state = 127;
return;
case 127:
//C
this.state = 25;
;
RDebugUtils.currentLine=9961631;
 //BA.debugLineNum = 9961631;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=9961632;
 //BA.debugLineNum = 9961632;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=9961639;
 //BA.debugLineNum = 9961639;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9961640;
 //BA.debugLineNum = 9961640;BA.debugLine="ESPACIO = 28";
__ref._espacio /*int*/  = (int) (28);
RDebugUtils.currentLine=9961641;
 //BA.debugLineNum = 9961641;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9961658;
 //BA.debugLineNum = 9961658;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF);
RDebugUtils.currentLine=9961660;
 //BA.debugLineNum = 9961660;BA.debugLine="Printer1.WriteString(sDate &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9961661;
 //BA.debugLineNum = 9961661;BA.debugLine="Printer1.WriteString(sTime &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9961662;
 //BA.debugLineNum = 9961662;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  CRL";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +parent.__c.CRLF);
RDebugUtils.currentLine=9961663;
 //BA.debugLineNum = 9961663;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9961664;
 //BA.debugLineNum = 9961664;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9961665;
 //BA.debugLineNum = 9961665;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9961666;
 //BA.debugLineNum = 9961666;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9961670;
 //BA.debugLineNum = 9961670;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961671;
 //BA.debugLineNum = 9961671;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=9961672;
 //BA.debugLineNum = 9961672;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=9961673;
 //BA.debugLineNum = 9961673;BA.debugLine="Printer1.WriteString(\"------------ENTREGA-------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------ENTREGA-----------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961676;
 //BA.debugLineNum = 9961676;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=9961678;
 //BA.debugLineNum = 9961678;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961680;
 //BA.debugLineNum = 9961680;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by  HVD_PROID"))));
RDebugUtils.currentLine=9961681;
 //BA.debugLineNum = 9961681;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=9961682;
 //BA.debugLineNum = 9961682;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 45:
//for
this.state = 66;
step53 = 1;
limit53 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 129;
if (true) break;

case 129:
//C
this.state = 66;
if ((step53 > 0 && _i <= limit53) || (step53 < 0 && _i >= limit53)) this.state = 47;
if (true) break;

case 130:
//C
this.state = 129;
_i = ((int)(0 + _i + step53)) ;
if (true) break;

case 47:
//C
this.state = 48;
RDebugUtils.currentLine=9961683;
 //BA.debugLineNum = 9961683;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9961684;
 //BA.debugLineNum = 9961684;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
parent.__c.LogImpl("89961684",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0);
RDebugUtils.currentLine=9961685;
 //BA.debugLineNum = 9961685;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
if (true) break;

case 48:
//if
this.state = 65;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 50;
}if (true) break;

case 50:
//C
this.state = 51;
RDebugUtils.currentLine=9961688;
 //BA.debugLineNum = 9961688;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
if (true) break;

case 51:
//if
this.state = 64;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { 
this.state = 53;
}else 
{RDebugUtils.currentLine=9961716;
 //BA.debugLineNum = 9961716;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { 
this.state = 59;
}}
if (true) break;

case 53:
//C
this.state = 54;
RDebugUtils.currentLine=9961690;
 //BA.debugLineNum = 9961690;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961691;
 //BA.debugLineNum = 9961691;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9961694;
 //BA.debugLineNum = 9961694;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961695;
 //BA.debugLineNum = 9961695;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961698;
 //BA.debugLineNum = 9961698;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961699;
 //BA.debugLineNum = 9961699;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961701;
 //BA.debugLineNum = 9961701;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=9961703;
 //BA.debugLineNum = 9961703;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 54:
//for
this.state = 57;
step65 = 1;
limit65 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 131;
if (true) break;

case 131:
//C
this.state = 57;
if ((step65 > 0 && _e <= limit65) || (step65 < 0 && _e >= limit65)) this.state = 56;
if (true) break;

case 132:
//C
this.state = 131;
_e = ((int)(0 + _e + step65)) ;
if (true) break;

case 56:
//C
this.state = 132;
RDebugUtils.currentLine=9961704;
 //BA.debugLineNum = 9961704;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 57:
//C
this.state = 64;
;
RDebugUtils.currentLine=9961706;
 //BA.debugLineNum = 9961706;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961707;
 //BA.debugLineNum = 9961707;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961708;
 //BA.debugLineNum = 9961708;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=9961709;
 //BA.debugLineNum = 9961709;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961710;
 //BA.debugLineNum = 9961710;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=9961711;
 //BA.debugLineNum = 9961711;BA.debugLine="Printer1.WriteString( ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=9961712;
 //BA.debugLineNum = 9961712;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9961713;
 //BA.debugLineNum = 9961713;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=9961714;
 //BA.debugLineNum = 9961714;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

case 59:
//C
this.state = 60;
RDebugUtils.currentLine=9961718;
 //BA.debugLineNum = 9961718;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961719;
 //BA.debugLineNum = 9961719;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9961721;
 //BA.debugLineNum = 9961721;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue";
_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=9961722;
 //BA.debugLineNum = 9961722;BA.debugLine="vc5.Position = 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=9961723;
 //BA.debugLineNum = 9961723;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get";
_punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961724;
 //BA.debugLineNum = 9961724;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961725;
 //BA.debugLineNum = 9961725;BA.debugLine="vc5.Close";
_vc5.Close();
RDebugUtils.currentLine=9961727;
 //BA.debugLineNum = 9961727;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961728;
 //BA.debugLineNum = 9961728;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961730;
 //BA.debugLineNum = 9961730;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=9961732;
 //BA.debugLineNum = 9961732;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 60:
//for
this.state = 63;
step88 = 1;
limit88 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 133;
if (true) break;

case 133:
//C
this.state = 63;
if ((step88 > 0 && _e <= limit88) || (step88 < 0 && _e >= limit88)) this.state = 62;
if (true) break;

case 134:
//C
this.state = 133;
_e = ((int)(0 + _e + step88)) ;
if (true) break;

case 62:
//C
this.state = 134;
RDebugUtils.currentLine=9961733;
 //BA.debugLineNum = 9961733;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 63:
//C
this.state = 64;
;
RDebugUtils.currentLine=9961735;
 //BA.debugLineNum = 9961735;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961736;
 //BA.debugLineNum = 9961736;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961737;
 //BA.debugLineNum = 9961737;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=9961738;
 //BA.debugLineNum = 9961738;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961739;
 //BA.debugLineNum = 9961739;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=9961740;
 //BA.debugLineNum = 9961740;BA.debugLine="Printer1.WriteString(ptot&  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=9961741;
 //BA.debugLineNum = 9961741;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9961742;
 //BA.debugLineNum = 9961742;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=9961743;
 //BA.debugLineNum = 9961743;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9961744;
 //BA.debugLineNum = 9961744;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 64:
//C
this.state = 65;
;
 if (true) break;

case 65:
//C
this.state = 130;
;
 if (true) break;
if (true) break;

case 66:
//C
this.state = 67;
;
 if (true) break;

case 67:
//C
this.state = 68;
;
 if (true) break;

case 68:
//C
this.state = 69;
;
RDebugUtils.currentLine=9961750;
 //BA.debugLineNum = 9961750;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961751;
 //BA.debugLineNum = 9961751;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=9961752;
 //BA.debugLineNum = 9961752;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961753;
 //BA.debugLineNum = 9961753;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' order by  HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
RDebugUtils.currentLine=9961755;
 //BA.debugLineNum = 9961755;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 69:
//if
this.state = 96;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 71;
}if (true) break;

case 71:
//C
this.state = 72;
RDebugUtils.currentLine=9961756;
 //BA.debugLineNum = 9961756;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------PROMOS ENTREGA--------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961757;
 //BA.debugLineNum = 9961757;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=9961758;
 //BA.debugLineNum = 9961758;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961760;
 //BA.debugLineNum = 9961760;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 72:
//for
this.state = 95;
step114 = 1;
limit114 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 135;
if (true) break;

case 135:
//C
this.state = 95;
if ((step114 > 0 && _i <= limit114) || (step114 < 0 && _i >= limit114)) this.state = 74;
if (true) break;

case 136:
//C
this.state = 135;
_i = ((int)(0 + _i + step114)) ;
if (true) break;

case 74:
//C
this.state = 75;
RDebugUtils.currentLine=9961761;
 //BA.debugLineNum = 9961761;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9961762;
 //BA.debugLineNum = 9961762;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
if (true) break;

case 75:
//if
this.state = 94;
if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { 
this.state = 77;
}if (true) break;

case 77:
//C
this.state = 78;
RDebugUtils.currentLine=9961765;
 //BA.debugLineNum = 9961765;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if (true) break;

case 78:
//if
this.state = 93;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { 
this.state = 80;
}else {
this.state = 92;
}if (true) break;

case 80:
//C
this.state = 81;
RDebugUtils.currentLine=9961767;
 //BA.debugLineNum = 9961767;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961768;
 //BA.debugLineNum = 9961768;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
if (true) break;

case 81:
//if
this.state = 90;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { 
this.state = 83;
}else {
this.state = 85;
}if (true) break;

case 83:
//C
this.state = 90;
RDebugUtils.currentLine=9961769;
 //BA.debugLineNum = 9961769;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9961770;
 //BA.debugLineNum = 9961770;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961771;
 //BA.debugLineNum = 9961771;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
 if (true) break;

case 85:
//C
this.state = 86;
RDebugUtils.currentLine=9961773;
 //BA.debugLineNum = 9961773;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9961775;
 //BA.debugLineNum = 9961775;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961776;
 //BA.debugLineNum = 9961776;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961779;
 //BA.debugLineNum = 9961779;BA.debugLine="Private ptot As String = NumberFormat2((puni";
_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961780;
 //BA.debugLineNum = 9961780;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961783;
 //BA.debugLineNum = 9961783;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=9961784;
 //BA.debugLineNum = 9961784;BA.debugLine="Log(ESPACIO)";
parent.__c.LogImpl("89961784",BA.NumberToString(__ref._espacio /*int*/ ),0);
RDebugUtils.currentLine=9961785;
 //BA.debugLineNum = 9961785;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 86:
//for
this.state = 89;
step131 = 1;
limit131 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 137;
if (true) break;

case 137:
//C
this.state = 89;
if ((step131 > 0 && _e <= limit131) || (step131 < 0 && _e >= limit131)) this.state = 88;
if (true) break;

case 138:
//C
this.state = 137;
_e = ((int)(0 + _e + step131)) ;
if (true) break;

case 88:
//C
this.state = 138;
RDebugUtils.currentLine=9961786;
 //BA.debugLineNum = 9961786;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 89:
//C
this.state = 90;
;
RDebugUtils.currentLine=9961788;
 //BA.debugLineNum = 9961788;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961789;
 //BA.debugLineNum = 9961789;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961790;
 //BA.debugLineNum = 9961790;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=9961791;
 //BA.debugLineNum = 9961791;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961792;
 //BA.debugLineNum = 9961792;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=9961793;
 //BA.debugLineNum = 9961793;BA.debugLine="Printer1.WriteString(ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=9961794;
 //BA.debugLineNum = 9961794;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9961795;
 //BA.debugLineNum = 9961795;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=9961796;
 //BA.debugLineNum = 9961796;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9961797;
 //BA.debugLineNum = 9961797;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;

case 90:
//C
this.state = 93;
;
 if (true) break;

case 92:
//C
this.state = 93;
 if (true) break;

case 93:
//C
this.state = 94;
;
 if (true) break;

case 94:
//C
this.state = 136;
;
 if (true) break;
if (true) break;

case 95:
//C
this.state = 96;
;
 if (true) break;

case 96:
//C
this.state = 97;
;
RDebugUtils.currentLine=9961809;
 //BA.debugLineNum = 9961809;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961810;
 //BA.debugLineNum = 9961810;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"))));
RDebugUtils.currentLine=9961812;
 //BA.debugLineNum = 9961812;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 97:
//if
this.state = 108;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 99;
}if (true) break;

case 99:
//C
this.state = 100;
RDebugUtils.currentLine=9961813;
 //BA.debugLineNum = 9961813;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------VENTA------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961814;
 //BA.debugLineNum = 9961814;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+parent.__c.CRLF);
RDebugUtils.currentLine=9961815;
 //BA.debugLineNum = 9961815;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961817;
 //BA.debugLineNum = 9961817;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 100:
//for
this.state = 107;
step156 = 1;
limit156 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 139;
if (true) break;

case 139:
//C
this.state = 107;
if ((step156 > 0 && _i <= limit156) || (step156 < 0 && _i >= limit156)) this.state = 102;
if (true) break;

case 140:
//C
this.state = 139;
_i = ((int)(0 + _i + step156)) ;
if (true) break;

case 102:
//C
this.state = 103;
RDebugUtils.currentLine=9961818;
 //BA.debugLineNum = 9961818;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=9961820;
 //BA.debugLineNum = 9961820;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961821;
 //BA.debugLineNum = 9961821;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\"";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+parent.__c.CRLF);
RDebugUtils.currentLine=9961824;
 //BA.debugLineNum = 9961824;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN";
_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961825;
 //BA.debugLineNum = 9961825;BA.debugLine="TAMANO = punit.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_punit.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961827;
 //BA.debugLineNum = 9961827;BA.debugLine="Private ptot As String = NumberFormat2((punit*s";
_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
RDebugUtils.currentLine=9961828;
 //BA.debugLineNum = 9961828;BA.debugLine="TAMANO = ptot.Length + TAMANO";
__ref._tamano /*int*/  = (int) (_ptot.length()+__ref._tamano /*int*/ );
RDebugUtils.currentLine=9961831;
 //BA.debugLineNum = 9961831;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
__ref._espacio /*int*/  = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2);
RDebugUtils.currentLine=9961832;
 //BA.debugLineNum = 9961832;BA.debugLine="Log(ESPACIO)";
parent.__c.LogImpl("89961832",BA.NumberToString(__ref._espacio /*int*/ ),0);
RDebugUtils.currentLine=9961833;
 //BA.debugLineNum = 9961833;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 103:
//for
this.state = 106;
step166 = 1;
limit166 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 141;
if (true) break;

case 141:
//C
this.state = 106;
if ((step166 > 0 && _e <= limit166) || (step166 < 0 && _e >= limit166)) this.state = 105;
if (true) break;

case 142:
//C
this.state = 141;
_e = ((int)(0 + _e + step166)) ;
if (true) break;

case 105:
//C
this.state = 142;
RDebugUtils.currentLine=9961834;
 //BA.debugLineNum = 9961834;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;

case 106:
//C
this.state = 140;
;
RDebugUtils.currentLine=9961836;
 //BA.debugLineNum = 9961836;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=9961837;
 //BA.debugLineNum = 9961837;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961838;
 //BA.debugLineNum = 9961838;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=9961839;
 //BA.debugLineNum = 9961839;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ );
RDebugUtils.currentLine=9961840;
 //BA.debugLineNum = 9961840;BA.debugLine="Printer1.Justify = 2";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2));
RDebugUtils.currentLine=9961841;
 //BA.debugLineNum = 9961841;BA.debugLine="Printer1.WriteString(ptot &  CRLF )";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF);
RDebugUtils.currentLine=9961842;
 //BA.debugLineNum = 9961842;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=9961843;
 //BA.debugLineNum = 9961843;BA.debugLine="ESPACIO = 29";
__ref._espacio /*int*/  = (int) (29);
RDebugUtils.currentLine=9961844;
 //BA.debugLineNum = 9961844;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=9961845;
 //BA.debugLineNum = 9961845;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0));
 if (true) break;
if (true) break;

case 107:
//C
this.state = 108;
;
 if (true) break;

case 108:
//C
this.state = 109;
;
RDebugUtils.currentLine=9961849;
 //BA.debugLineNum = 9961849;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961850;
 //BA.debugLineNum = 9961850;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961853;
 //BA.debugLineNum = 9961853;BA.debugLine="Printer1.WriteString(\"Total Articulos:   \" & L_CA";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Articulos:   "+__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF);
RDebugUtils.currentLine=9961854;
 //BA.debugLineNum = 9961854;BA.debugLine="Printer1.WriteString(\"Total:   $\" & l_total.Text)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total:   $"+__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText());
RDebugUtils.currentLine=9961857;
 //BA.debugLineNum = 9961857;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961858;
 //BA.debugLineNum = 9961858;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961861;
 //BA.debugLineNum = 9961861;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+parent.__c.CRLF);
RDebugUtils.currentLine=9961862;
 //BA.debugLineNum = 9961862;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF);
RDebugUtils.currentLine=9961863;
 //BA.debugLineNum = 9961863;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961864;
 //BA.debugLineNum = 9961864;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF);
RDebugUtils.currentLine=9961865;
 //BA.debugLineNum = 9961865;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961866;
 //BA.debugLineNum = 9961866;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961867;
 //BA.debugLineNum = 9961867;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF);
RDebugUtils.currentLine=9961868;
 //BA.debugLineNum = 9961868;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (1000));
this.state = 143;
return;
case 143:
//C
this.state = 109;
;
RDebugUtils.currentLine=9961869;
 //BA.debugLineNum = 9961869;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=9961871;
 //BA.debugLineNum = 9961871;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=9961873;
 //BA.debugLineNum = 9961873;BA.debugLine="If banderaimp = 1 Then";
if (true) break;

case 109:
//if
this.state = 124;
if (__ref._banderaimp /*int*/ ==1) { 
this.state = 111;
}else 
{RDebugUtils.currentLine=9961884;
 //BA.debugLineNum = 9961884;BA.debugLine="Else If banderaimp = 0 Then";
if (__ref._banderaimp /*int*/ ==0) { 
this.state = 119;
}}
if (true) break;

case 111:
//C
this.state = 112;
RDebugUtils.currentLine=9961874;
 //BA.debugLineNum = 9961874;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9961875;
 //BA.debugLineNum = 9961875;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_imp2_click"), null);
this.state = 144;
return;
case 144:
//C
this.state = 112;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9961876;
 //BA.debugLineNum = 9961876;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 112:
//if
this.state = 117;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 114;
}else {
this.state = 116;
}if (true) break;

case 114:
//C
this.state = 117;
RDebugUtils.currentLine=9961877;
 //BA.debugLineNum = 9961877;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
 if (true) break;

case 116:
//C
this.state = 117;
 if (true) break;

case 117:
//C
this.state = 124;
;
 if (true) break;

case 119:
//C
this.state = 120;
RDebugUtils.currentLine=9961885;
 //BA.debugLineNum = 9961885;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=9961886;
 //BA.debugLineNum = 9961886;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_imp2_click"), null);
this.state = 145;
return;
case 145:
//C
this.state = 120;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=9961887;
 //BA.debugLineNum = 9961887;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 120:
//if
this.state = 123;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 122;
}if (true) break;

case 122:
//C
this.state = 123;
RDebugUtils.currentLine=9961888;
 //BA.debugLineNum = 9961888;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
 if (true) break;

case 123:
//C
this.state = 124;
;
 if (true) break;

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

            }
        }
    }
}
public String  _b_noentrega_click(reparto_izca.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=8192000;
 //BA.debugLineNum = 8192000;BA.debugLine="Sub b_noEntrega_Click";
RDebugUtils.currentLine=8192002;
 //BA.debugLineNum = 8192002;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k";
__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 gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8192003;
 //BA.debugLineNum = 8192003;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8192004;
 //BA.debugLineNum = 8192004;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("gestion")==2) { 
RDebugUtils.currentLine=8192005;
 //BA.debugLineNum = 8192005;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se";
__c.MsgboxAsync(BA.ObjectToCharSequence("El cliente ya fue entregado y no se puede realizar modificación"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=8192009;
 //BA.debugLineNum = 8192009;BA.debugLine="B4XPages.ShowPage(\"noVenta\")";
_b4xpages._showpage /*String*/ (ba,"noVenta");
 };
RDebugUtils.currentLine=8192011;
 //BA.debugLineNum = 8192011;BA.debugLine="End Sub";
return "";
}
public String  _b_paso2_click(reparto_izca.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=8978432;
 //BA.debugLineNum = 8978432;BA.debugLine="Sub B_PASO2_Click";
RDebugUtils.currentLine=8978433;
 //BA.debugLineNum = 8978433;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=8978434;
 //BA.debugLineNum = 8978434;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=8978435;
 //BA.debugLineNum = 8978435;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=8978436;
 //BA.debugLineNum = 8978436;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=8978437;
 //BA.debugLineNum = 8978437;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8978438;
 //BA.debugLineNum = 8978438;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=8978439;
 //BA.debugLineNum = 8978439;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=8978440;
 //BA.debugLineNum = 8978440;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8978441;
 //BA.debugLineNum = 8978441;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=8978442;
 //BA.debugLineNum = 8978442;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8978443;
 //BA.debugLineNum = 8978443;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=8978444;
 //BA.debugLineNum = 8978444;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_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
RDebugUtils.currentLine=8978450;
 //BA.debugLineNum = 8978450;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=8978452;
 //BA.debugLineNum = 8978452;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_izca.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 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _vcred4 = null;
float _cuentacred2 = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vcred5 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _vcred = null;
float _cuentacred0 = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null;
String _cabonos = "";
RDebugUtils.currentLine=7798784;
 //BA.debugLineNum = 7798784;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=7798785;
 //BA.debugLineNum = 7798785;BA.debugLine="banderaimp = 0";
__ref._banderaimp /*int*/  = (int) (0);
RDebugUtils.currentLine=7798786;
 //BA.debugLineNum = 7798786;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=7798787;
 //BA.debugLineNum = 7798787;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=7798788;
 //BA.debugLineNum = 7798788;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=7798789;
 //BA.debugLineNum = 7798789;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=7798790;
 //BA.debugLineNum = 7798790;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) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')")));
RDebugUtils.currentLine=7798791;
 //BA.debugLineNum = 7798791;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7798792;
 //BA.debugLineNum = 7798792;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7798793;
 //BA.debugLineNum = 7798793;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=7798794;
 //BA.debugLineNum = 7798794;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=7798795;
 //BA.debugLineNum = 7798795;BA.debugLine="NOMBRE = c.GetString(\"CAT_CL_NOMBRE\")";
__ref._nombre /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE");
RDebugUtils.currentLine=7798796;
 //BA.debugLineNum = 7798796;BA.debugLine="LONGITUD = c.GetString(\"CAT_CL_LONG\")";
__ref._longitud /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG");
RDebugUtils.currentLine=7798797;
 //BA.debugLineNum = 7798797;BA.debugLine="LATITUD = c.GetString(\"CAT_CL_LAT\")";
__ref._latitud /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT");
RDebugUtils.currentLine=7798798;
 //BA.debugLineNum = 7798798;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=7798799;
 //BA.debugLineNum = 7798799;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=7798800;
 //BA.debugLineNum = 7798800;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=7798801;
 //BA.debugLineNum = 7798801;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=7798802;
 //BA.debugLineNum = 7798802;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=7798803;
 //BA.debugLineNum = 7798803;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=7798804;
 //BA.debugLineNum = 7798804;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=7798805;
 //BA.debugLineNum = 7798805;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=7798807;
 //BA.debugLineNum = 7798807;BA.debugLine="l_atiende.Text = \" \"";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=7798809;
 //BA.debugLineNum = 7798809;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=7798810;
 //BA.debugLineNum = 7798810;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=7798812;
 //BA.debugLineNum = 7798812;BA.debugLine="l_atiende2.Text = \" \"";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=7798814;
 //BA.debugLineNum = 7798814;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=7798815;
 //BA.debugLineNum = 7798815;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=7798817;
 //BA.debugLineNum = 7798817;BA.debugLine="CREDITO = C.GetString(\"CAT_CL_BCREDITO\")";
__ref._credito /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_BCREDITO");
RDebugUtils.currentLine=7798820;
 //BA.debugLineNum = 7798820;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=7798821;
 //BA.debugLineNum = 7798821;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
RDebugUtils.currentLine=7798822;
 //BA.debugLineNum = 7798822;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=7798830;
 //BA.debugLineNum = 7798830;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=7798831;
 //BA.debugLineNum = 7798831;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=7798833;
 //BA.debugLineNum = 7798833;BA.debugLine="Private cuenta0 As String = 0";
_cuenta0 = BA.NumberToString(0);
RDebugUtils.currentLine=7798834;
 //BA.debugLineNum = 7798834;BA.debugLine="Private arti As String = 0";
_arti = BA.NumberToString(0);
RDebugUtils.currentLine=7798835;
 //BA.debugLineNum = 7798835;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) { 
RDebugUtils.currentLine=7798836;
 //BA.debugLineNum = 7798836;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=7798837;
 //BA.debugLineNum = 7798837;BA.debugLine="vc.Position = i";
_vc.setPosition(_i);
RDebugUtils.currentLine=7798840;
 //BA.debugLineNum = 7798840;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=7798845;
 //BA.debugLineNum = 7798845;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=7798851;
 //BA.debugLineNum = 7798851;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=7798852;
 //BA.debugLineNum = 7798852;BA.debugLine="Private Cuenta1 As String = 0";
_cuenta1 = BA.NumberToString(0);
RDebugUtils.currentLine=7798853;
 //BA.debugLineNum = 7798853;BA.debugLine="Private arti1 As String = 0";
_arti1 = BA.NumberToString(0);
RDebugUtils.currentLine=7798854;
 //BA.debugLineNum = 7798854;BA.debugLine="If vc2.RowCount > 0 Then";
if (_vc2.getRowCount()>0) { 
RDebugUtils.currentLine=7798855;
 //BA.debugLineNum = 7798855;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=7798856;
 //BA.debugLineNum = 7798856;BA.debugLine="vc2.Position = i";
_vc2.setPosition(_i);
RDebugUtils.currentLine=7798857;
 //BA.debugLineNum = 7798857;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=7798858;
 //BA.debugLineNum = 7798858;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=7798859;
 //BA.debugLineNum = 7798859;BA.debugLine="If vc3.RowCount > 0 Then";
if (_vc3.getRowCount()>0) { 
RDebugUtils.currentLine=7798860;
 //BA.debugLineNum = 7798860;BA.debugLine="vc3.Position = 0";
_vc3.setPosition((int) (0));
RDebugUtils.currentLine=7798861;
 //BA.debugLineNum = 7798861;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=7798862;
 //BA.debugLineNum = 7798862;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=7798868;
 //BA.debugLineNum = 7798868;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=7798869;
 //BA.debugLineNum = 7798869;BA.debugLine="Private Cuenta2 As String = 0";
_cuenta2 = BA.NumberToString(0);
RDebugUtils.currentLine=7798870;
 //BA.debugLineNum = 7798870;BA.debugLine="Private arti2 As String = 0";
_arti2 = BA.NumberToString(0);
RDebugUtils.currentLine=7798871;
 //BA.debugLineNum = 7798871;BA.debugLine="If vc4.RowCount > 0 Then";
if (_vc4.getRowCount()>0) { 
RDebugUtils.currentLine=7798873;
 //BA.debugLineNum = 7798873;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=7798874;
 //BA.debugLineNum = 7798874;BA.debugLine="vc4.Position = i";
_vc4.setPosition(_i);
RDebugUtils.currentLine=7798875;
 //BA.debugLineNum = 7798875;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString(";
if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=7798876;
 //BA.debugLineNum = 7798876;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7798877;
 //BA.debugLineNum = 7798877;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=7798878;
 //BA.debugLineNum = 7798878;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=7798880;
 //BA.debugLineNum = 7798880;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=7798881;
 //BA.debugLineNum = 7798881;BA.debugLine="If vc5.RowCount > 0 Then";
if (_vc5.getRowCount()>0) { 
RDebugUtils.currentLine=7798882;
 //BA.debugLineNum = 7798882;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=7798884;
 //BA.debugLineNum = 7798884;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=7798885;
 //BA.debugLineNum = 7798885;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=7798895;
 //BA.debugLineNum = 7798895;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=7798896;
 //BA.debugLineNum = 7798896;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) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')"))));
RDebugUtils.currentLine=7798897;
 //BA.debugLineNum = 7798897;BA.debugLine="Private Cuenta3 As String = 0";
_cuenta3 = BA.NumberToString(0);
RDebugUtils.currentLine=7798898;
 //BA.debugLineNum = 7798898;BA.debugLine="Private arti3 As String = 0";
_arti3 = BA.NumberToString(0);
RDebugUtils.currentLine=7798899;
 //BA.debugLineNum = 7798899;BA.debugLine="If c4.RowCount > 0 Then";
if (_c4.getRowCount()>0) { 
RDebugUtils.currentLine=7798900;
 //BA.debugLineNum = 7798900;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=7798901;
 //BA.debugLineNum = 7798901;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
RDebugUtils.currentLine=7798902;
 //BA.debugLineNum = 7798902;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
RDebugUtils.currentLine=7798903;
 //BA.debugLineNum = 7798903;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=7798906;
 //BA.debugLineNum = 7798906;BA.debugLine="Log(cuenta0)";
__c.LogImpl("87798906",_cuenta0,0);
RDebugUtils.currentLine=7798907;
 //BA.debugLineNum = 7798907;BA.debugLine="Log(Cuenta1)";
__c.LogImpl("87798907",_cuenta1,0);
RDebugUtils.currentLine=7798908;
 //BA.debugLineNum = 7798908;BA.debugLine="Log(Cuenta2)";
__c.LogImpl("87798908",_cuenta2,0);
RDebugUtils.currentLine=7798909;
 //BA.debugLineNum = 7798909;BA.debugLine="Log(Cuenta3)";
__c.LogImpl("87798909",_cuenta3,0);
RDebugUtils.currentLine=7798911;
 //BA.debugLineNum = 7798911;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=7798912;
 //BA.debugLineNum = 7798912;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=7798917;
 //BA.debugLineNum = 7798917;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=7798918;
 //BA.debugLineNum = 7798918;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7798919;
 //BA.debugLineNum = 7798919;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7798920;
 //BA.debugLineNum = 7798920;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=7798922;
 //BA.debugLineNum = 7798922;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
if ((_starter._mac_impresora /*String*/ ).equals("")) { 
_starter._mac_impresora /*String*/  = "0";};
RDebugUtils.currentLine=7798924;
 //BA.debugLineNum = 7798924;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1");
RDebugUtils.currentLine=7798926;
 //BA.debugLineNum = 7798926;BA.debugLine="If Printer1.IsConnected = False Then";
if (__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { 
 }else {
RDebugUtils.currentLine=7798930;
 //BA.debugLineNum = 7798930;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=7798931;
 //BA.debugLineNum = 7798931;BA.debugLine="Printer1.Connect";
__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=7798932;
 //BA.debugLineNum = 7798932;BA.debugLine="Log(\"2\")";
__c.LogImpl("87798932","2",0);
 };
RDebugUtils.currentLine=7798963;
 //BA.debugLineNum = 7798963;BA.debugLine="Private vcred4 As Cursor = Starter.skmt.ExecQuery";
_vcred4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vcred4 = (anywheresoftware.b4a.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)))+"' and HVD_BCREDITO = '1' "))));
RDebugUtils.currentLine=7798964;
 //BA.debugLineNum = 7798964;BA.debugLine="Private Cuentacred2 As Float = 0";
_cuentacred2 = (float) (0);
RDebugUtils.currentLine=7798966;
 //BA.debugLineNum = 7798966;BA.debugLine="If vcred4.RowCount > 0 Then";
if (_vcred4.getRowCount()>0) { 
RDebugUtils.currentLine=7798968;
 //BA.debugLineNum = 7798968;BA.debugLine="For i = 0 To vcred4.RowCount - 1";
{
final int step116 = 1;
final int limit116 = (int) (_vcred4.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit116 ;_i = _i + step116 ) {
RDebugUtils.currentLine=7798969;
 //BA.debugLineNum = 7798969;BA.debugLine="vcred4.Position = i";
_vcred4.setPosition(_i);
RDebugUtils.currentLine=7798970;
 //BA.debugLineNum = 7798970;BA.debugLine="If vcred4.GetString(\"HVD_PROID\") <> vcred4.GetS";
if ((_vcred4.GetString("HVD_PROID")).equals(_vcred4.GetString("HVD_CODPROMO")) == false) { 
RDebugUtils.currentLine=7798971;
 //BA.debugLineNum = 7798971;BA.debugLine="If vcred4.GetString(\"HVD_RECHAZO\") = 0 Then";
if ((_vcred4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7798972;
 //BA.debugLineNum = 7798972;BA.debugLine="Cuentacred2 = Cuentacred2 + vcred4.GetString(";
_cuentacred2 = (float) (_cuentacred2+(double)(Double.parseDouble(_vcred4.GetString("HVD_COSTO_TOT"))));
 }else {
RDebugUtils.currentLine=7798975;
 //BA.debugLineNum = 7798975;BA.debugLine="Private vcred5 As Cursor = Starter.skmt.ExecQ";
_vcred5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vcred5 = (anywheresoftware.b4a.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)(_vcred4.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=7798976;
 //BA.debugLineNum = 7798976;BA.debugLine="If vcred5.RowCount > 0 Then";
if (_vcred5.getRowCount()>0) { 
RDebugUtils.currentLine=7798977;
 //BA.debugLineNum = 7798977;BA.debugLine="vc5.Position= 0";
_vc5.setPosition((int) (0));
RDebugUtils.currentLine=7798979;
 //BA.debugLineNum = 7798979;BA.debugLine="Cuentacred2 = Cuentacred2 +((vcred4.GetStrin";
_cuentacred2 = (float) (_cuentacred2+(((double)(Double.parseDouble(_vcred4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vcred4.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vcred4.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vcred4.GetString("HVD_CANT"))))));
 };
 };
 };
 }
};
 };
RDebugUtils.currentLine=7798988;
 //BA.debugLineNum = 7798988;BA.debugLine="Private vcred As Cursor = Starter.skmt.ExecQuery(";
_vcred = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vcred = (anywheresoftware.b4a.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) and HVD_BCREDITO = '1'"))));
RDebugUtils.currentLine=7798990;
 //BA.debugLineNum = 7798990;BA.debugLine="Private cuentacred0 As Float = 0";
_cuentacred0 = (float) (0);
RDebugUtils.currentLine=7798992;
 //BA.debugLineNum = 7798992;BA.debugLine="If vcred.RowCount > 0 Then";
if (_vcred.getRowCount()>0) { 
RDebugUtils.currentLine=7798993;
 //BA.debugLineNum = 7798993;BA.debugLine="For i = 0 To vcred.RowCount - 1";
{
final int step134 = 1;
final int limit134 = (int) (_vcred.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit134 ;_i = _i + step134 ) {
RDebugUtils.currentLine=7798994;
 //BA.debugLineNum = 7798994;BA.debugLine="vcred.Position = i";
_vcred.setPosition(_i);
RDebugUtils.currentLine=7798997;
 //BA.debugLineNum = 7798997;BA.debugLine="cuentacred0 = cuentacred0 + ((vcred.GetInt(\"HVD";
_cuentacred0 = (float) (_cuentacred0+((_vcred.GetInt("HVD_CANT")-_vcred.GetInt("HVD_RECHAZOCANT"))*(_vcred.GetDouble("HVD_COSTO_TOT")/(double)_vcred.GetInt("HVD_CANT"))));
 }
};
 };
RDebugUtils.currentLine=7799006;
 //BA.debugLineNum = 7799006;BA.debugLine="Log(cuentacred0)";
__c.LogImpl("87799006",BA.NumberToString(_cuentacred0),0);
RDebugUtils.currentLine=7799007;
 //BA.debugLineNum = 7799007;BA.debugLine="Log(Cuentacred2)";
__c.LogImpl("87799007",BA.NumberToString(_cuentacred2),0);
RDebugUtils.currentLine=7799009;
 //BA.debugLineNum = 7799009;BA.debugLine="l_montopag.Text = NumberFormat2((cuentacred0 + Cu";
__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((_cuentacred0+_cuentacred2),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=7799010;
 //BA.debugLineNum = 7799010;BA.debugLine="l_montoefec.Text = NumberFormat2((NumberFormat2((";
__ref._l_montoefec /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__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.False)))-(double)(Double.parseDouble(__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=7799014;
 //BA.debugLineNum = 7799014;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=7799015;
 //BA.debugLineNum = 7799015;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7799016;
 //BA.debugLineNum = 7799016;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=7799017;
 //BA.debugLineNum = 7799017;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=7799019;
 //BA.debugLineNum = 7799019;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=7799020;
 //BA.debugLineNum = 7799020;BA.debugLine="If cp.RowCount > 0 Then";
if (_cp.getRowCount()>0) { 
RDebugUtils.currentLine=7799022;
 //BA.debugLineNum = 7799022;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT";
_x2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=7799023;
 //BA.debugLineNum = 7799023;BA.debugLine="x2.Position = 0";
_x2.setPosition((int) (0));
RDebugUtils.currentLine=7799024;
 //BA.debugLineNum = 7799024;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then";
if ((_x2.GetString("gestion")).equals(BA.NumberToString(2))) { 
RDebugUtils.currentLine=7799025;
 //BA.debugLineNum = 7799025;BA.debugLine="b_cancel_pagare.Visible = True";
__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=7799027;
 //BA.debugLineNum = 7799027;BA.debugLine="b_cancel_pagare.Visible = False";
__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }else {
RDebugUtils.currentLine=7799031;
 //BA.debugLineNum = 7799031;BA.debugLine="b_cancel_pagare.Visible = False";
__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=7799036;
 //BA.debugLineNum = 7799036;BA.debugLine="Log(\"SI AQUI\")";
__c.LogImpl("87799036","SI AQUI",0);
RDebugUtils.currentLine=7799037;
 //BA.debugLineNum = 7799037;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=7799038;
 //BA.debugLineNum = 7799038;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7799039;
 //BA.debugLineNum = 7799039;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
_cabonos = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE");
RDebugUtils.currentLine=7799040;
 //BA.debugLineNum = 7799040;BA.debugLine="If cabonos = 0 Then";
if ((_cabonos).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=7799041;
 //BA.debugLineNum = 7799041;BA.debugLine="b_cxc.Visible = False";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=7799043;
 //BA.debugLineNum = 7799043;BA.debugLine="b_cxc.Visible = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=7799047;
 //BA.debugLineNum = 7799047;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_izca.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_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.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=8257539;
 //BA.debugLineNum = 8257539;BA.debugLine="If p_credito.Visible Then";
if (true) break;

case 1:
//if
this.state = 8;
if (__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=8257543;
 //BA.debugLineNum = 8257543;BA.debugLine="Else If la_cuenta.Text = \"63403\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("63403")) { 
this.state = 5;
}else {
this.state = 7;
}}
if (true) break;

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

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

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

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_izca.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=7733248;
 //BA.debugLineNum = 7733248;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=7733249;
 //BA.debugLineNum = 7733249;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=7733251;
 //BA.debugLineNum = 7733251;BA.debugLine="g.Initialize(\"GPS\")";
__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS");
RDebugUtils.currentLine=7733253;
 //BA.debugLineNum = 7733253;BA.debugLine="Root.LoadLayout(\"cliente\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("cliente",ba);
RDebugUtils.currentLine=7733254;
 //BA.debugLineNum = 7733254;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=7733255;
 //BA.debugLineNum = 7733255;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=7733256;
 //BA.debugLineNum = 7733256;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733257;
 //BA.debugLineNum = 7733257;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733258;
 //BA.debugLineNum = 7733258;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=7733259;
 //BA.debugLineNum = 7733259;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=7733260;
 //BA.debugLineNum = 7733260;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=7733261;
 //BA.debugLineNum = 7733261;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=7733262;
 //BA.debugLineNum = 7733262;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=7733263;
 //BA.debugLineNum = 7733263;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=7733264;
 //BA.debugLineNum = 7733264;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=7733265;
 //BA.debugLineNum = 7733265;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=7733266;
 //BA.debugLineNum = 7733266;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=7733267;
 //BA.debugLineNum = 7733267;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=7733269;
 //BA.debugLineNum = 7733269;BA.debugLine="l_atiende.Text = \" \"";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=7733271;
 //BA.debugLineNum = 7733271;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=7733272;
 //BA.debugLineNum = 7733272;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=7733273;
 //BA.debugLineNum = 7733273;BA.debugLine="Log(\"|\"&c.GetString(\"CAT_CL_ATIENTE2\")&\"|\")";
__c.LogImpl("87733273","|"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")+"|",0);
 }else {
RDebugUtils.currentLine=7733275;
 //BA.debugLineNum = 7733275;BA.debugLine="l_atiende2.Text = \" \"";
__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" "));
 };
RDebugUtils.currentLine=7733277;
 //BA.debugLineNum = 7733277;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=7733278;
 //BA.debugLineNum = 7733278;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=7733280;
 //BA.debugLineNum = 7733280;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth");
RDebugUtils.currentLine=7733281;
 //BA.debugLineNum = 7733281;BA.debugLine="cmp20.Initialize(\"Printer\")";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer");
RDebugUtils.currentLine=7733282;
 //BA.debugLineNum = 7733282;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=7733283;
 //BA.debugLineNum = 7733283;BA.debugLine="End Sub";
return "";
}
public String  _cb_tipopago_selectedindexchanged(reparto_izca.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=9895936;
 //BA.debugLineNum = 9895936;BA.debugLine="Private Sub cb_tipopago_SelectedIndexChanged (Inde";
RDebugUtils.currentLine=9895937;
 //BA.debugLineNum = 9895937;BA.debugLine="itemselect = cb_tipopago.SelectedItem";
__ref._itemselect /*String*/  = __ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null);
RDebugUtils.currentLine=9895938;
 //BA.debugLineNum = 9895938;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
RDebugUtils.currentLine=7602176;
 //BA.debugLineNum = 7602176;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=7602177;
 //BA.debugLineNum = 7602177;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=7602178;
 //BA.debugLineNum = 7602178;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=7602179;
 //BA.debugLineNum = 7602179;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=7602180;
 //BA.debugLineNum = 7602180;BA.debugLine="Dim clie_id As String";
_clie_id = "";
RDebugUtils.currentLine=7602181;
 //BA.debugLineNum = 7602181;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=7602182;
 //BA.debugLineNum = 7602182;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=7602183;
 //BA.debugLineNum = 7602183;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=7602184;
 //BA.debugLineNum = 7602184;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
RDebugUtils.currentLine=7602185;
 //BA.debugLineNum = 7602185;BA.debugLine="Dim cmp20 As Serial";
_cmp20 = new anywheresoftware.b4a.objects.Serial();
RDebugUtils.currentLine=7602186;
 //BA.debugLineNum = 7602186;BA.debugLine="Dim printer As TextWriter";
_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
RDebugUtils.currentLine=7602187;
 //BA.debugLineNum = 7602187;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=7602188;
 //BA.debugLineNum = 7602188;BA.debugLine="Dim L As List";
_l = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=7602189;
 //BA.debugLineNum = 7602189;BA.debugLine="Dim TAMANO As Int";
_tamano = 0;
RDebugUtils.currentLine=7602190;
 //BA.debugLineNum = 7602190;BA.debugLine="Dim ESPACIO As Int";
_espacio = 0;
RDebugUtils.currentLine=7602191;
 //BA.debugLineNum = 7602191;BA.debugLine="Dim BLANCO As String";
_blanco = "";
RDebugUtils.currentLine=7602192;
 //BA.debugLineNum = 7602192;BA.debugLine="Dim impresoraConectada As Boolean = False";
_impresoraconectada = __c.False;
RDebugUtils.currentLine=7602193;
 //BA.debugLineNum = 7602193;BA.debugLine="Dim LONGITUD As String";
_longitud = "";
RDebugUtils.currentLine=7602194;
 //BA.debugLineNum = 7602194;BA.debugLine="Dim LATITUD As String";
_latitud = "";
RDebugUtils.currentLine=7602195;
 //BA.debugLineNum = 7602195;BA.debugLine="Dim NOMBRE As String";
_nombre = "";
RDebugUtils.currentLine=7602196;
 //BA.debugLineNum = 7602196;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=7602197;
 //BA.debugLineNum = 7602197;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=7602198;
 //BA.debugLineNum = 7602198;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=7602199;
 //BA.debugLineNum = 7602199;BA.debugLine="Dim la_cuenta As Label";
_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602200;
 //BA.debugLineNum = 7602200;BA.debugLine="Dim La_nombre As Label";
_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602201;
 //BA.debugLineNum = 7602201;BA.debugLine="Dim la_Calle As Label";
_la_calle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602202;
 //BA.debugLineNum = 7602202;BA.debugLine="Dim la_numero As Label";
_la_numero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602203;
 //BA.debugLineNum = 7602203;BA.debugLine="Dim la_nint As Label";
_la_nint = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602204;
 //BA.debugLineNum = 7602204;BA.debugLine="Dim la_edo As Label";
_la_edo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602205;
 //BA.debugLineNum = 7602205;BA.debugLine="Dim la_pob As Label";
_la_pob = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602206;
 //BA.debugLineNum = 7602206;BA.debugLine="Dim la_col As Label";
_la_col = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602207;
 //BA.debugLineNum = 7602207;BA.debugLine="Dim la_cp As Label";
_la_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602208;
 //BA.debugLineNum = 7602208;BA.debugLine="Dim la_zona As Label";
_la_zona = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602209;
 //BA.debugLineNum = 7602209;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602210;
 //BA.debugLineNum = 7602210;BA.debugLine="Dim la_saldotot As Label";
_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602211;
 //BA.debugLineNum = 7602211;BA.debugLine="Dim la_saldooper As Label";
_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602212;
 //BA.debugLineNum = 7602212;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=7602213;
 //BA.debugLineNum = 7602213;BA.debugLine="Dim b_noEntrega As Button";
_b_noentrega = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602214;
 //BA.debugLineNum = 7602214;BA.debugLine="Dim Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602215;
 //BA.debugLineNum = 7602215;BA.debugLine="Dim Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602216;
 //BA.debugLineNum = 7602216;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=7602217;
 //BA.debugLineNum = 7602217;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=7602218;
 //BA.debugLineNum = 7602218;BA.debugLine="Dim Tar As Button";
_tar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602219;
 //BA.debugLineNum = 7602219;BA.debugLine="Private L_QR As Label";
_l_qr = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602220;
 //BA.debugLineNum = 7602220;BA.debugLine="Private BT_QR As Button";
_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602221;
 //BA.debugLineNum = 7602221;BA.debugLine="Dim Printer1 As EscPosPrinter";
_printer1 = new reparto_izca.keymon.lat.escposprinter();
RDebugUtils.currentLine=7602222;
 //BA.debugLineNum = 7602222;BA.debugLine="Dim la_comm As Label";
_la_comm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602223;
 //BA.debugLineNum = 7602223;BA.debugLine="Dim la_actdte As Label";
_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602224;
 //BA.debugLineNum = 7602224;BA.debugLine="Dim la_usuario As Label";
_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602225;
 //BA.debugLineNum = 7602225;BA.debugLine="Dim la_resultado As Label";
_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602226;
 //BA.debugLineNum = 7602226;BA.debugLine="Dim l_entre1 As Label";
_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602227;
 //BA.debugLineNum = 7602227;BA.debugLine="Dim l_entre2 As Label";
_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602228;
 //BA.debugLineNum = 7602228;BA.debugLine="Dim l_atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602229;
 //BA.debugLineNum = 7602229;BA.debugLine="Dim l_atiende2 As Label";
_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602230;
 //BA.debugLineNum = 7602230;BA.debugLine="Dim DATOS As Button";
_datos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602231;
 //BA.debugLineNum = 7602231;BA.debugLine="Dim Guardar As Button";
_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602232;
 //BA.debugLineNum = 7602232;BA.debugLine="Dim NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602233;
 //BA.debugLineNum = 7602233;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602234;
 //BA.debugLineNum = 7602234;BA.debugLine="Private HIST As Button";
_hist = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602235;
 //BA.debugLineNum = 7602235;BA.debugLine="Dim PASA_IMP As String";
_pasa_imp = "";
RDebugUtils.currentLine=7602236;
 //BA.debugLineNum = 7602236;BA.debugLine="Private B_IMP As Button";
_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602237;
 //BA.debugLineNum = 7602237;BA.debugLine="Dim total_cliente As String";
_total_cliente = "";
RDebugUtils.currentLine=7602238;
 //BA.debugLineNum = 7602238;BA.debugLine="Dim CREDITO As String";
_credito = "";
RDebugUtils.currentLine=7602239;
 //BA.debugLineNum = 7602239;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=7602240;
 //BA.debugLineNum = 7602240;BA.debugLine="Private B_PASO2 As Button";
_b_paso2 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602241;
 //BA.debugLineNum = 7602241;BA.debugLine="Private L_CANT As Label";
_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602242;
 //BA.debugLineNum = 7602242;BA.debugLine="Dim errorImpresora As Int = 0";
_errorimpresora = (int) (0);
RDebugUtils.currentLine=7602243;
 //BA.debugLineNum = 7602243;BA.debugLine="Dim banderaimp As Int";
_banderaimp = 0;
RDebugUtils.currentLine=7602244;
 //BA.debugLineNum = 7602244;BA.debugLine="Private l_credi As Label";
_l_credi = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602245;
 //BA.debugLineNum = 7602245;BA.debugLine="Private l_pagare As Label";
_l_pagare = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602246;
 //BA.debugLineNum = 7602246;BA.debugLine="Private l_montopag As Label";
_l_montopag = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602247;
 //BA.debugLineNum = 7602247;BA.debugLine="Private l_efectivo As Label";
_l_efectivo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602248;
 //BA.debugLineNum = 7602248;BA.debugLine="Private l_montoefec As Label";
_l_montoefec = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602249;
 //BA.debugLineNum = 7602249;BA.debugLine="Private p_credito As Panel";
_p_credito = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=7602250;
 //BA.debugLineNum = 7602250;BA.debugLine="Private b_acred As Button";
_b_acred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602251;
 //BA.debugLineNum = 7602251;BA.debugLine="Private b_cancred As Button";
_b_cancred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602252;
 //BA.debugLineNum = 7602252;BA.debugLine="Private et_montoacredito As EditText";
_et_montoacredito = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=7602253;
 //BA.debugLineNum = 7602253;BA.debugLine="Private Label16 As Label";
_label16 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602254;
 //BA.debugLineNum = 7602254;BA.debugLine="Private l_limite As Label";
_l_limite = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602255;
 //BA.debugLineNum = 7602255;BA.debugLine="Dim almacen As String";
_almacen = "";
RDebugUtils.currentLine=7602256;
 //BA.debugLineNum = 7602256;BA.debugLine="Dim fechaprev As String";
_fechaprev = "";
RDebugUtils.currentLine=7602257;
 //BA.debugLineNum = 7602257;BA.debugLine="Dim rutaprev As String";
_rutaprev = "";
RDebugUtils.currentLine=7602258;
 //BA.debugLineNum = 7602258;BA.debugLine="Dim rutarep As String";
_rutarep = "";
RDebugUtils.currentLine=7602259;
 //BA.debugLineNum = 7602259;BA.debugLine="Dim montopagare As String";
_montopagare = "";
RDebugUtils.currentLine=7602260;
 //BA.debugLineNum = 7602260;BA.debugLine="Private p_abono As Panel";
_p_abono = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=7602261;
 //BA.debugLineNum = 7602261;BA.debugLine="Private clv_abonos As CustomListView";
_clv_abonos = new b4a.example3.customlistview();
RDebugUtils.currentLine=7602262;
 //BA.debugLineNum = 7602262;BA.debugLine="Private et_abono As EditText";
_et_abono = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=7602263;
 //BA.debugLineNum = 7602263;BA.debugLine="Private b_cancelar As Button";
_b_cancelar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602264;
 //BA.debugLineNum = 7602264;BA.debugLine="Private b_abono As Button";
_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602265;
 //BA.debugLineNum = 7602265;BA.debugLine="Private l_montoabonostotal As Label";
_l_montoabonostotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602266;
 //BA.debugLineNum = 7602266;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=7602267;
 //BA.debugLineNum = 7602267;BA.debugLine="Private l_folio As Label";
_l_folio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602268;
 //BA.debugLineNum = 7602268;BA.debugLine="Private l_saldo As Label";
_l_saldo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=7602269;
 //BA.debugLineNum = 7602269;BA.debugLine="Private b_cxc As Button";
_b_cxc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602270;
 //BA.debugLineNum = 7602270;BA.debugLine="Private cb_tipopago As B4XComboBox";
_cb_tipopago = new reparto_izca.keymon.lat.b4xcombobox();
RDebugUtils.currentLine=7602271;
 //BA.debugLineNum = 7602271;BA.debugLine="Dim itemselect As String";
_itemselect = "";
RDebugUtils.currentLine=7602272;
 //BA.debugLineNum = 7602272;BA.debugLine="Dim tipo_abonox As String";
_tipo_abonox = "";
RDebugUtils.currentLine=7602273;
 //BA.debugLineNum = 7602273;BA.debugLine="Private b_cancel_pagare As Button";
_b_cancel_pagare = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=7602274;
 //BA.debugLineNum = 7602274;BA.debugLine="Dim NOTA As String";
_nota = "";
RDebugUtils.currentLine=7602275;
 //BA.debugLineNum = 7602275;BA.debugLine="End Sub";
return "";
}
public String  _datos_click(reparto_izca.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=8388608;
 //BA.debugLineNum = 8388608;BA.debugLine="Sub DATOS_Click";
RDebugUtils.currentLine=8388610;
 //BA.debugLineNum = 8388610;BA.debugLine="End Sub";
return "";
}
public void  _gest_click(reparto_izca.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_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null;
int _result = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _y = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _u = null;

@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=8060940;
 //BA.debugLineNum = 8060940;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT";
_x2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x2 = (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 gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8060941;
 //BA.debugLineNum = 8060941;BA.debugLine="x2.Position = 0";
_x2.setPosition((int) (0));
RDebugUtils.currentLine=8060942;
 //BA.debugLineNum = 8060942;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then";
if (true) break;

case 1:
//if
this.state = 34;
if ((_x2.GetString("gestion")).equals(BA.NumberToString(2))) { 
this.state = 3;
}else {
this.state = 9;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=8060943;
 //BA.debugLineNum = 8060943;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Ya se gestiono el cliente, no se pueden hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=8060944;
 //BA.debugLineNum = 8060944;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 = 35;
return;
case 35:
//C
this.state = 4;
_result = (Integer) result[1];
;
RDebugUtils.currentLine=8060945;
 //BA.debugLineNum = 8060945;BA.debugLine="If Result= DialogResponse.NEGATIVE Then";
if (true) break;

case 4:
//if
this.state = 7;
if (_result==parent.__c.DialogResponse.NEGATIVE) { 
this.state = 6;
}if (true) break;

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

case 7:
//C
this.state = 34;
;
 if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=8060949;
 //BA.debugLineNum = 8060949;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=8060950;
 //BA.debugLineNum = 8060950;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=8060951;
 //BA.debugLineNum = 8060951;BA.debugLine="Log(k.GetString(\"CUENTA\"))";
parent.__c.LogImpl("88060951",_k.GetString("CUENTA"),0);
RDebugUtils.currentLine=8060952;
 //BA.debugLineNum = 8060952;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELEC";
_y = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_y = (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*/ .ExecQuery2("SELECT IFNULL(SUM(a_abono),0) AS a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_k.GetString("CUENTA")})));
RDebugUtils.currentLine=8060953;
 //BA.debugLineNum = 8060953;BA.debugLine="y.position = 0";
_y.setPosition((int) (0));
RDebugUtils.currentLine=8060954;
 //BA.debugLineNum = 8060954;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELEC";
_u = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_u = (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*/ .ExecQuery2("SELECT IFNULL(SUM(SALDO_PENDIENTE),0) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ?",new String[]{_k.GetString("CUENTA")})));
RDebugUtils.currentLine=8060955;
 //BA.debugLineNum = 8060955;BA.debugLine="u.Position = 0";
_u.setPosition((int) (0));
RDebugUtils.currentLine=8060956;
 //BA.debugLineNum = 8060956;BA.debugLine="If u.RowCount > 0 Then";
if (true) break;

case 10:
//if
this.state = 33;
if (_u.getRowCount()>0) { 
this.state = 12;
}else {
this.state = 32;
}if (true) break;

case 12:
//C
this.state = 13;
RDebugUtils.currentLine=8060957;
 //BA.debugLineNum = 8060957;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then";
if (true) break;

case 13:
//if
this.state = 30;
if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0)) == false) { 
this.state = 15;
}else 
{RDebugUtils.currentLine=8060968;
 //BA.debugLineNum = 8060968;BA.debugLine="Else If u.GetString(\"SALDO_PENDIENTE\") = 0 Then";
if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { 
this.state = 29;
}}
if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=8060958;
 //BA.debugLineNum = 8060958;BA.debugLine="If y.RowCount > 0 Then";
if (true) break;

case 16:
//if
this.state = 27;
if (_y.getRowCount()>0) { 
this.state = 18;
}else {
this.state = 26;
}if (true) break;

case 18:
//C
this.state = 19;
RDebugUtils.currentLine=8060959;
 //BA.debugLineNum = 8060959;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStri";
if (true) break;

case 19:
//if
this.state = 24;
if ((_u.GetString("SALDO_PENDIENTE")).equals(_y.GetString("a_abono"))) { 
this.state = 21;
}else {
this.state = 23;
}if (true) break;

case 21:
//C
this.state = 24;
RDebugUtils.currentLine=8060960;
 //BA.debugLineNum = 8060960;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
RDebugUtils.currentLine=8060961;
 //BA.debugLineNum = 8060961;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

case 23:
//C
this.state = 24;
RDebugUtils.currentLine=8060963;
 //BA.debugLineNum = 8060963;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 26:
//C
this.state = 27;
RDebugUtils.currentLine=8060966;
 //BA.debugLineNum = 8060966;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 29:
//C
this.state = 30;
RDebugUtils.currentLine=8060969;
 //BA.debugLineNum = 8060969;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
RDebugUtils.currentLine=8060970;
 //BA.debugLineNum = 8060970;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

case 30:
//C
this.state = 33;
;
 if (true) break;

case 32:
//C
this.state = 33;
RDebugUtils.currentLine=8060973;
 //BA.debugLineNum = 8060973;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*void*/ (null);
RDebugUtils.currentLine=8060974;
 //BA.debugLineNum = 8060974;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 if (true) break;

case 33:
//C
this.state = 34;
;
 if (true) break;

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

            }
        }
    }
}
public String  _gps_locationchanged(reparto_izca.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=7929856;
 //BA.debugLineNum = 7929856;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=7929859;
 //BA.debugLineNum = 7929859;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=7929860;
 //BA.debugLineNum = 7929860;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=7929861;
 //BA.debugLineNum = 7929861;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=7929862;
 //BA.debugLineNum = 7929862;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=7929863;
 //BA.debugLineNum = 7929863;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=7929864;
 //BA.debugLineNum = 7929864;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_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
RDebugUtils.currentLine=7929865;
 //BA.debugLineNum = 7929865;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientesreparto(reparto_izca.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=9043968;
 //BA.debugLineNum = 9043968;BA.debugLine="Sub mandaPendientesreparto";
RDebugUtils.currentLine=9043984;
 //BA.debugLineNum = 9043984;BA.debugLine="End Sub";
return "";
}
public String  _guardar_click(reparto_izca.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=8454144;
 //BA.debugLineNum = 8454144;BA.debugLine="Sub Guardar_Click";
RDebugUtils.currentLine=8454149;
 //BA.debugLineNum = 8454149;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=8454151;
 //BA.debugLineNum = 8454151;BA.debugLine="End Sub";
return "";
}
public void  _hist_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "hist_click", false))
	 {Debug.delegate(ba, "hist_click", null); return;}
ResumableSub_HIST_Click rsub = new ResumableSub_HIST_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_HIST_Click extends BA.ResumableSub {
public ResumableSub_HIST_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_cliente __ref;
reparto_izca.keymon.lat.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null;
int _result = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagacheca2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _y = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _u = null;

@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=8585233;
 //BA.debugLineNum = 8585233;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT";
_x2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x2 = (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 gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8585234;
 //BA.debugLineNum = 8585234;BA.debugLine="x2.Position = 0";
_x2.setPosition((int) (0));
RDebugUtils.currentLine=8585235;
 //BA.debugLineNum = 8585235;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then";
if (true) break;

case 1:
//if
this.state = 44;
if ((_x2.GetString("gestion")).equals(BA.NumberToString(2))) { 
this.state = 3;
}else {
this.state = 9;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=8585236;
 //BA.debugLineNum = 8585236;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Ya se gestiono el cliente, no se pueden hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=8585237;
 //BA.debugLineNum = 8585237;BA.debugLine="Wait For Msgbox_Result (Result As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "hist_click"), null);
this.state = 45;
return;
case 45:
//C
this.state = 4;
_result = (Integer) result[1];
;
RDebugUtils.currentLine=8585238;
 //BA.debugLineNum = 8585238;BA.debugLine="If Result= DialogResponse.NEGATIVE Then";
if (true) break;

case 4:
//if
this.state = 7;
if (_result==parent.__c.DialogResponse.NEGATIVE) { 
this.state = 6;
}if (true) break;

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

case 7:
//C
this.state = 44;
;
 if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=8585243;
 //BA.debugLineNum = 8585243;BA.debugLine="Dim pagacheca2 As Cursor = Starter.skmt.ExecQuer";
_pagacheca2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagacheca2 = (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 PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8585245;
 //BA.debugLineNum = 8585245;BA.debugLine="If pagacheca2.RowCount > 0 Then";
if (true) break;

case 10:
//if
this.state = 43;
if (_pagacheca2.getRowCount()>0) { 
this.state = 12;
}else {
this.state = 18;
}if (true) break;

case 12:
//C
this.state = 13;
RDebugUtils.currentLine=8585248;
 //BA.debugLineNum = 8585248;BA.debugLine="Msgbox2Async(\"El pagare ya fue generdo, no se p";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El pagare ya fue generdo, no se puede realizar modificación."),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=8585249;
 //BA.debugLineNum = 8585249;BA.debugLine="Wait For Msgbox_Result (Result As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "hist_click"), null);
this.state = 46;
return;
case 46:
//C
this.state = 13;
_result = (Integer) result[1];
;
RDebugUtils.currentLine=8585250;
 //BA.debugLineNum = 8585250;BA.debugLine="If Result= DialogResponse.POSITIVE Then";
if (true) break;

case 13:
//if
this.state = 16;
if (_result==parent.__c.DialogResponse.POSITIVE) { 
this.state = 15;
}if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=8585251;
 //BA.debugLineNum = 8585251;BA.debugLine="Log(\"Aqui\")";
parent.__c.LogImpl("88585251","Aqui",0);
 if (true) break;

case 16:
//C
this.state = 43;
;
 if (true) break;

case 18:
//C
this.state = 19;
RDebugUtils.currentLine=8585256;
 //BA.debugLineNum = 8585256;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=8585257;
 //BA.debugLineNum = 8585257;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=8585258;
 //BA.debugLineNum = 8585258;BA.debugLine="Log(k.GetString(\"CUENTA\"))";
parent.__c.LogImpl("88585258",_k.GetString("CUENTA"),0);
RDebugUtils.currentLine=8585259;
 //BA.debugLineNum = 8585259;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELE";
_y = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_y = (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*/ .ExecQuery2("SELECT IFNULL(SUM(a_abono),0) AS a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_k.GetString("CUENTA")})));
RDebugUtils.currentLine=8585260;
 //BA.debugLineNum = 8585260;BA.debugLine="y.position = 0";
_y.setPosition((int) (0));
RDebugUtils.currentLine=8585261;
 //BA.debugLineNum = 8585261;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELE";
_u = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_u = (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*/ .ExecQuery2("SELECT IFNULL(SUM(SALDO_PENDIENTE),0) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ?",new String[]{_k.GetString("CUENTA")})));
RDebugUtils.currentLine=8585262;
 //BA.debugLineNum = 8585262;BA.debugLine="u.Position = 0";
_u.setPosition((int) (0));
RDebugUtils.currentLine=8585263;
 //BA.debugLineNum = 8585263;BA.debugLine="If u.RowCount > 0 Then";
if (true) break;

case 19:
//if
this.state = 42;
if (_u.getRowCount()>0) { 
this.state = 21;
}else {
this.state = 41;
}if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=8585264;
 //BA.debugLineNum = 8585264;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then";
if (true) break;

case 22:
//if
this.state = 39;
if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0)) == false) { 
this.state = 24;
}else 
{RDebugUtils.currentLine=8585275;
 //BA.debugLineNum = 8585275;BA.debugLine="Else If u.GetString(\"SALDO_PENDIENTE\") = 0 The";
if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { 
this.state = 38;
}}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=8585265;
 //BA.debugLineNum = 8585265;BA.debugLine="If y.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 36;
if (_y.getRowCount()>0) { 
this.state = 27;
}else {
this.state = 35;
}if (true) break;

case 27:
//C
this.state = 28;
RDebugUtils.currentLine=8585266;
 //BA.debugLineNum = 8585266;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStr";
if (true) break;

case 28:
//if
this.state = 33;
if ((_u.GetString("SALDO_PENDIENTE")).equals(_y.GetString("a_abono"))) { 
this.state = 30;
}else {
this.state = 32;
}if (true) break;

case 30:
//C
this.state = 33;
RDebugUtils.currentLine=8585267;
 //BA.debugLineNum = 8585267;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Ini";
parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=8585268;
 //BA.debugLineNum = 8585268;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")";
parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta");
 if (true) break;

case 32:
//C
this.state = 33;
RDebugUtils.currentLine=8585270;
 //BA.debugLineNum = 8585270;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega s";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 35:
//C
this.state = 36;
RDebugUtils.currentLine=8585273;
 //BA.debugLineNum = 8585273;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 38:
//C
this.state = 39;
RDebugUtils.currentLine=8585276;
 //BA.debugLineNum = 8585276;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initi";
parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=8585277;
 //BA.debugLineNum = 8585277;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")";
parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta");
 if (true) break;

case 39:
//C
this.state = 42;
;
 if (true) break;

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=8585280;
 //BA.debugLineNum = 8585280;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initia";
parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=8585281;
 //BA.debugLineNum = 8585281;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")";
parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta");
 if (true) break;

case 42:
//C
this.state = 43;
;
 if (true) break;

case 43:
//C
this.state = 44;
;
 if (true) break;

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

            }
        }
    }
}
public String  _jobdone(reparto_izca.keymon.lat.c_cliente __ref,reparto_izca.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_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null;
String _cliente = "";
Object[] _records = null;
String _k = "";
RDebugUtils.currentLine=9109504;
 //BA.debugLineNum = 9109504;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=9109505;
 //BA.debugLineNum = 9109505;BA.debugLine="Log(Job.Success)";
__c.LogImpl("89109505",BA.ObjectToString(_job._success /*boolean*/ ),0);
RDebugUtils.currentLine=9109506;
 //BA.debugLineNum = 9109506;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 }else {
RDebugUtils.currentLine=9109509;
 //BA.debugLineNum = 9109509;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("89109509","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=9109510;
 //BA.debugLineNum = 9109510;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=9109511;
 //BA.debugLineNum = 9109511;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=9109512;
 //BA.debugLineNum = 9109512;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) { 
RDebugUtils.currentLine=9109513;
 //BA.debugLineNum = 9109513;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=9109514;
 //BA.debugLineNum = 9109514;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
RDebugUtils.currentLine=9109515;
 //BA.debugLineNum = 9109515;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("89109515",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
RDebugUtils.currentLine=9109516;
 //BA.debugLineNum = 9109516;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=9109517;
 //BA.debugLineNum = 9109517;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=9109518;
 //BA.debugLineNum = 9109518;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=9109519;
 //BA.debugLineNum = 9109519;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("89109519",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=9109524;
 //BA.debugLineNum = 9109524;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=9109527;
 //BA.debugLineNum = 9109527;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemlongclick(reparto_izca.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=7995392;
 //BA.debugLineNum = 7995392;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
RDebugUtils.currentLine=7995394;
 //BA.debugLineNum = 7995394;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click(reparto_izca.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=8519680;
 //BA.debugLineNum = 8519680;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=8519681;
 //BA.debugLineNum = 8519681;BA.debugLine="StartActivity(MAPA_CLIENTE)";
__c.StartActivity(ba,(Object)(_mapa_cliente.getObject()));
RDebugUtils.currentLine=8519682;
 //BA.debugLineNum = 8519682;BA.debugLine="End Sub";
return "";
}
public String  _p_abono_click(reparto_izca.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=9568256;
 //BA.debugLineNum = 9568256;BA.debugLine="Private Sub p_abono_Click";
RDebugUtils.currentLine=9568258;
 //BA.debugLineNum = 9568258;BA.debugLine="End Sub";
return "";
}
public String  _p_credito_click(reparto_izca.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=9306112;
 //BA.debugLineNum = 9306112;BA.debugLine="Private Sub p_credito_Click";
RDebugUtils.currentLine=9306114;
 //BA.debugLineNum = 9306114;BA.debugLine="End Sub";
return "";
}
public String  _printer_connected(reparto_izca.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=8847360;
 //BA.debugLineNum = 8847360;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
RDebugUtils.currentLine=8847361;
 //BA.debugLineNum = 8847361;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=8847363;
 //BA.debugLineNum = 8847363;BA.debugLine="PASA_IMP = \"1\"";
__ref._pasa_imp /*String*/  = "1";
 }else {
RDebugUtils.currentLine=8847366;
 //BA.debugLineNum = 8847366;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=8847367;
 //BA.debugLineNum = 8847367;BA.debugLine="StartPrinter";
__ref._startprinter /*String*/ (null);
 };
 };
RDebugUtils.currentLine=8847370;
 //BA.debugLineNum = 8847370;BA.debugLine="End Sub";
return "";
}
public String  _startprinter(reparto_izca.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));}
anywheresoftware.b4a.objects.collections.List _l1 = null;
int _resimp = 0;
int _i = 0;
RDebugUtils.currentLine=8912896;
 //BA.debugLineNum = 8912896;BA.debugLine="Sub StartPrinter";
RDebugUtils.currentLine=8912897;
 //BA.debugLineNum = 8912897;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=8912898;
 //BA.debugLineNum = 8912898;BA.debugLine="Dim L1 As List";
_l1 = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=8912899;
 //BA.debugLineNum = 8912899;BA.debugLine="Dim resimp As Int";
_resimp = 0;
RDebugUtils.currentLine=8912900;
 //BA.debugLineNum = 8912900;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
RDebugUtils.currentLine=8912901;
 //BA.debugLineNum = 8912901;BA.debugLine="PairedDevices.Initialize";
__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=8912902;
 //BA.debugLineNum = 8912902;BA.debugLine="Try";
try {RDebugUtils.currentLine=8912903;
 //BA.debugLineNum = 8912903;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=8912905;
 //BA.debugLineNum = 8912905;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=8912906;
 //BA.debugLineNum = 8912906;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=8912907;
 //BA.debugLineNum = 8912907;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
RDebugUtils.currentLine=8912910;
 //BA.debugLineNum = 8912910;BA.debugLine="If PairedDevices.Size = 0 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==0) { 
RDebugUtils.currentLine=8912911;
 //BA.debugLineNum = 8912911;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=8912912;
 //BA.debugLineNum = 8912912;BA.debugLine="Return";
if (true) return "";
 };
RDebugUtils.currentLine=8912915;
 //BA.debugLineNum = 8912915;BA.debugLine="If PairedDevices.Size = 1 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==1) { 
RDebugUtils.currentLine=8912916;
 //BA.debugLineNum = 8912916;BA.debugLine="Try";
try {RDebugUtils.currentLine=8912917;
 //BA.debugLineNum = 8912917;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt((int) (0)))));
 } 
       catch (Exception e21) {
			ba.setLastException(e21);RDebugUtils.currentLine=8912919;
 //BA.debugLineNum = 8912919;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=8912920;
 //BA.debugLineNum = 8912920;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=8912921;
 //BA.debugLineNum = 8912921;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
 }else {
RDebugUtils.currentLine=8912924;
 //BA.debugLineNum = 8912924;BA.debugLine="L1.Initialize";
_l1.Initialize();
RDebugUtils.currentLine=8912925;
 //BA.debugLineNum = 8912925;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=8912926;
 //BA.debugLineNum = 8912926;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
_l1.Add(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt(_i));
 }
};
RDebugUtils.currentLine=8912928;
 //BA.debugLineNum = 8912928;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
RDebugUtils.currentLine=8912929;
 //BA.debugLineNum = 8912929;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
if (_resimp!=__c.DialogResponse.CANCEL) { 
RDebugUtils.currentLine=8912930;
 //BA.debugLineNum = 8912930;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(_l1.Get(_resimp))));
 };
 };
RDebugUtils.currentLine=8912933;
 //BA.debugLineNum = 8912933;BA.debugLine="End Sub";
return "";
}
public String  _printer1_connected(reparto_izca.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=8716288;
 //BA.debugLineNum = 8716288;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
RDebugUtils.currentLine=8716290;
 //BA.debugLineNum = 8716290;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=8716291;
 //BA.debugLineNum = 8716291;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
RDebugUtils.currentLine=8716292;
 //BA.debugLineNum = 8716292;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=8716293;
 //BA.debugLineNum = 8716293;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=8716296;
 //BA.debugLineNum = 8716296;BA.debugLine="impresoraConectada = True";
__ref._impresoraconectada /*boolean*/  = __c.True;
 }else {
RDebugUtils.currentLine=8716300;
 //BA.debugLineNum = 8716300;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("88716300","Error conectando la impresora",__c.Colors.Red);
RDebugUtils.currentLine=8716301;
 //BA.debugLineNum = 8716301;BA.debugLine="errorImpresora = errorImpresora + 1";
__ref._errorimpresora /*int*/  = (int) (__ref._errorimpresora /*int*/ +1);
RDebugUtils.currentLine=8716302;
 //BA.debugLineNum = 8716302;BA.debugLine="If errorImpresora > 1 Then";
if (__ref._errorimpresora /*int*/ >1) { 
RDebugUtils.currentLine=8716303;
 //BA.debugLineNum = 8716303;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
_starter._mac_impresora /*String*/  = "0";
RDebugUtils.currentLine=8716304;
 //BA.debugLineNum = 8716304;BA.debugLine="errorImpresora = 0";
__ref._errorimpresora /*int*/  = (int) (0);
 };
 };
RDebugUtils.currentLine=8716307;
 //BA.debugLineNum = 8716307;BA.debugLine="End Sub";
return "";
}
public String  _printer1_error(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "printer1_error", false))
	 {return ((String) Debug.delegate(ba, "printer1_error", null));}
RDebugUtils.currentLine=8781824;
 //BA.debugLineNum = 8781824;BA.debugLine="Sub Printer1_Error";
RDebugUtils.currentLine=8781825;
 //BA.debugLineNum = 8781825;BA.debugLine="Log(\"error printer\")";
__c.LogImpl("88781825","error printer",0);
RDebugUtils.currentLine=8781826;
 //BA.debugLineNum = 8781826;BA.debugLine="End Sub";
return "";
}
public String  _tar_click(reparto_izca.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=8323072;
 //BA.debugLineNum = 8323072;BA.debugLine="Sub Tar_Click";
RDebugUtils.currentLine=8323074;
 //BA.debugLineNum = 8323074;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=8323075;
 //BA.debugLineNum = 8323075;BA.debugLine="End Sub";
return "";
}
}