package SHARK2.keymon.com.mx;


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, "SHARK2.keymon.com.mx.c_cliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", SHARK2.keymon.com.mx.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.objects.PanelWrapper _p_cliente = null;
public SHARK2.keymon.com.mx.dbrequestmanager _reqmanager = null;
public SHARK2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
public anywheresoftware.b4a.objects.IME _ime = null;
public String _credito_diponible = "";
public anywheresoftware.b4a.gps.GPS _g = null;
public String _ruta = "";
public anywheresoftware.b4a.sql.SQL _skmt = null;
public String _clie_id = "";
public String _sdate = "";
public String _stime = "";
public String _usuario = "";
public String _total_cliente = "";
public String _m_lat = "";
public String _m_lon = "";
public String _m_lat_al = "";
public String _m_lon_al = "";
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 String _cuenta = "";
public String _tipo_venta = "";
public String _mac_impresora = "";
public SHARK2.keymon.com.mx.escposprinter _printer1 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _dd = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = 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 boolean _impresoraconectada = false;
public anywheresoftware.b4a.objects.ButtonWrapper _tels = null;
public anywheresoftware.b4a.objects.LabelWrapper _label10 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label11 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _tar = null;
public int _errorimpresora = 0;
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.sql.SQL.CursorWrapper _s2 = null;
public String _res = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _credi = null;
public anywheresoftware.b4a.objects.ButtonWrapper _hist = null;
public String _monto_compra = "";
public String _meta = "";
public String _meta2 = "";
public String _verifica = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_qr = null;
public anywheresoftware.b4a.objects.ButtonWrapper _bt_qr = null;
public String _codigo = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_mapa = null;
public String _cuantos = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_imp = null;
public com.rootsoft.togglelibrary.ToggleLibrary _toggla = null;
public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null;
public float _pre_act = 0f;
public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _i_compra = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guarda_c = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_venta = null;
public String _almacen = "";
public anywheresoftware.b4a.objects.LabelWrapper _la_gps = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_e_next = null;
public anywheresoftware.b4a.objects.EditTextWrapper _e_res_e = null;
public anywheresoftware.b4a.objects.LabelWrapper _t_tenc = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel2 = null;
public String _contador_e = "";
public String _hr_res1 = "";
public String _hr_res2 = "";
public String _hr_res3 = "";
public String _existe = "";
public String _telefono = "";
public anywheresoftware.b4a.objects.Timer _t1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5 = null;
public String _stay_hh = "";
public String _stay_mi = "";
public String _stay_ss = "";
public anywheresoftware.b4a.objects.LabelWrapper _la_geo = null;
public int _result = 0;
public String _cercavalor = "";
public String _la_ruta = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_like = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_gps = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb_factura = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_cbfactura = null;
public boolean _venimosdeticketsdia = false;
public anywheresoftware.b4a.objects.PanelWrapper _p_abono = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_abono = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_abono = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_abono1 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cxc = null;
public b4a.example3.customlistview _clv_abonos = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_folio = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_saldo = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_montoabonostotal = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _j = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _h = null;
public long _distance = 0L;
public long _distance2 = 0L;
public SHARK2.keymon.com.mx.c_cuestionario _cuest = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ventaabordo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_factura = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_limite = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_montoacredito = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancred = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acred = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_credito = null;
public int _banderaimp = 0;
public String _k1 = "";
public String _k2 = "";
public String _k3 = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_ubicar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_venta_credito = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_act_coords = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_giro = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_atiende = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_atiende = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelatiende = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acepatiende = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_giro = null;
public SHARK2.keymon.com.mx.b4xcombobox _cb_giro = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelgiro = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acepgiro = null;
public String _giros = "";
public b4a.example.dateutils _dateutils = null;
public SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(SHARK2.keymon.com.mx.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=4587520;
 //BA.debugLineNum = 4587520;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=4587521;
 //BA.debugLineNum = 4587521;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=4587522;
 //BA.debugLineNum = 4587522;BA.debugLine="End Sub";
return null;
}
public void  _b_abono_click(SHARK2.keymon.com.mx.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(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _y = null;
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=7864322;
 //BA.debugLineNum = 7864322;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then";
if (true) break;

case 1:
//if
this.state = 28;
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 = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 28;
RDebugUtils.currentLine=7864323;
 //BA.debugLineNum = 7864323;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser mayo";
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 5:
//C
this.state = 6;
RDebugUtils.currentLine=7864325;
 //BA.debugLineNum = 7864325;BA.debugLine="If et_abono.Text <> \"\" Then";
if (true) break;

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

case 8:
//C
this.state = 9;
RDebugUtils.currentLine=7864327;
 //BA.debugLineNum = 7864327;BA.debugLine="Dim k As Cursor = B4XPages.MainPage.skmt.ExecQu";
_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._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=7864328;
 //BA.debugLineNum = 7864328;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=7864329;
 //BA.debugLineNum = 7864329;BA.debugLine="Log(k.GetString(\"CUENTA\"))";
parent.__c.LogImpl("57864329",_k.GetString("CUENTA"),0);
RDebugUtils.currentLine=7864330;
 //BA.debugLineNum = 7864330;BA.debugLine="Dim y As Cursor = B4XPages.MainPage.skmt.ExecQu";
_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._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_k.GetString("CUENTA")})));
RDebugUtils.currentLine=7864331;
 //BA.debugLineNum = 7864331;BA.debugLine="y.position = 0";
_y.setPosition((int) (0));
RDebugUtils.currentLine=7864333;
 //BA.debugLineNum = 7864333;BA.debugLine="If y.RowCount = 0 Then";
if (true) break;

case 9:
//if
this.state = 26;
if (_y.getRowCount()==0) { 
this.state = 11;
}else 
{RDebugUtils.currentLine=7864339;
 //BA.debugLineNum = 7864339;BA.debugLine="Else If et_abono.Text > y.GetString(\"a_abono\")";
if ((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>(double)(Double.parseDouble(_y.GetString("a_abono")))) { 
this.state = 17;
}else 
{RDebugUtils.currentLine=7864345;
 //BA.debugLineNum = 7864345;BA.debugLine="Else If et_abono.Text = y.GetString(\"a_abono\")";
if ((__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals(_y.GetString("a_abono"))) { 
this.state = 23;
}else 
{RDebugUtils.currentLine=7864348;
 //BA.debugLineNum = 7864348;BA.debugLine="Else If et_abono.Text < y.GetString(\"a_abono\")";
if ((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))<(double)(Double.parseDouble(_y.GetString("a_abono")))) { 
this.state = 25;
}}}}
if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=7864334;
 //BA.debugLineNum = 7864334;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar un";
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=7864335;
 //BA.debugLineNum = 7864335;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 = 29;
return;
case 29:
//C
this.state = 12;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=7864336;
 //BA.debugLineNum = 7864336;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

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

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

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

case 17:
//C
this.state = 18;
RDebugUtils.currentLine=7864340;
 //BA.debugLineNum = 7864340;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar un";
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=7864341;
 //BA.debugLineNum = 7864341;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 = 30;
return;
case 30:
//C
this.state = 18;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=7864342;
 //BA.debugLineNum = 7864342;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

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

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

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

case 23:
//C
this.state = 26;
RDebugUtils.currentLine=7864346;
 //BA.debugLineNum = 7864346;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=7864347;
 //BA.debugLineNum = 7864347;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 if (true) break;

case 25:
//C
this.state = 26;
RDebugUtils.currentLine=7864349;
 //BA.debugLineNum = 7864349;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=7864350;
 //BA.debugLineNum = 7864350;BA.debugLine="MsgboxAsync(\"El pago no puede ser menor al mon";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("El pago no puede ser menor al monto capturado."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=7864351;
 //BA.debugLineNum = 7864351;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 if (true) break;

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

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

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

            }
        }
    }
}
public void  _imprime_pagare(SHARK2.keymon.com.mx.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(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
String _notaabono = "";
String _saldopendiente = "";
String[] _fechatabulador = null;
String[] _fechatabulador2 = null;
String _fechatabulador3 = "";
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=8323075;
 //BA.debugLineNum = 8323075;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=8323076;
 //BA.debugLineNum = 8323076;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8323077;
 //BA.debugLineNum = 8323077;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=8323078;
 //BA.debugLineNum = 8323078;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=8323079;
 //BA.debugLineNum = 8323079;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=8323080;
 //BA.debugLineNum = 8323080;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=8323081;
 //BA.debugLineNum = 8323081;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=8323082;
 //BA.debugLineNum = 8323082;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8323084;
 //BA.debugLineNum = 8323084;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
RDebugUtils.currentLine=8323086;
 //BA.debugLineNum = 8323086;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=8323087;
 //BA.debugLineNum = 8323087;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=8323088;
 //BA.debugLineNum = 8323088;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=8323090;
 //BA.debugLineNum = 8323090;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=8323091;
 //BA.debugLineNum = 8323091;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=8323092;
 //BA.debugLineNum = 8323092;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=8323093;
 //BA.debugLineNum = 8323093;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 55;
return;
case 55:
//C
this.state = 7;
;
RDebugUtils.currentLine=8323094;
 //BA.debugLineNum = 8323094;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=8323095;
 //BA.debugLineNum = 8323095;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 12:
//C
this.state = 13;
;
RDebugUtils.currentLine=8323096;
 //BA.debugLineNum = 8323096;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=8323098;
 //BA.debugLineNum = 8323098;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (500));
this.state = 56;
return;
case 56:
//C
this.state = 38;
;
RDebugUtils.currentLine=8323099;
 //BA.debugLineNum = 8323099;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=8323102;
 //BA.debugLineNum = 8323102;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=8323103;
 //BA.debugLineNum = 8323103;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=8323104;
 //BA.debugLineNum = 8323104;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._isconnected /*boolean*/ (null))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=8323105;
 //BA.debugLineNum = 8323105;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 57;
return;
case 57:
//C
this.state = 25;
;
RDebugUtils.currentLine=8323106;
 //BA.debugLineNum = 8323106;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=8323107;
 //BA.debugLineNum = 8323107;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 30:
//C
this.state = 31;
;
RDebugUtils.currentLine=8323108;
 //BA.debugLineNum = 8323108;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=8323110;
 //BA.debugLineNum = 8323110;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (500));
this.state = 58;
return;
case 58:
//C
this.state = 38;
;
RDebugUtils.currentLine=8323111;
 //BA.debugLineNum = 8323111;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=8323114;
 //BA.debugLineNum = 8323114;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=8323115;
 //BA.debugLineNum = 8323115;BA.debugLine="ESPACIO = 22";
__ref._espacio /*int*/  = (int) (22);
RDebugUtils.currentLine=8323116;
 //BA.debugLineNum = 8323116;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=8323118;
 //BA.debugLineNum = 8323118;BA.debugLine="Printer1.WriteString(\"SHARK2 Distribuciones\" &  e";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"SHARK2 Distribuciones"+_elinefeed);
RDebugUtils.currentLine=8323120;
 //BA.debugLineNum = 8323120;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +_elinefeed);
RDebugUtils.currentLine=8323121;
 //BA.debugLineNum = 8323121;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +_elinefeed);
RDebugUtils.currentLine=8323122;
 //BA.debugLineNum = 8323122;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eL";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +_elinefeed);
RDebugUtils.currentLine=8323123;
 //BA.debugLineNum = 8323123;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=8323124;
 //BA.debugLineNum = 8323124;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=8323125;
 //BA.debugLineNum = 8323125;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=8323126;
 //BA.debugLineNum = 8323126;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=8323127;
 //BA.debugLineNum = 8323127;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323128;
 //BA.debugLineNum = 8323128;BA.debugLine="Dim notaabono As String";
_notaabono = "";
RDebugUtils.currentLine=8323129;
 //BA.debugLineNum = 8323129;BA.debugLine="Dim saldopendiente As String";
_saldopendiente = "";
RDebugUtils.currentLine=8323130;
 //BA.debugLineNum = 8323130;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NOTA, DIA_VEN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NOTA, DIA_VENCIMIENTO, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8323131;
 //BA.debugLineNum = 8323131;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=8323132;
 //BA.debugLineNum = 8323132;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8323134;
 //BA.debugLineNum = 8323134;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = parent.__c.Regex.Split(" ",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DIA_VENCIMIENTO"));
RDebugUtils.currentLine=8323135;
 //BA.debugLineNum = 8323135;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"";
_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
RDebugUtils.currentLine=8323136;
 //BA.debugLineNum = 8323136;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2";
_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
RDebugUtils.currentLine=8323138;
 //BA.debugLineNum = 8323138;BA.debugLine="notaabono = c.GetString(\"NOTA\")";
_notaabono = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA");
RDebugUtils.currentLine=8323139;
 //BA.debugLineNum = 8323139;BA.debugLine="saldopendiente = c.GetString(\"SALDO_PENDIENTE\")";
_saldopendiente = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE");
 if (true) break;

case 42:
//C
this.state = 43;
;
RDebugUtils.currentLine=8323141;
 //BA.debugLineNum = 8323141;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8323148;
 //BA.debugLineNum = 8323148;BA.debugLine="Log(notaabono)";
parent.__c.LogImpl("58323148",_notaabono,0);
RDebugUtils.currentLine=8323149;
 //BA.debugLineNum = 8323149;BA.debugLine="Log(et_abono.Text)";
parent.__c.LogImpl("58323149",__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),0);
RDebugUtils.currentLine=8323150;
 //BA.debugLineNum = 8323150;BA.debugLine="Printer1.WriteString(\"Comprobante de pago del pa";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Comprobante de pago del pagare"+_elinefeed);
RDebugUtils.currentLine=8323152;
 //BA.debugLineNum = 8323152;BA.debugLine="Printer1.WriteString(\"Folio:  \" & notaabono &  e";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Folio:  "+_notaabono+_elinefeed);
RDebugUtils.currentLine=8323154;
 //BA.debugLineNum = 8323154;BA.debugLine="Printer1.WriteString(\"Monto deuda:  \" & (NumberF";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Monto deuda:  "+(parent.__c.NumberFormat((double)(Double.parseDouble(_saldopendiente)),(int) (0),(int) (2)))+_elinefeed);
RDebugUtils.currentLine=8323156;
 //BA.debugLineNum = 8323156;BA.debugLine="Printer1.WriteString(\"Monto abono:  \" & (NumberF";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Monto abono:  "+(parent.__c.NumberFormat((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())),(int) (0),(int) (2)))+_elinefeed);
RDebugUtils.currentLine=8323158;
 //BA.debugLineNum = 8323158;BA.debugLine="Printer1.WriteString(\"Restante: \" &(NumberFormat";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Restante: "+(parent.__c.NumberFormat((double)(Double.parseDouble(_saldopendiente))-(double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())),(int) (0),(int) (2)))+_elinefeed);
RDebugUtils.currentLine=8323160;
 //BA.debugLineNum = 8323160;BA.debugLine="Printer1.WriteString(\"Fecha Abono: \" & sDate &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Fecha Abono: "+__ref._sdate /*String*/ +_elinefeed);
RDebugUtils.currentLine=8323162;
 //BA.debugLineNum = 8323162;BA.debugLine="Printer1.WriteString(\"Fecha vencimiento: \" & fec";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Fecha vencimiento: "+_fechatabulador3+_elinefeed);
RDebugUtils.currentLine=8323164;
 //BA.debugLineNum = 8323164;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323165;
 //BA.debugLineNum = 8323165;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323166;
 //BA.debugLineNum = 8323166;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323167;
 //BA.debugLineNum = 8323167;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323168;
 //BA.debugLineNum = 8323168;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323169;
 //BA.debugLineNum = 8323169;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323170;
 //BA.debugLineNum = 8323170;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323172;
 //BA.debugLineNum = 8323172;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=8323173;
 //BA.debugLineNum = 8323173;BA.debugLine="Printer1.WriteString(\"-------------FIRMA--------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"-------------FIRMA------------"+_elinefeed);
RDebugUtils.currentLine=8323175;
 //BA.debugLineNum = 8323175;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323176;
 //BA.debugLineNum = 8323176;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323177;
 //BA.debugLineNum = 8323177;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=8323178;
 //BA.debugLineNum = 8323178;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000));
this.state = 59;
return;
case 59:
//C
this.state = 43;
;
RDebugUtils.currentLine=8323179;
 //BA.debugLineNum = 8323179;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=8323181;
 //BA.debugLineNum = 8323181;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=8323184;
 //BA.debugLineNum = 8323184;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=8323185;
 //BA.debugLineNum = 8323185;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 = 60;
return;
case 60:
//C
this.state = 43;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=8323186;
 //BA.debugLineNum = 8323186;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 43:
//if
this.state = 54;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 45;
}else {
this.state = 47;
}if (true) break;

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

case 47:
//C
this.state = 48;
RDebugUtils.currentLine=8323189;
 //BA.debugLineNum = 8323189;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
__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._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=8323190;
 //BA.debugLineNum = 8323190;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8323191;
 //BA.debugLineNum = 8323191;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
parent.__c.LogImpl("58323191",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=8323193;
 //BA.debugLineNum = 8323193;BA.debugLine="j = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT a_";
__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._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._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=8323194;
 //BA.debugLineNum = 8323194;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8323195;
 //BA.debugLineNum = 8323195;BA.debugLine="If j.RowCount = 0 Then";
if (true) break;

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

case 50:
//C
this.state = 53;
RDebugUtils.currentLine=8323196;
 //BA.debugLineNum = 8323196;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=8323198;
 //BA.debugLineNum = 8323198;BA.debugLine="skmt.ExecNonQuery($\"INSERT INTO ABONOS(a_usuari";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha) 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()))))+"')"));
RDebugUtils.currentLine=8323199;
 //BA.debugLineNum = 8323199;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
RDebugUtils.currentLine=8323200;
 //BA.debugLineNum = 8323200;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=8323201;
 //BA.debugLineNum = 8323201;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 if (true) break;

case 52:
//C
this.state = 53;
RDebugUtils.currentLine=8323203;
 //BA.debugLineNum = 8323203;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=8323206;
 //BA.debugLineNum = 8323206;BA.debugLine="skmt.ExecNonQuery($\"UPDATE ABONOS set a_abono =";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE ABONOS set a_abono = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"' where  a_usuario = '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"' and a_ruta = '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"' and  a_cliente In (select cuenta from cuentaa)"));
RDebugUtils.currentLine=8323207;
 //BA.debugLineNum = 8323207;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
RDebugUtils.currentLine=8323208;
 //BA.debugLineNum = 8323208;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=8323209;
 //BA.debugLineNum = 8323209;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 if (true) break;

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

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

            }
        }
    }
}
public String  _b_abono1_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_abono1_click", false))
	 {return ((String) Debug.delegate(ba, "b_abono1_click", null));}
RDebugUtils.currentLine=7995392;
 //BA.debugLineNum = 7995392;BA.debugLine="Private Sub b_abono1_Click";
RDebugUtils.currentLine=7995393;
 //BA.debugLineNum = 7995393;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=7995394;
 //BA.debugLineNum = 7995394;BA.debugLine="End Sub";
return "";
}
public String  _b_acepatiende_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_acepatiende_click", false))
	 {return ((String) Debug.delegate(ba, "b_acepatiende_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
RDebugUtils.currentLine=8650752;
 //BA.debugLineNum = 8650752;BA.debugLine="Private Sub b_acepatiende_Click";
RDebugUtils.currentLine=8650753;
 //BA.debugLineNum = 8650753;BA.debugLine="If et_atiende.Text <> \"\" Then";
if ((__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=8650755;
 //BA.debugLineNum = 8650755;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from ATIENDE where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8650757;
 //BA.debugLineNum = 8650757;BA.debugLine="If coord.RowCount = 0 Then";
if (_coord.getRowCount()==0) { 
RDebugUtils.currentLine=8650758;
 //BA.debugLineNum = 8650758;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ATIENDE(ATIENDE";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ATIENDE(ATIENDE,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),_subs._traecliente /*String*/ (ba)}));
RDebugUtils.currentLine=8650759;
 //BA.debugLineNum = 8650759;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
RDebugUtils.currentLine=8650760;
 //BA.debugLineNum = 8650760;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=8650761;
 //BA.debugLineNum = 8650761;BA.debugLine="l_atiende.Text = et_atiende.Text";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()));
RDebugUtils.currentLine=8650762;
 //BA.debugLineNum = 8650762;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=8650763;
 //BA.debugLineNum = 8650763;BA.debugLine="p_atiende.Visible = False";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8650764;
 //BA.debugLineNum = 8650764;BA.debugLine="et_atiende.Text = \"\"";
__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 }else {
RDebugUtils.currentLine=8650766;
 //BA.debugLineNum = 8650766;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE ATIENDE SET ATIENDE";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE ATIENDE SET ATIENDE = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}));
RDebugUtils.currentLine=8650767;
 //BA.debugLineNum = 8650767;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
RDebugUtils.currentLine=8650768;
 //BA.debugLineNum = 8650768;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=8650769;
 //BA.debugLineNum = 8650769;BA.debugLine="l_atiende.Text = et_atiende.Text";
__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()));
RDebugUtils.currentLine=8650770;
 //BA.debugLineNum = 8650770;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=8650771;
 //BA.debugLineNum = 8650771;BA.debugLine="p_atiende.Visible = False";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8650772;
 //BA.debugLineNum = 8650772;BA.debugLine="et_atiende.Text = \"\"";
__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 };
 }else {
RDebugUtils.currentLine=8650777;
 //BA.debugLineNum = 8650777;BA.debugLine="MsgboxAsync(\"Por favor captura un nombre valido.";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un nombre valido."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=8650779;
 //BA.debugLineNum = 8650779;BA.debugLine="End Sub";
return "";
}
public String  _b_acepgiro_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_acepgiro_click", false))
	 {return ((String) Debug.delegate(ba, "b_acepgiro_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
RDebugUtils.currentLine=8912896;
 //BA.debugLineNum = 8912896;BA.debugLine="Private Sub b_acepgiro_Click";
RDebugUtils.currentLine=8912897;
 //BA.debugLineNum = 8912897;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro.Se";
if ((__ref._giros /*String*/ ).equals("SELECCIONA UNA OPCIÓN") == false || (__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)).equals("SELECCIONA UNA OPCIÓN") == false) { 
RDebugUtils.currentLine=8912898;
 //BA.debugLineNum = 8912898;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from GIROS_ACTUAL where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8912900;
 //BA.debugLineNum = 8912900;BA.debugLine="If coord.RowCount = 0 Then";
if (_coord.getRowCount()==0) { 
RDebugUtils.currentLine=8912901;
 //BA.debugLineNum = 8912901;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GIROS_ACTUAL(GI";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO GIROS_ACTUAL(GIRO,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._giros /*String*/ ,_subs._traecliente /*String*/ (ba)}));
RDebugUtils.currentLine=8912902;
 //BA.debugLineNum = 8912902;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set CAT_CL_GIRO = '"+__c.SmartStringFormatter("",(Object)(__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
RDebugUtils.currentLine=8912903;
 //BA.debugLineNum = 8912903;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=8912904;
 //BA.debugLineNum = 8912904;BA.debugLine="l_giro.Text = giros";
__ref._l_giro /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._giros /*String*/ ));
RDebugUtils.currentLine=8912905;
 //BA.debugLineNum = 8912905;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=8912906;
 //BA.debugLineNum = 8912906;BA.debugLine="p_giro.Visible = False";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8912907;
 //BA.debugLineNum = 8912907;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
__ref._giros /*String*/  = "SELECCIONA UNA OPCIÓN";
 }else {
RDebugUtils.currentLine=8912909;
 //BA.debugLineNum = 8912909;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GIROS_ACTUAL SET GIR";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GIROS_ACTUAL SET GIRO = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._giros /*String*/ }));
RDebugUtils.currentLine=8912910;
 //BA.debugLineNum = 8912910;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set CAT_CL_GIRO = '"+__c.SmartStringFormatter("",(Object)(__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
RDebugUtils.currentLine=8912911;
 //BA.debugLineNum = 8912911;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=8912912;
 //BA.debugLineNum = 8912912;BA.debugLine="l_giro.Text = giros";
__ref._l_giro /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._giros /*String*/ ));
RDebugUtils.currentLine=8912913;
 //BA.debugLineNum = 8912913;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=8912914;
 //BA.debugLineNum = 8912914;BA.debugLine="p_giro.Visible = False";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8912915;
 //BA.debugLineNum = 8912915;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
__ref._giros /*String*/  = "SELECCIONA UNA OPCIÓN";
 };
 }else {
RDebugUtils.currentLine=8912918;
 //BA.debugLineNum = 8912918;BA.debugLine="MsgboxAsync(\"Por favor selecciona un giro valido";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor selecciona un giro valido."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=8912920;
 //BA.debugLineNum = 8912920;BA.debugLine="End Sub";
return "";
}
public String  _b_acred_click(SHARK2.keymon.com.mx.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 _limitcred = null;
RDebugUtils.currentLine=5373952;
 //BA.debugLineNum = 5373952;BA.debugLine="Private Sub b_acred_Click";
RDebugUtils.currentLine=5373953;
 //BA.debugLineNum = 5373953;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=5373954;
 //BA.debugLineNum = 5373954;BA.debugLine="c2.Position=0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5373955;
 //BA.debugLineNum = 5373955;BA.debugLine="usuario = c2.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=5373956;
 //BA.debugLineNum = 5373956;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5373957;
 //BA.debugLineNum = 5373957;BA.debugLine="Dim limitcred As Cursor";
_limitcred = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=5373958;
 //BA.debugLineNum = 5373958;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=5373959;
 //BA.debugLineNum = 5373959;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=5373960;
 //BA.debugLineNum = 5373960;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=5373961;
 //BA.debugLineNum = 5373961;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=5373962;
 //BA.debugLineNum = 5373962;BA.debugLine="limitcred = B4XPages.MainPage.skmt.ExecQuery(\"SEL";
_limitcred = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_LIMITECREDITO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT CAT_CL_LIMITECREDITO FROM kmt_info2 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=5373963;
 //BA.debugLineNum = 5373963;BA.debugLine="limitcred.Position = 0";
_limitcred.setPosition((int) (0));
RDebugUtils.currentLine=5373964;
 //BA.debugLineNum = 5373964;BA.debugLine="l_limite.Text = \"Limite de credito: $\" & limitcre";
__ref._l_limite /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Limite de credito: $"+_limitcred.GetString("CAT_CL_LIMITECREDITO")));
RDebugUtils.currentLine=5373965;
 //BA.debugLineNum = 5373965;BA.debugLine="If Subs.traeTotalClientepreventaparacredito >=  l";
if (_subs._traetotalclientepreventaparacredito /*double*/ (ba)>=(double)(Double.parseDouble(_limitcred.GetString("CAT_CL_LIMITECREDITO")))) { 
RDebugUtils.currentLine=5373967;
 //BA.debugLineNum = 5373967;BA.debugLine="If et_montoacredito.Text > limitcred.GetString(\"";
if ((double)(Double.parseDouble(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>(double)(Double.parseDouble(_limitcred.GetString("CAT_CL_LIMITECREDITO")))) { 
RDebugUtils.currentLine=5373968;
 //BA.debugLineNum = 5373968;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser m";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor al limite del credito"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=5373969;
 //BA.debugLineNum = 5373969;BA.debugLine="et_montoacredito.Text = limitcred.GetString(\"CA";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_limitcred.GetString("CAT_CL_LIMITECREDITO")));
 }else {
RDebugUtils.currentLine=5373971;
 //BA.debugLineNum = 5373971;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CO";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=5373972;
 //BA.debugLineNum = 5373972;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5373973;
 //BA.debugLineNum = 5373973;BA.debugLine="If c.GetString(\"REGISTRADO\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REGISTRADO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=5373975;
 //BA.debugLineNum = 5373975;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ ),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}));
RDebugUtils.currentLine=5373976;
 //BA.debugLineNum = 5373976;BA.debugLine="Log(\"Inserto: \" &\" Almacen: \"& ALMACEN &\" Ruta";
__c.LogImpl("55373976","Inserto: "+" Almacen: "+__ref._almacen /*String*/ +" Ruta: "+__ref._la_ruta /*String*/ +" Fecha: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Captura: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+" Monto: "+__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+" Usuario: "+__ref._usuario /*String*/ +" Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=5373977;
 //BA.debugLineNum = 5373977;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5373978;
 //BA.debugLineNum = 5373978;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=5373981;
 //BA.debugLineNum = 5373981;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=5373982;
 //BA.debugLineNum = 5373982;BA.debugLine="Log(\"Actualizo: \" &\" Almacen: \"& ALMACEN &\" Ru";
__c.LogImpl("55373982","Actualizo: "+" Almacen: "+__ref._almacen /*String*/ +" Ruta: "+__ref._la_ruta /*String*/ +" Fecha: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Captura: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+" Monto: "+__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+" Usuario: "+__ref._usuario /*String*/ +" Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=5373983;
 //BA.debugLineNum = 5373983;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5373984;
 //BA.debugLineNum = 5373984;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
 }else 
{RDebugUtils.currentLine=5373987;
 //BA.debugLineNum = 5373987;BA.debugLine="Else If Subs.traeTotalClientepreventaparacredito";
if (_subs._traetotalclientepreventaparacredito /*double*/ (ba)<(double)(Double.parseDouble(_limitcred.GetString("CAT_CL_LIMITECREDITO")))) { 
RDebugUtils.currentLine=5373988;
 //BA.debugLineNum = 5373988;BA.debugLine="If et_montoacredito.Text > Subs.traeTotalCliente";
if ((double)(Double.parseDouble(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>_subs._traetotalclientepreventaparacredito /*double*/ (ba)) { 
RDebugUtils.currentLine=5373989;
 //BA.debugLineNum = 5373989;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser m";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor a la preventa registrada"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=5373990;
 //BA.debugLineNum = 5373990;BA.debugLine="et_montoacredito.Text = Subs.traeTotalClientepr";
__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_subs._traetotalclientepreventaparacredito /*double*/ (ba)));
 }else {
RDebugUtils.currentLine=5373992;
 //BA.debugLineNum = 5373992;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CO";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=5373993;
 //BA.debugLineNum = 5373993;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5373994;
 //BA.debugLineNum = 5373994;BA.debugLine="If c.GetString(\"REGISTRADO\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REGISTRADO")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=5373996;
 //BA.debugLineNum = 5373996;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ ),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}));
RDebugUtils.currentLine=5373997;
 //BA.debugLineNum = 5373997;BA.debugLine="Log(\"Aqui hay informacion variada e inserte: \"";
__c.LogImpl("55373997","Aqui hay informacion variada e inserte: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())+"<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=5373998;
 //BA.debugLineNum = 5373998;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5373999;
 //BA.debugLineNum = 5373999;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=5374002;
 //BA.debugLineNum = 5374002;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=5374003;
 //BA.debugLineNum = 5374003;BA.debugLine="Log(\"Aqui hay informacion variada y acualice:";
__c.LogImpl("55374003","Aqui hay informacion variada y acualice: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())+"<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=5374004;
 //BA.debugLineNum = 5374004;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5374005;
 //BA.debugLineNum = 5374005;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
 }}
;
RDebugUtils.currentLine=5374009;
 //BA.debugLineNum = 5374009;BA.debugLine="limitcred.Close";
_limitcred.Close();
RDebugUtils.currentLine=5374010;
 //BA.debugLineNum = 5374010;BA.debugLine="End Sub";
return "";
}
public String  _guardaventa(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "guardaventa", false))
	 {return ((String) Debug.delegate(ba, "guardaventa", null));}
RDebugUtils.currentLine=5505024;
 //BA.debugLineNum = 5505024;BA.debugLine="Sub GuardaVenta";
RDebugUtils.currentLine=5505025;
 //BA.debugLineNum = 5505025;BA.debugLine="If pre_act <> Starter.pre_viejo Then";
if (__ref._pre_act /*float*/ !=_starter._pre_viejo /*float*/ ) { 
RDebugUtils.currentLine=5505026;
 //BA.debugLineNum = 5505026;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
RDebugUtils.currentLine=5505027;
 //BA.debugLineNum = 5505027;BA.debugLine="Guardar.Enabled = False";
__ref._guardar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505028;
 //BA.debugLineNum = 5505028;BA.debugLine="gest.Enabled = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505029;
 //BA.debugLineNum = 5505029;BA.debugLine="b_cxc.Enabled = False";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505030;
 //BA.debugLineNum = 5505030;BA.debugLine="Tar.Enabled = False";
__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505031;
 //BA.debugLineNum = 5505031;BA.debugLine="Tels.Enabled = False";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505032;
 //BA.debugLineNum = 5505032;BA.debugLine="b_ventaabordo.Enabled = False";
__ref._b_ventaabordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505033;
 //BA.debugLineNum = 5505033;BA.debugLine="HIST.Enabled = False";
__ref._hist /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5505034;
 //BA.debugLineNum = 5505034;BA.debugLine="banderaimp = 1";
__ref._banderaimp /*int*/  = (int) (1);
 }else 
{RDebugUtils.currentLine=5505035;
 //BA.debugLineNum = 5505035;BA.debugLine="Else If pre_act = Starter.pre_viejo Then";
if (__ref._pre_act /*float*/ ==_starter._pre_viejo /*float*/ ) { 
RDebugUtils.currentLine=5505036;
 //BA.debugLineNum = 5505036;BA.debugLine="If banderaimp = 1 Then";
if (__ref._banderaimp /*int*/ ==1) { 
RDebugUtils.currentLine=5505037;
 //BA.debugLineNum = 5505037;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
 }else {
RDebugUtils.currentLine=5505039;
 //BA.debugLineNum = 5505039;BA.debugLine="GUADAVENTA2";
__ref._guadaventa2 /*String*/ (null);
 };
 }}
;
RDebugUtils.currentLine=5505042;
 //BA.debugLineNum = 5505042;BA.debugLine="End Sub";
return "";
}
public String  _b_act_coords_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_act_coords_click", false))
	 {return ((String) Debug.delegate(ba, "b_act_coords_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
RDebugUtils.currentLine=8519680;
 //BA.debugLineNum = 8519680;BA.debugLine="Private Sub b_act_coords_Click";
RDebugUtils.currentLine=8519681;
 //BA.debugLineNum = 8519681;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT IFNU";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(CAT_CL_BCOORDENADAS,0) AS CAT_CL_BCOORDENADAS from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8519682;
 //BA.debugLineNum = 8519682;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8519683;
 //BA.debugLineNum = 8519683;BA.debugLine="Log(h.GetInt(\"CAT_CL_BCOORDENADAS\"))";
__c.LogImpl("58519683",BA.NumberToString(__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")),0);
RDebugUtils.currentLine=8519684;
 //BA.debugLineNum = 8519684;BA.debugLine="If h.GetInt(\"CAT_CL_BCOORDENADAS\") <= 2 Then";
if (__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")<=2) { 
RDebugUtils.currentLine=8519685;
 //BA.debugLineNum = 8519685;BA.debugLine="Log(B4XPages.MainPage.lon_gps & \" , \" & B4XPages";
__c.LogImpl("58519685",_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ +" , "+_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,0);
RDebugUtils.currentLine=8519687;
 //BA.debugLineNum = 8519687;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from COORDENADAS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=8519689;
 //BA.debugLineNum = 8519689;BA.debugLine="If coord.RowCount = 0 Then";
if (_coord.getRowCount()==0) { 
RDebugUtils.currentLine=8519690;
 //BA.debugLineNum = 8519690;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO COORDENADAS(LAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO COORDENADAS(LAT,LONG,CLIENTE,CANTIDAD) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_subs._traecliente /*String*/ (ba),BA.NumberToString((__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")+1))}));
RDebugUtils.currentLine=8519691;
 //BA.debugLineNum = 8519691;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set  CAT_CL_LONG = ?, CAT_CL_LAT =?, CAT_CL_BCOORDENADAS = ? where CAT_CL_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)((__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")+1))}));
RDebugUtils.currentLine=8519692;
 //BA.debugLineNum = 8519692;BA.debugLine="MsgboxAsync(\"Coordenadas actualizadas.\",\"Atenci";
__c.MsgboxAsync(BA.ObjectToCharSequence("Coordenadas actualizadas."),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=8519694;
 //BA.debugLineNum = 8519694;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE COORDENADAS SET LAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE COORDENADAS SET LAT = ?, LONG = ?,CANTIDAD = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,BA.NumberToString((__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")+1))}));
RDebugUtils.currentLine=8519695;
 //BA.debugLineNum = 8519695;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set  CAT_CL_LONG = ?, CAT_CL_LAT =?, CAT_CL_BCOORDENADAS = ? where CAT_CL_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)((__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_CL_BCOORDENADAS")+1))}));
RDebugUtils.currentLine=8519696;
 //BA.debugLineNum = 8519696;BA.debugLine="MsgboxAsync(\"Coordenadas actualizadas.\",\"Atenci";
__c.MsgboxAsync(BA.ObjectToCharSequence("Coordenadas actualizadas."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=8519701;
 //BA.debugLineNum = 8519701;BA.debugLine="MsgboxAsync(\"Las coordenadas de este cliente ya";
__c.MsgboxAsync(BA.ObjectToCharSequence("Las coordenadas de este cliente ya fueron actualizadas."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=8519703;
 //BA.debugLineNum = 8519703;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelar_click(SHARK2.keymon.com.mx.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=7929856;
 //BA.debugLineNum = 7929856;BA.debugLine="Private Sub b_cancelar_Click";
RDebugUtils.currentLine=7929857;
 //BA.debugLineNum = 7929857;BA.debugLine="et_abono.Text = \"\"";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=7929858;
 //BA.debugLineNum = 7929858;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=7929859;
 //BA.debugLineNum = 7929859;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=7929860;
 //BA.debugLineNum = 7929860;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelatiende_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cancelatiende_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancelatiende_click", null));}
RDebugUtils.currentLine=8716288;
 //BA.debugLineNum = 8716288;BA.debugLine="Private Sub b_cancelatiende_Click";
RDebugUtils.currentLine=8716289;
 //BA.debugLineNum = 8716289;BA.debugLine="p_atiende.Visible = False";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8716290;
 //BA.debugLineNum = 8716290;BA.debugLine="et_atiende.Text = \"\"";
__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=8716291;
 //BA.debugLineNum = 8716291;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=8716292;
 //BA.debugLineNum = 8716292;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelgiro_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cancelgiro_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancelgiro_click", null));}
RDebugUtils.currentLine=8978432;
 //BA.debugLineNum = 8978432;BA.debugLine="Private Sub b_cancelgiro_Click";
RDebugUtils.currentLine=8978433;
 //BA.debugLineNum = 8978433;BA.debugLine="p_giro.Visible = False";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=8978434;
 //BA.debugLineNum = 8978434;BA.debugLine="End Sub";
return "";
}
public String  _b_cancred_click(SHARK2.keymon.com.mx.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=5439488;
 //BA.debugLineNum = 5439488;BA.debugLine="Private Sub b_cancred_Click";
RDebugUtils.currentLine=5439489;
 //BA.debugLineNum = 5439489;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5439490;
 //BA.debugLineNum = 5439490;BA.debugLine="End Sub";
return "";
}
public String  _b_cxc_click(SHARK2.keymon.com.mx.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));}
String _total = "";
int _i = 0;
RDebugUtils.currentLine=8060928;
 //BA.debugLineNum = 8060928;BA.debugLine="Private Sub b_cxc_Click";
RDebugUtils.currentLine=8060930;
 //BA.debugLineNum = 8060930;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUEN";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
RDebugUtils.currentLine=8060931;
 //BA.debugLineNum = 8060931;BA.debugLine="h.Position = 0";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8060932;
 //BA.debugLineNum = 8060932;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
__c.LogImpl("58060932",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0);
RDebugUtils.currentLine=8060933;
 //BA.debugLineNum = 8060933;BA.debugLine="j = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT a_a";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._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=8060934;
 //BA.debugLineNum = 8060934;BA.debugLine="j.position = 0";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8060935;
 //BA.debugLineNum = 8060935;BA.debugLine="Log(j.RowCount)";
__c.LogImpl("58060935",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=8060936;
 //BA.debugLineNum = 8060936;BA.debugLine="If j.RowCount = 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=8060938;
 //BA.debugLineNum = 8060938;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=8060939;
 //BA.debugLineNum = 8060939;BA.debugLine="Dim total As String = 0";
_total = BA.NumberToString(0);
RDebugUtils.currentLine=8060940;
 //BA.debugLineNum = 8060940;BA.debugLine="f = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=8060941;
 //BA.debugLineNum = 8060941;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8060943;
 //BA.debugLineNum = 8060943;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT NO";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=8060944;
 //BA.debugLineNum = 8060944;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=8060945;
 //BA.debugLineNum = 8060945;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step14 = 1;
final int limit14 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit14 ;_i = _i + step14 ) {
RDebugUtils.currentLine=8060946;
 //BA.debugLineNum = 8060946;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8060947;
 //BA.debugLineNum = 8060947;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=8060948;
 //BA.debugLineNum = 8060948;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("58060948",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=8060949;
 //BA.debugLineNum = 8060949;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("58060949",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=8060950;
 //BA.debugLineNum = 8060950;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"))));
RDebugUtils.currentLine=8060951;
 //BA.debugLineNum = 8060951;BA.debugLine="Log(total)";
__c.LogImpl("58060951",_total,0);
 }
};
RDebugUtils.currentLine=8060953;
 //BA.debugLineNum = 8060953;BA.debugLine="l_montoabonostotal.Text = total";
__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_total));
RDebugUtils.currentLine=8060954;
 //BA.debugLineNum = 8060954;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8060955;
 //BA.debugLineNum = 8060955;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=8060957;
 //BA.debugLineNum = 8060957;BA.debugLine="Else If j.RowCount > 0 Then";
if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8060958;
 //BA.debugLineNum = 8060958;BA.debugLine="p_abono.Visible = True";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=8060959;
 //BA.debugLineNum = 8060959;BA.debugLine="et_abono.text = j.GetString(\"a_abono\")";
__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")));
RDebugUtils.currentLine=8060960;
 //BA.debugLineNum = 8060960;BA.debugLine="Dim total As String = 0";
_total = BA.NumberToString(0);
RDebugUtils.currentLine=8060961;
 //BA.debugLineNum = 8060961;BA.debugLine="f = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=8060962;
 //BA.debugLineNum = 8060962;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8060964;
 //BA.debugLineNum = 8060964;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT NO";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")})));
RDebugUtils.currentLine=8060965;
 //BA.debugLineNum = 8060965;BA.debugLine="clv_abonos.Clear";
__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=8060966;
 //BA.debugLineNum = 8060966;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step33 = 1;
final int limit33 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit33 ;_i = _i + step33 ) {
RDebugUtils.currentLine=8060967;
 //BA.debugLineNum = 8060967;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8060968;
 //BA.debugLineNum = 8060968;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=8060969;
 //BA.debugLineNum = 8060969;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("58060969",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0);
RDebugUtils.currentLine=8060970;
 //BA.debugLineNum = 8060970;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("58060970",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=8060971;
 //BA.debugLineNum = 8060971;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"))));
RDebugUtils.currentLine=8060972;
 //BA.debugLineNum = 8060972;BA.debugLine="Log(total)";
__c.LogImpl("58060972",_total,0);
 }
};
RDebugUtils.currentLine=8060974;
 //BA.debugLineNum = 8060974;BA.debugLine="l_montoabonostotal.Text = total";
__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_total));
RDebugUtils.currentLine=8060975;
 //BA.debugLineNum = 8060975;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8060976;
 //BA.debugLineNum = 8060976;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=8060979;
 //BA.debugLineNum = 8060979;BA.debugLine="h.Close";
__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8060980;
 //BA.debugLineNum = 8060980;BA.debugLine="j.Close";
__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8060983;
 //BA.debugLineNum = 8060983;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(SHARK2.keymon.com.mx.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=8126464;
 //BA.debugLineNum = 8126464;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
RDebugUtils.currentLine=8126465;
 //BA.debugLineNum = 8126465;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=8126466;
 //BA.debugLineNum = 8126466;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=8126467;
 //BA.debugLineNum = 8126467;BA.debugLine="p.LoadLayout(\"folioabono\")";
_p.LoadLayout("folioabono",ba);
RDebugUtils.currentLine=8126468;
 //BA.debugLineNum = 8126468;BA.debugLine="p.Height= 32dip";
_p.setHeight(__c.DipToCurrent((int) (32)));
RDebugUtils.currentLine=8126469;
 //BA.debugLineNum = 8126469;BA.debugLine="p.Width = 80dip";
_p.setWidth(__c.DipToCurrent((int) (80)));
RDebugUtils.currentLine=8126471;
 //BA.debugLineNum = 8126471;BA.debugLine="l_folio.Text = mostrar";
__ref._l_folio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar));
RDebugUtils.currentLine=8126472;
 //BA.debugLineNum = 8126472;BA.debugLine="l_saldo.Text = mostrar1";
__ref._l_saldo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar1));
RDebugUtils.currentLine=8126475;
 //BA.debugLineNum = 8126475;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=8126476;
 //BA.debugLineNum = 8126476;BA.debugLine="End Sub";
return null;
}
public String  _b_cxc_longclick(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_cxc_longclick", false))
	 {return ((String) Debug.delegate(ba, "b_cxc_longclick", null));}
RDebugUtils.currentLine=8388608;
 //BA.debugLineNum = 8388608;BA.debugLine="Private Sub b_cxc_LongClick";
RDebugUtils.currentLine=8388610;
 //BA.debugLineNum = 8388610;BA.debugLine="End Sub";
return "";
}
public String  _b_e_next_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_e_next_click", false))
	 {return ((String) Debug.delegate(ba, "b_e_next_click", null));}
RDebugUtils.currentLine=6946816;
 //BA.debugLineNum = 6946816;BA.debugLine="Sub B_E_NEXT_Click";
RDebugUtils.currentLine=6946817;
 //BA.debugLineNum = 6946817;BA.debugLine="If E_RES_E.Text <> \"\" Then";
if ((__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=6946818;
 //BA.debugLineNum = 6946818;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)("DONDE")}));
RDebugUtils.currentLine=6946819;
 //BA.debugLineNum = 6946819;BA.debugLine="Panel2.Visible = False";
__ref._panel2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6946820;
 //BA.debugLineNum = 6946820;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
 }else {
RDebugUtils.currentLine=6946822;
 //BA.debugLineNum = 6946822;BA.debugLine="Msgbox(\"SIN RESPUESTA\",\"AVISO\") 'Ignore";
__c.Msgbox(BA.ObjectToCharSequence("SIN RESPUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
RDebugUtils.currentLine=6946824;
 //BA.debugLineNum = 6946824;BA.debugLine="End Sub";
return "";
}
public String  _b_guarda_c_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_guarda_c_click", false))
	 {return ((String) Debug.delegate(ba, "b_guarda_c_click", null));}
RDebugUtils.currentLine=6815744;
 //BA.debugLineNum = 6815744;BA.debugLine="Sub B_GUARDA_C_Click";
RDebugUtils.currentLine=6815745;
 //BA.debugLineNum = 6815745;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6815746;
 //BA.debugLineNum = 6815746;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=6815747;
 //BA.debugLineNum = 6815747;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=6815748;
 //BA.debugLineNum = 6815748;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
RDebugUtils.currentLine=6815749;
 //BA.debugLineNum = 6815749;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6815750;
 //BA.debugLineNum = 6815750;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
__ref._clie_id /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=6815751;
 //BA.debugLineNum = 6815751;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6815752;
 //BA.debugLineNum = 6815752;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=6815753;
 //BA.debugLineNum = 6815753;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6815754;
 //BA.debugLineNum = 6815754;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6815755;
 //BA.debugLineNum = 6815755;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6815756;
 //BA.debugLineNum = 6815756;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO  PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("4"),(Object)(.01),(Object)(.01),(Object)(2),(Object)("KNORR RINDE MAS 70 GR"),(Object)("GUNA2"),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._la_ruta /*String*/ )}));
RDebugUtils.currentLine=6815757;
 //BA.debugLineNum = 6815757;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_FACE(HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN) VALUES (?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._i_compra /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._la_ruta /*String*/ ),(Object)(__ref._almacen /*String*/ )}));
RDebugUtils.currentLine=6815758;
 //BA.debugLineNum = 6815758;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6815760;
 //BA.debugLineNum = 6815760;BA.debugLine="Tar.Visible = True";
__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6815761;
 //BA.debugLineNum = 6815761;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6815763;
 //BA.debugLineNum = 6815763;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=6815765;
 //BA.debugLineNum = 6815765;BA.debugLine="Guardar.Visible = True";
__ref._guardar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=6815766;
 //BA.debugLineNum = 6815766;BA.debugLine="End Sub";
return "";
}
public String  _b_imp_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_imp_click", false))
	 {return ((String) Debug.delegate(ba, "b_imp_click", null));}
RDebugUtils.currentLine=6160384;
 //BA.debugLineNum = 6160384;BA.debugLine="Sub B_IMP_Click";
RDebugUtils.currentLine=6160386;
 //BA.debugLineNum = 6160386;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE 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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)",new String[]{"VENTA"})));
RDebugUtils.currentLine=6160388;
 //BA.debugLineNum = 6160388;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6160390;
 //BA.debugLineNum = 6160390;BA.debugLine="imprime_venta";
__ref._imprime_venta /*void*/ (null);
RDebugUtils.currentLine=6160391;
 //BA.debugLineNum = 6160391;BA.debugLine="t1.Initialize(\"T1\", 5000) ' 5 segundos de espera";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"T1",(long) (5000));
RDebugUtils.currentLine=6160392;
 //BA.debugLineNum = 6160392;BA.debugLine="t1.Enabled = True";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
 }else {
RDebugUtils.currentLine=6160395;
 //BA.debugLineNum = 6160395;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)",new String[]{"PREVENTA_CONTADO","PREVENTA_CREDITO"})));
RDebugUtils.currentLine=6160397;
 //BA.debugLineNum = 6160397;BA.debugLine="If s.RowCount > 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6160399;
 //BA.debugLineNum = 6160399;BA.debugLine="imprime_preventa";
__ref._imprime_preventa /*void*/ (null);
 }else {
RDebugUtils.currentLine=6160402;
 //BA.debugLineNum = 6160402;BA.debugLine="Msgbox(\"No hay registros de venta o preventa pa";
__c.Msgbox(BA.ObjectToCharSequence("No hay registros de venta o preventa para imprimir"),BA.ObjectToCharSequence("Aviso"),ba);
 };
 };
RDebugUtils.currentLine=6160405;
 //BA.debugLineNum = 6160405;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6160406;
 //BA.debugLineNum = 6160406;BA.debugLine="If s <> Null Then s.Close";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ != null) { 
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();};
RDebugUtils.currentLine=6160407;
 //BA.debugLineNum = 6160407;BA.debugLine="End Sub";
return "";
}
public void  _imprime_venta(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "imprime_venta", false))
	 {Debug.delegate(ba, "imprime_venta", null); return;}
ResumableSub_imprime_venta rsub = new ResumableSub_imprime_venta(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_imprime_venta extends BA.ResumableSub {
public ResumableSub_imprime_venta(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
SHARK2.keymon.com.mx.escposprinter._animage _myimage = null;
int _i = 0;
int _e = 0;
int _resultado = 0;
int step65;
int limit65;
int step79;
int limit79;
int step95;
int limit95;
int step113;
int limit113;
int step127;
int limit127;

@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=6488065;
 //BA.debugLineNum = 6488065;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=6488066;
 //BA.debugLineNum = 6488066;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488067;
 //BA.debugLineNum = 6488067;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6488068;
 //BA.debugLineNum = 6488068;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6488069;
 //BA.debugLineNum = 6488069;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6488070;
 //BA.debugLineNum = 6488070;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6488071;
 //BA.debugLineNum = 6488071;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488077;
 //BA.debugLineNum = 6488077;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
RDebugUtils.currentLine=6488079;
 //BA.debugLineNum = 6488079;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=6488080;
 //BA.debugLineNum = 6488080;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=6488081;
 //BA.debugLineNum = 6488081;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=6488083;
 //BA.debugLineNum = 6488083;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=6488084;
 //BA.debugLineNum = 6488084;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=6488085;
 //BA.debugLineNum = 6488085;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=6488086;
 //BA.debugLineNum = 6488086;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_venta"),(int) (1000));
this.state = 99;
return;
case 99:
//C
this.state = 7;
;
RDebugUtils.currentLine=6488087;
 //BA.debugLineNum = 6488087;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=6488088;
 //BA.debugLineNum = 6488088;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 12:
//C
this.state = 13;
;
RDebugUtils.currentLine=6488089;
 //BA.debugLineNum = 6488089;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=6488091;
 //BA.debugLineNum = 6488091;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_venta"),(int) (500));
this.state = 100;
return;
case 100:
//C
this.state = 38;
;
RDebugUtils.currentLine=6488092;
 //BA.debugLineNum = 6488092;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=6488095;
 //BA.debugLineNum = 6488095;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=6488096;
 //BA.debugLineNum = 6488096;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=6488097;
 //BA.debugLineNum = 6488097;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._isconnected /*boolean*/ (null))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=6488098;
 //BA.debugLineNum = 6488098;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_venta"),(int) (1000));
this.state = 101;
return;
case 101:
//C
this.state = 25;
;
RDebugUtils.currentLine=6488099;
 //BA.debugLineNum = 6488099;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=6488100;
 //BA.debugLineNum = 6488100;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 30:
//C
this.state = 31;
;
RDebugUtils.currentLine=6488101;
 //BA.debugLineNum = 6488101;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=6488103;
 //BA.debugLineNum = 6488103;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_venta"),(int) (500));
this.state = 102;
return;
case 102:
//C
this.state = 38;
;
RDebugUtils.currentLine=6488104;
 //BA.debugLineNum = 6488104;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=6488107;
 //BA.debugLineNum = 6488107;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6488108;
 //BA.debugLineNum = 6488108;BA.debugLine="ESPACIO = 22";
__ref._espacio /*int*/  = (int) (22);
RDebugUtils.currentLine=6488109;
 //BA.debugLineNum = 6488109;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6488127;
 //BA.debugLineNum = 6488127;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=6488128;
 //BA.debugLineNum = 6488128;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=6488129;
 //BA.debugLineNum = 6488129;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"amigos.jpg\"";
_bmp.InitializeResize(parent.__c.File.getDirAssets(),"amigos.jpg",(int) (192),(int) (252),parent.__c.True);
RDebugUtils.currentLine=6488130;
 //BA.debugLineNum = 6488130;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage(";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._imagetobwimage /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_bmp);
RDebugUtils.currentLine=6488132;
 //BA.debugLineNum = 6488132;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._ditherimage2d /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_myimage,(int) (128));
RDebugUtils.currentLine=6488134;
 //BA.debugLineNum = 6488134;BA.debugLine="myimage= Printer1.PackImage(myimage)";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._packimage /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_myimage);
RDebugUtils.currentLine=6488135;
 //BA.debugLineNum = 6488135;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF);
RDebugUtils.currentLine=6488136;
 //BA.debugLineNum = 6488136;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._reverse /*String*/ );
RDebugUtils.currentLine=6488138;
 //BA.debugLineNum = 6488138;BA.debugLine="Printer1.PrintImage(myimage)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._printimage /*int*/ (null,_myimage);
RDebugUtils.currentLine=6488139;
 //BA.debugLineNum = 6488139;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._unreverse /*String*/ );
RDebugUtils.currentLine=6488141;
 //BA.debugLineNum = 6488141;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=6488143;
 //BA.debugLineNum = 6488143;BA.debugLine="Printer1.WriteString(\"CANDY SHARK2\" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"CANDY SHARK2"+_elinefeed);
RDebugUtils.currentLine=6488145;
 //BA.debugLineNum = 6488145;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +_elinefeed);
RDebugUtils.currentLine=6488146;
 //BA.debugLineNum = 6488146;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +_elinefeed);
RDebugUtils.currentLine=6488147;
 //BA.debugLineNum = 6488147;BA.debugLine="Printer1.WriteString(\"Vendedor: \" & TraeVendedor";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Vendedor: "+__ref._traevendedor /*String*/ (null)+_elinefeed);
RDebugUtils.currentLine=6488148;
 //BA.debugLineNum = 6488148;BA.debugLine="Printer1.WriteString(\"Numero de Vendedor: \" & Tra";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Numero de Vendedor: "+__ref._traenumvendedor /*String*/ (null)+_elinefeed);
RDebugUtils.currentLine=6488149;
 //BA.debugLineNum = 6488149;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6488150;
 //BA.debugLineNum = 6488150;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6488151;
 //BA.debugLineNum = 6488151;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6488152;
 //BA.debugLineNum = 6488152;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6488156;
 //BA.debugLineNum = 6488156;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488157;
 //BA.debugLineNum = 6488157;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE 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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{"VENTA"})));
RDebugUtils.currentLine=6488158;
 //BA.debugLineNum = 6488158;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=6488159;
 //BA.debugLineNum = 6488159;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"-----------VENTA-----------"+_elinefeed);
RDebugUtils.currentLine=6488162;
 //BA.debugLineNum = 6488162;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+_elinefeed);
RDebugUtils.currentLine=6488164;
 //BA.debugLineNum = 6488164;BA.debugLine="Printer1.WriteString(\"--------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6488166;
 //BA.debugLineNum = 6488166;BA.debugLine="s=skmt.ExecQuery2(\"select PE_BCAJAS, PE_PRONOMBR";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_BCAJAS, PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS  FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"VENTA"})));
RDebugUtils.currentLine=6488167;
 //BA.debugLineNum = 6488167;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 45:
//for
this.state = 68;
step65 = 1;
limit65 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 103;
if (true) break;

case 103:
//C
this.state = 68;
if ((step65 > 0 && _i <= limit65) || (step65 < 0 && _i >= limit65)) this.state = 47;
if (true) break;

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

case 47:
//C
this.state = 48;
RDebugUtils.currentLine=6488169;
 //BA.debugLineNum = 6488169;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6488170;
 //BA.debugLineNum = 6488170;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
if (true) break;

case 48:
//if
this.state = 67;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

case 50:
//C
this.state = 67;
RDebugUtils.currentLine=6488171;
 //BA.debugLineNum = 6488171;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBR";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 52:
//C
this.state = 53;
RDebugUtils.currentLine=6488175;
 //BA.debugLineNum = 6488175;BA.debugLine="If s.GetString(\"PE_BCAJAS\") = 0 Then";
if (true) break;

case 53:
//if
this.state = 66;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS")).equals(BA.NumberToString(0))) { 
this.state = 55;
}else {
this.state = 61;
}if (true) break;

case 55:
//C
this.state = 56;
RDebugUtils.currentLine=6488178;
 //BA.debugLineNum = 6488178;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6488216;
 //BA.debugLineNum = 6488216;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0";
__ref._k1 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6488217;
 //BA.debugLineNum = 6488217;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\"";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6488219;
 //BA.debugLineNum = 6488219;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetLong("L_CANT")+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6488220;
 //BA.debugLineNum = 6488220;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488221;
 //BA.debugLineNum = 6488221;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6488222;
 //BA.debugLineNum = 6488222;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6488223;
 //BA.debugLineNum = 6488223;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6488224;
 //BA.debugLineNum = 6488224;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 56:
//for
this.state = 59;
step79 = 1;
limit79 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 105;
if (true) break;

case 105:
//C
this.state = 59;
if ((step79 > 0 && _e <= limit79) || (step79 < 0 && _e >= limit79)) this.state = 58;
if (true) break;

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

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

case 59:
//C
this.state = 66;
;
RDebugUtils.currentLine=6488228;
 //BA.debugLineNum = 6488228;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
RDebugUtils.currentLine=6488230;
 //BA.debugLineNum = 6488230;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6488231;
 //BA.debugLineNum = 6488231;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488232;
 //BA.debugLineNum = 6488232;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

case 61:
//C
this.state = 62;
RDebugUtils.currentLine=6488235;
 //BA.debugLineNum = 6488235;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6488279;
 //BA.debugLineNum = 6488279;BA.debugLine="k1 = NumberFormat((s.GETSTRING(\"PE_COSTO_TOT";
__ref._k1 /*String*/  = parent.__c.NumberFormat(((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));
RDebugUtils.currentLine=6488280;
 //BA.debugLineNum = 6488280;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\"";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6488282;
 //BA.debugLineNum = 6488282;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetLong("L_CANT")+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6488283;
 //BA.debugLineNum = 6488283;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488284;
 //BA.debugLineNum = 6488284;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6488285;
 //BA.debugLineNum = 6488285;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6488286;
 //BA.debugLineNum = 6488286;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6488287;
 //BA.debugLineNum = 6488287;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 62:
//for
this.state = 65;
step95 = 1;
limit95 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 107;
if (true) break;

case 107:
//C
this.state = 65;
if ((step95 > 0 && _e <= limit95) || (step95 < 0 && _e >= limit95)) this.state = 64;
if (true) break;

case 108:
//C
this.state = 107;
_e = ((int)(0 + _e + step95)) ;
if (true) break;

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

case 65:
//C
this.state = 66;
;
RDebugUtils.currentLine=6488291;
 //BA.debugLineNum = 6488291;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
RDebugUtils.currentLine=6488293;
 //BA.debugLineNum = 6488293;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6488294;
 //BA.debugLineNum = 6488294;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488295;
 //BA.debugLineNum = 6488295;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

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

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

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

case 69:
//C
this.state = 70;
;
RDebugUtils.currentLine=6488302;
 //BA.debugLineNum = 6488302;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488303;
 //BA.debugLineNum = 6488303;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488304;
 //BA.debugLineNum = 6488304;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS  PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS  FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by  PE_CEDIS, PE_COSTOU",new String[]{"VENTA"})));
RDebugUtils.currentLine=6488305;
 //BA.debugLineNum = 6488305;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

case 72:
//C
this.state = 73;
RDebugUtils.currentLine=6488306;
 //BA.debugLineNum = 6488306;BA.debugLine="Printer1.WriteString(\"-------PROMOS VENTA------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"-------PROMOS VENTA--------"+_elinefeed);
RDebugUtils.currentLine=6488307;
 //BA.debugLineNum = 6488307;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+_elinefeed);
RDebugUtils.currentLine=6488308;
 //BA.debugLineNum = 6488308;BA.debugLine="Printer1.WriteString(\"-------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6488309;
 //BA.debugLineNum = 6488309;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 73:
//for
this.state = 86;
step113 = 1;
limit113 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 109;
if (true) break;

case 109:
//C
this.state = 86;
if ((step113 > 0 && _i <= limit113) || (step113 < 0 && _i >= limit113)) this.state = 75;
if (true) break;

case 110:
//C
this.state = 109;
_i = ((int)(0 + _i + step113)) ;
if (true) break;

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=6488310;
 //BA.debugLineNum = 6488310;BA.debugLine="s.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6488311;
 //BA.debugLineNum = 6488311;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
if (true) break;

case 76:
//if
this.state = 85;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"))) { 
this.state = 78;
}else {
this.state = 80;
}if (true) break;

case 78:
//C
this.state = 85;
RDebugUtils.currentLine=6488312;
 //BA.debugLineNum = 6488312;BA.debugLine="Printer1.WriteString(\"* \"& s.GetString(\"PE_PR";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6488313;
 //BA.debugLineNum = 6488313;BA.debugLine="Log(\"promo\")";
parent.__c.LogImpl("56488313","promo",0);
 if (true) break;

case 80:
//C
this.state = 81;
RDebugUtils.currentLine=6488316;
 //BA.debugLineNum = 6488316;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBR";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6488358;
 //BA.debugLineNum = 6488358;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0,";
__ref._k1 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6488359;
 //BA.debugLineNum = 6488359;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\")";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6488361;
 //BA.debugLineNum = 6488361;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k2";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetLong("L_CANT")+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6488362;
 //BA.debugLineNum = 6488362;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488363;
 //BA.debugLineNum = 6488363;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6488364;
 //BA.debugLineNum = 6488364;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6488365;
 //BA.debugLineNum = 6488365;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6488366;
 //BA.debugLineNum = 6488366;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 81:
//for
this.state = 84;
step127 = 1;
limit127 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 111;
if (true) break;

case 111:
//C
this.state = 84;
if ((step127 > 0 && _e <= limit127) || (step127 < 0 && _e >= limit127)) this.state = 83;
if (true) break;

case 112:
//C
this.state = 111;
_e = ((int)(0 + _e + step127)) ;
if (true) break;

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

case 84:
//C
this.state = 85;
;
RDebugUtils.currentLine=6488370;
 //BA.debugLineNum = 6488370;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\") &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
RDebugUtils.currentLine=6488372;
 //BA.debugLineNum = 6488372;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6488373;
 //BA.debugLineNum = 6488373;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6488374;
 //BA.debugLineNum = 6488374;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

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

case 86:
//C
this.state = 87;
;
RDebugUtils.currentLine=6488378;
 //BA.debugLineNum = 6488378;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
 if (true) break;

case 87:
//C
this.state = 88;
;
RDebugUtils.currentLine=6488380;
 //BA.debugLineNum = 6488380;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488382;
 //BA.debugLineNum = 6488382;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) AS T";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?",new String[]{"VENTA"})));
RDebugUtils.currentLine=6488383;
 //BA.debugLineNum = 6488383;BA.debugLine="s.Position =0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488387;
 //BA.debugLineNum = 6488387;BA.debugLine="Printer1.WriteString(\"Total venta:   $\" & Number";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total venta:   $"+parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL"))),(int) (0),(int) (2))+_elinefeed);
RDebugUtils.currentLine=6488389;
 //BA.debugLineNum = 6488389;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6488390;
 //BA.debugLineNum = 6488390;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_FOLIO = ?",new String[]{"VENTA"})));
RDebugUtils.currentLine=6488391;
 //BA.debugLineNum = 6488391;BA.debugLine="C.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6488392;
 //BA.debugLineNum = 6488392;BA.debugLine="Printer1.WriteString(\"Total art. venta: \" &Numbe";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total art. venta: "+parent.__c.NumberFormat((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART"))),(int) (0),(int) (0))+_elinefeed);
RDebugUtils.currentLine=6488393;
 //BA.debugLineNum = 6488393;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 88:
//C
this.state = 89;
;
RDebugUtils.currentLine=6488414;
 //BA.debugLineNum = 6488414;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488415;
 //BA.debugLineNum = 6488415;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6488418;
 //BA.debugLineNum = 6488418;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+_elinefeed);
RDebugUtils.currentLine=6488419;
 //BA.debugLineNum = 6488419;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed);
RDebugUtils.currentLine=6488420;
 //BA.debugLineNum = 6488420;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+_elinefeed);
RDebugUtils.currentLine=6488421;
 //BA.debugLineNum = 6488421;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6488422;
 //BA.debugLineNum = 6488422;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488423;
 //BA.debugLineNum = 6488423;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488424;
 //BA.debugLineNum = 6488424;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6488425;
 //BA.debugLineNum = 6488425;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_venta"),(int) (1000));
this.state = 113;
return;
case 113:
//C
this.state = 89;
;
RDebugUtils.currentLine=6488426;
 //BA.debugLineNum = 6488426;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=6488428;
 //BA.debugLineNum = 6488428;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=6488430;
 //BA.debugLineNum = 6488430;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE (";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)",new String[]{"PREVENTA_CREDITO","PREVENTA_CONTADO"})));
RDebugUtils.currentLine=6488431;
 //BA.debugLineNum = 6488431;BA.debugLine="If s.RowCount = 0 Then";
if (true) break;

case 89:
//if
this.state = 98;
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 91;
}if (true) break;

case 91:
//C
this.state = 92;
RDebugUtils.currentLine=6488432;
 //BA.debugLineNum = 6488432;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=6488433;
 //BA.debugLineNum = 6488433;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_venta"), null);
this.state = 114;
return;
case 114:
//C
this.state = 92;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=6488434;
 //BA.debugLineNum = 6488434;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 92:
//if
this.state = 97;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 94;
}else {
this.state = 96;
}if (true) break;

case 94:
//C
this.state = 97;
RDebugUtils.currentLine=6488435;
 //BA.debugLineNum = 6488435;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
 if (true) break;

case 96:
//C
this.state = 97;
RDebugUtils.currentLine=6488437;
 //BA.debugLineNum = 6488437;BA.debugLine="GUADAVENTA2";
__ref._guadaventa2 /*String*/ (null);
 if (true) break;

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

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

            }
        }
    }
}
public void  _imprime_preventa(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "imprime_preventa", false))
	 {Debug.delegate(ba, "imprime_preventa", null); return;}
ResumableSub_imprime_preventa rsub = new ResumableSub_imprime_preventa(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_imprime_preventa extends BA.ResumableSub {
public ResumableSub_imprime_preventa(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
SHARK2.keymon.com.mx.escposprinter._animage _myimage = null;
anywheresoftware.b4a.objects.collections.List _tipos_preventa = null;
String _tipo = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _siesacredi = null;
int _i = 0;
int _e = 0;
double _subtotal = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _subtot = null;
double _descuento = 0;
double _total = 0;
String _monto = "";
double _pamonto = 0;
int _resultado = 0;
anywheresoftware.b4a.BA.IterableList group63;
int index63;
int groupLen63;
int step72;
int limit72;
int step86;
int limit86;
int step102;
int limit102;
int step120;
int limit120;
int step129;
int limit129;

@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=6422529;
 //BA.debugLineNum = 6422529;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=6422530;
 //BA.debugLineNum = 6422530;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422531;
 //BA.debugLineNum = 6422531;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=6422532;
 //BA.debugLineNum = 6422532;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6422533;
 //BA.debugLineNum = 6422533;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6422534;
 //BA.debugLineNum = 6422534;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=6422535;
 //BA.debugLineNum = 6422535;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422537;
 //BA.debugLineNum = 6422537;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
RDebugUtils.currentLine=6422539;
 //BA.debugLineNum = 6422539;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
RDebugUtils.currentLine=6422540;
 //BA.debugLineNum = 6422540;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=6422541;
 //BA.debugLineNum = 6422541;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=6422543;
 //BA.debugLineNum = 6422543;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=6422544;
 //BA.debugLineNum = 6422544;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=6422545;
 //BA.debugLineNum = 6422545;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=6422546;
 //BA.debugLineNum = 6422546;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_preventa"),(int) (1000));
this.state = 122;
return;
case 122:
//C
this.state = 7;
;
RDebugUtils.currentLine=6422547;
 //BA.debugLineNum = 6422547;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=6422548;
 //BA.debugLineNum = 6422548;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 12:
//C
this.state = 13;
;
RDebugUtils.currentLine=6422549;
 //BA.debugLineNum = 6422549;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=6422551;
 //BA.debugLineNum = 6422551;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_preventa"),(int) (500));
this.state = 123;
return;
case 123:
//C
this.state = 38;
;
RDebugUtils.currentLine=6422552;
 //BA.debugLineNum = 6422552;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=6422555;
 //BA.debugLineNum = 6422555;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=6422556;
 //BA.debugLineNum = 6422556;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=6422557;
 //BA.debugLineNum = 6422557;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._isconnected /*boolean*/ (null))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=6422558;
 //BA.debugLineNum = 6422558;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_preventa"),(int) (1000));
this.state = 124;
return;
case 124:
//C
this.state = 25;
;
RDebugUtils.currentLine=6422559;
 //BA.debugLineNum = 6422559;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=6422560;
 //BA.debugLineNum = 6422560;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 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
if (true) break;

case 30:
//C
this.state = 31;
;
RDebugUtils.currentLine=6422561;
 //BA.debugLineNum = 6422561;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=6422563;
 //BA.debugLineNum = 6422563;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_preventa"),(int) (500));
this.state = 125;
return;
case 125:
//C
this.state = 38;
;
RDebugUtils.currentLine=6422564;
 //BA.debugLineNum = 6422564;BA.debugLine="impresoraConectada = False";
__ref._impresoraconectada /*boolean*/  = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
RDebugUtils.currentLine=6422567;
 //BA.debugLineNum = 6422567;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6422568;
 //BA.debugLineNum = 6422568;BA.debugLine="ESPACIO = 22";
__ref._espacio /*int*/  = (int) (22);
RDebugUtils.currentLine=6422569;
 //BA.debugLineNum = 6422569;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6422572;
 //BA.debugLineNum = 6422572;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=6422573;
 //BA.debugLineNum = 6422573;BA.debugLine="Printer1.Justify = 1";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._setjustify(null,(int) (1));
RDebugUtils.currentLine=6422574;
 //BA.debugLineNum = 6422574;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"amigos.jpg";
_bmp.InitializeResize(parent.__c.File.getDirAssets(),"amigos.jpg",(int) (192),(int) (252),parent.__c.True);
RDebugUtils.currentLine=6422575;
 //BA.debugLineNum = 6422575;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._imagetobwimage /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_bmp);
RDebugUtils.currentLine=6422577;
 //BA.debugLineNum = 6422577;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._ditherimage2d /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_myimage,(int) (128));
RDebugUtils.currentLine=6422579;
 //BA.debugLineNum = 6422579;BA.debugLine="myimage= Printer1.PackImage(myimage)";
_myimage = __ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._packimage /*SHARK2.keymon.com.mx.escposprinter._animage*/ (null,_myimage);
RDebugUtils.currentLine=6422580;
 //BA.debugLineNum = 6422580;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer t";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF);
RDebugUtils.currentLine=6422581;
 //BA.debugLineNum = 6422581;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._reverse /*String*/ );
RDebugUtils.currentLine=6422583;
 //BA.debugLineNum = 6422583;BA.debugLine="Printer1.PrintImage(myimage)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._printimage /*int*/ (null,_myimage);
RDebugUtils.currentLine=6422584;
 //BA.debugLineNum = 6422584;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._unreverse /*String*/ );
RDebugUtils.currentLine=6422586;
 //BA.debugLineNum = 6422586;BA.debugLine="Printer1.Justify = 0";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._setjustify(null,(int) (0));
RDebugUtils.currentLine=6422606;
 //BA.debugLineNum = 6422606;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422607;
 //BA.debugLineNum = 6422607;BA.debugLine="Printer1.WriteString(\"CANDY SHARK2\" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"CANDY SHARK2"+_elinefeed);
RDebugUtils.currentLine=6422608;
 //BA.debugLineNum = 6422608;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +_elinefeed);
RDebugUtils.currentLine=6422609;
 //BA.debugLineNum = 6422609;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +_elinefeed);
RDebugUtils.currentLine=6422610;
 //BA.debugLineNum = 6422610;BA.debugLine="Printer1.WriteString(\"Vendedor: \" & TraeVendedor";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Vendedor: "+__ref._traevendedor /*String*/ (null)+_elinefeed);
RDebugUtils.currentLine=6422611;
 //BA.debugLineNum = 6422611;BA.debugLine="Printer1.WriteString(\"Numero de Vendedor: \" & Tra";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Numero de Vendedor: "+__ref._traenumvendedor /*String*/ (null)+_elinefeed);
RDebugUtils.currentLine=6422612;
 //BA.debugLineNum = 6422612;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6422613;
 //BA.debugLineNum = 6422613;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta.T";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6422614;
 //BA.debugLineNum = 6422614;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6422615;
 //BA.debugLineNum = 6422615;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+_elinefeed);
RDebugUtils.currentLine=6422616;
 //BA.debugLineNum = 6422616;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422618;
 //BA.debugLineNum = 6422618;BA.debugLine="Dim tipos_preventa As List";
_tipos_preventa = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=6422619;
 //BA.debugLineNum = 6422619;BA.debugLine="tipos_preventa.Initialize";
_tipos_preventa.Initialize();
RDebugUtils.currentLine=6422620;
 //BA.debugLineNum = 6422620;BA.debugLine="tipos_preventa.Add(\"PREVENTA_CREDITO\")";
_tipos_preventa.Add((Object)("PREVENTA_CREDITO"));
RDebugUtils.currentLine=6422621;
 //BA.debugLineNum = 6422621;BA.debugLine="tipos_preventa.Add(\"PREVENTA_CONTADO\")";
_tipos_preventa.Add((Object)("PREVENTA_CONTADO"));
RDebugUtils.currentLine=6422623;
 //BA.debugLineNum = 6422623;BA.debugLine="For Each tipo As String In tipos_preventa";
if (true) break;

case 39:
//for
this.state = 109;
group63 = _tipos_preventa;
index63 = 0;
groupLen63 = group63.getSize();
this.state = 126;
if (true) break;

case 126:
//C
this.state = 109;
if (index63 < groupLen63) {
this.state = 41;
_tipo = BA.ObjectToString(group63.Get(index63));}
if (true) break;

case 127:
//C
this.state = 126;
index63++;
if (true) break;

case 41:
//C
this.state = 42;
RDebugUtils.currentLine=6422624;
 //BA.debugLineNum = 6422624;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{_tipo})));
RDebugUtils.currentLine=6422626;
 //BA.debugLineNum = 6422626;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 44:
//C
this.state = 45;
RDebugUtils.currentLine=6422628;
 //BA.debugLineNum = 6422628;BA.debugLine="Dim siesacredi As Cursor = skmt.ExecQuery(\"SELE";
_siesacredi = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_siesacredi = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=6422629;
 //BA.debugLineNum = 6422629;BA.debugLine="Printer1.WriteString(\"----------\" & \"PREVENTA\"";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"----------"+"PREVENTA"+"----------"+_elinefeed);
RDebugUtils.currentLine=6422631;
 //BA.debugLineNum = 6422631;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+_elinefeed);
RDebugUtils.currentLine=6422632;
 //BA.debugLineNum = 6422632;BA.debugLine="Printer1.WriteString(\"-------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6422635;
 //BA.debugLineNum = 6422635;BA.debugLine="s=skmt.ExecQuery2(\"select PE_BCAJAS,PE_PRONOMBR";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_BCAJAS,PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{_tipo,parent._subs._traealmacen /*String*/ (ba)})));
RDebugUtils.currentLine=6422637;
 //BA.debugLineNum = 6422637;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 48:
//for
this.state = 71;
step72 = 1;
limit72 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 128;
if (true) break;

case 128:
//C
this.state = 71;
if ((step72 > 0 && _i <= limit72) || (step72 < 0 && _i >= limit72)) this.state = 50;
if (true) break;

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

case 50:
//C
this.state = 51;
RDebugUtils.currentLine=6422639;
 //BA.debugLineNum = 6422639;BA.debugLine="S.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6422640;
 //BA.debugLineNum = 6422640;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_";
if (true) break;

case 51:
//if
this.state = 70;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"))) { 
this.state = 53;
}else {
this.state = 55;
}if (true) break;

case 53:
//C
this.state = 70;
RDebugUtils.currentLine=6422641;
 //BA.debugLineNum = 6422641;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 55:
//C
this.state = 56;
RDebugUtils.currentLine=6422643;
 //BA.debugLineNum = 6422643;BA.debugLine="If s.GetString(\"PE_BCAJAS\") = 0 Then";
if (true) break;

case 56:
//if
this.state = 69;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS")).equals(BA.NumberToString(0))) { 
this.state = 58;
}else {
this.state = 64;
}if (true) break;

case 58:
//C
this.state = 59;
RDebugUtils.currentLine=6422644;
 //BA.debugLineNum = 6422644;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOM";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6422645;
 //BA.debugLineNum = 6422645;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),";
__ref._k1 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6422646;
 //BA.debugLineNum = 6422646;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6422648;
 //BA.debugLineNum = 6422648;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length +";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetLong("L_CANT")+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6422649;
 //BA.debugLineNum = 6422649;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6422650;
 //BA.debugLineNum = 6422650;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6422651;
 //BA.debugLineNum = 6422651;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6422652;
 //BA.debugLineNum = 6422652;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6422653;
 //BA.debugLineNum = 6422653;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 59:
//for
this.state = 62;
step86 = 1;
limit86 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 130;
if (true) break;

case 130:
//C
this.state = 62;
if ((step86 > 0 && _e <= limit86) || (step86 < 0 && _e >= limit86)) this.state = 61;
if (true) break;

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

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

case 62:
//C
this.state = 69;
;
RDebugUtils.currentLine=6422657;
 //BA.debugLineNum = 6422657;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
RDebugUtils.currentLine=6422658;
 //BA.debugLineNum = 6422658;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6422659;
 //BA.debugLineNum = 6422659;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6422660;
 //BA.debugLineNum = 6422660;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

case 64:
//C
this.state = 65;
RDebugUtils.currentLine=6422662;
 //BA.debugLineNum = 6422662;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOM";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6422663;
 //BA.debugLineNum = 6422663;BA.debugLine="k1 = NumberFormat((s.GETSTRING(\"PE_COSTO_TO";
__ref._k1 /*String*/  = parent.__c.NumberFormat(((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));
RDebugUtils.currentLine=6422664;
 //BA.debugLineNum = 6422664;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6422666;
 //BA.debugLineNum = 6422666;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length +";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetLong("L_CANT")+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6422667;
 //BA.debugLineNum = 6422667;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6422668;
 //BA.debugLineNum = 6422668;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6422669;
 //BA.debugLineNum = 6422669;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6422670;
 //BA.debugLineNum = 6422670;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6422671;
 //BA.debugLineNum = 6422671;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 65:
//for
this.state = 68;
step102 = 1;
limit102 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 132;
if (true) break;

case 132:
//C
this.state = 68;
if ((step102 > 0 && _e <= limit102) || (step102 < 0 && _e >= limit102)) this.state = 67;
if (true) break;

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

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

case 68:
//C
this.state = 69;
;
RDebugUtils.currentLine=6422675;
 //BA.debugLineNum = 6422675;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
RDebugUtils.currentLine=6422676;
 //BA.debugLineNum = 6422676;BA.debugLine="TAMANO = 0";
__ref._tamano /*int*/  = (int) (0);
RDebugUtils.currentLine=6422677;
 //BA.debugLineNum = 6422677;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6422678;
 //BA.debugLineNum = 6422678;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
 if (true) break;

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

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

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

case 72:
//C
this.state = 73;
;
RDebugUtils.currentLine=6422683;
 //BA.debugLineNum = 6422683;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422686;
 //BA.debugLineNum = 6422686;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422687;
 //BA.debugLineNum = 6422687;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_PRONOMBRE, PE_CANT, PE_COSTOU, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CEDIS <> ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU",new String[]{_tipo,parent._subs._traealmacen /*String*/ (ba)})));
RDebugUtils.currentLine=6422689;
 //BA.debugLineNum = 6422689;BA.debugLine="If s.RowCount>0 Then";
if (true) break;

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

case 75:
//C
this.state = 76;
RDebugUtils.currentLine=6422690;
 //BA.debugLineNum = 6422690;BA.debugLine="Printer1.WriteString(\"---PRODUCTOS EN PROMOCIO";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"---PRODUCTOS EN PROMOCION---"+_elinefeed);
RDebugUtils.currentLine=6422691;
 //BA.debugLineNum = 6422691;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Cant.      Precio        Importe"+_elinefeed);
RDebugUtils.currentLine=6422692;
 //BA.debugLineNum = 6422692;BA.debugLine="Printer1.WriteString(\"------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6422694;
 //BA.debugLineNum = 6422694;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 76:
//for
this.state = 88;
step120 = 1;
limit120 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 134;
if (true) break;

case 134:
//C
this.state = 88;
if ((step120 > 0 && _i <= limit120) || (step120 < 0 && _i >= limit120)) this.state = 78;
if (true) break;

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

case 78:
//C
this.state = 79;
RDebugUtils.currentLine=6422695;
 //BA.debugLineNum = 6422695;BA.debugLine="s.Position=i";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=6422696;
 //BA.debugLineNum = 6422696;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0,";
__ref._k1 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6422697;
 //BA.debugLineNum = 6422697;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\")";
__ref._k2 /*String*/  = parent.__c.NumberFormat((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (0),(int) (2));
RDebugUtils.currentLine=6422699;
 //BA.debugLineNum = 6422699;BA.debugLine="TAMANO = s.GetString(\"PE_CANT\").Length + k1.L";
__ref._tamano /*int*/  = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT").length()+__ref._k1 /*String*/ .length()+__ref._k2 /*String*/ .length());
RDebugUtils.currentLine=6422700;
 //BA.debugLineNum = 6422700;BA.debugLine="ESPACIO = 30";
__ref._espacio /*int*/  = (int) (30);
RDebugUtils.currentLine=6422701;
 //BA.debugLineNum = 6422701;BA.debugLine="BLANCO = \" \"";
__ref._blanco /*String*/  = " ";
RDebugUtils.currentLine=6422702;
 //BA.debugLineNum = 6422702;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ -__ref._tamano /*int*/ );
RDebugUtils.currentLine=6422703;
 //BA.debugLineNum = 6422703;BA.debugLine="ESPACIO = ESPACIO / 2";
__ref._espacio /*int*/  = (int) (__ref._espacio /*int*/ /(double)2);
RDebugUtils.currentLine=6422704;
 //BA.debugLineNum = 6422704;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 79:
//for
this.state = 82;
step129 = 1;
limit129 = (int) (__ref._espacio /*int*/ -1);
_e = (int) (0) ;
this.state = 136;
if (true) break;

case 136:
//C
this.state = 82;
if ((step129 > 0 && _e <= limit129) || (step129 < 0 && _e >= limit129)) this.state = 81;
if (true) break;

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

case 81:
//C
this.state = 137;
RDebugUtils.currentLine=6422705;
 //BA.debugLineNum = 6422705;BA.debugLine="BLANCO = \" \" & BLANCO";
__ref._blanco /*String*/  = " "+__ref._blanco /*String*/ ;
 if (true) break;
if (true) break;
;
RDebugUtils.currentLine=6422707;
 //BA.debugLineNum = 6422707;BA.debugLine="If s.GetString(\"PE_PROID\") = s.GetString(\"PE_";

case 82:
//if
this.state = 87;
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS"))) { 
this.state = 84;
}else {
this.state = 86;
}if (true) break;

case 84:
//C
this.state = 87;
RDebugUtils.currentLine=6422708;
 //BA.debugLineNum = 6422708;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6422709;
 //BA.debugLineNum = 6422709;BA.debugLine="Printer1.WriteString(\" \"& eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
 if (true) break;

case 86:
//C
this.state = 87;
RDebugUtils.currentLine=6422711;
 //BA.debugLineNum = 6422711;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+_elinefeed);
RDebugUtils.currentLine=6422712;
 //BA.debugLineNum = 6422712;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ +__ref._k1 /*String*/ +__ref._blanco /*String*/ +__ref._k2 /*String*/ +_elinefeed);
 if (true) break;

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

case 88:
//C
this.state = 89;
;
RDebugUtils.currentLine=6422716;
 //BA.debugLineNum = 6422716;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
 if (true) break;

case 89:
//C
this.state = 90;
;
RDebugUtils.currentLine=6422734;
 //BA.debugLineNum = 6422734;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422735;
 //BA.debugLineNum = 6422735;BA.debugLine="s = skmt.ExecQuery($\"SELECT SUM(CAT_GP_PRECIO *";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT SUM(CAT_GP_PRECIO * PE_CANT) As SUBTOTAL FROM PEDIDO P INNER JOIN CAT_GUNAPROD C ON P.PE_PROID = C.CAT_GP_ID And P.PE_CEDIS = P.PE_PROID WHERE PE_CLIENTE IN (Select cuenta FROM CUENTAA) And PE_FOLIO = 'PREVENTA_CONTADO'"))));
RDebugUtils.currentLine=6422736;
 //BA.debugLineNum = 6422736;BA.debugLine="Dim subtotal As Double";
_subtotal = 0;
RDebugUtils.currentLine=6422737;
 //BA.debugLineNum = 6422737;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422738;
 //BA.debugLineNum = 6422738;BA.debugLine="subtotal = s.GetDouble(\"SUBTOTAL\")";
_subtotal = __ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SUBTOTAL");
RDebugUtils.currentLine=6422739;
 //BA.debugLineNum = 6422739;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422741;
 //BA.debugLineNum = 6422741;BA.debugLine="Dim subtot As Cursor = skmt.ExecQuery(\"SELECT S";
_subtot = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_subtot = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(P.PE_COSTO_TOT) As TOTAL_SIN_PROMO FROM PEDIDO P INNER JOIN CAT_GUNAPROD C ON P.PE_PROID = C.CAT_GP_ID WHERE P.PE_CLIENTE IN (Select cuenta FROM CUENTAA) And P.PE_FOLIO = 'PREVENTA_CONTADO' And PE_CEDIS Not IN (Select DISTINCT PE_PROID FROM PEDIDO)")));
RDebugUtils.currentLine=6422742;
 //BA.debugLineNum = 6422742;BA.debugLine="subtot.Position = 0";
_subtot.setPosition((int) (0));
RDebugUtils.currentLine=6422743;
 //BA.debugLineNum = 6422743;BA.debugLine="subtotal = subtotal + subtot.GetDouble(\"TOTAL_S";
_subtotal = _subtotal+_subtot.GetDouble("TOTAL_SIN_PROMO");
RDebugUtils.currentLine=6422744;
 //BA.debugLineNum = 6422744;BA.debugLine="subtot.Close";
_subtot.Close();
RDebugUtils.currentLine=6422746;
 //BA.debugLineNum = 6422746;BA.debugLine="subtotal = Round2(subtotal, 2)";
_subtotal = parent.__c.Round2(_subtotal,(int) (2));
RDebugUtils.currentLine=6422747;
 //BA.debugLineNum = 6422747;BA.debugLine="Printer1.WriteString(\"Subtotal:   $\" & NumberFo";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Subtotal:   $"+parent.__c.NumberFormat(_subtotal,(int) (0),(int) (2))+_elinefeed);
RDebugUtils.currentLine=6422750;
 //BA.debugLineNum = 6422750;BA.debugLine="Dim descuento As Double";
_descuento = 0;
RDebugUtils.currentLine=6422751;
 //BA.debugLineNum = 6422751;BA.debugLine="s = skmt.ExecQuery2(\"SELECT SUM(PE_COSTO_TOT) A";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?",new String[]{"PREVENTA_CONTADO"})));
RDebugUtils.currentLine=6422752;
 //BA.debugLineNum = 6422752;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422753;
 //BA.debugLineNum = 6422753;BA.debugLine="Dim total As Double = s.GetDouble(\"TOTAL\")";
_total = __ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("TOTAL");
RDebugUtils.currentLine=6422754;
 //BA.debugLineNum = 6422754;BA.debugLine="descuento = subtotal - total";
_descuento = _subtotal-_total;
RDebugUtils.currentLine=6422755;
 //BA.debugLineNum = 6422755;BA.debugLine="descuento = Round2(descuento, 2) ' Redondear de";
_descuento = parent.__c.Round2(_descuento,(int) (2));
RDebugUtils.currentLine=6422756;
 //BA.debugLineNum = 6422756;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422759;
 //BA.debugLineNum = 6422759;BA.debugLine="Printer1.WriteString(\"Total preventa:   $\" & Nu";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total preventa:   $"+parent.__c.NumberFormat(_total,(int) (0),(int) (2))+_elinefeed);
RDebugUtils.currentLine=6422760;
 //BA.debugLineNum = 6422760;BA.debugLine="Printer1.WriteString(\"Usted ahorro:   $\" & Numb";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Usted ahorro:   $"+parent.__c.NumberFormat(_descuento,(int) (0),(int) (2))+_elinefeed);
RDebugUtils.currentLine=6422764;
 //BA.debugLineNum = 6422764;BA.debugLine="Dim c As Cursor = skmt.ExecQuery2(\"SELECT SUM(P";
parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PC_NOART FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP) AND PE_FOLIO = ?",new String[]{"PREVENTA_CONTADO"})));
RDebugUtils.currentLine=6422765;
 //BA.debugLineNum = 6422765;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422766;
 //BA.debugLineNum = 6422766;BA.debugLine="Printer1.WriteString(\"Total art. preventa: \" &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total art. preventa: "+parent.__c.NumberFormat(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("PC_NOART"),(int) (0),(int) (0))+_elinefeed);
RDebugUtils.currentLine=6422767;
 //BA.debugLineNum = 6422767;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=6422770;
 //BA.debugLineNum = 6422770;BA.debugLine="If tipo = \"PREVENTA_CREDITO\" Then";
if (true) break;

case 90:
//if
this.state = 107;
if ((_tipo).equals("PREVENTA_CREDITO")) { 
this.state = 92;
}if (true) break;

case 92:
//C
this.state = 93;
RDebugUtils.currentLine=6422771;
 //BA.debugLineNum = 6422771;BA.debugLine="Dim siesacredi As Cursor = skmt.ExecQuery(\"SEL";
_siesacredi = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_siesacredi = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=6422772;
 //BA.debugLineNum = 6422772;BA.debugLine="If siesacredi.RowCount > 0 Then";
if (true) break;

case 93:
//if
this.state = 106;
if (_siesacredi.getRowCount()>0) { 
this.state = 95;
}if (true) break;

case 95:
//C
this.state = 96;
RDebugUtils.currentLine=6422773;
 //BA.debugLineNum = 6422773;BA.debugLine="siesacredi.Position = 0";
_siesacredi.setPosition((int) (0));
RDebugUtils.currentLine=6422774;
 //BA.debugLineNum = 6422774;BA.debugLine="Dim monto As String = siesacredi.GetString(\"P";
_monto = _siesacredi.GetString("PA_MONTO");
RDebugUtils.currentLine=6422775;
 //BA.debugLineNum = 6422775;BA.debugLine="If monto = Null Or monto = \"\" Then monto = \"0";
if (true) break;

case 96:
//if
this.state = 101;
if (_monto== null || (_monto).equals("")) { 
this.state = 98;
;}if (true) break;

case 98:
//C
this.state = 101;
_monto = "0";
if (true) break;

case 101:
//C
this.state = 102;
;
RDebugUtils.currentLine=6422776;
 //BA.debugLineNum = 6422776;BA.debugLine="Printer1.WriteString(\"Total a credito:   $\" &";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total a credito:   $"+parent.__c.NumberFormat((double)(Double.parseDouble(_monto)),(int) (0),(int) (2))+_elinefeed);
RDebugUtils.currentLine=6422778;
 //BA.debugLineNum = 6422778;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) A";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?",new String[]{_tipo})));
RDebugUtils.currentLine=6422779;
 //BA.debugLineNum = 6422779;BA.debugLine="s.Position =0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=6422780;
 //BA.debugLineNum = 6422780;BA.debugLine="Dim total As Double = IIf(s.GetString(\"TOTAL\"";
_total = (double)(BA.ObjectToNumber(((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")== null || (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")).equals("")) ? ((Object)(0)) : ((Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL"))))));
RDebugUtils.currentLine=6422781;
 //BA.debugLineNum = 6422781;BA.debugLine="Dim paMonto As Double = IIf(siesacredi.GetStr";
_pamonto = (double)(BA.ObjectToNumber(((_siesacredi.GetString("PA_MONTO")== null || (_siesacredi.GetString("PA_MONTO")).equals("")) ? ((Object)(0)) : ((Object)(_siesacredi.GetString("PA_MONTO"))))));
RDebugUtils.currentLine=6422783;
 //BA.debugLineNum = 6422783;BA.debugLine="If total > paMonto Then";
if (true) break;

case 102:
//if
this.state = 105;
if (_total>_pamonto) { 
this.state = 104;
}if (true) break;

case 104:
//C
this.state = 105;
RDebugUtils.currentLine=6422784;
 //BA.debugLineNum = 6422784;BA.debugLine="Printer1.WriteString(\"Total a contado:   $\"";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"Total a contado:   $"+parent.__c.NumberFormat(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))-(double)(Double.parseDouble(_siesacredi.GetString("PA_MONTO")))),(int) (0),(int) (2))+_elinefeed);
 if (true) break;

case 105:
//C
this.state = 106;
;
RDebugUtils.currentLine=6422786;
 //BA.debugLineNum = 6422786;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

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

case 107:
//C
this.state = 108;
;
RDebugUtils.currentLine=6422790;
 //BA.debugLineNum = 6422790;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
 if (true) break;

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

case 109:
//C
this.state = 110;
;
RDebugUtils.currentLine=6422794;
 //BA.debugLineNum = 6422794;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6422795;
 //BA.debugLineNum = 6422795;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+_elinefeed);
RDebugUtils.currentLine=6422796;
 //BA.debugLineNum = 6422796;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE DE PAGO NI FI";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE DE PAGO NI FISCAL-"+_elinefeed);
RDebugUtils.currentLine=6422797;
 //BA.debugLineNum = 6422797;BA.debugLine="Printer1.WriteString(\"--ES UN TICKET INFORMATIVO-";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"--ES UN TICKET INFORMATIVO----"+_elinefeed);
RDebugUtils.currentLine=6422798;
 //BA.debugLineNum = 6422798;BA.debugLine="Printer1.WriteString(\"---------------------------";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+_elinefeed);
RDebugUtils.currentLine=6422799;
 //BA.debugLineNum = 6422799;BA.debugLine="If ALMACEN = \"2\" Then";
if (true) break;

case 110:
//if
this.state = 115;
if ((__ref._almacen /*String*/ ).equals("2")) { 
this.state = 112;
}else 
{RDebugUtils.currentLine=6422801;
 //BA.debugLineNum = 6422801;BA.debugLine="Else If ALMACEN = \"3\" Then";
if ((__ref._almacen /*String*/ ).equals("3")) { 
this.state = 114;
}}
if (true) break;

case 112:
//C
this.state = 115;
RDebugUtils.currentLine=6422800;
 //BA.debugLineNum = 6422800;BA.debugLine="Printer1.WriteString(\"TEL.: 5591972829\" & eLINEF";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"TEL.: 5591972829"+_elinefeed);
 if (true) break;

case 114:
//C
this.state = 115;
RDebugUtils.currentLine=6422802;
 //BA.debugLineNum = 6422802;BA.debugLine="Printer1.WriteString(\"TEL.: 5579797285\" & eLINEF";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null,"TEL.: 5579797285"+_elinefeed);
 if (true) break;

case 115:
//C
this.state = 116;
;
RDebugUtils.currentLine=6422804;
 //BA.debugLineNum = 6422804;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422805;
 //BA.debugLineNum = 6422805;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422806;
 //BA.debugLineNum = 6422806;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._writestring /*String*/ (null," "+_elinefeed);
RDebugUtils.currentLine=6422807;
 //BA.debugLineNum = 6422807;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_preventa"),(int) (1000));
this.state = 138;
return;
case 138:
//C
this.state = 116;
;
RDebugUtils.currentLine=6422808;
 //BA.debugLineNum = 6422808;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=6422810;
 //BA.debugLineNum = 6422810;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=6422812;
 //BA.debugLineNum = 6422812;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=6422813;
 //BA.debugLineNum = 6422813;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_preventa"), null);
this.state = 139;
return;
case 139:
//C
this.state = 116;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=6422814;
 //BA.debugLineNum = 6422814;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 116:
//if
this.state = 121;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 118;
}else {
this.state = 120;
}if (true) break;

case 118:
//C
this.state = 121;
RDebugUtils.currentLine=6422815;
 //BA.debugLineNum = 6422815;BA.debugLine="B_IMP_Click";
__ref._b_imp_click /*String*/ (null);
 if (true) break;

case 120:
//C
this.state = 121;
RDebugUtils.currentLine=6422817;
 //BA.debugLineNum = 6422817;BA.debugLine="GUADAVENTA2";
__ref._guadaventa2 /*String*/ (null);
 if (true) break;

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

            }
        }
    }
}
public String  _b_mapa_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_mapa_click", false))
	 {return ((String) Debug.delegate(ba, "b_mapa_click", null));}
RDebugUtils.currentLine=6094848;
 //BA.debugLineNum = 6094848;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=6094849;
 //BA.debugLineNum = 6094849;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
_b4xpages._showpage /*String*/ (ba,"mapas");
RDebugUtils.currentLine=6094850;
 //BA.debugLineNum = 6094850;BA.debugLine="End Sub";
return "";
}
public String  _b_ubicar_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_ubicar_click", false))
	 {return ((String) Debug.delegate(ba, "b_ubicar_click", null));}
RDebugUtils.currentLine=8454144;
 //BA.debugLineNum = 8454144;BA.debugLine="Private Sub b_ubicar_Click";
RDebugUtils.currentLine=8454145;
 //BA.debugLineNum = 8454145;BA.debugLine="StartActivity(MAPA_CLIENTE)";
__c.StartActivity(ba,(Object)(_mapa_cliente.getObject()));
RDebugUtils.currentLine=8454146;
 //BA.debugLineNum = 8454146;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_venta_click", false))
	 {return ((String) Debug.delegate(ba, "b_venta_click", null));}
RDebugUtils.currentLine=6881280;
 //BA.debugLineNum = 6881280;BA.debugLine="Sub b_venta_Click";
RDebugUtils.currentLine=6881281;
 //BA.debugLineNum = 6881281;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=6881282;
 //BA.debugLineNum = 6881282;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=6881283;
 //BA.debugLineNum = 6881283;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=6881311;
 //BA.debugLineNum = 6881311;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_credito_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_venta_credito_click", false))
	 {return ((String) Debug.delegate(ba, "b_venta_credito_click", null));}
RDebugUtils.currentLine=4980736;
 //BA.debugLineNum = 4980736;BA.debugLine="Private Sub b_venta_credito_Click";
RDebugUtils.currentLine=4980737;
 //BA.debugLineNum = 4980737;BA.debugLine="If la_cuenta.Text = \"0\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=4980738;
 //BA.debugLineNum = 4980738;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "ABORDO";
 }else 
{RDebugUtils.currentLine=4980739;
 //BA.debugLineNum = 4980739;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("1")) { 
RDebugUtils.currentLine=4980740;
 //BA.debugLineNum = 4980740;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "RECARGA";
 }else {
RDebugUtils.currentLine=4980742;
 //BA.debugLineNum = 4980742;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_CREDITO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "PREVENTA_CREDITO";
 }}
;
RDebugUtils.currentLine=4980744;
 //BA.debugLineNum = 4980744;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=4980745;
 //BA.debugLineNum = 4980745;BA.debugLine="End Sub";
return "";
}
public String  _b_ventaabordo_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b_ventaabordo_click", false))
	 {return ((String) Debug.delegate(ba, "b_ventaabordo_click", null));}
RDebugUtils.currentLine=8257536;
 //BA.debugLineNum = 8257536;BA.debugLine="Private Sub b_ventaabordo_Click";
RDebugUtils.currentLine=8257538;
 //BA.debugLineNum = 8257538;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select * 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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select * From CAT_GUNAPROD2 where cat_gp_tipo <> ? ",new String[]{"PROMOS"})));
RDebugUtils.currentLine=8257539;
 //BA.debugLineNum = 8257539;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8257543;
 //BA.debugLineNum = 8257543;BA.debugLine="B4XPages.MainPage.tipo_venta = \"VENTA\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "VENTA";
RDebugUtils.currentLine=8257578;
 //BA.debugLineNum = 8257578;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 }else 
{RDebugUtils.currentLine=8257581;
 //BA.debugLineNum = 8257581;BA.debugLine="Else If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=8257583;
 //BA.debugLineNum = 8257583;BA.debugLine="MsgboxAsync(\"No puedes hacer venta porque no tie";
__c.MsgboxAsync(BA.ObjectToCharSequence("No puedes hacer venta porque no tienes inventario abordo"),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
RDebugUtils.currentLine=8257587;
 //BA.debugLineNum = 8257587;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(SHARK2.keymon.com.mx.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));}
String _cabonos = "";
String _factura = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _cor_al = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _geo = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _credi2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _credi3 = null;
String _total = "";
int _i = 0;
RDebugUtils.currentLine=4718592;
 //BA.debugLineNum = 4718592;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=4718594;
 //BA.debugLineNum = 4718594;BA.debugLine="Guardar.Enabled = True";
__ref._guardar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718595;
 //BA.debugLineNum = 4718595;BA.debugLine="gest.Enabled = True";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718596;
 //BA.debugLineNum = 4718596;BA.debugLine="b_cxc.Enabled = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718597;
 //BA.debugLineNum = 4718597;BA.debugLine="Tar.Enabled = True";
__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718598;
 //BA.debugLineNum = 4718598;BA.debugLine="Tels.Enabled = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718599;
 //BA.debugLineNum = 4718599;BA.debugLine="b_ventaabordo.Enabled = True";
__ref._b_ventaabordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718601;
 //BA.debugLineNum = 4718601;BA.debugLine="HIST.Enabled = True";
__ref._hist /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4718602;
 //BA.debugLineNum = 4718602;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_starter._dbreqserver /*String*/ );
RDebugUtils.currentLine=4718603;
 //BA.debugLineNum = 4718603;BA.debugLine="LA_GPS.TextColor = Colors.Red";
__ref._la_gps /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=4718604;
 //BA.debugLineNum = 4718604;BA.debugLine="LA_GPS.Text = \"SIN UBICACION GPS\"";
__ref._la_gps /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SIN UBICACION GPS"));
RDebugUtils.currentLine=4718605;
 //BA.debugLineNum = 4718605;BA.debugLine="cercavalor = 0";
__ref._cercavalor /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=4718606;
 //BA.debugLineNum = 4718606;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=4718607;
 //BA.debugLineNum = 4718607;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);
RDebugUtils.currentLine=4718608;
 //BA.debugLineNum = 4718608;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
RDebugUtils.currentLine=4718611;
 //BA.debugLineNum = 4718611;BA.debugLine="cb_factura.Checked = False";
__ref._cb_factura /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=4718612;
 //BA.debugLineNum = 4718612;BA.debugLine="p_abono.Visible = False";
__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718613;
 //BA.debugLineNum = 4718613;BA.debugLine="Subs.centraPanel(p_abono, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=4718614;
 //BA.debugLineNum = 4718614;BA.debugLine="Subs.centraPanel(p_atiende, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=4718615;
 //BA.debugLineNum = 4718615;BA.debugLine="Subs.centraPanel(p_giro, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=4718616;
 //BA.debugLineNum = 4718616;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=4718617;
 //BA.debugLineNum = 4718617;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(__ref._ruta /*String*/ ,"kmt.db",__c.True);
RDebugUtils.currentLine=4718618;
 //BA.debugLineNum = 4718618;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, CAT_CL_GIRO  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa) UNION ALL 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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, CAT_CL_GIRO  from kmt_info2 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
RDebugUtils.currentLine=4718619;
 //BA.debugLineNum = 4718619;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"Select SUM(PE";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select SUM(PE_COSTO_TOT)  As TOTAL_CLIE, SUM(PE_CANT)  As CANT_CLIE, PC_FACTURA FROM PEDIDO_CLIENTE INNER JOIN PEDIDO ON PEDIDO_CLIENTE.PC_CLIENTE = PEDIDO.PE_CLIENTE WHERE (PE_CLIENTE IN (Select cuenta from cuentaa))")));
RDebugUtils.currentLine=4718620;
 //BA.debugLineNum = 4718620;BA.debugLine="b = B4XPages.MainPage.skmt.ExecQuery(\"select COUN";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=4718621;
 //BA.debugLineNum = 4718621;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718622;
 //BA.debugLineNum = 4718622;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
_cabonos = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE");
RDebugUtils.currentLine=4718623;
 //BA.debugLineNum = 4718623;BA.debugLine="If cabonos = 0 Then";
if ((_cabonos).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=4718624;
 //BA.debugLineNum = 4718624;BA.debugLine="b_cxc.Visible = False";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=4718626;
 //BA.debugLineNum = 4718626;BA.debugLine="b_cxc.Visible = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=4718629;
 //BA.debugLineNum = 4718629;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718630;
 //BA.debugLineNum = 4718630;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4718631;
 //BA.debugLineNum = 4718631;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718632;
 //BA.debugLineNum = 4718632;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=4718633;
 //BA.debugLineNum = 4718633;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=4718634;
 //BA.debugLineNum = 4718634;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \"";
__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=4718635;
 //BA.debugLineNum = 4718635;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=4718636;
 //BA.debugLineNum = 4718636;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=4718637;
 //BA.debugLineNum = 4718637;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=4718638;
 //BA.debugLineNum = 4718638;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=4718639;
 //BA.debugLineNum = 4718639;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")));
RDebugUtils.currentLine=4718640;
 //BA.debugLineNum = 4718640;BA.debugLine="l_giro.Text = c.GetString(\"CAT_CL_GIRO\")";
__ref._l_giro /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_GIRO")));
RDebugUtils.currentLine=4718641;
 //BA.debugLineNum = 4718641;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=4718642;
 //BA.debugLineNum = 4718642;BA.debugLine="TELEFONO  = c.GetString(\"CAT_CL_TELEFONO\")";
__ref._telefono /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO");
RDebugUtils.currentLine=4718643;
 //BA.debugLineNum = 4718643;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE")));
RDebugUtils.currentLine=4718644;
 //BA.debugLineNum = 4718644;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
__ref._total_cliente /*String*/  = __ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE");
RDebugUtils.currentLine=4718645;
 //BA.debugLineNum = 4718645;BA.debugLine="Private factura As String = 0";
_factura = BA.NumberToString(0);
RDebugUtils.currentLine=4718646;
 //BA.debugLineNum = 4718646;BA.debugLine="If s.GetString(\"PC_FACTURA\") <> Null And IsNumbe";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA")!= null && __c.IsNumber(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA"))) { 
_factura = __ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA");};
RDebugUtils.currentLine=4718647;
 //BA.debugLineNum = 4718647;BA.debugLine="If factura = \"1\" Then cb_factura.Checked = True";
if ((_factura).equals("1")) { 
__ref._cb_factura /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .setChecked(__c.True);};
RDebugUtils.currentLine=4718648;
 //BA.debugLineNum = 4718648;BA.debugLine="m_lat = \"0\"";
__ref._m_lat /*String*/  = "0";
RDebugUtils.currentLine=4718649;
 //BA.debugLineNum = 4718649;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat =c";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT")).equals("") == false) { 
__ref._m_lat /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT");};
RDebugUtils.currentLine=4718650;
 //BA.debugLineNum = 4718650;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\"";
if (__ref._m_lat /*String*/ .length()<5) { 
__ref._m_lat /*String*/  = "0";};
RDebugUtils.currentLine=4718651;
 //BA.debugLineNum = 4718651;BA.debugLine="m_lon = \"0\"";
__ref._m_lon /*String*/  = "0";
RDebugUtils.currentLine=4718652;
 //BA.debugLineNum = 4718652;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon =";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG")).equals("") == false) { 
__ref._m_lon /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG");};
RDebugUtils.currentLine=4718653;
 //BA.debugLineNum = 4718653;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\"";
if (__ref._m_lon /*String*/ .length()<5) { 
__ref._m_lon /*String*/  = "0";};
RDebugUtils.currentLine=4718654;
 //BA.debugLineNum = 4718654;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")";
__ref._la_ruta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=4718656;
 //BA.debugLineNum = 4718656;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\"";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NUM_SERIEFISICO")).equals("0")) { 
RDebugUtils.currentLine=4718657;
 //BA.debugLineNum = 4718657;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\"";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SIN CODIGO"));
RDebugUtils.currentLine=4718658;
 //BA.debugLineNum = 4718658;BA.debugLine="L_QR.TextColor = Colors.Red";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=4718660;
 //BA.debugLineNum = 4718660;BA.debugLine="gest.VISIBLE = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718661;
 //BA.debugLineNum = 4718661;BA.debugLine="BT_QR.Visible = True";
__ref._bt_qr /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=4718663;
 //BA.debugLineNum = 4718663;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISICO";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NUM_SERIEFISICO")));
RDebugUtils.currentLine=4718664;
 //BA.debugLineNum = 4718664;BA.debugLine="L_QR.TextColor = Colors.Blue";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Blue);
RDebugUtils.currentLine=4718665;
 //BA.debugLineNum = 4718665;BA.debugLine="BT_QR.Visible = False";
__ref._bt_qr /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=4718669;
 //BA.debugLineNum = 4718669;BA.debugLine="Dim cor_al As Cursor = Starter.skmt.ExecQuery(\"SE";
_cor_al = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cor_al = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT LAT, LONG FROM COORDS_ALMACEN")));
RDebugUtils.currentLine=4718670;
 //BA.debugLineNum = 4718670;BA.debugLine="If cor_al.RowCount > 0 Then";
if (_cor_al.getRowCount()>0) { 
RDebugUtils.currentLine=4718671;
 //BA.debugLineNum = 4718671;BA.debugLine="cor_al.Position = 0";
_cor_al.setPosition((int) (0));
RDebugUtils.currentLine=4718672;
 //BA.debugLineNum = 4718672;BA.debugLine="m_lat_al = cor_al.GetString(\"LAT\")";
__ref._m_lat_al /*String*/  = _cor_al.GetString("LAT");
RDebugUtils.currentLine=4718673;
 //BA.debugLineNum = 4718673;BA.debugLine="m_lon_al = cor_al.GetString(\"LONG\")";
__ref._m_lon_al /*String*/  = _cor_al.GetString("LONG");
 };
RDebugUtils.currentLine=4718676;
 //BA.debugLineNum = 4718676;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4718677;
 //BA.debugLineNum = 4718677;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4718678;
 //BA.debugLineNum = 4718678;BA.debugLine="S2=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._s2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) AS CUANTOS from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=4718679;
 //BA.debugLineNum = 4718679;BA.debugLine="S2.Position =0";
__ref._s2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718680;
 //BA.debugLineNum = 4718680;BA.debugLine="CUANTOS = S2.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._s2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=4718681;
 //BA.debugLineNum = 4718681;BA.debugLine="S2.Close";
__ref._s2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4718682;
 //BA.debugLineNum = 4718682;BA.debugLine="If CUANTOS > 0 Then";
if ((double)(Double.parseDouble(__ref._cuantos /*String*/ ))>0) { 
RDebugUtils.currentLine=4718683;
 //BA.debugLineNum = 4718683;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(HVD_COSTO_TOT) AS TOTAL from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=4718684;
 //BA.debugLineNum = 4718684;BA.debugLine="c2.Position =0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718685;
 //BA.debugLineNum = 4718685;BA.debugLine="MONTO_COMPRA = c2.GetString(\"TOTAL\")";
__ref._monto_compra /*String*/  = __ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL");
RDebugUtils.currentLine=4718686;
 //BA.debugLineNum = 4718686;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=4718688;
 //BA.debugLineNum = 4718688;BA.debugLine="MONTO_COMPRA = \"0\"";
__ref._monto_compra /*String*/  = "0";
 };
RDebugUtils.currentLine=4718691;
 //BA.debugLineNum = 4718691;BA.debugLine="la_saldotot.Text = MONTO_COMPRA";
__ref._la_saldotot /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._monto_compra /*String*/ ));
RDebugUtils.currentLine=4718692;
 //BA.debugLineNum = 4718692;BA.debugLine="If MONTO_COMPRA <> \"0\" Then";
if ((__ref._monto_compra /*String*/ ).equals("0") == false) { 
RDebugUtils.currentLine=4718693;
 //BA.debugLineNum = 4718693;BA.debugLine="META2 = 300 -  MONTO_COMPRA";
__ref._meta2 /*String*/  = BA.NumberToString(300-(double)(Double.parseDouble(__ref._monto_compra /*String*/ )));
 }else {
RDebugUtils.currentLine=4718695;
 //BA.debugLineNum = 4718695;BA.debugLine="META2 = 300";
__ref._meta2 /*String*/  = BA.NumberToString(300);
 };
RDebugUtils.currentLine=4718697;
 //BA.debugLineNum = 4718697;BA.debugLine="If META2 < 1 Then";
if ((double)(Double.parseDouble(__ref._meta2 /*String*/ ))<1) { 
RDebugUtils.currentLine=4718698;
 //BA.debugLineNum = 4718698;BA.debugLine="META2 = \"CUBIERTO\"";
__ref._meta2 /*String*/  = "CUBIERTO";
 };
RDebugUtils.currentLine=4718700;
 //BA.debugLineNum = 4718700;BA.debugLine="la_saldooper.Text = META2";
__ref._la_saldooper /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._meta2 /*String*/ ));
RDebugUtils.currentLine=4718701;
 //BA.debugLineNum = 4718701;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=4718702;
 //BA.debugLineNum = 4718702;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4718703;
 //BA.debugLineNum = 4718703;BA.debugLine="C.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718704;
 //BA.debugLineNum = 4718704;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
 };
RDebugUtils.currentLine=4718706;
 //BA.debugLineNum = 4718706;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4718708;
 //BA.debugLineNum = 4718708;BA.debugLine="Dim geo As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_geo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_geo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ACTIVA FROM GEOCERCA")));
RDebugUtils.currentLine=4718709;
 //BA.debugLineNum = 4718709;BA.debugLine="If geo.RowCount > 0 Then";
if (_geo.getRowCount()>0) { 
RDebugUtils.currentLine=4718710;
 //BA.debugLineNum = 4718710;BA.debugLine="geo.Position = 0";
_geo.setPosition((int) (0));
RDebugUtils.currentLine=4718711;
 //BA.debugLineNum = 4718711;BA.debugLine="If geo.GetInt(\"ACTIVA\") = 0 Then";
if (_geo.GetInt("ACTIVA")==0) { 
RDebugUtils.currentLine=4718712;
 //BA.debugLineNum = 4718712;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4718714;
 //BA.debugLineNum = 4718714;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=4718715;
 //BA.debugLineNum = 4718715;BA.debugLine="Else If geo.GetInt(\"ACTIVA\") = 1 Then";
if (_geo.GetInt("ACTIVA")==1) { 
RDebugUtils.currentLine=4718716;
 //BA.debugLineNum = 4718716;BA.debugLine="Tels.Visible = False";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718717;
 //BA.debugLineNum = 4718717;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
 };
RDebugUtils.currentLine=4718727;
 //BA.debugLineNum = 4718727;BA.debugLine="If ALMACEN = \"4\"  Then";
if ((__ref._almacen /*String*/ ).equals("4")) { 
RDebugUtils.currentLine=4718729;
 //BA.debugLineNum = 4718729;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{"KNORR RINDE MAS 70 GR"})));
RDebugUtils.currentLine=4718730;
 //BA.debugLineNum = 4718730;BA.debugLine="DD.Position =0";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718731;
 //BA.debugLineNum = 4718731;BA.debugLine="If DD.GetString(\"CUANTOS\")  = 0 Then";
if ((__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=4718732;
 //BA.debugLineNum = 4718732;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM PEDIDO  WHERE PE_CLIENTE  IN (Select cuenta from cuentaa) AND PE_PRONOMBRE =?",new String[]{"KNORR RINDE MAS 70 GR"})));
RDebugUtils.currentLine=4718733;
 //BA.debugLineNum = 4718733;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718739;
 //BA.debugLineNum = 4718739;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
 };
RDebugUtils.currentLine=4718743;
 //BA.debugLineNum = 4718743;BA.debugLine="DD.Close";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
 };
RDebugUtils.currentLine=4718747;
 //BA.debugLineNum = 4718747;BA.debugLine="If ALMACEN = \"16\" Or ALMACEN = \"13\" Then";
if ((__ref._almacen /*String*/ ).equals("16") || (__ref._almacen /*String*/ ).equals("13")) { 
RDebugUtils.currentLine=4718748;
 //BA.debugLineNum = 4718748;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4718750;
 //BA.debugLineNum = 4718750;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=4718752;
 //BA.debugLineNum = 4718752;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"Track");
RDebugUtils.currentLine=4718753;
 //BA.debugLineNum = 4718753;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=4718754;
 //BA.debugLineNum = 4718754;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
if (_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized() && _tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { 
RDebugUtils.currentLine=4718755;
 //BA.debugLineNum = 4718755;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
RDebugUtils.currentLine=4718756;
 //BA.debugLineNum = 4718756;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
RDebugUtils.currentLine=4718758;
 //BA.debugLineNum = 4718758;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
__ref._gps_locationchanged /*String*/ (null,_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
 };
RDebugUtils.currentLine=4718775;
 //BA.debugLineNum = 4718775;BA.debugLine="If la_cuenta.Text = \"0\" Or la_cuenta.Text = \"1\" T";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") || (__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("1")) { 
RDebugUtils.currentLine=4718776;
 //BA.debugLineNum = 4718776;BA.debugLine="p_cbFactura.Visible = False";
__ref._p_cbfactura /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718777;
 //BA.debugLineNum = 4718777;BA.debugLine="l_factura.Visible = False";
__ref._l_factura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718778;
 //BA.debugLineNum = 4718778;BA.debugLine="b_ventaabordo.Visible = False";
__ref._b_ventaabordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718779;
 //BA.debugLineNum = 4718779;BA.debugLine="gest.Visible = True";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=4718782;
 //BA.debugLineNum = 4718782;BA.debugLine="p_cbFactura.Visible = False";
__ref._p_cbfactura /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718784;
 //BA.debugLineNum = 4718784;BA.debugLine="l_factura.Visible = False";
__ref._l_factura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718785;
 //BA.debugLineNum = 4718785;BA.debugLine="b_ventaabordo.Visible = True";
__ref._b_ventaabordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=4718790;
 //BA.debugLineNum = 4718790;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"})));
RDebugUtils.currentLine=4718791;
 //BA.debugLineNum = 4718791;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4718792;
 //BA.debugLineNum = 4718792;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4718793;
 //BA.debugLineNum = 4718793;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=4718795;
 //BA.debugLineNum = 4718795;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
if ((_starter._mac_impresora /*String*/ ).equals("")) { 
_starter._mac_impresora /*String*/  = "0";};
RDebugUtils.currentLine=4718797;
 //BA.debugLineNum = 4718797;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1");
RDebugUtils.currentLine=4718799;
 //BA.debugLineNum = 4718799;BA.debugLine="If Printer1.IsConnected = False Then";
if (__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { 
 }else {
RDebugUtils.currentLine=4718803;
 //BA.debugLineNum = 4718803;BA.debugLine="Printer1.DisConnect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._disconnect /*String*/ (null);
RDebugUtils.currentLine=4718804;
 //BA.debugLineNum = 4718804;BA.debugLine="Printer1.Connect";
__ref._printer1 /*SHARK2.keymon.com.mx.escposprinter*/ ._connect /*boolean*/ (null);
RDebugUtils.currentLine=4718805;
 //BA.debugLineNum = 4718805;BA.debugLine="Log(\"2\")";
__c.LogImpl("54718805","2",0);
 };
RDebugUtils.currentLine=4718808;
 //BA.debugLineNum = 4718808;BA.debugLine="pre_act = Subs.traeTotalClientepreventaparacredit";
__ref._pre_act /*float*/  = (float) (_subs._traetotalclientepreventaparacredito /*double*/ (ba));
RDebugUtils.currentLine=4718812;
 //BA.debugLineNum = 4718812;BA.debugLine="Private credi2 As Cursor = B4XPages.MainPage.skmt";
_credi2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_credi2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_CODIGO, Ifnull(SALDO_PENDIENTE,0) As SALDO_PENDIENTE, Ifnull(CAT_CL_LIMITECREDITO,0) As CAT_CL_LIMITECREDITO FROM KMT_INFO LEFT JOIN ABONOSP ON CAT_CL_CODIGO = CLIENTE WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT CAT_CL_BCREDITO, CAT_CL_CODIGO, Ifnull(SALDO_PENDIENTE,0) As SALDO_PENDIENTE, Ifnull(CAT_CL_LIMITECREDITO,0) As CAT_CL_LIMITECREDITO FROM KMT_INFO2 LEFT JOIN ABONOSP ON CAT_CL_CODIGO = CLIENTE WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=4718813;
 //BA.debugLineNum = 4718813;BA.debugLine="Log(credi2.RowCount)";
__c.LogImpl("54718813",BA.NumberToString(_credi2.getRowCount()),0);
RDebugUtils.currentLine=4718814;
 //BA.debugLineNum = 4718814;BA.debugLine="If credi2.RowCount > 0 Then";
if (_credi2.getRowCount()>0) { 
RDebugUtils.currentLine=4718815;
 //BA.debugLineNum = 4718815;BA.debugLine="credi2.Position = 0";
_credi2.setPosition((int) (0));
RDebugUtils.currentLine=4718816;
 //BA.debugLineNum = 4718816;BA.debugLine="credito_diponible = credi2.GetString (\"CAT_CL_LI";
__ref._credito_diponible /*String*/  = _credi2.GetString("CAT_CL_LIMITECREDITO");
RDebugUtils.currentLine=4718817;
 //BA.debugLineNum = 4718817;BA.debugLine="Log(credi2.GetString (\"CAT_CL_BCREDITO\"))";
__c.LogImpl("54718817",_credi2.GetString("CAT_CL_BCREDITO"),0);
RDebugUtils.currentLine=4718818;
 //BA.debugLineNum = 4718818;BA.debugLine="If credi2.GetString (\"CAT_CL_BCREDITO\") = \"1\" Th";
if ((_credi2.GetString("CAT_CL_BCREDITO")).equals("1")) { 
RDebugUtils.currentLine=4718819;
 //BA.debugLineNum = 4718819;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("54718819",_credi2.GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=4718820;
 //BA.debugLineNum = 4718820;BA.debugLine="If credi2.GetString(\"SALDO_PENDIENTE\") > 0 Then";
if ((double)(Double.parseDouble(_credi2.GetString("SALDO_PENDIENTE")))>0) { 
RDebugUtils.currentLine=4718822;
 //BA.debugLineNum = 4718822;BA.debugLine="Private credi3 As Cursor = B4XPages.MainPage.s";
_credi3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_credi3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO2 INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=4718823;
 //BA.debugLineNum = 4718823;BA.debugLine="If credi3.RowCount > 0 Then";
if (_credi3.getRowCount()>0) { 
RDebugUtils.currentLine=4718824;
 //BA.debugLineNum = 4718824;BA.debugLine="credi3.Position = 0";
_credi3.setPosition((int) (0));
RDebugUtils.currentLine=4718825;
 //BA.debugLineNum = 4718825;BA.debugLine="Dim total As String = 0";
_total = BA.NumberToString(0);
RDebugUtils.currentLine=4718826;
 //BA.debugLineNum = 4718826;BA.debugLine="For i = 0 To credi2.RowCount - 1";
{
final int step177 = 1;
final int limit177 = (int) (_credi2.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit177 ;_i = _i + step177 ) {
RDebugUtils.currentLine=4718827;
 //BA.debugLineNum = 4718827;BA.debugLine="credi2.Position = i";
_credi2.setPosition(_i);
RDebugUtils.currentLine=4718828;
 //BA.debugLineNum = 4718828;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("54718828",_credi2.GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=4718829;
 //BA.debugLineNum = 4718829;BA.debugLine="total = total + credi2.GetString(\"SALDO_PEND";
_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_credi2.GetString("SALDO_PENDIENTE"))));
RDebugUtils.currentLine=4718830;
 //BA.debugLineNum = 4718830;BA.debugLine="Log(total)";
__c.LogImpl("54718830",_total,0);
 }
};
RDebugUtils.currentLine=4718832;
 //BA.debugLineNum = 4718832;BA.debugLine="If NumberFormat2(total,1,2,2,False) <> Number";
if ((__c.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),__c.False)).equals(__c.NumberFormat2((double)(Double.parseDouble(_credi3.GetString("a_abono"))),(int) (1),(int) (2),(int) (2),__c.False)) == false) { 
RDebugUtils.currentLine=4718833;
 //BA.debugLineNum = 4718833;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo porqu";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta sera en efectivo porque el pago del pagare es menor al total de la deuda."),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=4718834;
 //BA.debugLineNum = 4718834;BA.debugLine="b_venta_credito.Visible = False";
__ref._b_venta_credito /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=4718835;
 //BA.debugLineNum = 4718835;BA.debugLine="Else If credi2.GetString (\"SALDO_PENDIENTE\")";
if ((_credi2.GetString("SALDO_PENDIENTE")).equals(_credi3.GetString("a_abono"))) { 
RDebugUtils.currentLine=4718836;
 //BA.debugLineNum = 4718836;BA.debugLine="Log(\"AQUI ESTOY SI VISIBLE BOTON\")";
__c.LogImpl("54718836","AQUI ESTOY SI VISIBLE BOTON",0);
RDebugUtils.currentLine=4718837;
 //BA.debugLineNum = 4718837;BA.debugLine="b_venta_credito.Visible = False ''' AQUI ACT";
__ref._b_venta_credito /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
 }else {
RDebugUtils.currentLine=4718840;
 //BA.debugLineNum = 4718840;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo por qu";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta sera en efectivo por que hay un pagare pendiente de pago"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=4718841;
 //BA.debugLineNum = 4718841;BA.debugLine="b_venta_credito.Visible = False";
__ref._b_venta_credito /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=4718843;
 //BA.debugLineNum = 4718843;BA.debugLine="credi3.Close";
_credi3.Close();
 }else 
{RDebugUtils.currentLine=4718844;
 //BA.debugLineNum = 4718844;BA.debugLine="Else If credi2.GetString(\"SALDO_PENDIENTE\") = 0";
if ((_credi2.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=4718845;
 //BA.debugLineNum = 4718845;BA.debugLine="b_venta_credito.Visible = False  '' AQUI ACTIV";
__ref._b_venta_credito /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }}
;
 }else {
RDebugUtils.currentLine=4718849;
 //BA.debugLineNum = 4718849;BA.debugLine="Log(1)";
__c.LogImpl("54718849",BA.NumberToString(1),0);
RDebugUtils.currentLine=4718850;
 //BA.debugLineNum = 4718850;BA.debugLine="b_venta_credito.Visible = False";
__ref._b_venta_credito /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4718851;
 //BA.debugLineNum = 4718851;BA.debugLine="If credi2.GetString(\"SALDO_PENDIENTE\") > 0 Then";
if ((double)(Double.parseDouble(_credi2.GetString("SALDO_PENDIENTE")))>0) { 
RDebugUtils.currentLine=4718852;
 //BA.debugLineNum = 4718852;BA.debugLine="Private credi3 As Cursor = B4XPages.MainPage.s";
_credi3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_credi3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO2 INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=4718853;
 //BA.debugLineNum = 4718853;BA.debugLine="If credi3.RowCount > 0 Then";
if (_credi3.getRowCount()>0) { 
RDebugUtils.currentLine=4718854;
 //BA.debugLineNum = 4718854;BA.debugLine="credi3.Position = 0";
_credi3.setPosition((int) (0));
RDebugUtils.currentLine=4718856;
 //BA.debugLineNum = 4718856;BA.debugLine="Dim total As String = 0";
_total = BA.NumberToString(0);
RDebugUtils.currentLine=4718857;
 //BA.debugLineNum = 4718857;BA.debugLine="For i = 0 To credi2.RowCount - 1";
{
final int step206 = 1;
final int limit206 = (int) (_credi2.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit206 ;_i = _i + step206 ) {
RDebugUtils.currentLine=4718858;
 //BA.debugLineNum = 4718858;BA.debugLine="credi2.Position = i";
_credi2.setPosition(_i);
RDebugUtils.currentLine=4718859;
 //BA.debugLineNum = 4718859;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("54718859",_credi2.GetString("SALDO_PENDIENTE"),0);
RDebugUtils.currentLine=4718860;
 //BA.debugLineNum = 4718860;BA.debugLine="total = total + credi2.GetString(\"SALDO_PEND";
_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_credi2.GetString("SALDO_PENDIENTE"))));
RDebugUtils.currentLine=4718861;
 //BA.debugLineNum = 4718861;BA.debugLine="Log(total)";
__c.LogImpl("54718861",_total,0);
 }
};
RDebugUtils.currentLine=4718863;
 //BA.debugLineNum = 4718863;BA.debugLine="If NumberFormat2(total,1,2,2,False) <> Number";
if ((__c.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),__c.False)).equals(__c.NumberFormat2((double)(Double.parseDouble(_credi3.GetString("a_abono"))),(int) (1),(int) (2),(int) (2),__c.False)) == false) { 
RDebugUtils.currentLine=4718864;
 //BA.debugLineNum = 4718864;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo porqu";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta sera en efectivo porque el pago del pagare es menor al total de la deuda."),BA.ObjectToCharSequence("Atención"),ba);
 }else 
{RDebugUtils.currentLine=4718865;
 //BA.debugLineNum = 4718865;BA.debugLine="Else If credi2.GetString (\"SALDO_PENDIENTE\")";
if ((_credi2.GetString("SALDO_PENDIENTE")).equals(_credi3.GetString("a_abono"))) { 
 }}
;
 }else {
RDebugUtils.currentLine=4718868;
 //BA.debugLineNum = 4718868;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo por qu";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta sera en efectivo por que hay un pagare pendiente de pago"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=4718870;
 //BA.debugLineNum = 4718870;BA.debugLine="credi3.Close";
_credi3.Close();
 }else 
{RDebugUtils.currentLine=4718871;
 //BA.debugLineNum = 4718871;BA.debugLine="Else If credi2.GetString(\"SALDO_PENDIENTE\") = 0";
if ((_credi2.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { 
 }}
;
 };
 };
RDebugUtils.currentLine=4718876;
 //BA.debugLineNum = 4718876;BA.debugLine="credi2.Close";
_credi2.Close();
RDebugUtils.currentLine=4718877;
 //BA.debugLineNum = 4718877;BA.debugLine="If la_cuenta.Text = \"0\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=4718878;
 //BA.debugLineNum = 4718878;BA.debugLine="gest.Text = \"Abordo\"";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Abordo"));
RDebugUtils.currentLine=4718879;
 //BA.debugLineNum = 4718879;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/  = "0";
 }else 
{RDebugUtils.currentLine=4718880;
 //BA.debugLineNum = 4718880;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("1")) { 
RDebugUtils.currentLine=4718881;
 //BA.debugLineNum = 4718881;BA.debugLine="gest.Text = \"Recarga\"";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Recarga"));
RDebugUtils.currentLine=4718882;
 //BA.debugLineNum = 4718882;BA.debugLine="B4XPages.MainPage.recarga = \"1\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/  = "1";
 }else {
RDebugUtils.currentLine=4718885;
 //BA.debugLineNum = 4718885;BA.debugLine="gest.Text = \"Preventa\"";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Preventa"));
RDebugUtils.currentLine=4718886;
 //BA.debugLineNum = 4718886;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/  = "0";
 }}
;
RDebugUtils.currentLine=4718888;
 //BA.debugLineNum = 4718888;BA.debugLine="LogColor(B4XPages.MainPage.recarga,Colors.Blue)";
__c.LogImpl("54718888",_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ,__c.Colors.Blue);
RDebugUtils.currentLine=4718892;
 //BA.debugLineNum = 4718892;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(SHARK2.keymon.com.mx.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}));}
anywheresoftware.b4a.gps.LocationWrapper _l1 = null;
anywheresoftware.b4a.gps.LocationWrapper _l2 = null;
anywheresoftware.b4a.gps.LocationWrapper _l3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _geo = null;
RDebugUtils.currentLine=4784128;
 //BA.debugLineNum = 4784128;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=4784130;
 //BA.debugLineNum = 4784130;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
if (_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized() && _tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()!=0) { 
RDebugUtils.currentLine=4784131;
 //BA.debugLineNum = 4784131;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
RDebugUtils.currentLine=4784132;
 //BA.debugLineNum = 4784132;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
 };
RDebugUtils.currentLine=4784136;
 //BA.debugLineNum = 4784136;BA.debugLine="Dim l1, l2,l3 As Location";
_l1 = new anywheresoftware.b4a.gps.LocationWrapper();
_l2 = new anywheresoftware.b4a.gps.LocationWrapper();
_l3 = new anywheresoftware.b4a.gps.LocationWrapper();
RDebugUtils.currentLine=4784137;
 //BA.debugLineNum = 4784137;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPage";
_l1.Initialize2(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ );
RDebugUtils.currentLine=4784139;
 //BA.debugLineNum = 4784139;BA.debugLine="l2.Initialize2(m_lat, m_lon)";
_l2.Initialize2(__ref._m_lat /*String*/ ,__ref._m_lon /*String*/ );
RDebugUtils.currentLine=4784140;
 //BA.debugLineNum = 4784140;BA.debugLine="l3.Initialize2(m_lat_al,m_lon_al)";
_l3.Initialize2(__ref._m_lat_al /*String*/ ,__ref._m_lon_al /*String*/ );
RDebugUtils.currentLine=4784141;
 //BA.debugLineNum = 4784141;BA.debugLine="BT_QR.Enabled = True";
__ref._bt_qr /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=4784142;
 //BA.debugLineNum = 4784142;BA.debugLine="LA_GPS.TextColor = Colors.Blue";
__ref._la_gps /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Blue);
RDebugUtils.currentLine=4784143;
 //BA.debugLineNum = 4784143;BA.debugLine="LA_GPS.Text = \"CON UBICACION GPS\"";
__ref._la_gps /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CON UBICACION GPS"));
RDebugUtils.currentLine=4784146;
 //BA.debugLineNum = 4784146;BA.debugLine="distance =    l1.DistanceTo(l2)  'the result is i";
__ref._distance /*long*/  = (long) (_l1.DistanceTo((android.location.Location)(_l2.getObject())));
RDebugUtils.currentLine=4784147;
 //BA.debugLineNum = 4784147;BA.debugLine="distance2 =    l1.DistanceTo(l3)  'the result is";
__ref._distance2 /*long*/  = (long) (_l1.DistanceTo((android.location.Location)(_l3.getObject())));
RDebugUtils.currentLine=4784150;
 //BA.debugLineNum = 4784150;BA.debugLine="Dim geo As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_geo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_geo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ACTIVA FROM GEOCERCA")));
RDebugUtils.currentLine=4784151;
 //BA.debugLineNum = 4784151;BA.debugLine="If geo.RowCount > 0 Then";
if (_geo.getRowCount()>0) { 
RDebugUtils.currentLine=4784152;
 //BA.debugLineNum = 4784152;BA.debugLine="geo.Position = 0";
_geo.setPosition((int) (0));
RDebugUtils.currentLine=4784153;
 //BA.debugLineNum = 4784153;BA.debugLine="If geo.GetInt(\"ACTIVA\") = 0 Then";
if (_geo.GetInt("ACTIVA")==0) { 
RDebugUtils.currentLine=4784154;
 //BA.debugLineNum = 4784154;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784156;
 //BA.debugLineNum = 4784156;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=4784157;
 //BA.debugLineNum = 4784157;BA.debugLine="Else If geo.GetInt(\"ACTIVA\") = 1 Then";
if (_geo.GetInt("ACTIVA")==1) { 
RDebugUtils.currentLine=4784158;
 //BA.debugLineNum = 4784158;BA.debugLine="If distance2 < 100 Then";
if (__ref._distance2 /*long*/ <100) { 
RDebugUtils.currentLine=4784159;
 //BA.debugLineNum = 4784159;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
__ref._la_geo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Blue);
RDebugUtils.currentLine=4784160;
 //BA.debugLineNum = 4784160;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784162;
 //BA.debugLineNum = 4784162;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=4784164;
 //BA.debugLineNum = 4784164;BA.debugLine="If distance < 50 Then";
if (__ref._distance /*long*/ <50) { 
RDebugUtils.currentLine=4784165;
 //BA.debugLineNum = 4784165;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
__ref._la_geo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Blue);
RDebugUtils.currentLine=4784166;
 //BA.debugLineNum = 4784166;BA.debugLine="Tels.Visible = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784168;
 //BA.debugLineNum = 4784168;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=4784170;
 //BA.debugLineNum = 4784170;BA.debugLine="LA_GEO.TextColor = Colors.Red";
__ref._la_geo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=4784171;
 //BA.debugLineNum = 4784171;BA.debugLine="Tels.Visible = False";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784172;
 //BA.debugLineNum = 4784172;BA.debugLine="gest.Visible = False";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 };
 }}
;
 };
RDebugUtils.currentLine=4784178;
 //BA.debugLineNum = 4784178;BA.debugLine="LA_GEO.Text= $\"$1.2{distance/1000} kms\"$";
__ref._la_geo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.2",(Object)(__ref._distance /*long*/ /(double)1000))+" kms")));
RDebugUtils.currentLine=4784179;
 //BA.debugLineNum = 4784179;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=4784180;
 //BA.debugLineNum = 4784180;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._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 /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
RDebugUtils.currentLine=4784181;
 //BA.debugLineNum = 4784181;BA.debugLine="CallSubDelayed(Tracker, \"CreateLocationRequest\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"CreateLocationRequest");
RDebugUtils.currentLine=4784182;
 //BA.debugLineNum = 4784182;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(SHARK2.keymon.com.mx.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(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
int _resultado1 = 0;

@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=5111812;
 //BA.debugLineNum = 5111812;BA.debugLine="If Starter.pre_viejo = pre_act Then";
if (true) break;

case 1:
//if
this.state = 32;
if (parent._starter._pre_viejo /*float*/ ==__ref._pre_act /*float*/ ) { 
this.state = 3;
}else {
this.state = 27;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=5111813;
 //BA.debugLineNum = 5111813;BA.debugLine="If (la_cuenta.Text <> \"0\" And la_cuenta.Text <>";
if (true) break;

case 4:
//if
this.state = 25;
if (((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false && (__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("1") == false)) { 
this.state = 6;
}else {
this.state = 24;
}if (true) break;

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=5111814;
 //BA.debugLineNum = 5111814;BA.debugLine="If banderaimp = 1 Then";
if (true) break;

case 7:
//if
this.state = 22;
if (__ref._banderaimp /*int*/ ==1) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

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

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=5111816;
 //BA.debugLineNum = 5111816;BA.debugLine="cuest.encuestaIniciada = False";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._encuestainiciada /*boolean*/  = parent.__c.False;
RDebugUtils.currentLine=5111817;
 //BA.debugLineNum = 5111817;BA.debugLine="cuest.ocultPanelPregunta";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._ocultpanelpregunta /*String*/ (null);
RDebugUtils.currentLine=5111818;
 //BA.debugLineNum = 5111818;BA.debugLine="If IsNumber(l_total.text) And Not(Subs.pedidoG";
if (true) break;

case 12:
//if
this.state = 21;
if (parent.__c.IsNumber(__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()) && parent.__c.Not(parent._subs._pedidoguardado /*boolean*/ (ba))) { 
this.state = 14;
}if (true) break;

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=5111819;
 //BA.debugLineNum = 5111819;BA.debugLine="LogColor(\"Hay Venta\", Colors.Red)";
parent.__c.LogImpl("55111819","Hay Venta",parent.__c.Colors.Red);
RDebugUtils.currentLine=5111820;
 //BA.debugLineNum = 5111820;BA.debugLine="Private resultado1 As Int = Msgbox2($\"Va sali";
_resultado1 = parent.__c.Msgbox2(BA.ObjectToCharSequence(("Va salir sin haber guardado la venta, si continua, la venta se BORRARA."+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"¿Esta seguro que desea continuar?")),BA.ObjectToCharSequence("SE VA A BORRAR LA VENTA"),"Borrar Venta","Guardar Venta","",(android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png").getObject()),ba);
RDebugUtils.currentLine=5111821;
 //BA.debugLineNum = 5111821;BA.debugLine="If resultado1 = DialogResponse.POSITIVE Then";
if (true) break;

case 15:
//if
this.state = 20;
if (_resultado1==parent.__c.DialogResponse.POSITIVE) { 
this.state = 17;
}else 
{RDebugUtils.currentLine=5111827;
 //BA.debugLineNum = 5111827;BA.debugLine="else if resultado1=DialogResponse.CANCEL Then";
if (_resultado1==parent.__c.DialogResponse.CANCEL) { 
this.state = 19;
}}
if (true) break;

case 17:
//C
this.state = 20;
RDebugUtils.currentLine=5111822;
 //BA.debugLineNum = 5111822;BA.debugLine="Log(\"Borrra venta\")";
parent.__c.LogImpl("55111822","Borrra venta",0);
RDebugUtils.currentLine=5111823;
 //BA.debugLineNum = 5111823;BA.debugLine="Subs.borraPedidoClienteActual";
parent._subs._borrapedidoclienteactual /*String*/ (ba);
RDebugUtils.currentLine=5111824;
 //BA.debugLineNum = 5111824;BA.debugLine="ToastMessageShow(\"Venta Borrada\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Venta Borrada"),parent.__c.False);
RDebugUtils.currentLine=5111826;
 //BA.debugLineNum = 5111826;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
parent._b4xpages._showpage /*String*/ (ba,"Principal");
 if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=5111828;
 //BA.debugLineNum = 5111828;BA.debugLine="Log(\"Pedido guardado\")";
parent.__c.LogImpl("55111828","Pedido guardado",0);
RDebugUtils.currentLine=5111829;
 //BA.debugLineNum = 5111829;BA.debugLine="Guardar_Click";
__ref._guardar_click /*void*/ (null);
RDebugUtils.currentLine=5111830;
 //BA.debugLineNum = 5111830;BA.debugLine="ToastMessageShow(\"Venta Guardada\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Venta Guardada"),parent.__c.False);
 if (true) break;

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

case 21:
//C
this.state = 22;
;
RDebugUtils.currentLine=5111834;
 //BA.debugLineNum = 5111834;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
parent._b4xpages._showpage /*String*/ (ba,"Clientes");
 if (true) break;

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

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

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

case 27:
//C
this.state = 28;
RDebugUtils.currentLine=5111843;
 //BA.debugLineNum = 5111843;BA.debugLine="If B4XPages.MainPage.recarga = \"1\" Then";
if (true) break;

case 28:
//if
this.state = 31;
if ((parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ).equals("1")) { 
this.state = 30;
}if (true) break;

case 30:
//C
this.state = 31;
RDebugUtils.currentLine=5111844;
 //BA.debugLineNum = 5111844;BA.debugLine="B4XPages.ShowPage(\"login\")";
parent._b4xpages._showpage /*String*/ (ba,"login");
 if (true) break;

case 31:
//C
this.state = 32;
;
 if (true) break;

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

            }
        }
    }
}
public void  _guardar_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "guardar_click", false))
	 {Debug.delegate(ba, "guardar_click", null); return;}
ResumableSub_Guardar_Click rsub = new ResumableSub_Guardar_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_Guardar_Click extends BA.ResumableSub {
public ResumableSub_Guardar_Click(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fg = null;
String _costo = "";
int _resultado = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cpagares = 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=5308417;
 //BA.debugLineNum = 5308417;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"Select COU";
__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._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select COUNT(Case WHEN PE_FOLIO = 'PREVENTA_CONTADO' THEN 1 END) AS CUANTOS_CONTADO,COUNT(Case WHEN PE_FOLIO = 'PREVENTA_CREDITO' THEN 1 END) AS CUANTOS_CREDITO FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta FROM CUENTAA) And (PE_FOLIO = ? OR PE_FOLIO = ?)",new String[]{"PREVENTA_CONTADO","PREVENTA_CREDITO"})));
RDebugUtils.currentLine=5308418;
 //BA.debugLineNum = 5308418;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5308420;
 //BA.debugLineNum = 5308420;BA.debugLine="Log(\"Esto es Contado<<<<<<<<<<<<<: \" & c.GetStri";
parent.__c.LogImpl("55308420","Esto es Contado<<<<<<<<<<<<<: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_CONTADO"),0);
RDebugUtils.currentLine=5308421;
 //BA.debugLineNum = 5308421;BA.debugLine="Log(\"Esto es Credito<<<<<<<<<<<<<: \" & c.GetStri";
parent.__c.LogImpl("55308421","Esto es Credito<<<<<<<<<<<<<: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_CREDITO"),0);
RDebugUtils.currentLine=5308424;
 //BA.debugLineNum = 5308424;BA.debugLine="If c.GetString(\"CUANTOS_CREDITO\") = 0 Then";
if (true) break;

case 1:
//if
this.state = 22;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_CREDITO")).equals(BA.NumberToString(0))) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=5308426;
 //BA.debugLineNum = 5308426;BA.debugLine="Else If c.GetString(\"CUANTOS_CREDITO\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_CREDITO")))>0) { 
this.state = 5;
}}
if (true) break;

case 3:
//C
this.state = 22;
RDebugUtils.currentLine=5308425;
 //BA.debugLineNum = 5308425;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=5308427;
 //BA.debugLineNum = 5308427;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Sele";
_fg = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fg = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO, PE_FOLIO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'")));
RDebugUtils.currentLine=5308428;
 //BA.debugLineNum = 5308428;BA.debugLine="fg.Position = 0";
_fg.setPosition((int) (0));
RDebugUtils.currentLine=5308429;
 //BA.debugLineNum = 5308429;BA.debugLine="Dim costo As String = fg.GetString(\"COSTO\")";
_costo = _fg.GetString("COSTO");
RDebugUtils.currentLine=5308431;
 //BA.debugLineNum = 5308431;BA.debugLine="If costo > 0 And costo < 1000 Then";
if (true) break;

case 6:
//if
this.state = 21;
if ((double)(Double.parseDouble(_costo))>0 && (double)(Double.parseDouble(_costo))<1000) { 
this.state = 8;
}else 
{RDebugUtils.currentLine=5308439;
 //BA.debugLineNum = 5308439;BA.debugLine="Else If costo >= 1000 Then";
if ((double)(Double.parseDouble(_costo))>=1000) { 
this.state = 14;
}}
if (true) break;

case 8:
//C
this.state = 9;
RDebugUtils.currentLine=5308432;
 //BA.debugLineNum = 5308432;BA.debugLine="Msgbox2Async($\"¿Desea continuar?${CRLF}Si acep";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("¿Desea continuar?"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Si acepta, el pedido a crédito se borrará (mínimo $1,000)."+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Si cancela, podrá seguir agregando productos.")),BA.ObjectToCharSequence("Venta Minima de Credito"),"Si","","No",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=5308433;
 //BA.debugLineNum = 5308433;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "guardar_click"), null);
this.state = 23;
return;
case 23:
//C
this.state = 9;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=5308434;
 //BA.debugLineNum = 5308434;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 9:
//if
this.state = 12;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=5308435;
 //BA.debugLineNum = 5308435;BA.debugLine="Subs.borraPedidoCredito";
parent._subs._borrapedidocredito /*String*/ (ba);
RDebugUtils.currentLine=5308436;
 //BA.debugLineNum = 5308436;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
 if (true) break;

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

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=5308440;
 //BA.debugLineNum = 5308440;BA.debugLine="Dim cPagares As Cursor = B4XPages.MainPage.skm";
_cpagares = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cpagares = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=5308441;
 //BA.debugLineNum = 5308441;BA.debugLine="cPagares.Position = 0";
_cpagares.setPosition((int) (0));
RDebugUtils.currentLine=5308442;
 //BA.debugLineNum = 5308442;BA.debugLine="If cPagares.GetString(\"REGISTRADO\") = 0 Then";
if (true) break;

case 15:
//if
this.state = 20;
if ((_cpagares.GetString("REGISTRADO")).equals(BA.NumberToString(0))) { 
this.state = 17;
}else {
this.state = 19;
}if (true) break;

case 17:
//C
this.state = 20;
RDebugUtils.currentLine=5308443;
 //BA.debugLineNum = 5308443;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ ),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(_costo),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}));
RDebugUtils.currentLine=5308444;
 //BA.debugLineNum = 5308444;BA.debugLine="Log(\"Aqui inserto: \" & \"Almacen: \" & ALMACEN &";
parent.__c.LogImpl("55308444","Aqui inserto: "+"Almacen: "+__ref._almacen /*String*/ +"Ruta "+__ref._la_ruta /*String*/ +"Fecha: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Captura: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Monto: "+_costo+"Usuario: "+__ref._usuario /*String*/ +"Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+"<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=5308445;
 //BA.debugLineNum = 5308445;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5308446;
 //BA.debugLineNum = 5308446;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=5308448;
 //BA.debugLineNum = 5308448;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=5308449;
 //BA.debugLineNum = 5308449;BA.debugLine="Log(\"Aqui actualizo: \" & \"Almacen: \" & ALMACEN";
parent.__c.LogImpl("55308449","Aqui actualizo: "+"Almacen: "+__ref._almacen /*String*/ +"Ruta "+__ref._la_ruta /*String*/ +"Fecha: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Captura: "+(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )+"Monto: "+_costo+"Usuario: "+__ref._usuario /*String*/ +"Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+"<<<<<<<<<<<<<<<<<<<<<",0);
RDebugUtils.currentLine=5308450;
 //BA.debugLineNum = 5308450;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
RDebugUtils.currentLine=5308451;
 //BA.debugLineNum = 5308451;BA.debugLine="p_credito.Visible = False";
__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=5308453;
 //BA.debugLineNum = 5308453;BA.debugLine="cPagares.Close";
_cpagares.Close();
RDebugUtils.currentLine=5308454;
 //BA.debugLineNum = 5308454;BA.debugLine="GuardaVenta";
__ref._guardaventa /*String*/ (null);
 if (true) break;

case 21:
//C
this.state = 22;
;
RDebugUtils.currentLine=5308456;
 //BA.debugLineNum = 5308456;BA.debugLine="fg.Close";
_fg.Close();
 if (true) break;

case 22:
//C
this.state = -1;
;
RDebugUtils.currentLine=5308459;
 //BA.debugLineNum = 5308459;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5308548;
 //BA.debugLineNum = 5308548;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b4xpage_created(SHARK2.keymon.com.mx.c_cliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}); return;}
ResumableSub_B4XPage_Created rsub = new ResumableSub_B4XPage_Created(this,__ref,_root1);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Created extends BA.ResumableSub {
public ResumableSub_B4XPage_Created(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) {
this.parent = parent;
this.__ref = __ref;
this._root1 = _root1;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.objects.B4XViewWrapper _root1;
String _cabonos = "";
String _permission = "";
boolean _resultc = false;

@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=4653057;
 //BA.debugLineNum = 4653057;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=4653060;
 //BA.debugLineNum = 4653060;BA.debugLine="Root.LoadLayout(\"cliente\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("cliente",ba);
RDebugUtils.currentLine=4653061;
 //BA.debugLineNum = 4653061;BA.debugLine="cuest.Initialize(Me, \"cuest\", Root, Starter.skmt)";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._initialize /*Object*/ (null,ba,parent,"cuest",__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ );
RDebugUtils.currentLine=4653062;
 //BA.debugLineNum = 4653062;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = parent.__c.File.getDirInternal();
RDebugUtils.currentLine=4653063;
 //BA.debugLineNum = 4653063;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (true) break;

case 1:
//if
this.state = 4;
if (parent.__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==parent.__c.False) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=4653064;
 //BA.debugLineNum = 4653064;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",__ref._ruta /*String*/ ,"kmt.db");
 if (true) break;

case 4:
//C
this.state = 5;
;
RDebugUtils.currentLine=4653066;
 //BA.debugLineNum = 4653066;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(__ref._ruta /*String*/ ,"kmt.db",parent.__c.True);
RDebugUtils.currentLine=4653067;
 //BA.debugLineNum = 4653067;BA.debugLine="c = skmt.ExecQuery(\"select CAT_CL_CODIGO,CAT_CL_R";
__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)(__ref._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_MTOCOMPRA, CAT_CL_GIRO  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
RDebugUtils.currentLine=4653068;
 //BA.debugLineNum = 4653068;BA.debugLine="s = skmt.ExecQuery(\"select sum(pe_costo_tot) as T";
__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)(__ref._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=4653069;
 //BA.debugLineNum = 4653069;BA.debugLine="b = skmt.ExecQuery(\"select COUNT(*) AS CLIENTE FR";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=4653070;
 //BA.debugLineNum = 4653070;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4653071;
 //BA.debugLineNum = 4653071;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
_cabonos = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE");
RDebugUtils.currentLine=4653072;
 //BA.debugLineNum = 4653072;BA.debugLine="If cabonos = 0 Then";
if (true) break;

case 5:
//if
this.state = 10;
if ((_cabonos).equals(BA.NumberToString(0))) { 
this.state = 7;
}else {
this.state = 9;
}if (true) break;

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

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=4653075;
 //BA.debugLineNum = 4653075;BA.debugLine="b_cxc.Visible = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
 if (true) break;

case 10:
//C
this.state = 11;
;
RDebugUtils.currentLine=4653078;
 //BA.debugLineNum = 4653078;BA.debugLine="s.Position=0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4653079;
 //BA.debugLineNum = 4653079;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

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

case 13:
//C
this.state = 14;
RDebugUtils.currentLine=4653080;
 //BA.debugLineNum = 4653080;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4653081;
 //BA.debugLineNum = 4653081;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=4653082;
 //BA.debugLineNum = 4653082;BA.debugLine="cuenta = c.GetString(\"CAT_CL_CODIGO\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO");
RDebugUtils.currentLine=4653083;
 //BA.debugLineNum = 4653083;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=4653084;
 //BA.debugLineNum = 4653084;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.";
__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=4653085;
 //BA.debugLineNum = 4653085;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=4653086;
 //BA.debugLineNum = 4653086;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=4653088;
 //BA.debugLineNum = 4653088;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=4653089;
 //BA.debugLineNum = 4653089;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=4653090;
 //BA.debugLineNum = 4653090;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")));
RDebugUtils.currentLine=4653091;
 //BA.debugLineNum = 4653091;BA.debugLine="l_giro.Text = c.GetString(\"CAT_CL_GIRO\")";
__ref._l_giro /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_GIRO")));
RDebugUtils.currentLine=4653092;
 //BA.debugLineNum = 4653092;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=4653093;
 //BA.debugLineNum = 4653093;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=4653094;
 //BA.debugLineNum = 4653094;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=4653095;
 //BA.debugLineNum = 4653095;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE")));
RDebugUtils.currentLine=4653096;
 //BA.debugLineNum = 4653096;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
__ref._total_cliente /*String*/  = __ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE");
RDebugUtils.currentLine=4653097;
 //BA.debugLineNum = 4653097;BA.debugLine="MONTO_COMPRA = c.GetString(\"CAT_CL_MTOCOMPRA\")";
__ref._monto_compra /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_MTOCOMPRA");
 if (true) break;

case 14:
//C
this.state = -1;
;
RDebugUtils.currentLine=4653099;
 //BA.debugLineNum = 4653099;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4653100;
 //BA.debugLineNum = 4653100;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4653101;
 //BA.debugLineNum = 4653101;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth");
RDebugUtils.currentLine=4653102;
 //BA.debugLineNum = 4653102;BA.debugLine="cmp20.Initialize(\"Printer\")";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer");
RDebugUtils.currentLine=4653103;
 //BA.debugLineNum = 4653103;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA);
RDebugUtils.currentLine=4653104;
 //BA.debugLineNum = 4653104;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b4xpage_created"), null);
this.state = 15;
return;
case 15:
//C
this.state = -1;
_permission = (String) result[1];
_resultc = (Boolean) result[2];
;
RDebugUtils.currentLine=4653105;
 //BA.debugLineNum = 4653105;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_WRITE_EXTERNAL_STORAGE);
RDebugUtils.currentLine=4653106;
 //BA.debugLineNum = 4653106;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b4xpage_created"), null);
this.state = 16;
return;
case 16:
//C
this.state = -1;
_permission = (String) result[1];
_resultc = (Boolean) result[2];
;
RDebugUtils.currentLine=4653122;
 //BA.debugLineNum = 4653122;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _bt_qr_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "bt_qr_click", false))
	 {return ((String) Debug.delegate(ba, "bt_qr_click", null));}
RDebugUtils.currentLine=5767168;
 //BA.debugLineNum = 5767168;BA.debugLine="Sub BT_QR_Click";
RDebugUtils.currentLine=5767176;
 //BA.debugLineNum = 5767176;BA.debugLine="End Sub";
return "";
}
public String  _calc_ean_checksum(SHARK2.keymon.com.mx.c_cliente __ref,String _number) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "calc_ean_checksum", false))
	 {return ((String) Debug.delegate(ba, "calc_ean_checksum", new Object[] {_number}));}
int _i = 0;
char _co = '\0';
int _soma = 0;
int _n = 0;
float _digit = 0f;
RDebugUtils.currentLine=6029312;
 //BA.debugLineNum = 6029312;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
RDebugUtils.currentLine=6029313;
 //BA.debugLineNum = 6029313;BA.debugLine="Dim i As Int";
_i = 0;
RDebugUtils.currentLine=6029314;
 //BA.debugLineNum = 6029314;BA.debugLine="Dim cO As Char";
_co = '\0';
RDebugUtils.currentLine=6029315;
 //BA.debugLineNum = 6029315;BA.debugLine="Dim soma As Int";
_soma = 0;
RDebugUtils.currentLine=6029316;
 //BA.debugLineNum = 6029316;BA.debugLine="Dim n As Int";
_n = 0;
RDebugUtils.currentLine=6029317;
 //BA.debugLineNum = 6029317;BA.debugLine="Dim digit As Float";
_digit = 0f;
RDebugUtils.currentLine=6029318;
 //BA.debugLineNum = 6029318;BA.debugLine="soma = 0";
_soma = (int) (0);
RDebugUtils.currentLine=6029319;
 //BA.debugLineNum = 6029319;BA.debugLine="For i=0 To number.Length - 1";
{
final int step7 = 1;
final int limit7 = (int) (_number.length()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=6029320;
 //BA.debugLineNum = 6029320;BA.debugLine="digit = number.SubString2(i,i+1)";
_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1))));
RDebugUtils.currentLine=6029321;
 //BA.debugLineNum = 6029321;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
_n = (int) (_digit*((_i%2)*2+1));
RDebugUtils.currentLine=6029322;
 //BA.debugLineNum = 6029322;BA.debugLine="soma=soma+n";
_soma = (int) (_soma+_n);
 }
};
RDebugUtils.currentLine=6029324;
 //BA.debugLineNum = 6029324;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
if (true) return _number+BA.NumberToString(((10-(_soma%10))%10));
RDebugUtils.currentLine=6029325;
 //BA.debugLineNum = 6029325;BA.debugLine="End Sub";
return "";
}
public String  _cb_factura_checkedchange(SHARK2.keymon.com.mx.c_cliente __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "cb_factura_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "cb_factura_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=7340032;
 //BA.debugLineNum = 7340032;BA.debugLine="Private Sub cb_factura_CheckedChange(Checked As Bo";
RDebugUtils.currentLine=7340034;
 //BA.debugLineNum = 7340034;BA.debugLine="If Checked Then p_cbFactura.Color = Colors.Green";
if (_checked) { 
__ref._p_cbfactura /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.Green);}
else {
__ref._p_cbfactura /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.Red);};
RDebugUtils.currentLine=7340035;
 //BA.debugLineNum = 7340035;BA.debugLine="End Sub";
return "";
}
public String  _cb_giro_selectedindexchanged(SHARK2.keymon.com.mx.c_cliente __ref,int _index) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "cb_giro_selectedindexchanged", false))
	 {return ((String) Debug.delegate(ba, "cb_giro_selectedindexchanged", new Object[] {_index}));}
RDebugUtils.currentLine=9043968;
 //BA.debugLineNum = 9043968;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
RDebugUtils.currentLine=9043969;
 //BA.debugLineNum = 9043969;BA.debugLine="giros = cb_giro.SelectedItem";
__ref._giros /*String*/  = __ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null);
RDebugUtils.currentLine=9043970;
 //BA.debugLineNum = 9043970;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
RDebugUtils.currentLine=4521984;
 //BA.debugLineNum = 4521984;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=4521985;
 //BA.debugLineNum = 4521985;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=4521986;
 //BA.debugLineNum = 4521986;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=4521987;
 //BA.debugLineNum = 4521987;BA.debugLine="Private p_cliente As Panel";
_p_cliente = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4521988;
 //BA.debugLineNum = 4521988;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new SHARK2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=4521989;
 //BA.debugLineNum = 4521989;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=4521990;
 //BA.debugLineNum = 4521990;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=4521991;
 //BA.debugLineNum = 4521991;BA.debugLine="Dim credito_diponible As String";
_credito_diponible = "";
RDebugUtils.currentLine=4521992;
 //BA.debugLineNum = 4521992;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=4521993;
 //BA.debugLineNum = 4521993;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=4521994;
 //BA.debugLineNum = 4521994;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=4521995;
 //BA.debugLineNum = 4521995;BA.debugLine="Dim clie_id As String";
_clie_id = "";
RDebugUtils.currentLine=4521996;
 //BA.debugLineNum = 4521996;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=4521997;
 //BA.debugLineNum = 4521997;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=4521998;
 //BA.debugLineNum = 4521998;BA.debugLine="Dim total_cliente As String";
_total_cliente = "";
RDebugUtils.currentLine=4521999;
 //BA.debugLineNum = 4521999;BA.debugLine="Dim m_lat, m_lon As String";
_m_lat = "";
_m_lon = "";
RDebugUtils.currentLine=4522000;
 //BA.debugLineNum = 4522000;BA.debugLine="Dim m_lat_al, m_lon_al As String";
_m_lat_al = "";
_m_lon_al = "";
RDebugUtils.currentLine=4522001;
 //BA.debugLineNum = 4522001;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
RDebugUtils.currentLine=4522002;
 //BA.debugLineNum = 4522002;BA.debugLine="Dim cmp20 As Serial";
_cmp20 = new anywheresoftware.b4a.objects.Serial();
RDebugUtils.currentLine=4522003;
 //BA.debugLineNum = 4522003;BA.debugLine="Dim printer As TextWriter";
_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
RDebugUtils.currentLine=4522004;
 //BA.debugLineNum = 4522004;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=4522005;
 //BA.debugLineNum = 4522005;BA.debugLine="Dim L As List";
_l = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=4522006;
 //BA.debugLineNum = 4522006;BA.debugLine="Dim TAMANO As Int";
_tamano = 0;
RDebugUtils.currentLine=4522007;
 //BA.debugLineNum = 4522007;BA.debugLine="Dim ESPACIO As Int";
_espacio = 0;
RDebugUtils.currentLine=4522008;
 //BA.debugLineNum = 4522008;BA.debugLine="Dim BLANCO As String";
_blanco = "";
RDebugUtils.currentLine=4522009;
 //BA.debugLineNum = 4522009;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=4522010;
 //BA.debugLineNum = 4522010;BA.debugLine="Dim tipo_venta As String = \"PREVENTA\"";
_tipo_venta = "PREVENTA";
RDebugUtils.currentLine=4522011;
 //BA.debugLineNum = 4522011;BA.debugLine="Dim MAC_IMPRESORA As String";
_mac_impresora = "";
RDebugUtils.currentLine=4522012;
 //BA.debugLineNum = 4522012;BA.debugLine="Dim Printer1 As EscPosPrinter";
_printer1 = new SHARK2.keymon.com.mx.escposprinter();
RDebugUtils.currentLine=4522013;
 //BA.debugLineNum = 4522013;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522014;
 //BA.debugLineNum = 4522014;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522015;
 //BA.debugLineNum = 4522015;BA.debugLine="Dim DD As Cursor";
_dd = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522016;
 //BA.debugLineNum = 4522016;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522017;
 //BA.debugLineNum = 4522017;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=4522018;
 //BA.debugLineNum = 4522018;BA.debugLine="Dim la_cuenta As Label";
_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522019;
 //BA.debugLineNum = 4522019;BA.debugLine="Dim La_nombre As Label";
_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522020;
 //BA.debugLineNum = 4522020;BA.debugLine="Dim la_Calle As Label";
_la_calle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522021;
 //BA.debugLineNum = 4522021;BA.debugLine="Dim la_numero As Label";
_la_numero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522022;
 //BA.debugLineNum = 4522022;BA.debugLine="Dim la_nint As Label";
_la_nint = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522023;
 //BA.debugLineNum = 4522023;BA.debugLine="Dim la_edo As Label";
_la_edo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522024;
 //BA.debugLineNum = 4522024;BA.debugLine="Dim la_pob As Label";
_la_pob = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522025;
 //BA.debugLineNum = 4522025;BA.debugLine="Dim la_col As Label";
_la_col = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522026;
 //BA.debugLineNum = 4522026;BA.debugLine="Dim la_cp As Label";
_la_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522027;
 //BA.debugLineNum = 4522027;BA.debugLine="Dim la_zona As Label";
_la_zona = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522028;
 //BA.debugLineNum = 4522028;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522029;
 //BA.debugLineNum = 4522029;BA.debugLine="Dim la_saldotot As Label";
_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522030;
 //BA.debugLineNum = 4522030;BA.debugLine="Dim la_saldooper As Label";
_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522031;
 //BA.debugLineNum = 4522031;BA.debugLine="Dim impresoraConectada As Boolean = False";
_impresoraconectada = __c.False;
RDebugUtils.currentLine=4522032;
 //BA.debugLineNum = 4522032;BA.debugLine="Dim Tels As Button";
_tels = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522033;
 //BA.debugLineNum = 4522033;BA.debugLine="Dim Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522034;
 //BA.debugLineNum = 4522034;BA.debugLine="Dim Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522035;
 //BA.debugLineNum = 4522035;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
RDebugUtils.currentLine=4522036;
 //BA.debugLineNum = 4522036;BA.debugLine="Dim Tar As Button";
_tar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522037;
 //BA.debugLineNum = 4522037;BA.debugLine="Dim errorImpresora As Int = 0";
_errorimpresora = (int) (0);
RDebugUtils.currentLine=4522038;
 //BA.debugLineNum = 4522038;BA.debugLine="Dim la_comm As Label";
_la_comm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522039;
 //BA.debugLineNum = 4522039;BA.debugLine="Dim la_actdte As Label";
_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522040;
 //BA.debugLineNum = 4522040;BA.debugLine="Dim la_usuario As Label";
_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522041;
 //BA.debugLineNum = 4522041;BA.debugLine="Dim la_resultado As Label";
_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522042;
 //BA.debugLineNum = 4522042;BA.debugLine="Dim l_entre1 As Label";
_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522043;
 //BA.debugLineNum = 4522043;BA.debugLine="Dim l_entre2 As Label";
_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522044;
 //BA.debugLineNum = 4522044;BA.debugLine="Dim l_atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522045;
 //BA.debugLineNum = 4522045;BA.debugLine="Dim l_atiende2 As Label";
_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522046;
 //BA.debugLineNum = 4522046;BA.debugLine="Dim DATOS As Button";
_datos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522047;
 //BA.debugLineNum = 4522047;BA.debugLine="Dim Guardar As Button";
_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522048;
 //BA.debugLineNum = 4522048;BA.debugLine="Dim NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522051;
 //BA.debugLineNum = 4522051;BA.debugLine="Dim l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522052;
 //BA.debugLineNum = 4522052;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522053;
 //BA.debugLineNum = 4522053;BA.debugLine="Dim S2 As Cursor";
_s2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522054;
 //BA.debugLineNum = 4522054;BA.debugLine="Private s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522055;
 //BA.debugLineNum = 4522055;BA.debugLine="Dim res As String";
_res = "";
RDebugUtils.currentLine=4522056;
 //BA.debugLineNum = 4522056;BA.debugLine="Dim Credi As Cursor";
_credi = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522057;
 //BA.debugLineNum = 4522057;BA.debugLine="Private HIST As Button";
_hist = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522058;
 //BA.debugLineNum = 4522058;BA.debugLine="Private MONTO_COMPRA As String";
_monto_compra = "";
RDebugUtils.currentLine=4522059;
 //BA.debugLineNum = 4522059;BA.debugLine="Private META As String";
_meta = "";
RDebugUtils.currentLine=4522060;
 //BA.debugLineNum = 4522060;BA.debugLine="Private META2 As String";
_meta2 = "";
RDebugUtils.currentLine=4522061;
 //BA.debugLineNum = 4522061;BA.debugLine="Private VERIFICA As String";
_verifica = "";
RDebugUtils.currentLine=4522062;
 //BA.debugLineNum = 4522062;BA.debugLine="Private L_QR As Label";
_l_qr = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522063;
 //BA.debugLineNum = 4522063;BA.debugLine="Private BT_QR As Button";
_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522065;
 //BA.debugLineNum = 4522065;BA.debugLine="Dim CODIGO As String";
_codigo = "";
RDebugUtils.currentLine=4522067;
 //BA.debugLineNum = 4522067;BA.debugLine="Private b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522068;
 //BA.debugLineNum = 4522068;BA.debugLine="Dim CUANTOS As String";
_cuantos = "";
RDebugUtils.currentLine=4522069;
 //BA.debugLineNum = 4522069;BA.debugLine="Private B_IMP As Button";
_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522070;
 //BA.debugLineNum = 4522070;BA.debugLine="Dim Toggla As Toggle";
_toggla = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=4522071;
 //BA.debugLineNum = 4522071;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=4522072;
 //BA.debugLineNum = 4522072;BA.debugLine="Dim pre_act As Float";
_pre_act = 0f;
RDebugUtils.currentLine=4522074;
 //BA.debugLineNum = 4522074;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522075;
 //BA.debugLineNum = 4522075;BA.debugLine="Private I_COMPRA As EditText";
_i_compra = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=4522076;
 //BA.debugLineNum = 4522076;BA.debugLine="Private B_GUARDA_C As Button";
_b_guarda_c = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522077;
 //BA.debugLineNum = 4522077;BA.debugLine="Private b_venta As Button";
_b_venta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522078;
 //BA.debugLineNum = 4522078;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=4522079;
 //BA.debugLineNum = 4522079;BA.debugLine="Private LA_GPS As Label";
_la_gps = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522080;
 //BA.debugLineNum = 4522080;BA.debugLine="Private B_E_NEXT As Button";
_b_e_next = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522081;
 //BA.debugLineNum = 4522081;BA.debugLine="Private E_RES_E As EditText";
_e_res_e = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=4522082;
 //BA.debugLineNum = 4522082;BA.debugLine="Private t_tenc As Label";
_t_tenc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522083;
 //BA.debugLineNum = 4522083;BA.debugLine="Private Panel2 As Panel";
_panel2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522084;
 //BA.debugLineNum = 4522084;BA.debugLine="Private CONTADOR_E As String";
_contador_e = "";
RDebugUtils.currentLine=4522085;
 //BA.debugLineNum = 4522085;BA.debugLine="Private HR_RES1 As String";
_hr_res1 = "";
RDebugUtils.currentLine=4522086;
 //BA.debugLineNum = 4522086;BA.debugLine="Private HR_RES2 As String";
_hr_res2 = "";
RDebugUtils.currentLine=4522087;
 //BA.debugLineNum = 4522087;BA.debugLine="Private HR_RES3 As String";
_hr_res3 = "";
RDebugUtils.currentLine=4522088;
 //BA.debugLineNum = 4522088;BA.debugLine="Private EXISTE As String";
_existe = "";
RDebugUtils.currentLine=4522089;
 //BA.debugLineNum = 4522089;BA.debugLine="Private TELEFONO As String";
_telefono = "";
RDebugUtils.currentLine=4522090;
 //BA.debugLineNum = 4522090;BA.debugLine="Dim t1 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=4522091;
 //BA.debugLineNum = 4522091;BA.debugLine="Private RB1 As RadioButton";
_rb1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=4522092;
 //BA.debugLineNum = 4522092;BA.debugLine="Private RB2 As RadioButton";
_rb2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=4522093;
 //BA.debugLineNum = 4522093;BA.debugLine="Private RB3 As RadioButton";
_rb3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=4522094;
 //BA.debugLineNum = 4522094;BA.debugLine="Private RB4 As RadioButton";
_rb4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=4522095;
 //BA.debugLineNum = 4522095;BA.debugLine="Private RB5 As RadioButton";
_rb5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=4522097;
 //BA.debugLineNum = 4522097;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
RDebugUtils.currentLine=4522098;
 //BA.debugLineNum = 4522098;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
RDebugUtils.currentLine=4522099;
 //BA.debugLineNum = 4522099;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
RDebugUtils.currentLine=4522101;
 //BA.debugLineNum = 4522101;BA.debugLine="Private LA_GEO As Label";
_la_geo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522102;
 //BA.debugLineNum = 4522102;BA.debugLine="Dim result As Int";
_result = 0;
RDebugUtils.currentLine=4522103;
 //BA.debugLineNum = 4522103;BA.debugLine="Private cercavalor As String";
_cercavalor = "";
RDebugUtils.currentLine=4522104;
 //BA.debugLineNum = 4522104;BA.debugLine="Private LA_RUTA As String";
_la_ruta = "";
RDebugUtils.currentLine=4522106;
 //BA.debugLineNum = 4522106;BA.debugLine="Private b_like As Button";
_b_like = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522107;
 //BA.debugLineNum = 4522107;BA.debugLine="Private B_GPS As Button";
_b_gps = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522109;
 //BA.debugLineNum = 4522109;BA.debugLine="Dim CODIGO As String";
_codigo = "";
RDebugUtils.currentLine=4522110;
 //BA.debugLineNum = 4522110;BA.debugLine="Private cb_factura As CheckBox";
_cb_factura = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
RDebugUtils.currentLine=4522111;
 //BA.debugLineNum = 4522111;BA.debugLine="Private p_cbFactura As Panel";
_p_cbfactura = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522112;
 //BA.debugLineNum = 4522112;BA.debugLine="Dim venimosDeTicketsDia As Boolean = False";
_venimosdeticketsdia = __c.False;
RDebugUtils.currentLine=4522113;
 //BA.debugLineNum = 4522113;BA.debugLine="Private p_abono As Panel";
_p_abono = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522114;
 //BA.debugLineNum = 4522114;BA.debugLine="Private et_abono As EditText";
_et_abono = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=4522115;
 //BA.debugLineNum = 4522115;BA.debugLine="Private b_abono As Button";
_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522116;
 //BA.debugLineNum = 4522116;BA.debugLine="Private b_cancelar As Button";
_b_cancelar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522117;
 //BA.debugLineNum = 4522117;BA.debugLine="Private b_abono1 As Button";
_b_abono1 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522118;
 //BA.debugLineNum = 4522118;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522119;
 //BA.debugLineNum = 4522119;BA.debugLine="Private b_cxc As Button";
_b_cxc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522120;
 //BA.debugLineNum = 4522120;BA.debugLine="Private clv_abonos As CustomListView";
_clv_abonos = new b4a.example3.customlistview();
RDebugUtils.currentLine=4522121;
 //BA.debugLineNum = 4522121;BA.debugLine="Private l_folio As Label";
_l_folio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522122;
 //BA.debugLineNum = 4522122;BA.debugLine="Private l_saldo As Label";
_l_saldo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522123;
 //BA.debugLineNum = 4522123;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522124;
 //BA.debugLineNum = 4522124;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522125;
 //BA.debugLineNum = 4522125;BA.debugLine="Private l_montoabonostotal As Label";
_l_montoabonostotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522126;
 //BA.debugLineNum = 4522126;BA.debugLine="Dim j As Cursor";
_j = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522127;
 //BA.debugLineNum = 4522127;BA.debugLine="Dim h As Cursor";
_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=4522128;
 //BA.debugLineNum = 4522128;BA.debugLine="Dim distance As Long";
_distance = 0L;
RDebugUtils.currentLine=4522129;
 //BA.debugLineNum = 4522129;BA.debugLine="Dim distance2 As Long";
_distance2 = 0L;
RDebugUtils.currentLine=4522130;
 //BA.debugLineNum = 4522130;BA.debugLine="Dim cuest As C_Cuestionario";
_cuest = new SHARK2.keymon.com.mx.c_cuestionario();
RDebugUtils.currentLine=4522131;
 //BA.debugLineNum = 4522131;BA.debugLine="Private b_ventaabordo As Button";
_b_ventaabordo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522132;
 //BA.debugLineNum = 4522132;BA.debugLine="Private l_factura As Label";
_l_factura = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522133;
 //BA.debugLineNum = 4522133;BA.debugLine="Private l_limite As Label";
_l_limite = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522134;
 //BA.debugLineNum = 4522134;BA.debugLine="Private et_montoacredito As EditText";
_et_montoacredito = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=4522135;
 //BA.debugLineNum = 4522135;BA.debugLine="Private b_cancred As Button";
_b_cancred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522136;
 //BA.debugLineNum = 4522136;BA.debugLine="Private b_acred As Button";
_b_acred = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522137;
 //BA.debugLineNum = 4522137;BA.debugLine="Private p_credito As Panel";
_p_credito = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522138;
 //BA.debugLineNum = 4522138;BA.debugLine="Dim banderaimp As Int = 0";
_banderaimp = (int) (0);
RDebugUtils.currentLine=4522140;
 //BA.debugLineNum = 4522140;BA.debugLine="Dim k1,k2,k3 As String";
_k1 = "";
_k2 = "";
_k3 = "";
RDebugUtils.currentLine=4522141;
 //BA.debugLineNum = 4522141;BA.debugLine="Private b_ubicar As Button";
_b_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522142;
 //BA.debugLineNum = 4522142;BA.debugLine="Private b_venta_credito As Button";
_b_venta_credito = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522143;
 //BA.debugLineNum = 4522143;BA.debugLine="Private b_act_coords As Button";
_b_act_coords = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522144;
 //BA.debugLineNum = 4522144;BA.debugLine="Private l_giro As Label";
_l_giro = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4522145;
 //BA.debugLineNum = 4522145;BA.debugLine="Private p_atiende As Panel";
_p_atiende = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522146;
 //BA.debugLineNum = 4522146;BA.debugLine="Private et_atiende As EditText";
_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=4522147;
 //BA.debugLineNum = 4522147;BA.debugLine="Private b_cancelatiende As Button";
_b_cancelatiende = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522148;
 //BA.debugLineNum = 4522148;BA.debugLine="Private b_acepatiende As Button";
_b_acepatiende = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522149;
 //BA.debugLineNum = 4522149;BA.debugLine="Private p_giro As Panel";
_p_giro = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=4522150;
 //BA.debugLineNum = 4522150;BA.debugLine="Private cb_giro As B4XComboBox";
_cb_giro = new SHARK2.keymon.com.mx.b4xcombobox();
RDebugUtils.currentLine=4522151;
 //BA.debugLineNum = 4522151;BA.debugLine="Private b_cancelgiro As Button";
_b_cancelgiro = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522152;
 //BA.debugLineNum = 4522152;BA.debugLine="Private b_acepgiro As Button";
_b_acepgiro = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=4522153;
 //BA.debugLineNum = 4522153;BA.debugLine="Dim giros As String";
_giros = "";
RDebugUtils.currentLine=4522154;
 //BA.debugLineNum = 4522154;BA.debugLine="End Sub";
return "";
}
public String  _cuest_preguntacontestada(SHARK2.keymon.com.mx.c_cliente __ref,anywheresoftware.b4a.objects.collections.Map _m) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "cuest_preguntacontestada", false))
	 {return ((String) Debug.delegate(ba, "cuest_preguntacontestada", new Object[] {_m}));}
RDebugUtils.currentLine=8192000;
 //BA.debugLineNum = 8192000;BA.debugLine="Sub cuest_preguntaContestada(m As Map)";
RDebugUtils.currentLine=8192002;
 //BA.debugLineNum = 8192002;BA.debugLine="Log(m)";
__c.LogImpl("58192002",BA.ObjectToString(_m),0);
RDebugUtils.currentLine=8192005;
 //BA.debugLineNum = 8192005;BA.debugLine="m.Get(\"panel\").As(Panel).RemoveView 'Quitamos le";
((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_m.Get((Object)("panel"))))).RemoveView();
RDebugUtils.currentLine=8192006;
 //BA.debugLineNum = 8192006;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=8192007;
 //BA.debugLineNum = 8192007;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=8192008;
 //BA.debugLineNum = 8192008;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from CUESTIONA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"' and Q_IDPREGUNTA = '"+__c.SmartStringFormatter("",_m.Get((Object)("idPregunta")))+"'"));
RDebugUtils.currentLine=8192009;
 //BA.debugLineNum = 8192009;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into CUESTIONA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CUESTIONARIO (Q_RUTA, Q_ALMACEN, Q_IDCLIENTE, Q_IDPREGUNTA, Q_PREGUNTA, Q_IDRESPUESTA, Q_RESPUESTA, Q_FECHA) values ('"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba,_subs._traecliente /*String*/ (ba))))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("idPregunta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("pregunta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("idRespuesta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("respuesta")))+"', '"+__c.SmartStringFormatter("",(Object)(__c.DateTime.Date(__c.DateTime.getNow())))+" "+__c.SmartStringFormatter("",(Object)(__c.DateTime.Time(__c.DateTime.getNow())))+"')"));
RDebugUtils.currentLine=8192010;
 //BA.debugLineNum = 8192010;BA.debugLine="Select Case m.Get(\"idPregunta\")";
switch (BA.switchObjectToInt(_m.Get((Object)("idPregunta")),(Object)("1"),(Object)("2"),(Object)("3"),(Object)("4"),(Object)("5"),(Object)("6"))) {
case 0: {
RDebugUtils.currentLine=8192012;
 //BA.debugLineNum = 8192012;BA.debugLine="If m.Get(\"respuesta\") = \"No, está enrejado o no";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No, está enrejado o no se tiene acceso"))) { 
RDebugUtils.currentLine=8192013;
 //BA.debugLineNum = 8192013;BA.debugLine="Log(\"Tiendajon / Ventana / Kiosko\")";
__c.LogImpl("58192013","Tiendajon / Ventana / Kiosko",0);
RDebugUtils.currentLine=8192014;
 //BA.debugLineNum = 8192014;BA.debugLine="ToastMessageShow(\"Tiendajon / Ventana / Kiosko";
__c.ToastMessageShow(BA.ObjectToCharSequence("Tiendajon / Ventana / Kiosko"),__c.False);
RDebugUtils.currentLine=8192015;
 //BA.debugLineNum = 8192015;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"6","¿Cuenta con caja de salida para cobro con sistema de computo?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si, tiene sistema de computo para cobro","No"}));
 }else 
{RDebugUtils.currentLine=8192016;
 //BA.debugLineNum = 8192016;BA.debugLine="Else if m.Get(\"respuesta\") = \"Si se pude accede";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si se pude acceder"))) { 
RDebugUtils.currentLine=8192017;
 //BA.debugLineNum = 8192017;BA.debugLine="cuest.agregaPregunta(\"2\", \"¿Tiene al menos 2 p";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"2","¿Tiene al menos 2 pasillos con acceso directo a la mercancía?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si tiene al menos 2 pasillos con acceso directo a la mercancía","No tiene pasillos o solo uno central"}));
 }}
;
 break; }
case 1: {
RDebugUtils.currentLine=8192020;
 //BA.debugLineNum = 8192020;BA.debugLine="If m.Get(\"respuesta\") = \"Si tiene al menos 2 pa";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si tiene al menos 2 pasillos con acceso directo a la mercancía"))) { 
RDebugUtils.currentLine=8192021;
 //BA.debugLineNum = 8192021;BA.debugLine="Log(\"Mini-Super\")";
__c.LogImpl("58192021","Mini-Super",0);
RDebugUtils.currentLine=8192022;
 //BA.debugLineNum = 8192022;BA.debugLine="ToastMessageShow(\"Mini-Super\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Mini-Super"),__c.False);
RDebugUtils.currentLine=8192023;
 //BA.debugLineNum = 8192023;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"6","¿Cuenta con caja de salida para cobro con sistema de computo?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si, tiene sistema de computo para cobro","No"}));
 }else 
{RDebugUtils.currentLine=8192024;
 //BA.debugLineNum = 8192024;BA.debugLine="else If m.Get(\"respuesta\") = \"No tiene pasillos";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No tiene pasillos o solo uno central"))) { 
RDebugUtils.currentLine=8192025;
 //BA.debugLineNum = 8192025;BA.debugLine="cuest.agregaPregunta(\"3\", \"¿Cuenta con enfriad";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"3","¿Cuenta con enfriador horizontal para venta de perecederos como queso, jamon, crema, etc.?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si","No tiene enfriador horizontal."}));
 }}
;
 break; }
case 2: {
RDebugUtils.currentLine=8192028;
 //BA.debugLineNum = 8192028;BA.debugLine="Log(\"|\"&m.Get(\"respuesta\")&\"|\")";
__c.LogImpl("58192028","|"+BA.ObjectToString(_m.Get((Object)("respuesta")))+"|",0);
RDebugUtils.currentLine=8192029;
 //BA.debugLineNum = 8192029;BA.debugLine="If m.Get(\"respuesta\") = \"Si\" Then";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si"))) { 
RDebugUtils.currentLine=8192030;
 //BA.debugLineNum = 8192030;BA.debugLine="Log(\"Miscelanea\")";
__c.LogImpl("58192030","Miscelanea",0);
RDebugUtils.currentLine=8192031;
 //BA.debugLineNum = 8192031;BA.debugLine="ToastMessageShow(\"Miscelanea\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Miscelanea"),__c.False);
RDebugUtils.currentLine=8192032;
 //BA.debugLineNum = 8192032;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"6","¿Cuenta con caja de salida para cobro con sistema de computo?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si, tiene sistema de computo para cobro","No"}));
 }else 
{RDebugUtils.currentLine=8192033;
 //BA.debugLineNum = 8192033;BA.debugLine="else If m.Get(\"respuesta\") = \"No tiene enfriado";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No tiene enfriador horizontal."))) { 
RDebugUtils.currentLine=8192034;
 //BA.debugLineNum = 8192034;BA.debugLine="cuest.agregaPregunta(\"4\", \"¿El local esta enfo";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"4","¿El local esta enfocado a venta especializada?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"No","Si"}));
 }}
;
 break; }
case 3: {
RDebugUtils.currentLine=8192037;
 //BA.debugLineNum = 8192037;BA.debugLine="If m.Get(\"respuesta\") = \"No\" Then";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No"))) { 
RDebugUtils.currentLine=8192038;
 //BA.debugLineNum = 8192038;BA.debugLine="Log(\"Abarrotera\")";
__c.LogImpl("58192038","Abarrotera",0);
RDebugUtils.currentLine=8192039;
 //BA.debugLineNum = 8192039;BA.debugLine="ToastMessageShow(\"Abarrotera\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Abarrotera"),__c.False);
RDebugUtils.currentLine=8192040;
 //BA.debugLineNum = 8192040;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"6","¿Cuenta con caja de salida para cobro con sistema de computo?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si, tiene sistema de computo para cobro","No"}));
 }else 
{RDebugUtils.currentLine=8192041;
 //BA.debugLineNum = 8192041;BA.debugLine="else If m.Get(\"respuesta\") = \"Si\" Then";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si"))) { 
RDebugUtils.currentLine=8192042;
 //BA.debugLineNum = 8192042;BA.debugLine="cuest.agregaPregunta(\"5\", \"¿Cual venta especia";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"5","¿Cual venta especializada?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Carnicería / Pollería","Cremería","Depósito / Vinateria","Dulcería","Farmacia","Fonda / Restaurante / Cafetería","Verdulería"}));
 }}
;
 break; }
case 4: {
RDebugUtils.currentLine=8192045;
 //BA.debugLineNum = 8192045;BA.debugLine="Log(m.Get(\"respuesta\"))";
__c.LogImpl("58192045",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
RDebugUtils.currentLine=8192046;
 //BA.debugLineNum = 8192046;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False);
RDebugUtils.currentLine=8192051;
 //BA.debugLineNum = 8192051;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._agregapregunta /*String*/ (null,"6","¿Cuenta con caja de salida para cobro con sistema de computo?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Si, tiene sistema de computo para cobro","No"}));
 break; }
case 5: {
RDebugUtils.currentLine=8192054;
 //BA.debugLineNum = 8192054;BA.debugLine="Log(m.Get(\"respuesta\"))";
__c.LogImpl("58192054",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
RDebugUtils.currentLine=8192055;
 //BA.debugLineNum = 8192055;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False);
RDebugUtils.currentLine=8192056;
 //BA.debugLineNum = 8192056;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
__c.LogImpl("58192056",">>>>>>>>>>  "+BA.ObjectToString(__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._encuestainiciada /*boolean*/ ),0);
RDebugUtils.currentLine=8192057;
 //BA.debugLineNum = 8192057;BA.debugLine="cuest.encuestaIniciada = False";
__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._encuestainiciada /*boolean*/  = __c.False;
RDebugUtils.currentLine=8192058;
 //BA.debugLineNum = 8192058;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
__c.LogImpl("58192058",">>>>>>>>>>  "+BA.ObjectToString(__ref._cuest /*SHARK2.keymon.com.mx.c_cuestionario*/ ._encuestainiciada /*boolean*/ ),0);
RDebugUtils.currentLine=8192061;
 //BA.debugLineNum = 8192061;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 break; }
}
;
RDebugUtils.currentLine=8192064;
 //BA.debugLineNum = 8192064;BA.debugLine="End Sub";
return "";
}
public String  _datos_click(SHARK2.keymon.com.mx.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=5242880;
 //BA.debugLineNum = 5242880;BA.debugLine="Sub DATOS_Click";
RDebugUtils.currentLine=5242881;
 //BA.debugLineNum = 5242881;BA.debugLine="B4XPages.ShowPage(\"telefonos\")";
_b4xpages._showpage /*String*/ (ba,"telefonos");
RDebugUtils.currentLine=5242882;
 //BA.debugLineNum = 5242882;BA.debugLine="End Sub";
return "";
}
public String  _gest_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "gest_click", false))
	 {return ((String) Debug.delegate(ba, "gest_click", null));}
RDebugUtils.currentLine=4915200;
 //BA.debugLineNum = 4915200;BA.debugLine="Sub gest_Click";
RDebugUtils.currentLine=4915201;
 //BA.debugLineNum = 4915201;BA.debugLine="If la_cuenta.Text = \"0\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=4915202;
 //BA.debugLineNum = 4915202;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "ABORDO";
 }else 
{RDebugUtils.currentLine=4915203;
 //BA.debugLineNum = 4915203;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
if ((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("1")) { 
RDebugUtils.currentLine=4915204;
 //BA.debugLineNum = 4915204;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "RECARGA";
 }else {
RDebugUtils.currentLine=4915206;
 //BA.debugLineNum = 4915206;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_CONTADO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "PREVENTA_CONTADO";
 }}
;
RDebugUtils.currentLine=4915238;
 //BA.debugLineNum = 4915238;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=4915239;
 //BA.debugLineNum = 4915239;BA.debugLine="End Sub";
return "";
}
public String  _guadaventa2(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "guadaventa2", false))
	 {return ((String) Debug.delegate(ba, "guadaventa2", null));}
int _cbfactura = 0;
RDebugUtils.currentLine=5570560;
 //BA.debugLineNum = 5570560;BA.debugLine="Sub GUADAVENTA2";
RDebugUtils.currentLine=5570561;
 //BA.debugLineNum = 5570561;BA.debugLine="Log(B4XPages.MainPage.recarga)";
__c.LogImpl("55570561",_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ,0);
RDebugUtils.currentLine=5570562;
 //BA.debugLineNum = 5570562;BA.debugLine="If B4XPages.MainPage.recarga = \"0\" Then";
if ((_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ).equals("0")) { 
RDebugUtils.currentLine=5570563;
 //BA.debugLineNum = 5570563;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=5570564;
 //BA.debugLineNum = 5570564;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=5570565;
 //BA.debugLineNum = 5570565;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=5570566;
 //BA.debugLineNum = 5570566;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
RDebugUtils.currentLine=5570567;
 //BA.debugLineNum = 5570567;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570568;
 //BA.debugLineNum = 5570568;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
__ref._clie_id /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=5570569;
 //BA.debugLineNum = 5570569;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570570;
 //BA.debugLineNum = 5570570;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=5570571;
 //BA.debugLineNum = 5570571;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570572;
 //BA.debugLineNum = 5570572;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=5570573;
 //BA.debugLineNum = 5570573;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570574;
 //BA.debugLineNum = 5570574;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select 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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=5570575;
 //BA.debugLineNum = 5570575;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570577;
 //BA.debugLineNum = 5570577;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=5570578;
 //BA.debugLineNum = 5570578;BA.debugLine="Private cbFactura As Int = 0";
_cbfactura = (int) (0);
RDebugUtils.currentLine=5570579;
 //BA.debugLineNum = 5570579;BA.debugLine="If cb_factura.Checked Then cbFactura = 1";
if (__ref._cb_factura /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .getChecked()) { 
_cbfactura = (int) (1);};
RDebugUtils.currentLine=5570580;
 //BA.debugLineNum = 5570580;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)");
RDebugUtils.currentLine=5570581;
 //BA.debugLineNum = 5570581;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
RDebugUtils.currentLine=5570582;
 //BA.debugLineNum = 5570582;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO, PC_LON, PC_LAT, PC_ENVIO_OK, PC_FACTURA) VALUES (?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._clie_id /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANT_CLIE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(0),(Object)(_cbfactura)}));
RDebugUtils.currentLine=5570583;
 //BA.debugLineNum = 5570583;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
RDebugUtils.currentLine=5570584;
 //BA.debugLineNum = 5570584;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info2 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
 };
RDebugUtils.currentLine=5570586;
 //BA.debugLineNum = 5570586;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570587;
 //BA.debugLineNum = 5570587;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=5570588;
 //BA.debugLineNum = 5570588;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=5570589;
 //BA.debugLineNum = 5570589;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_OUT = ?  where HSS_OUT = 0 AND  HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
RDebugUtils.currentLine=5570591;
 //BA.debugLineNum = 5570591;BA.debugLine="Try";
try {RDebugUtils.currentLine=5570592;
 //BA.debugLineNum = 5570592;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\" Select (su";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(" Select (substr(HSS_OUT,1,2) - substr(HSS_IN,1,2)) - Case when  (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then 1 Else 0 end HORAS_TOTALES, "+"Case when  (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then (substr(HSS_OUT,3,2) + 60 - substr(HSS_IN,3,2)) "+"	Else (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) End - Case when  (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then 1 Else 0 end  MINUTOS_TOTALES, "+"Case when  (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then (substr(HSS_OUT,5,2) + 60 - substr(HSS_IN,5,2)) "+"	Else (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) end SEGUNDOS_TOTALES "+"	from HIST_STAY_STORE where HSS_CODIGO In (Select cuenta from cuentaa) ")));
RDebugUtils.currentLine=5570598;
 //BA.debugLineNum = 5570598;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570599;
 //BA.debugLineNum = 5570599;BA.debugLine="stay_hh = c.GetString(\"HORAS_TOTALES\") * 60 * 6";
__ref._stay_hh /*String*/  = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HORAS_TOTALES")))*60*60);
RDebugUtils.currentLine=5570600;
 //BA.debugLineNum = 5570600;BA.debugLine="stay_mi = c.GetString(\"MINUTOS_TOTALES\") * 60";
__ref._stay_mi /*String*/  = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MINUTOS_TOTALES")))*60);
RDebugUtils.currentLine=5570601;
 //BA.debugLineNum = 5570601;BA.debugLine="stay_ss = c.GetString(\"SEGUNDOS_TOTALES\")";
__ref._stay_ss /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SEGUNDOS_TOTALES");
RDebugUtils.currentLine=5570602;
 //BA.debugLineNum = 5570602;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_TOT = ?  where HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((double)(Double.parseDouble(__ref._stay_hh /*String*/ ))+(double)(Double.parseDouble(__ref._stay_mi /*String*/ ))+(double)(Double.parseDouble(__ref._stay_ss /*String*/ )))}));
RDebugUtils.currentLine=5570603;
 //BA.debugLineNum = 5570603;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_FIN = ?  ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
RDebugUtils.currentLine=5570604;
 //BA.debugLineNum = 5570604;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 } 
       catch (Exception e39) {
			ba.setLastException(e39);RDebugUtils.currentLine=5570606;
 //BA.debugLineNum = 5570606;BA.debugLine="ToastMessageShow(\".\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("."),__c.True);
 };
RDebugUtils.currentLine=5570609;
 //BA.debugLineNum = 5570609;BA.debugLine="skmt.ExecNonQuery2(\"update PEDIDO_INICIO_FINAL s";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update PEDIDO_INICIO_FINAL set PIF_HORA_FINAL = ? where PIF_CLIENTE = ? and PIF_HORA_FINAL = 0",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__c.DateTime.getNow()),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}));
RDebugUtils.currentLine=5570611;
 //BA.debugLineNum = 5570611;BA.debugLine="Subs.actualizaTET(la_cuenta.text)";
_subs._actualizatet /*String*/ (ba,__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText());
RDebugUtils.currentLine=5570612;
 //BA.debugLineNum = 5570612;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=5570615;
 //BA.debugLineNum = 5570615;BA.debugLine="mandapiezas";
__ref._mandapiezas /*String*/ (null);
RDebugUtils.currentLine=5570616;
 //BA.debugLineNum = 5570616;BA.debugLine="B4XPages.MainPage.productos.reiniciarlistaProds";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*SHARK2.keymon.com.mx.c_productos*/ ._reiniciarlistaprods /*boolean*/  = __c.True;
RDebugUtils.currentLine=5570617;
 //BA.debugLineNum = 5570617;BA.debugLine="B4XPages.MainPage.productos.prodsMap.Initialize";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*SHARK2.keymon.com.mx.c_productos*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=5570618;
 //BA.debugLineNum = 5570618;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._promos /*SHARK2.keymon.com.mx.c_promos*/ ._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=5570619;
 //BA.debugLineNum = 5570619;BA.debugLine="Guardar.Enabled = True";
__ref._guardar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570620;
 //BA.debugLineNum = 5570620;BA.debugLine="gest.Enabled = True";
__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570621;
 //BA.debugLineNum = 5570621;BA.debugLine="b_cxc.Enabled = True";
__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570622;
 //BA.debugLineNum = 5570622;BA.debugLine="Tar.Enabled = True";
__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570623;
 //BA.debugLineNum = 5570623;BA.debugLine="Tels.Enabled = True";
__ref._tels /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570624;
 //BA.debugLineNum = 5570624;BA.debugLine="b_ventaabordo.Enabled = True";
__ref._b_ventaabordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570626;
 //BA.debugLineNum = 5570626;BA.debugLine="HIST.Enabled = True";
__ref._hist /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
RDebugUtils.currentLine=5570627;
 //BA.debugLineNum = 5570627;BA.debugLine="banderaimp = 0";
__ref._banderaimp /*int*/  = (int) (0);
RDebugUtils.currentLine=5570628;
 //BA.debugLineNum = 5570628;BA.debugLine="mandaPendientePagare";
__ref._mandapendientepagare /*String*/ (null);
RDebugUtils.currentLine=5570629;
 //BA.debugLineNum = 5570629;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=5570630;
 //BA.debugLineNum = 5570630;BA.debugLine="Else If B4XPages.MainPage.recarga = \"1\" Then";
if ((_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=5570631;
 //BA.debugLineNum = 5570631;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=5570632;
 //BA.debugLineNum = 5570632;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=5570633;
 //BA.debugLineNum = 5570633;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=5570634;
 //BA.debugLineNum = 5570634;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
RDebugUtils.currentLine=5570635;
 //BA.debugLineNum = 5570635;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570636;
 //BA.debugLineNum = 5570636;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
__ref._clie_id /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=5570637;
 //BA.debugLineNum = 5570637;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570638;
 //BA.debugLineNum = 5570638;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
__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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=5570639;
 //BA.debugLineNum = 5570639;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570640;
 //BA.debugLineNum = 5570640;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=5570641;
 //BA.debugLineNum = 5570641;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570642;
 //BA.debugLineNum = 5570642;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select 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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=5570643;
 //BA.debugLineNum = 5570643;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5570645;
 //BA.debugLineNum = 5570645;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=5570646;
 //BA.debugLineNum = 5570646;BA.debugLine="Private cbFactura As Int = 0";
_cbfactura = (int) (0);
RDebugUtils.currentLine=5570647;
 //BA.debugLineNum = 5570647;BA.debugLine="If cb_factura.Checked Then cbFactura = 1";
if (__ref._cb_factura /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .getChecked()) { 
_cbfactura = (int) (1);};
RDebugUtils.currentLine=5570648;
 //BA.debugLineNum = 5570648;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)");
RDebugUtils.currentLine=5570649;
 //BA.debugLineNum = 5570649;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
RDebugUtils.currentLine=5570650;
 //BA.debugLineNum = 5570650;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO, PC_LON, PC_LAT, PC_ENVIO_OK, PC_FACTURA) VALUES (?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._clie_id /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANT_CLIE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(0),(Object)(_cbfactura)}));
RDebugUtils.currentLine=5570651;
 //BA.debugLineNum = 5570651;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
 };
RDebugUtils.currentLine=5570653;
 //BA.debugLineNum = 5570653;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5570654;
 //BA.debugLineNum = 5570654;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=5570655;
 //BA.debugLineNum = 5570655;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=5570656;
 //BA.debugLineNum = 5570656;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_OUT = ?  where HSS_OUT = 0 AND  HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
RDebugUtils.currentLine=5570676;
 //BA.debugLineNum = 5570676;BA.debugLine="skmt.ExecNonQuery2(\"update PEDIDO_INICIO_FINAL s";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update PEDIDO_INICIO_FINAL set PIF_HORA_FINAL = ? where PIF_CLIENTE = ? and PIF_HORA_FINAL = 0",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__c.DateTime.getNow()),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}));
RDebugUtils.currentLine=5570678;
 //BA.debugLineNum = 5570678;BA.debugLine="Subs.actualizaTET(la_cuenta.text)";
_subs._actualizatet /*String*/ (ba,__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText());
RDebugUtils.currentLine=5570679;
 //BA.debugLineNum = 5570679;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=5570683;
 //BA.debugLineNum = 5570683;BA.debugLine="mandaPendientesrecarga";
__ref._mandapendientesrecarga /*String*/ (null);
RDebugUtils.currentLine=5570684;
 //BA.debugLineNum = 5570684;BA.debugLine="mandapiezasrecarga";
__ref._mandapiezasrecarga /*String*/ (null);
RDebugUtils.currentLine=5570685;
 //BA.debugLineNum = 5570685;BA.debugLine="B4XPages.MainPage.productos.reiniciarlistaProds";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*SHARK2.keymon.com.mx.c_productos*/ ._reiniciarlistaprods /*boolean*/  = __c.True;
RDebugUtils.currentLine=5570686;
 //BA.debugLineNum = 5570686;BA.debugLine="B4XPages.MainPage.productos.prodsMap.Initialize";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*SHARK2.keymon.com.mx.c_productos*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=5570687;
 //BA.debugLineNum = 5570687;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._promos /*SHARK2.keymon.com.mx.c_promos*/ ._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=5570688;
 //BA.debugLineNum = 5570688;BA.debugLine="B4XPages.ShowPage(\"login\")";
_b4xpages._showpage /*String*/ (ba,"login");
RDebugUtils.currentLine=5570689;
 //BA.debugLineNum = 5570689;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/  = "0";
 }}
;
RDebugUtils.currentLine=5570691;
 //BA.debugLineNum = 5570691;BA.debugLine="End Sub";
return "";
}
public String  _mandapiezas(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapiezas", false))
	 {return ((String) Debug.delegate(ba, "mandapiezas", null));}
String _pcnoarts = "";
String _pcmonto = "";
RDebugUtils.currentLine=7667712;
 //BA.debugLineNum = 7667712;BA.debugLine="Sub mandapiezas";
RDebugUtils.currentLine=7667713;
 //BA.debugLineNum = 7667713;BA.debugLine="If l_total.Text <>  Null Or l_total.Text <> \"null";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()!= null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") == false) { 
RDebugUtils.currentLine=7667714;
 //BA.debugLineNum = 7667714;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7667715;
 //BA.debugLineNum = 7667715;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7667716;
 //BA.debugLineNum = 7667716;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CLIENT";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()})));
RDebugUtils.currentLine=7667717;
 //BA.debugLineNum = 7667717;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7667718;
 //BA.debugLineNum = 7667718;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7667719;
 //BA.debugLineNum = 7667719;BA.debugLine="Log(la_cuenta.Text&\", \"& ALMACEN&\", \"& LA_RUTA)";
__c.LogImpl("57667719",__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+", "+__ref._almacen /*String*/ +", "+__ref._la_ruta /*String*/ ,0);
RDebugUtils.currentLine=7667720;
 //BA.debugLineNum = 7667720;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7667721;
 //BA.debugLineNum = 7667721;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7667722;
 //BA.debugLineNum = 7667722;BA.debugLine="cmd.Name = \"select_piezas_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_piezas_SHARK2";
RDebugUtils.currentLine=7667723;
 //BA.debugLineNum = 7667723;BA.debugLine="cmd.Parameters = Array As Object(la_cuenta.Text";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7667724;
 //BA.debugLineNum = 7667724;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"piezas\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("piezas"));
 };
 };
RDebugUtils.currentLine=7667728;
 //BA.debugLineNum = 7667728;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientepagare(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapendientepagare", false))
	 {return ((String) Debug.delegate(ba, "mandapendientepagare", null));}
int _i = 0;
RDebugUtils.currentLine=7471104;
 //BA.debugLineNum = 7471104;BA.debugLine="Sub mandaPendientePagare";
RDebugUtils.currentLine=7471105;
 //BA.debugLineNum = 7471105;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FR";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ABONOS where ifnull(a_enviado, 0) <> 1")));
RDebugUtils.currentLine=7471106;
 //BA.debugLineNum = 7471106;BA.debugLine="Log($\"ABONO PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57471106",("ABONO PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0);
RDebugUtils.currentLine=7471107;
 //BA.debugLineNum = 7471107;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7471108;
 //BA.debugLineNum = 7471108;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step4 = 1;
final int limit4 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=7471109;
 //BA.debugLineNum = 7471109;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=7471110;
 //BA.debugLineNum = 7471110;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7471111;
 //BA.debugLineNum = 7471111;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7471112;
 //BA.debugLineNum = 7471112;BA.debugLine="cmd.Name = \"insert_abono_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_abono_SHARK2";
RDebugUtils.currentLine=7471113;
 //BA.debugLineNum = 7471113;BA.debugLine="cmd.Parameters = Array As Object( c.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_usuario")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_ruta")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_cliente")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_fecha")),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=7471114;
 //BA.debugLineNum = 7471114;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_cliente")))+"")));
RDebugUtils.currentLine=7471115;
 //BA.debugLineNum = 7471115;BA.debugLine="Log($\"ins_abonosPendientes_${c.GetString(\"a_cli";
__c.LogImpl("57471115",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_cliente")))+""),0);
 }
};
 };
RDebugUtils.currentLine=7471118;
 //BA.debugLineNum = 7471118;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientesrecarga(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapendientesrecarga", false))
	 {return ((String) Debug.delegate(ba, "mandapendientesrecarga", null));}
String _pcnoarts = "";
String _pcmonto = "";
int _i = 0;
RDebugUtils.currentLine=7536640;
 //BA.debugLineNum = 7536640;BA.debugLine="Sub mandaPendientesrecarga";
RDebugUtils.currentLine=7536642;
 //BA.debugLineNum = 7536642;BA.debugLine="Log(\">>>>>>>  MANDA PENDIENTES\")";
__c.LogImpl("57536642",">>>>>>>  MANDA PENDIENTES",0);
RDebugUtils.currentLine=7536643;
 //BA.debugLineNum = 7536643;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7536644;
 //BA.debugLineNum = 7536644;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7536645;
 //BA.debugLineNum = 7536645;BA.debugLine="If usuario <> \"KMTS1\"  Then";
if ((__ref._usuario /*String*/ ).equals("KMTS1") == false) { 
RDebugUtils.currentLine=7536646;
 //BA.debugLineNum = 7536646;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=7536647;
 //BA.debugLineNum = 7536647;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7536648;
 //BA.debugLineNum = 7536648;BA.debugLine="d = skmt.ExecQuery(\"SELECT * FROM PEDIDO_CLIENTE";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO_CLIENTE where PC_ENVIO_OK = 0 AND PC_CLIENTE = 1")));
RDebugUtils.currentLine=7536649;
 //BA.debugLineNum = 7536649;BA.debugLine="c = skmt.ExecQuery(\"SELECT * FROM PEDIDO_CLIENTE";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO_CLIENTE where PC_ENVIO_OK = 0 AND PC_CLIENTE = 1")));
RDebugUtils.currentLine=7536650;
 //BA.debugLineNum = 7536650;BA.debugLine="Log($\"Pedido_Cliente PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57536650",("Pedido_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0);
RDebugUtils.currentLine=7536651;
 //BA.debugLineNum = 7536651;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7536652;
 //BA.debugLineNum = 7536652;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step11 = 1;
final int limit11 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit11 ;_i = _i + step11 ) {
RDebugUtils.currentLine=7536653;
 //BA.debugLineNum = 7536653;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=7536654;
 //BA.debugLineNum = 7536654;BA.debugLine="Log($\"${c.GetString(\"PC_CLIENTE\")}|${c.GetStri";
__c.LogImpl("57536654",(""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE")))+"|"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")))+"|"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ENVIO_OK")))+"|"),0);
RDebugUtils.currentLine=7536655;
 //BA.debugLineNum = 7536655;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7536656;
 //BA.debugLineNum = 7536656;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7536657;
 //BA.debugLineNum = 7536657;BA.debugLine="cmd.Name = \"insert_pedidos_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedidos_SHARK2";
RDebugUtils.currentLine=7536658;
 //BA.debugLineNum = 7536658;BA.debugLine="cmd.Parameters = Array As Object(\"0\", c.GetStr";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)("0"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LAT")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA"))};
RDebugUtils.currentLine=7536659;
 //BA.debugLineNum = 7536659;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=7536660;
 //BA.debugLineNum = 7536660;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
RDebugUtils.currentLine=7536662;
 //BA.debugLineNum = 7536662;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_pedidosPendientes_head_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE")))+"")));
 }
};
 };
RDebugUtils.currentLine=7536665;
 //BA.debugLineNum = 7536665;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=7536667;
 //BA.debugLineNum = 7536667;BA.debugLine="c = skmt.ExecQuery($\"SELECT PE_ENVIO_OK, PE_CEDI";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT PE_ENVIO_OK, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, PE_CANTC, PE_BCAJAS FROM PEDIDO where PE_ENVIO_OK <> 1 AND PE_FOLIO = 'RECARGA'"))));
RDebugUtils.currentLine=7536668;
 //BA.debugLineNum = 7536668;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57536668",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0);
RDebugUtils.currentLine=7536669;
 //BA.debugLineNum = 7536669;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7536670;
 //BA.debugLineNum = 7536670;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step27 = 1;
final int limit27 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit27 ;_i = _i + step27 ) {
RDebugUtils.currentLine=7536671;
 //BA.debugLineNum = 7536671;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=7536672;
 //BA.debugLineNum = 7536672;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7536673;
 //BA.debugLineNum = 7536673;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7536674;
 //BA.debugLineNum = 7536674;BA.debugLine="cmd.Name = \"insert_pedido3_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido3_SHARK2";
RDebugUtils.currentLine=7536675;
 //BA.debugLineNum = 7536675;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)("0"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)("ABORDO"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANTC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS")),(Object)("RECARGA")};
RDebugUtils.currentLine=7536676;
 //BA.debugLineNum = 7536676;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_pedidosPendientes_prods_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")))+"_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"")));
RDebugUtils.currentLine=7536677;
 //BA.debugLineNum = 7536677;BA.debugLine="Log($\">>>>  INS_PEDIDO= ${C.GetString(\"PE_CEDI";
__c.LogImpl("57536677",(">>>>  INS_PEDIDO= "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")))+","+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")))+", "+__c.SmartStringFormatter("",(Object)(_pcnoarts))+", "+__c.SmartStringFormatter("",(Object)(_pcmonto))+""),0);
 }
};
 };
 };
RDebugUtils.currentLine=7536683;
 //BA.debugLineNum = 7536683;BA.debugLine="End Sub";
return "";
}
public String  _mandapiezasrecarga(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapiezasrecarga", false))
	 {return ((String) Debug.delegate(ba, "mandapiezasrecarga", null));}
String _pcnoarts = "";
String _pcmonto = "";
RDebugUtils.currentLine=7602176;
 //BA.debugLineNum = 7602176;BA.debugLine="Sub mandapiezasrecarga";
RDebugUtils.currentLine=7602177;
 //BA.debugLineNum = 7602177;BA.debugLine="If l_total.Text <>  Null Or l_total.Text <> \"null";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()!= null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") == false) { 
RDebugUtils.currentLine=7602178;
 //BA.debugLineNum = 7602178;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7602179;
 //BA.debugLineNum = 7602179;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7602180;
 //BA.debugLineNum = 7602180;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CLIENT";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{"1"})));
RDebugUtils.currentLine=7602181;
 //BA.debugLineNum = 7602181;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7602182;
 //BA.debugLineNum = 7602182;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7602183;
 //BA.debugLineNum = 7602183;BA.debugLine="Log(la_cuenta.Text&\", \"& ALMACEN&\", \"& LA_RUTA)";
__c.LogImpl("57602183",__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+", "+__ref._almacen /*String*/ +", "+__ref._la_ruta /*String*/ ,0);
RDebugUtils.currentLine=7602184;
 //BA.debugLineNum = 7602184;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7602185;
 //BA.debugLineNum = 7602185;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7602186;
 //BA.debugLineNum = 7602186;BA.debugLine="cmd.Name = \"select_piezas_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_piezas_SHARK2";
RDebugUtils.currentLine=7602187;
 //BA.debugLineNum = 7602187;BA.debugLine="cmd.Parameters = Array As Object(la_cuenta.Text";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7602188;
 //BA.debugLineNum = 7602188;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"piezasrecarga";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("piezasrecarga"));
 };
 };
RDebugUtils.currentLine=7602191;
 //BA.debugLineNum = 7602191;BA.debugLine="End Sub";
return "";
}
public String  _hist_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "hist_click", false))
	 {return ((String) Debug.delegate(ba, "hist_click", null));}
RDebugUtils.currentLine=5701632;
 //BA.debugLineNum = 5701632;BA.debugLine="Sub HIST_Click";
RDebugUtils.currentLine=5701633;
 //BA.debugLineNum = 5701633;BA.debugLine="B4XPages.ShowPage(\"Historico\")";
_b4xpages._showpage /*String*/ (ba,"Historico");
RDebugUtils.currentLine=5701634;
 //BA.debugLineNum = 5701634;BA.debugLine="End Sub";
return "";
}
public String  _traevendedor(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "traevendedor", false))
	 {return ((String) Debug.delegate(ba, "traevendedor", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _pv = null;
String _preventa = "";
RDebugUtils.currentLine=6291456;
 //BA.debugLineNum = 6291456;BA.debugLine="Sub TraeVendedor As String";
RDebugUtils.currentLine=6291458;
 //BA.debugLineNum = 6291458;BA.debugLine="Private pv As Cursor";
_pv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6291459;
 //BA.debugLineNum = 6291459;BA.debugLine="Private Preventa As String = \"\"";
_preventa = "";
RDebugUtils.currentLine=6291460;
 //BA.debugLineNum = 6291460;BA.debugLine="pv = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT";
_pv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'nom_usuario'")));
RDebugUtils.currentLine=6291461;
 //BA.debugLineNum = 6291461;BA.debugLine="If pv.RowCount > 0 Then";
if (_pv.getRowCount()>0) { 
RDebugUtils.currentLine=6291462;
 //BA.debugLineNum = 6291462;BA.debugLine="pv.Position = 0";
_pv.setPosition((int) (0));
RDebugUtils.currentLine=6291463;
 //BA.debugLineNum = 6291463;BA.debugLine="Preventa = pv.GetString(\"CAT_VA_VALOR\")";
_preventa = _pv.GetString("CAT_VA_VALOR");
 };
RDebugUtils.currentLine=6291465;
 //BA.debugLineNum = 6291465;BA.debugLine="pv.Close";
_pv.Close();
RDebugUtils.currentLine=6291466;
 //BA.debugLineNum = 6291466;BA.debugLine="Return Preventa";
if (true) return _preventa;
RDebugUtils.currentLine=6291467;
 //BA.debugLineNum = 6291467;BA.debugLine="End Sub";
return "";
}
public String  _traenumvendedor(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "traenumvendedor", false))
	 {return ((String) Debug.delegate(ba, "traenumvendedor", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _np = null;
String _tel_preventa = "";
RDebugUtils.currentLine=6356992;
 //BA.debugLineNum = 6356992;BA.debugLine="Sub TraeNumVendedor As String";
RDebugUtils.currentLine=6356993;
 //BA.debugLineNum = 6356993;BA.debugLine="Private np As Cursor";
_np = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=6356994;
 //BA.debugLineNum = 6356994;BA.debugLine="Private Tel_Preventa As String = \"\"";
_tel_preventa = "";
RDebugUtils.currentLine=6356995;
 //BA.debugLineNum = 6356995;BA.debugLine="np = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT";
_np = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'TELEFONO'")));
RDebugUtils.currentLine=6356996;
 //BA.debugLineNum = 6356996;BA.debugLine="If np.RowCount > 0 Then";
if (_np.getRowCount()>0) { 
RDebugUtils.currentLine=6356997;
 //BA.debugLineNum = 6356997;BA.debugLine="np.Position = 0";
_np.setPosition((int) (0));
RDebugUtils.currentLine=6356998;
 //BA.debugLineNum = 6356998;BA.debugLine="Tel_Preventa = np.GetString(\"CAT_VA_VALOR\")";
_tel_preventa = _np.GetString("CAT_VA_VALOR");
 };
RDebugUtils.currentLine=6357000;
 //BA.debugLineNum = 6357000;BA.debugLine="np.Close";
_np.Close();
RDebugUtils.currentLine=6357001;
 //BA.debugLineNum = 6357001;BA.debugLine="Return Tel_Preventa";
if (true) return _tel_preventa;
RDebugUtils.currentLine=6357002;
 //BA.debugLineNum = 6357002;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(SHARK2.keymon.com.mx.c_cliente __ref,SHARK2.keymon.com.mx.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}));}
SHARK2.keymon.com.mx.dbrequestmanager._dbresult _resultado = null;
String _cliente = "";
Object[] _records = null;
String[] _pars = null;
int _piezasexiste = 0;
String _pcnoarts = "";
String _pcmonto = "";
String _k = "";
String _idpreg = "";
String _idresp = "";
RDebugUtils.currentLine=7733248;
 //BA.debugLineNum = 7733248;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=7733250;
 //BA.debugLineNum = 7733250;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 }else {
RDebugUtils.currentLine=7733253;
 //BA.debugLineNum = 7733253;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("57733253","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=7733254;
 //BA.debugLineNum = 7733254;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733255;
 //BA.debugLineNum = 7733255;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733256;
 //BA.debugLineNum = 7733256;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_pedido";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_pedidosPendientes_head_")>-1) { 
RDebugUtils.currentLine=7733257;
 //BA.debugLineNum = 7733257;BA.debugLine="Subs.logJobDoneResultados(resultado)";
_subs._logjobdoneresultados /*String*/ (ba,_resultado);
RDebugUtils.currentLine=7733258;
 //BA.debugLineNum = 7733258;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=7733259;
 //BA.debugLineNum = 7733259;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
RDebugUtils.currentLine=7733261;
 //BA.debugLineNum = 7733261;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group10 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen10 = group10.getSize()
;int index10 = 0;
;
for (; index10 < groupLen10;index10++){
_records = (Object[])(group10.Get(index10));
RDebugUtils.currentLine=7733262;
 //BA.debugLineNum = 7733262;BA.debugLine="If records(resultado.Columns.Get(\"AffectedRow";
if (((int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("AffectedRows"))))])))==1) { 
RDebugUtils.currentLine=7733264;
 //BA.debugLineNum = 7733264;BA.debugLine="Private pars() As String = Regex.Split(\"_\",";
_pars = __c.Regex.Split("_",BA.ObjectToString(_resultado.Tag /*Object*/ ));
RDebugUtils.currentLine=7733265;
 //BA.debugLineNum = 7733265;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO_CLIENTE set PC_ENVIO_OK = 1 where PC_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_pars[(int) (3)]))+"'"));
 };
 }
};
 };
 };
RDebugUtils.currentLine=7733275;
 //BA.debugLineNum = 7733275;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733276;
 //BA.debugLineNum = 7733276;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733277;
 //BA.debugLineNum = 7733277;BA.debugLine="If resultado.Tag = \"piezas\" Then 'query tag";
if ((_resultado.Tag /*Object*/ ).equals((Object)("piezas"))) { 
RDebugUtils.currentLine=7733279;
 //BA.debugLineNum = 7733279;BA.debugLine="Dim piezasexiste As Int";
_piezasexiste = 0;
RDebugUtils.currentLine=7733281;
 //BA.debugLineNum = 7733281;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group22 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen22 = group22.getSize()
;int index22 = 0;
;
for (; index22 < groupLen22;index22++){
_records = (Object[])(group22.Get(index22));
RDebugUtils.currentLine=7733283;
 //BA.debugLineNum = 7733283;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
RDebugUtils.currentLine=7733284;
 //BA.debugLineNum = 7733284;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("57733284",BA.NumberToString(_piezasexiste),0);
RDebugUtils.currentLine=7733285;
 //BA.debugLineNum = 7733285;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=7733286;
 //BA.debugLineNum = 7733286;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=7733287;
 //BA.debugLineNum = 7733287;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=7733288;
 //BA.debugLineNum = 7733288;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=7733289;
 //BA.debugLineNum = 7733289;BA.debugLine="If piezasexiste =  0 Then";
if (_piezasexiste==0) { 
RDebugUtils.currentLine=7733291;
 //BA.debugLineNum = 7733291;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7733292;
 //BA.debugLineNum = 7733292;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7733293;
 //BA.debugLineNum = 7733293;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()})));
RDebugUtils.currentLine=7733296;
 //BA.debugLineNum = 7733296;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7733297;
 //BA.debugLineNum = 7733297;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733298;
 //BA.debugLineNum = 7733298;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=7733299;
 //BA.debugLineNum = 7733299;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
 };
RDebugUtils.currentLine=7733302;
 //BA.debugLineNum = 7733302;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7733303;
 //BA.debugLineNum = 7733303;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7733304;
 //BA.debugLineNum = 7733304;BA.debugLine="cmd.Name = \"insert_HVC_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_HVC_SHARK2";
RDebugUtils.currentLine=7733305;
 //BA.debugLineNum = 7733305;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_pcnoarts),(Object)(_pcmonto),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7733306;
 //BA.debugLineNum = 7733306;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insert_hvc\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_hvc"));
 }else 
{RDebugUtils.currentLine=7733309;
 //BA.debugLineNum = 7733309;BA.debugLine="Else If piezasexiste = 1 Then";
if (_piezasexiste==1) { 
RDebugUtils.currentLine=7733310;
 //BA.debugLineNum = 7733310;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7733311;
 //BA.debugLineNum = 7733311;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7733312;
 //BA.debugLineNum = 7733312;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()})));
RDebugUtils.currentLine=7733314;
 //BA.debugLineNum = 7733314;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7733315;
 //BA.debugLineNum = 7733315;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733316;
 //BA.debugLineNum = 7733316;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=7733317;
 //BA.debugLineNum = 7733317;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
 };
RDebugUtils.currentLine=7733319;
 //BA.debugLineNum = 7733319;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7733320;
 //BA.debugLineNum = 7733320;BA.debugLine="cmd.Name = \"update_HVC_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVC_SHARK2";
RDebugUtils.currentLine=7733321;
 //BA.debugLineNum = 7733321;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_pcnoarts),(Object)(_pcmonto),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ ),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7733322;
 //BA.debugLineNum = 7733322;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvc\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("update_hvc"));
 }}
;
 }
};
 };
 };
RDebugUtils.currentLine=7733331;
 //BA.debugLineNum = 7733331;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733332;
 //BA.debugLineNum = 7733332;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733333;
 //BA.debugLineNum = 7733333;BA.debugLine="If resultado.Tag = \"piezasrecarga\" Then 'query";
if ((_resultado.Tag /*Object*/ ).equals((Object)("piezasrecarga"))) { 
RDebugUtils.currentLine=7733335;
 //BA.debugLineNum = 7733335;BA.debugLine="Dim piezasexiste As Int";
_piezasexiste = 0;
RDebugUtils.currentLine=7733336;
 //BA.debugLineNum = 7733336;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group64 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen64 = group64.getSize()
;int index64 = 0;
;
for (; index64 < groupLen64;index64++){
_records = (Object[])(group64.Get(index64));
RDebugUtils.currentLine=7733337;
 //BA.debugLineNum = 7733337;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
RDebugUtils.currentLine=7733338;
 //BA.debugLineNum = 7733338;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("57733338",BA.NumberToString(_piezasexiste),0);
RDebugUtils.currentLine=7733339;
 //BA.debugLineNum = 7733339;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=7733340;
 //BA.debugLineNum = 7733340;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=7733341;
 //BA.debugLineNum = 7733341;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=7733342;
 //BA.debugLineNum = 7733342;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=7733343;
 //BA.debugLineNum = 7733343;BA.debugLine="If piezasexiste =  0 Then";
if (_piezasexiste==0) { 
RDebugUtils.currentLine=7733344;
 //BA.debugLineNum = 7733344;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7733345;
 //BA.debugLineNum = 7733345;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7733346;
 //BA.debugLineNum = 7733346;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{"1"})));
RDebugUtils.currentLine=7733347;
 //BA.debugLineNum = 7733347;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7733348;
 //BA.debugLineNum = 7733348;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733349;
 //BA.debugLineNum = 7733349;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=7733350;
 //BA.debugLineNum = 7733350;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
 };
RDebugUtils.currentLine=7733352;
 //BA.debugLineNum = 7733352;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7733353;
 //BA.debugLineNum = 7733353;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7733354;
 //BA.debugLineNum = 7733354;BA.debugLine="cmd.Name = \"insert_HVC_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_HVC_SHARK2";
RDebugUtils.currentLine=7733355;
 //BA.debugLineNum = 7733355;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)("0"),(Object)(_pcnoarts),(Object)(_pcmonto),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7733356;
 //BA.debugLineNum = 7733356;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insert_hvc\"";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_hvc"));
 }else 
{RDebugUtils.currentLine=7733358;
 //BA.debugLineNum = 7733358;BA.debugLine="Else If piezasexiste = 1 Then";
if (_piezasexiste==1) { 
RDebugUtils.currentLine=7733359;
 //BA.debugLineNum = 7733359;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7733360;
 //BA.debugLineNum = 7733360;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7733361;
 //BA.debugLineNum = 7733361;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?",new String[]{"1"})));
RDebugUtils.currentLine=7733362;
 //BA.debugLineNum = 7733362;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7733363;
 //BA.debugLineNum = 7733363;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=7733364;
 //BA.debugLineNum = 7733364;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
_pcnoarts = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART");
RDebugUtils.currentLine=7733365;
 //BA.debugLineNum = 7733365;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
_pcmonto = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
 };
RDebugUtils.currentLine=7733367;
 //BA.debugLineNum = 7733367;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7733368;
 //BA.debugLineNum = 7733368;BA.debugLine="cmd.Name = \"update_HVC_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_HVC_SHARK2";
RDebugUtils.currentLine=7733369;
 //BA.debugLineNum = 7733369;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)((__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )),(Object)("0"),(Object)(_pcnoarts),(Object)(_pcmonto),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ ),(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._la_ruta /*String*/ )};
RDebugUtils.currentLine=7733370;
 //BA.debugLineNum = 7733370;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvc\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("update_hvc"));
 }}
;
 }
};
 };
 };
RDebugUtils.currentLine=7733396;
 //BA.debugLineNum = 7733396;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733397;
 //BA.debugLineNum = 7733397;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733398;
 //BA.debugLineNum = 7733398;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_abonos";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_abonosPendientes_")>-1) { 
RDebugUtils.currentLine=7733399;
 //BA.debugLineNum = 7733399;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=7733400;
 //BA.debugLineNum = 7733400;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+18));
RDebugUtils.currentLine=7733401;
 //BA.debugLineNum = 7733401;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
__c.LogImpl("57733401",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
RDebugUtils.currentLine=7733402;
 //BA.debugLineNum = 7733402;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group108 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen108 = group108.getSize()
;int index108 = 0;
;
for (; index108 < groupLen108;index108++){
_records = (Object[])(group108.Get(index108));
RDebugUtils.currentLine=7733403;
 //BA.debugLineNum = 7733403;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group109 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen109 = group109.getSize()
;int index109 = 0;
;
for (; index109 < groupLen109;index109++){
_k = BA.ObjectToString(group109.Get(index109));
RDebugUtils.currentLine=7733404;
 //BA.debugLineNum = 7733404;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("57733404",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=7733407;
 //BA.debugLineNum = 7733407;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE A";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE ABONOS set a_enviado = 1  where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'"));
 };
 };
RDebugUtils.currentLine=7733412;
 //BA.debugLineNum = 7733412;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733413;
 //BA.debugLineNum = 7733413;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733414;
 //BA.debugLineNum = 7733414;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"insert_cli";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("insert_cliente_")>-1) { 
RDebugUtils.currentLine=7733415;
 //BA.debugLineNum = 7733415;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=7733416;
 //BA.debugLineNum = 7733416;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+9));
RDebugUtils.currentLine=7733417;
 //BA.debugLineNum = 7733417;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
__c.LogImpl("57733417",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
RDebugUtils.currentLine=7733418;
 //BA.debugLineNum = 7733418;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group122 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen122 = group122.getSize()
;int index122 = 0;
;
for (; index122 < groupLen122;index122++){
_records = (Object[])(group122.Get(index122));
RDebugUtils.currentLine=7733419;
 //BA.debugLineNum = 7733419;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group123 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen123 = group123.getSize()
;int index123 = 0;
;
for (; index123 < groupLen123;index123++){
_k = BA.ObjectToString(group123.Get(index123));
RDebugUtils.currentLine=7733420;
 //BA.debugLineNum = 7733420;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("57733420",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=7733423;
 //BA.debugLineNum = 7733423;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE C";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CLIENTE_NUEVO set CN_enviado = 1  where CN_ID_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'"));
 };
 };
RDebugUtils.currentLine=7733428;
 //BA.debugLineNum = 7733428;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=7733429;
 //BA.debugLineNum = 7733429;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=7733430;
 //BA.debugLineNum = 7733430;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"insert_cue";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("insert_cuestionario_")>-1) { 
RDebugUtils.currentLine=7733431;
 //BA.debugLineNum = 7733431;BA.debugLine="Private pars() As String = Regex.Split(\"_\", re";
_pars = __c.Regex.Split("_",(BA.ObjectToString(_resultado.Tag /*Object*/ )));
RDebugUtils.currentLine=7733432;
 //BA.debugLineNum = 7733432;BA.debugLine="Log($\"${resultado.tag}|${pars(0)}\"$)";
__c.LogImpl("57733432",(""+__c.SmartStringFormatter("",_resultado.Tag /*Object*/ )+"|"+__c.SmartStringFormatter("",(Object)(_pars[(int) (0)]))+""),0);
RDebugUtils.currentLine=7733433;
 //BA.debugLineNum = 7733433;BA.debugLine="Log($\"${pars(1)}\"$)";
__c.LogImpl("57733433",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (1)]))+""),0);
RDebugUtils.currentLine=7733434;
 //BA.debugLineNum = 7733434;BA.debugLine="Log($\"${pars(2)}\"$)";
__c.LogImpl("57733434",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (2)]))+""),0);
RDebugUtils.currentLine=7733435;
 //BA.debugLineNum = 7733435;BA.debugLine="Log($\"${pars(3)}\"$)";
__c.LogImpl("57733435",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (3)]))+""),0);
RDebugUtils.currentLine=7733436;
 //BA.debugLineNum = 7733436;BA.debugLine="Log($\"${pars(4)}\"$)";
__c.LogImpl("57733436",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (4)]))+""),0);
RDebugUtils.currentLine=7733437;
 //BA.debugLineNum = 7733437;BA.debugLine="Private cliente As String = pars(2)";
_cliente = _pars[(int) (2)];
RDebugUtils.currentLine=7733438;
 //BA.debugLineNum = 7733438;BA.debugLine="Private idPreg As String = pars(3)";
_idpreg = _pars[(int) (3)];
RDebugUtils.currentLine=7733439;
 //BA.debugLineNum = 7733439;BA.debugLine="Private idResp As String = pars(4)";
_idresp = _pars[(int) (4)];
RDebugUtils.currentLine=7733440;
 //BA.debugLineNum = 7733440;BA.debugLine="Log($\"Cliente2:${cliente}, preg:${idPreg}, res";
__c.LogImpl("57733440",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+", preg:"+__c.SmartStringFormatter("",(Object)(_idpreg))+", res:"+__c.SmartStringFormatter("",(Object)(_idresp))+""),0);
RDebugUtils.currentLine=7733441;
 //BA.debugLineNum = 7733441;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group143 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen143 = group143.getSize()
;int index143 = 0;
;
for (; index143 < groupLen143;index143++){
_records = (Object[])(group143.Get(index143));
RDebugUtils.currentLine=7733442;
 //BA.debugLineNum = 7733442;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group144 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen144 = group144.getSize()
;int index144 = 0;
;
for (; index144 < groupLen144;index144++){
_k = BA.ObjectToString(group144.Get(index144));
RDebugUtils.currentLine=7733443;
 //BA.debugLineNum = 7733443;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("57733443",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=7733446;
 //BA.debugLineNum = 7733446;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE C";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CUESTIONARIO set Q_ENVIO_OK = 1  where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"' and Q_IDPREGUNTA='"+__c.SmartStringFormatter("",(Object)(_idpreg))+"' and Q_IDRESPUESTA='"+__c.SmartStringFormatter("",(Object)(_idresp))+"'"));
 };
 };
RDebugUtils.currentLine=7733450;
 //BA.debugLineNum = 7733450;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=7733453;
 //BA.debugLineNum = 7733453;BA.debugLine="End Sub";
return "";
}
public String  _l_atiende_longclick(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "l_atiende_longclick", false))
	 {return ((String) Debug.delegate(ba, "l_atiende_longclick", null));}
RDebugUtils.currentLine=8585216;
 //BA.debugLineNum = 8585216;BA.debugLine="Private Sub l_atiende_LongClick";
RDebugUtils.currentLine=8585217;
 //BA.debugLineNum = 8585217;BA.debugLine="p_atiende.Height = Root.Height";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=8585218;
 //BA.debugLineNum = 8585218;BA.debugLine="p_atiende.Width = Root.Width";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=8585219;
 //BA.debugLineNum = 8585219;BA.debugLine="p_atiende.Visible = True";
__ref._p_atiende /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=8585220;
 //BA.debugLineNum = 8585220;BA.debugLine="End Sub";
return "";
}
public String  _l_giro_longclick(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "l_giro_longclick", false))
	 {return ((String) Debug.delegate(ba, "l_giro_longclick", null));}
anywheresoftware.b4a.objects.collections.List _items = null;
int _i = 0;
RDebugUtils.currentLine=8847360;
 //BA.debugLineNum = 8847360;BA.debugLine="Private Sub l_giro_LongClick";
RDebugUtils.currentLine=8847361;
 //BA.debugLineNum = 8847361;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_";
__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 GIRO FROM CAT_GIRO order by 1")));
RDebugUtils.currentLine=8847362;
 //BA.debugLineNum = 8847362;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=8847363;
 //BA.debugLineNum = 8847363;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=8847364;
 //BA.debugLineNum = 8847364;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
_items.Add((Object)("SELECCIONA UNA OPCIÓN"));
RDebugUtils.currentLine=8847365;
 //BA.debugLineNum = 8847365;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8847366;
 //BA.debugLineNum = 8847366;BA.debugLine="For i = 0 To c.RowCount-1";
{
final int step6 = 1;
final int limit6 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
RDebugUtils.currentLine=8847367;
 //BA.debugLineNum = 8847367;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8847368;
 //BA.debugLineNum = 8847368;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
_items.Add((Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("GIRO")));
 }
};
RDebugUtils.currentLine=8847370;
 //BA.debugLineNum = 8847370;BA.debugLine="cb_giro.SetItems(Items)";
__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._setitems /*String*/ (null,_items);
 };
RDebugUtils.currentLine=8847372;
 //BA.debugLineNum = 8847372;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
__ref._giros /*String*/  = "SELECCIONA UNA OPCIÓN";
RDebugUtils.currentLine=8847373;
 //BA.debugLineNum = 8847373;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8847374;
 //BA.debugLineNum = 8847374;BA.debugLine="p_giro.Height = Root.Height";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=8847375;
 //BA.debugLineNum = 8847375;BA.debugLine="p_giro.Width = Root.Width";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=8847376;
 //BA.debugLineNum = 8847376;BA.debugLine="p_giro.Visible = True";
__ref._p_giro /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=8847377;
 //BA.debugLineNum = 8847377;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemlongclick(SHARK2.keymon.com.mx.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=4849664;
 //BA.debugLineNum = 4849664;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
RDebugUtils.currentLine=4849666;
 //BA.debugLineNum = 4849666;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientes(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mandapendientes", false))
	 {return ((String) Debug.delegate(ba, "mandapendientes", null));}
String _pcnoarts = "";
String _pcmonto = "";
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _bb = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cb = null;
RDebugUtils.currentLine=7405568;
 //BA.debugLineNum = 7405568;BA.debugLine="Sub mandaPendientes";
RDebugUtils.currentLine=7405570;
 //BA.debugLineNum = 7405570;BA.debugLine="Log(\">>>>>>>  MANDA PENDIENTES\")";
__c.LogImpl("57405570",">>>>>>>  MANDA PENDIENTES",0);
RDebugUtils.currentLine=7405571;
 //BA.debugLineNum = 7405571;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
RDebugUtils.currentLine=7405572;
 //BA.debugLineNum = 7405572;BA.debugLine="Dim PCMonto As String";
_pcmonto = "";
RDebugUtils.currentLine=7405573;
 //BA.debugLineNum = 7405573;BA.debugLine="If usuario <> \"KMTS1\"  Then";
if ((__ref._usuario /*String*/ ).equals("KMTS1") == false) { 
RDebugUtils.currentLine=7405592;
 //BA.debugLineNum = 7405592;BA.debugLine="c = skmt.ExecQuery($\"SELECT PE_ENVIO_OK, PE_CEDI";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT PE_ENVIO_OK, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, PE_CANTC, PE_BCAJAS FROM PEDIDO where PE_ENVIO_OK <> 1"))));
RDebugUtils.currentLine=7405593;
 //BA.debugLineNum = 7405593;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57405593",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0);
RDebugUtils.currentLine=7405594;
 //BA.debugLineNum = 7405594;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=7405595;
 //BA.debugLineNum = 7405595;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step8 = 1;
final int limit8 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit8 ;_i = _i + step8 ) {
RDebugUtils.currentLine=7405596;
 //BA.debugLineNum = 7405596;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=7405597;
 //BA.debugLineNum = 7405597;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7405598;
 //BA.debugLineNum = 7405598;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7405599;
 //BA.debugLineNum = 7405599;BA.debugLine="cmd.Name = \"insert_pedido2_SHARK2P3\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido2_SHARK2P3";
RDebugUtils.currentLine=7405600;
 //BA.debugLineNum = 7405600;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANTC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS"))};
RDebugUtils.currentLine=7405601;
 //BA.debugLineNum = 7405601;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_pedidosPendientes_prods_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")))+"_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"")));
RDebugUtils.currentLine=7405602;
 //BA.debugLineNum = 7405602;BA.debugLine="Log($\">>>>  INS_PEDIDO= ${C.GetString(\"PE_CEDI";
__c.LogImpl("57405602",(">>>>  INS_PEDIDO= "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")))+","+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))+","+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")))+", "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")))+", "+__c.SmartStringFormatter("",(Object)(_pcnoarts))+", "+__c.SmartStringFormatter("",(Object)(_pcmonto))+""),0);
 }
};
 };
RDebugUtils.currentLine=7405609;
 //BA.debugLineNum = 7405609;BA.debugLine="Dim ab As Cursor = B4XPages.MainPage.skmt.ExecQu";
_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null"))));
RDebugUtils.currentLine=7405610;
 //BA.debugLineNum = 7405610;BA.debugLine="Log(ab.RowCount)";
__c.LogImpl("57405610",BA.NumberToString(_ab.getRowCount()),0);
RDebugUtils.currentLine=7405611;
 //BA.debugLineNum = 7405611;BA.debugLine="If ab.RowCount > 0 Then";
if (_ab.getRowCount()>0) { 
RDebugUtils.currentLine=7405612;
 //BA.debugLineNum = 7405612;BA.debugLine="For i=0 To ab.RowCount -1";
{
final int step21 = 1;
final int limit21 = (int) (_ab.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit21 ;_i = _i + step21 ) {
RDebugUtils.currentLine=7405613;
 //BA.debugLineNum = 7405613;BA.debugLine="ab.Position = i";
_ab.setPosition(_i);
RDebugUtils.currentLine=7405614;
 //BA.debugLineNum = 7405614;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7405615;
 //BA.debugLineNum = 7405615;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7405616;
 //BA.debugLineNum = 7405616;BA.debugLine="cmd.Name = \"insert_abono_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_abono_SHARK2";
RDebugUtils.currentLine=7405617;
 //BA.debugLineNum = 7405617;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=7405618;
 //BA.debugLineNum = 7405618;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPe";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
RDebugUtils.currentLine=7405619;
 //BA.debugLineNum = 7405619;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_c";
__c.LogImpl("57405619",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
 }
};
 };
RDebugUtils.currentLine=7405622;
 //BA.debugLineNum = 7405622;BA.debugLine="ab.Close";
_ab.Close();
RDebugUtils.currentLine=7405625;
 //BA.debugLineNum = 7405625;BA.debugLine="Dim bb As Cursor = B4XPages.MainPage.skmt.ExecQu";
_bb = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_bb = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from CLIENTE_NUEVO where CN_enviado is null"))));
RDebugUtils.currentLine=7405626;
 //BA.debugLineNum = 7405626;BA.debugLine="Dim cb As Cursor = B4XPages.MainPage.skmt.ExecQu";
_cb = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cb = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=7405627;
 //BA.debugLineNum = 7405627;BA.debugLine="cb.Position = 0";
_cb.setPosition((int) (0));
RDebugUtils.currentLine=7405628;
 //BA.debugLineNum = 7405628;BA.debugLine="If bb.RowCount > 0 Then";
if (_bb.getRowCount()>0) { 
RDebugUtils.currentLine=7405629;
 //BA.debugLineNum = 7405629;BA.debugLine="For i=0 To bb.RowCount -1";
{
final int step36 = 1;
final int limit36 = (int) (_bb.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit36 ;_i = _i + step36 ) {
RDebugUtils.currentLine=7405630;
 //BA.debugLineNum = 7405630;BA.debugLine="bb.Position = i";
_bb.setPosition(_i);
RDebugUtils.currentLine=7405631;
 //BA.debugLineNum = 7405631;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=7405632;
 //BA.debugLineNum = 7405632;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=7405633;
 //BA.debugLineNum = 7405633;BA.debugLine="cmd.Name = \"insert_cliente_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_cliente_SHARK2";
RDebugUtils.currentLine=7405634;
 //BA.debugLineNum = 7405634;BA.debugLine="cmd.Parameters = Array As Object( bb.GetString";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_bb.GetString("CN_ID_CLIENTE")),(Object)(_bb.GetString("CN_NOMBRE")),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._principal /*SHARK2.keymon.com.mx.c_principal*/ ._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_cb.GetString("ID_ALMACEN"))};
RDebugUtils.currentLine=7405635;
 //BA.debugLineNum = 7405635;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"insert_clien";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)(("insert_cliente_"+__c.SmartStringFormatter("",(Object)(_bb.GetString("CN_ID_CLIENTE")))+"")));
RDebugUtils.currentLine=7405636;
 //BA.debugLineNum = 7405636;BA.debugLine="Log($\"insert_cliente_${bb.GetString(\"CN_ID_CLI";
__c.LogImpl("57405636",("insert_cliente_"+__c.SmartStringFormatter("",(Object)(_bb.GetString("CN_ID_CLIENTE")))+""),0);
 }
};
RDebugUtils.currentLine=7405638;
 //BA.debugLineNum = 7405638;BA.debugLine="Log(\"si lo hice\")";
__c.LogImpl("57405638","si lo hice",0);
 };
RDebugUtils.currentLine=7405640;
 //BA.debugLineNum = 7405640;BA.debugLine="bb.Close";
_bb.Close();
RDebugUtils.currentLine=7405641;
 //BA.debugLineNum = 7405641;BA.debugLine="cb.Close";
_cb.Close();
 };
RDebugUtils.currentLine=7405676;
 //BA.debugLineNum = 7405676;BA.debugLine="End Sub";
return "";
}
public String  _mods(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "mods", false))
	 {return ((String) Debug.delegate(ba, "mods", null));}
RDebugUtils.currentLine=4456448;
 //BA.debugLineNum = 4456448;BA.debugLine="Sub MODS 'ignore";
RDebugUtils.currentLine=4456450;
 //BA.debugLineNum = 4456450;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click(SHARK2.keymon.com.mx.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=5636096;
 //BA.debugLineNum = 5636096;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=5636097;
 //BA.debugLineNum = 5636097;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=5636098;
 //BA.debugLineNum = 5636098;BA.debugLine="End Sub";
return "";
}
public String  _p_abono_click(SHARK2.keymon.com.mx.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=7798784;
 //BA.debugLineNum = 7798784;BA.debugLine="Private Sub p_abono_Click";
RDebugUtils.currentLine=7798786;
 //BA.debugLineNum = 7798786;BA.debugLine="End Sub";
return "";
}
public String  _p_atiende_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "p_atiende_click", false))
	 {return ((String) Debug.delegate(ba, "p_atiende_click", null));}
RDebugUtils.currentLine=8781824;
 //BA.debugLineNum = 8781824;BA.debugLine="Private Sub p_atiende_Click";
RDebugUtils.currentLine=8781826;
 //BA.debugLineNum = 8781826;BA.debugLine="End Sub";
return "";
}
public String  _p_cliente_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "p_cliente_click", false))
	 {return ((String) Debug.delegate(ba, "p_cliente_click", null));}
RDebugUtils.currentLine=7274496;
 //BA.debugLineNum = 7274496;BA.debugLine="Private Sub p_cliente_Click";
RDebugUtils.currentLine=7274498;
 //BA.debugLineNum = 7274498;BA.debugLine="End Sub";
return "";
}
public String  _p_giro_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "p_giro_click", false))
	 {return ((String) Debug.delegate(ba, "p_giro_click", null));}
RDebugUtils.currentLine=9109504;
 //BA.debugLineNum = 9109504;BA.debugLine="Private Sub p_giro_Click";
RDebugUtils.currentLine=9109506;
 //BA.debugLineNum = 9109506;BA.debugLine="End Sub";
return "";
}
public String  _printer_connected(SHARK2.keymon.com.mx.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=6684672;
 //BA.debugLineNum = 6684672;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
RDebugUtils.currentLine=6684673;
 //BA.debugLineNum = 6684673;BA.debugLine="If Success Then";
if (_success) { 
 }else {
RDebugUtils.currentLine=6684678;
 //BA.debugLineNum = 6684678;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=6684679;
 //BA.debugLineNum = 6684679;BA.debugLine="StartPrinter";
__ref._startprinter /*String*/ (null);
 };
 };
RDebugUtils.currentLine=6684682;
 //BA.debugLineNum = 6684682;BA.debugLine="End Sub";
return "";
}
public String  _startprinter(SHARK2.keymon.com.mx.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=6750208;
 //BA.debugLineNum = 6750208;BA.debugLine="Sub StartPrinter";
RDebugUtils.currentLine=6750209;
 //BA.debugLineNum = 6750209;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=6750210;
 //BA.debugLineNum = 6750210;BA.debugLine="Dim L1 As List";
_l1 = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=6750211;
 //BA.debugLineNum = 6750211;BA.debugLine="Dim resimp As Int";
_resimp = 0;
RDebugUtils.currentLine=6750212;
 //BA.debugLineNum = 6750212;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
RDebugUtils.currentLine=6750213;
 //BA.debugLineNum = 6750213;BA.debugLine="PairedDevices.Initialize";
__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=6750214;
 //BA.debugLineNum = 6750214;BA.debugLine="Try";
try {RDebugUtils.currentLine=6750215;
 //BA.debugLineNum = 6750215;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=6750217;
 //BA.debugLineNum = 6750217;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=6750218;
 //BA.debugLineNum = 6750218;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=6750219;
 //BA.debugLineNum = 6750219;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
RDebugUtils.currentLine=6750222;
 //BA.debugLineNum = 6750222;BA.debugLine="If PairedDevices.Size = 0 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==0) { 
RDebugUtils.currentLine=6750223;
 //BA.debugLineNum = 6750223;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=6750224;
 //BA.debugLineNum = 6750224;BA.debugLine="Return";
if (true) return "";
 };
RDebugUtils.currentLine=6750227;
 //BA.debugLineNum = 6750227;BA.debugLine="If PairedDevices.Size = 1 Then";
if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==1) { 
RDebugUtils.currentLine=6750228;
 //BA.debugLineNum = 6750228;BA.debugLine="Try";
try {RDebugUtils.currentLine=6750229;
 //BA.debugLineNum = 6750229;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=6750231;
 //BA.debugLineNum = 6750231;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
RDebugUtils.currentLine=6750232;
 //BA.debugLineNum = 6750232;BA.debugLine="printer.Close";
__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close();
RDebugUtils.currentLine=6750233;
 //BA.debugLineNum = 6750233;BA.debugLine="cmp20.Disconnect";
__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect();
 };
 }else {
RDebugUtils.currentLine=6750236;
 //BA.debugLineNum = 6750236;BA.debugLine="L1.Initialize";
_l1.Initialize();
RDebugUtils.currentLine=6750237;
 //BA.debugLineNum = 6750237;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=6750238;
 //BA.debugLineNum = 6750238;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
_l1.Add(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt(_i));
 }
};
RDebugUtils.currentLine=6750240;
 //BA.debugLineNum = 6750240;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
RDebugUtils.currentLine=6750241;
 //BA.debugLineNum = 6750241;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
if (_resimp!=__c.DialogResponse.CANCEL) { 
RDebugUtils.currentLine=6750242;
 //BA.debugLineNum = 6750242;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=6750245;
 //BA.debugLineNum = 6750245;BA.debugLine="End Sub";
return "";
}
public String  _printer1_connected(SHARK2.keymon.com.mx.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=6553600;
 //BA.debugLineNum = 6553600;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
RDebugUtils.currentLine=6553602;
 //BA.debugLineNum = 6553602;BA.debugLine="If Success Then";
if (_success) { 
RDebugUtils.currentLine=6553603;
 //BA.debugLineNum = 6553603;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
RDebugUtils.currentLine=6553604;
 //BA.debugLineNum = 6553604;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=6553605;
 //BA.debugLineNum = 6553605;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=6553608;
 //BA.debugLineNum = 6553608;BA.debugLine="impresoraConectada = True";
__ref._impresoraconectada /*boolean*/  = __c.True;
 }else {
RDebugUtils.currentLine=6553612;
 //BA.debugLineNum = 6553612;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("56553612","Error conectando la impresora",__c.Colors.Red);
RDebugUtils.currentLine=6553613;
 //BA.debugLineNum = 6553613;BA.debugLine="errorImpresora = errorImpresora + 1";
__ref._errorimpresora /*int*/  = (int) (__ref._errorimpresora /*int*/ +1);
RDebugUtils.currentLine=6553614;
 //BA.debugLineNum = 6553614;BA.debugLine="If errorImpresora > 1 Then";
if (__ref._errorimpresora /*int*/ >1) { 
RDebugUtils.currentLine=6553615;
 //BA.debugLineNum = 6553615;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
_starter._mac_impresora /*String*/  = "0";
RDebugUtils.currentLine=6553616;
 //BA.debugLineNum = 6553616;BA.debugLine="errorImpresora = 0";
__ref._errorimpresora /*int*/  = (int) (0);
 };
 };
RDebugUtils.currentLine=6553619;
 //BA.debugLineNum = 6553619;BA.debugLine="End Sub";
return "";
}
public String  _printer1_error(SHARK2.keymon.com.mx.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=6619136;
 //BA.debugLineNum = 6619136;BA.debugLine="Sub Printer1_Error";
RDebugUtils.currentLine=6619137;
 //BA.debugLineNum = 6619137;BA.debugLine="Log(\"error printer\")";
__c.LogImpl("56619137","error printer",0);
RDebugUtils.currentLine=6619138;
 //BA.debugLineNum = 6619138;BA.debugLine="End Sub";
return "";
}
public String  _rb1_checkedchange(SHARK2.keymon.com.mx.c_cliente __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "rb1_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "rb1_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=7012352;
 //BA.debugLineNum = 7012352;BA.debugLine="Sub RB1_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=7012353;
 //BA.debugLineNum = 7012353;BA.debugLine="If RB1.Checked = True Then";
if (__ref._rb1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.True) { 
RDebugUtils.currentLine=7012354;
 //BA.debugLineNum = 7012354;BA.debugLine="E_RES_E.Text = \"CENTRAL DE ABASTOS\"";
__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("CENTRAL DE ABASTOS"));
 };
RDebugUtils.currentLine=7012356;
 //BA.debugLineNum = 7012356;BA.debugLine="End Sub";
return "";
}
public String  _rb2_checkedchange(SHARK2.keymon.com.mx.c_cliente __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "rb2_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "rb2_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=7077888;
 //BA.debugLineNum = 7077888;BA.debugLine="Sub RB2_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=7077889;
 //BA.debugLineNum = 7077889;BA.debugLine="If RB2.Checked = True Then";
if (__ref._rb2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.True) { 
RDebugUtils.currentLine=7077890;
 //BA.debugLineNum = 7077890;BA.debugLine="E_RES_E.Text = \"AUTOSERVICIO\"";
__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("AUTOSERVICIO"));
 };
RDebugUtils.currentLine=7077892;
 //BA.debugLineNum = 7077892;BA.debugLine="End Sub";
return "";
}
public String  _rb3_checkedchange(SHARK2.keymon.com.mx.c_cliente __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "rb3_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "rb3_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=7143424;
 //BA.debugLineNum = 7143424;BA.debugLine="Sub RB3_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=7143425;
 //BA.debugLineNum = 7143425;BA.debugLine="If RB3.Checked = True Then";
if (__ref._rb3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.True) { 
RDebugUtils.currentLine=7143426;
 //BA.debugLineNum = 7143426;BA.debugLine="E_RES_E.Text = \"CLUB DE PRECIO\"";
__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("CLUB DE PRECIO"));
 };
RDebugUtils.currentLine=7143428;
 //BA.debugLineNum = 7143428;BA.debugLine="End Sub";
return "";
}
public String  _rb4_checkedchange(SHARK2.keymon.com.mx.c_cliente __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "rb4_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "rb4_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=7208960;
 //BA.debugLineNum = 7208960;BA.debugLine="Sub RB4_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=7208961;
 //BA.debugLineNum = 7208961;BA.debugLine="If RB4.Checked = True Then";
if (__ref._rb4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.True) { 
RDebugUtils.currentLine=7208962;
 //BA.debugLineNum = 7208962;BA.debugLine="E_RES_E.Text = \"DIRECTO PEDEGREE\"";
__ref._e_res_e /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("DIRECTO PEDEGREE"));
 };
RDebugUtils.currentLine=7208964;
 //BA.debugLineNum = 7208964;BA.debugLine="End Sub";
return "";
}
public void  _sc_result(SHARK2.keymon.com.mx.c_cliente __ref,String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "sc_result", false))
	 {Debug.delegate(ba, "sc_result", new Object[] {_atype,_values,_image}); return;}
ResumableSub_sc_result rsub = new ResumableSub_sc_result(this,__ref,_atype,_values,_image);
rsub.resume(ba, null);
}
public static class ResumableSub_sc_result extends BA.ResumableSub {
public ResumableSub_sc_result(SHARK2.keymon.com.mx.c_cliente parent,SHARK2.keymon.com.mx.c_cliente __ref,String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) {
this.parent = parent;
this.__ref = __ref;
this._atype = _atype;
this._values = _values;
this._image = _image;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_cliente __ref;
SHARK2.keymon.com.mx.c_cliente parent;
String _atype;
String _values;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image;
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=5832707;
 //BA.debugLineNum = 5832707;BA.debugLine="CODIGO = Values";
__ref._codigo /*String*/  = _values;
RDebugUtils.currentLine=5832708;
 //BA.debugLineNum = 5832708;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM kmt_info WHERE CAT_CL_NUM_SERIEFISICO = ?",new String[]{__ref._codigo /*String*/ })));
RDebugUtils.currentLine=5832709;
 //BA.debugLineNum = 5832709;BA.debugLine="DD.Position =0";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5832710;
 //BA.debugLineNum = 5832710;BA.debugLine="If DD.GetString(\"CUANTOS\") > 0 Then";
if (true) break;

case 1:
//if
this.state = 16;
if ((double)(Double.parseDouble(__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 16;
RDebugUtils.currentLine=5832711;
 //BA.debugLineNum = 5832711;BA.debugLine="MsgboxAsync(\"Código ya asignado\", \"AVISO\")";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Código ya asignado"),BA.ObjectToCharSequence("AVISO"),ba);
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=5832713;
 //BA.debugLineNum = 5832713;BA.debugLine="If CODIGO.Length = 7 Then";
if (true) break;

case 6:
//if
this.state = 15;
if (__ref._codigo /*String*/ .length()==7) { 
this.state = 8;
}else {
this.state = 14;
}if (true) break;

case 8:
//C
this.state = 9;
RDebugUtils.currentLine=5832714;
 //BA.debugLineNum = 5832714;BA.debugLine="Msgbox2Async(\"El código \"& CODIGO & \" es correc";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El código "+__ref._codigo /*String*/ +" es correcto?"),BA.ObjectToCharSequence("Title"),"Yes","Cancel","No",(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.False);
RDebugUtils.currentLine=5832715;
 //BA.debugLineNum = 5832715;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "sc_result"), null);
this.state = 17;
return;
case 17:
//C
this.state = 9;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=5832716;
 //BA.debugLineNum = 5832716;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 9:
//if
this.state = 12;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=5832717;
 //BA.debugLineNum = 5832717;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE k";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info set CAT_CL_NUM_SERIEFISICO = ?, CAT_CL_LONG = ?, CAT_CL_LAT =? where CAT_CL_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._codigo /*String*/ ),(Object)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )}));
RDebugUtils.currentLine=5832718;
 //BA.debugLineNum = 5832718;BA.debugLine="L_QR.TEXT =CODIGO";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._codigo /*String*/ ));
RDebugUtils.currentLine=5832719;
 //BA.debugLineNum = 5832719;BA.debugLine="L_QR.TextColor = Colors.Blue";
__ref._l_qr /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(parent.__c.Colors.Blue);
RDebugUtils.currentLine=5832720;
 //BA.debugLineNum = 5832720;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_CODIGO_BARRAS(CODIGOKMTS, CODIGOB, LAT, LON) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._codigo /*String*/ ),(Object)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )}));
 if (true) break;

case 12:
//C
this.state = 15;
;
 if (true) break;

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=5832723;
 //BA.debugLineNum = 5832723;BA.debugLine="MsgboxAsync(\"Código No Valido\", \"AVISO\")";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Código No Valido"),BA.ObjectToCharSequence("AVISO"),ba);
 if (true) break;

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

case 16:
//C
this.state = -1;
;
RDebugUtils.currentLine=5832726;
 //BA.debugLineNum = 5832726;BA.debugLine="DD.Close";
__ref._dd /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5832727;
 //BA.debugLineNum = 5832727;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _sc_timedout(SHARK2.keymon.com.mx.c_cliente __ref,boolean _timedout) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "sc_timedout", false))
	 {return ((String) Debug.delegate(ba, "sc_timedout", new Object[] {_timedout}));}
RDebugUtils.currentLine=5898240;
 //BA.debugLineNum = 5898240;BA.debugLine="Sub sc_timedout(timedOut As Boolean)";
RDebugUtils.currentLine=5898241;
 //BA.debugLineNum = 5898241;BA.debugLine="Log(\"timedOut \" & timedOut)";
__c.LogImpl("55898241","timedOut "+BA.ObjectToString(_timedout),0);
RDebugUtils.currentLine=5898242;
 //BA.debugLineNum = 5898242;BA.debugLine="End Sub";
return "";
}
public String  _sc_usercancelled(SHARK2.keymon.com.mx.c_cliente __ref,boolean _usercancelled) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "sc_usercancelled", false))
	 {return ((String) Debug.delegate(ba, "sc_usercancelled", new Object[] {_usercancelled}));}
RDebugUtils.currentLine=5963776;
 //BA.debugLineNum = 5963776;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)";
RDebugUtils.currentLine=5963777;
 //BA.debugLineNum = 5963777;BA.debugLine="Log(\"userCancelled \" & userCancelled)";
__c.LogImpl("55963777","userCancelled "+BA.ObjectToString(_usercancelled),0);
RDebugUtils.currentLine=5963778;
 //BA.debugLineNum = 5963778;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "t1_tick", false))
	 {return ((String) Debug.delegate(ba, "t1_tick", null));}
RDebugUtils.currentLine=6225920;
 //BA.debugLineNum = 6225920;BA.debugLine="Sub T1_Tick";
RDebugUtils.currentLine=6225923;
 //BA.debugLineNum = 6225923;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE (";
__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)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)",new String[]{"PREVENTA_CONTADO","PREVENTA_CREDITO"})));
RDebugUtils.currentLine=6225925;
 //BA.debugLineNum = 6225925;BA.debugLine="If s.RowCount > 0 Then";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6225926;
 //BA.debugLineNum = 6225926;BA.debugLine="imprime_preventa";
__ref._imprime_preventa /*void*/ (null);
 };
RDebugUtils.currentLine=6225930;
 //BA.debugLineNum = 6225930;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=6225931;
 //BA.debugLineNum = 6225931;BA.debugLine="If s <> Null Then s.Close";
if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ != null) { 
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();};
RDebugUtils.currentLine=6225932;
 //BA.debugLineNum = 6225932;BA.debugLine="End Sub";
return "";
}
public String  _tar_click(SHARK2.keymon.com.mx.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=5177344;
 //BA.debugLineNum = 5177344;BA.debugLine="Sub Tar_Click";
RDebugUtils.currentLine=5177345;
 //BA.debugLineNum = 5177345;BA.debugLine="B4XPages.ShowPage(\"Nota\")";
_b4xpages._showpage /*String*/ (ba,"Nota");
RDebugUtils.currentLine=5177346;
 //BA.debugLineNum = 5177346;BA.debugLine="End Sub";
return "";
}
public String  _tels_click(SHARK2.keymon.com.mx.c_cliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cliente";
if (Debug.shouldDelegate(ba, "tels_click", false))
	 {return ((String) Debug.delegate(ba, "tels_click", null));}
RDebugUtils.currentLine=5046272;
 //BA.debugLineNum = 5046272;BA.debugLine="Sub Tels_Click";
RDebugUtils.currentLine=5046273;
 //BA.debugLineNum = 5046273;BA.debugLine="B4XPages.ShowPage(\"NoVenta\")";
_b4xpages._showpage /*String*/ (ba,"NoVenta");
RDebugUtils.currentLine=5046274;
 //BA.debugLineNum = 5046274;BA.debugLine="End Sub";
return "";
}
}