package gunav2.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 BA(_ba, this, htSubs, "gunav2.keymon.com.mx.c_cliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_cliente.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 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 gunav2.keymon.com.mx.c_cuestionario _cuest = null;
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 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 gunav2.keymon.com.mx.escposprinter _printer1 = null;
public anywheresoftware.b4a.gps.LocationWrapper _location2 = 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 anywheresoftware.b4a.objects.LabelWrapper _l_cajetillas = null;
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 anywheresoftware.b4a.objects.Timer _t1 = null;
public anywheresoftware.b4a.objects.Timer _t2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_comm = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_actdte = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_usuario = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_resultado = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_entre1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_entre2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_atiende = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_atiende2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _datos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _guardar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _nuevo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s2 = null;
public String _res = "";
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 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.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 ice.zxing.b4aZXingLib _sc = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _sv_encuesta = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_e1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_e1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_e1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb3 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel5 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton4 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton5 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton6 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton7 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton8 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton9 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton10 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton11 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton12 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton13 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton14 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox4 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox5 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox6 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox7 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox8 = null;
public anywheresoftware.b4a.objects.collections.Map _encuentasmapa = null;
public anywheresoftware.b4a.objects.EditTextWrapper _p6 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _p7 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _p8 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel7 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton17 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton16 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton15 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb7_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb6_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p6_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p6_m2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p5_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd3_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd2_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd1_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p3_m2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p3_m2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel7_m2 = null;
public String _p4_m2 = "";
public String _p3_m2 = "";
public String _p6_m2 = "";
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p3_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb6_p3_m2 = null;
public String _existe2 = "";
public String _existe3 = "";
public String _existe4 = "";
public String _existe5 = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m3 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p3_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p3_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p3_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p3_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p3_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p4_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p4_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p4_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p4_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p4_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd1_p5_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd2_p5_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb6_p6_m3 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p6_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p7_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p7_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p7_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p7_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p8_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p8_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p8_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p9_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p9_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p9_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p9_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5_p9_m3 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m3 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_gallina = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acepta_gallina = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancela_gallina = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_gallina = null;
public anywheresoftware.b4a.objects.LabelWrapper _la_cuenta_gallina = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_pregunta = null;
public String _girotienda = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_pregunta1 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_preguntag = null;
public String _en_que_encuesta = "";
public String _encuesta = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m4 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p3_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_1_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_2_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_3_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_4_m4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_5_m4 = null;
public String _itemselect2 = "";
public String _itemselect3 = "";
public String _itemselect4 = "";
public String _itemselect5 = "";
public String _itemselect6 = "";
public String _itemselect7 = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m4 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_modulo5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p1_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p2_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p3_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p5_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p6_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p7_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p8_m5 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p9_m5 = null;
public String _itemselect8 = "";
public String _itemselect9 = "";
public String _itemselect10 = "";
public String _itemselect11 = "";
public String _itemselect12 = "";
public String _itemselect13 = "";
public String _itemselect14 = "";
public String _itemselect15 = "";
public String _itemselect16 = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m5 = null;
public String _pasa = "";
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p4_m2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel7_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p4_m2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p4_m2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guarda_ce_ped = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_03 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_04 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_05 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_06 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_07 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_08 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_09 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_10 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_11 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_12 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_13 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_14 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_15 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_16 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_17 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_18 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_19 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_20 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_03 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_04 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_05 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_06 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_03 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_04 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_05 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_06 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_07 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_08 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_03 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_04 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_05 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_06 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_07 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_08 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_09 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_10 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_03 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_04 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _b_01 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _b_02 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _ch_factura = null;
public String _que_modulo = "";
public String _cuenta_modulo = "";
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_m3_p1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_m3_p1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_m3_p1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_m3_p1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_m3_p2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_m3_p2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_m3_p2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_m3_p2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m3_1 = null;
public String _textemp2 = "";
public String _textemp3 = "";
public String _textemp4 = "";
public String _textemp5 = "";
public String _textemp6 = "";
public String _textemp7 = "";
public String _textemp8 = "";
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p8_m3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb7_p6_m3 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_m1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_m2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_m3 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_m4 = null;
public boolean _impresoraconectada = false;
public int _errorimpresora = 0;
public String _idencuestaaguardar = "";
public int _botonpresionado = 0;
public String _encuestares = "";
public int _indicepregunta = 0;
public String _tomar_foto = "";
public int _cursor_foto = 0;
public String _id_encuesta = "";
public String _chk_1_valor = "";
public String _chk_2_valor = "";
public String _chk_3_valor = "";
public anywheresoftware.b4a.objects.PanelWrapper _panel10 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_chk_e = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_chk_e = null;
public anywheresoftware.b4a.objects.LabelWrapper _label28 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_encuesta = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_continuar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_3 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_encuesta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_txtencuesta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_titencuesta = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview11 = null;
public long _distance = 0L;
public long _distancealm = 0L;
public anywheresoftware.b4a.objects.PanelWrapper _p_pidegeopass = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_geopass = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_geopass = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_geopass = null;
public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null;
public anywheresoftware.b4a.objects.IME _ime = null;
public gunav2.keymon.com.mx.cameraexclass _camex = null;
public boolean _frontcamera = false;
public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null;
public String _nombrefoto = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
public anywheresoftware.b4a.objects.IME _teclado = null;
public String _fototomada = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_foto = null;
public String _precision = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_inicio_fin_venta = null;
public boolean _dentrodegeocerca = false;
public String _motivonoventa = "";
public String _motivonovisita = "";
public int _contadoriniciarventa = 0;
public boolean _inivenno = false;
public int _geocont = 0;
public anywheresoftware.b4a.objects.LabelWrapper _l_version = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_preventa = null;
public gunav2.keymon.com.mx.c_bitacora _bitacora = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteticketimpreso = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_codigoautorizacion = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_codigoautorizacion = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarcodigoautorizacion = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ticketimpreso = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_enviarticket = null;
public String _archivoticketpdf = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_transparentepdf = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_enviopdf = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarenviopdf = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_enviopdf = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_numeropdf = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btnplanlealtad = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnl_btns = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlplanlealtad = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imgplanlealtad = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btnaceptaplanlealtad = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btncancelarplanlealtad = null;
public String _bcredito = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_comentarios = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_comentario = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_agregarcom = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cerarcom = null;
public anywheresoftware.b4a.objects.LabelWrapper _label19 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_comentario = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_comentarios = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview4 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_cliente_ = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_limite = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_credito = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tipocliente = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_deuda = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_deuda = null;
public anywheresoftware.b4a.objects.LabelWrapper _label22 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_animal = null;
public int _contiguales = 0;
public anywheresoftware.b4a.objects.ButtonWrapper _b_preventa2 = 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_telefono = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_canceltelefono = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptelefono = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_telefono = null;
public double _totalpromos = 0;
public double _totalpromostotal = 0;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb_com = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_imagengrande = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_fotogrande = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _scv_bat = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelencu = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guadarenc = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_encu = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p1 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p2 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p3 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p4 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p5 = null;
public String _e_1 = "";
public String _e_2 = "";
public String _e_3 = "";
public String _e_4 = "";
public String _e_5 = "";
public String _e_6 = "";
public String _e_7 = "";
public String _e_8 = "";
public String _e_9 = "";
public String _e_10 = "";
public gunav2.keymon.com.mx.b4xcombobox _cb_p6 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p7 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p8 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p9 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_p10 = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _b_acepatiende_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
 //BA.debugLineNum = 8294;BA.debugLine="Private Sub b_acepatiende_Click";
 //BA.debugLineNum = 8295;BA.debugLine="If et_atiende.Text <> \"\" Then";
if ((_et_atiende.getText()).equals("") == false) { 
 //BA.debugLineNum = 8297;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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from ATIENDE where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8299;BA.debugLine="If coord.RowCount = 0 Then";
if (_coord.getRowCount()==0) { 
 //BA.debugLineNum = 8300;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ATIENDE(ATIENDE";
_skmt.ExecNonQuery2("INSERT INTO ATIENDE(ATIENDE,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_atiende.getText(),_subs._traecliente /*String*/ (ba)}));
 //BA.debugLineNum = 8301;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(_et_atiende.getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
 //BA.debugLineNum = 8302;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
 //BA.debugLineNum = 8303;BA.debugLine="l_atiende.Text = et_atiende.Text";
_l_atiende.setText(BA.ObjectToCharSequence(_et_atiende.getText()));
 //BA.debugLineNum = 8304;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8305;BA.debugLine="p_atiende.Visible = False";
_p_atiende.setVisible(__c.False);
 //BA.debugLineNum = 8306;BA.debugLine="et_atiende.Text = \"\"";
_et_atiende.setText(BA.ObjectToCharSequence(""));
 }else {
 //BA.debugLineNum = 8308;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE ATIENDE SET ATIENDE";
_skmt.ExecNonQuery2("UPDATE ATIENDE SET ATIENDE = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_atiende.getText()}));
 //BA.debugLineNum = 8309;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(_et_atiende.getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
 //BA.debugLineNum = 8310;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
 //BA.debugLineNum = 8311;BA.debugLine="l_atiende.Text = et_atiende.Text";
_l_atiende.setText(BA.ObjectToCharSequence(_et_atiende.getText()));
 //BA.debugLineNum = 8312;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8313;BA.debugLine="p_atiende.Visible = False";
_p_atiende.setVisible(__c.False);
 //BA.debugLineNum = 8314;BA.debugLine="et_atiende.Text = \"\"";
_et_atiende.setText(BA.ObjectToCharSequence(""));
 };
 }else {
 //BA.debugLineNum = 8319;BA.debugLine="MsgboxAsync(\"Por favor captura un nombre valido.";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un nombre valido."),BA.ObjectToCharSequence("Atención"),ba);
 };
 //BA.debugLineNum = 8321;BA.debugLine="End Sub";
return "";
}
public String  _b_acepta_gallina_click() throws Exception{
 //BA.debugLineNum = 5801;BA.debugLine="Private Sub B_ACEPTA_GALLINA_Click";
 //BA.debugLineNum = 5804;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 5805;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 5806;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 5807;BA.debugLine="c=skmt.ExecQuery(\"Select CUENTA from cuentaa\")";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("Select CUENTA from cuentaa")));
 //BA.debugLineNum = 5808;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5809;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
_clie_id = _c.GetString("CUENTA");
 //BA.debugLineNum = 5810;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 5811;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 5812;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5813;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 5814;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 5815;BA.debugLine="c=skmt.ExecQuery(\"select ID_ALMACEN from CAT_ALMA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
 //BA.debugLineNum = 5816;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 5817;BA.debugLine="C.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5818;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
_almacen = _c.GetString("ID_ALMACEN");
 };
 //BA.debugLineNum = 5820;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 5821;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO  PEDIDO (PE_CEDIS";
_skmt.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)("PRO1771"),(Object)(0),(Object)(0),(Object)(1),(Object)("1 KNORR SUIZA EXH C/50/22 GR +1 KNORR SUIZA GALLINA $279.00"),(Object)("PRO1771"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)}));
 //BA.debugLineNum = 5822;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO  PEDIDO (PE_CEDIS";
_skmt.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)("PRO1771"),(Object)(139.5),(Object)(139.5),(Object)(1),(Object)("KNORR SUIZA EXH C/50/22 GR"),(Object)("UNI047"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)}));
 //BA.debugLineNum = 5823;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO  PEDIDO (PE_CEDIS";
_skmt.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)("PRO1771"),(Object)(139.5),(Object)(139.5),(Object)(1),(Object)("KNORR SUIZA GALLINA"),(Object)("UNI860"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)}));
 //BA.debugLineNum = 5825;BA.debugLine="c=skmt.ExecQuery(\"select sum(pe_costo_tot) as TOT";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 5826;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5827;BA.debugLine="skmt.ExecNonQuery(\"delete from pedido_cliente whe";
_skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
 //BA.debugLineNum = 5828;BA.debugLine="skmt.ExecNonQuery2(\"insert into pedido_cliente(PC";
_skmt.ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_la_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))}));
 //BA.debugLineNum = 5829;BA.debugLine="skmt.ExecNonQuery(\"UPDATE kmt_info3 set gestion =";
_skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
 //BA.debugLineNum = 5833;BA.debugLine="B_GALLINA.Visible = False";
_b_gallina.setVisible(__c.False);
 //BA.debugLineNum = 5834;BA.debugLine="b_like.Visible = True";
_b_like.setVisible(__c.True);
 //BA.debugLineNum = 5835;BA.debugLine="Tar.Visible = True";
_tar.setVisible(__c.True);
 //BA.debugLineNum = 5836;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 5837;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 5839;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 5840;BA.debugLine="Guardar.Visible = True";
_guardar.setVisible(__c.True);
 //BA.debugLineNum = 5841;BA.debugLine="P_gallina.Visible = False";
_p_gallina.setVisible(__c.False);
 //BA.debugLineNum = 5842;BA.debugLine="End Sub";
return "";
}
public String  _b_aceptelefono_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
 //BA.debugLineNum = 8341;BA.debugLine="Private Sub b_aceptelefono_Click";
 //BA.debugLineNum = 8342;BA.debugLine="If et_telefono.Text <> \"\" Then";
if ((_et_telefono.getText()).equals("") == false) { 
 //BA.debugLineNum = 8343;BA.debugLine="If et_telefono.Text.Length = 10 Then";
if (_et_telefono.getText().length()==10) { 
 //BA.debugLineNum = 8345;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skm";
_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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from TELEFONO where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8347;BA.debugLine="If coord.RowCount = 0 Then";
if (_coord.getRowCount()==0) { 
 //BA.debugLineNum = 8348;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO TELEFONO(TELEF";
_skmt.ExecNonQuery2("INSERT INTO TELEFONO(TELEFONO,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_telefono.getText(),_subs._traecliente /*String*/ (ba)}));
 //BA.debugLineNum = 8349;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE k";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_TELEFONO = '"+__c.SmartStringFormatter("",(Object)(_et_telefono.getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
 //BA.debugLineNum = 8350;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
 //BA.debugLineNum = 8351;BA.debugLine="Label19.Text = et_telefono.Text";
_label19.setText(BA.ObjectToCharSequence(_et_telefono.getText()));
 //BA.debugLineNum = 8352;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8353;BA.debugLine="p_telefono.Visible = False";
_p_telefono.setVisible(__c.False);
 //BA.debugLineNum = 8354;BA.debugLine="et_telefono.Text = \"\"";
_et_telefono.setText(BA.ObjectToCharSequence(""));
 }else {
 //BA.debugLineNum = 8356;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE TELEFONO SET TELEFO";
_skmt.ExecNonQuery2("UPDATE TELEFONO SET TELEFONO = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_telefono.getText()}));
 //BA.debugLineNum = 8357;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE k";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_TELEFONO = '"+__c.SmartStringFormatter("",(Object)(_et_telefono.getText()))+"'  where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
 //BA.debugLineNum = 8358;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba);
 //BA.debugLineNum = 8359;BA.debugLine="Label19.Text = et_telefono.Text";
_label19.setText(BA.ObjectToCharSequence(_et_telefono.getText()));
 //BA.debugLineNum = 8361;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8362;BA.debugLine="p_telefono.Visible = False";
_p_telefono.setVisible(__c.False);
 //BA.debugLineNum = 8363;BA.debugLine="et_telefono.Text = \"\"";
_et_telefono.setText(BA.ObjectToCharSequence(""));
 };
 }else {
 //BA.debugLineNum = 8367;BA.debugLine="MsgboxAsync(\"Por favor captura un numero de tel";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un numero de teléfono valido."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 8370;BA.debugLine="MsgboxAsync(\"Por favor captura un numero de telé";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un numero de teléfono valido."),BA.ObjectToCharSequence("Atención"),ba);
 };
 //BA.debugLineNum = 8372;BA.debugLine="End Sub";
return "";
}
public String  _b_agregarcom_click() throws Exception{
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
String _itemtext = "";
 //BA.debugLineNum = 7989;BA.debugLine="Private Sub b_agregarcom_Click";
 //BA.debugLineNum = 7991;BA.debugLine="If et_comentario.Text <> \"\" Then";
if ((_et_comentario.getText()).equals("") == false) { 
 //BA.debugLineNum = 7992;BA.debugLine="If chb_com.Checked Then";
if (_chb_com.getChecked()) { 
 //BA.debugLineNum = 7993;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert in";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into COMENTARIOS (COMENTARTIO, CLIENTE,comentario_tmp) values ('"+__c.SmartStringFormatter("",(Object)(_et_comentario.getText()))+"','"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"',1)"));
 }else if(_chb_com.getChecked()==__c.False) { 
 //BA.debugLineNum = 7995;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert in";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into COMENTARIOS (COMENTARTIO, CLIENTE,comentario_tmp) values ('"+__c.SmartStringFormatter("",(Object)(_et_comentario.getText()))+"','"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"',0)"));
 };
 //BA.debugLineNum = 7998;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 7999;BA.debugLine="label1 = lv_comentarios.SingleLineLayout.Label";
_label1 = _lv_comentarios.getSingleLineLayout().Label;
 //BA.debugLineNum = 8000;BA.debugLine="label1.TextSize = 16";
_label1.setTextSize((float) (16));
 //BA.debugLineNum = 8001;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
 //BA.debugLineNum = 8006;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DE";
_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
 //BA.debugLineNum = 8011;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"se";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COMENTARTIO FROM COMENTARIOS WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8012;BA.debugLine="lv_comentarios.SingleLineLayout.Label.TextColor";
_lv_comentarios.getSingleLineLayout().Label.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 8013;BA.debugLine="lv_comentarios.Clear";
_lv_comentarios.Clear();
 //BA.debugLineNum = 8014;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 8015;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step16 = 1;
final int limit16 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit16 ;_i = _i + step16 ) {
 //BA.debugLineNum = 8016;BA.debugLine="c.Position = i";
_c.setPosition(_i);
 //BA.debugLineNum = 8017;BA.debugLine="Dim itemText As String";
_itemtext = "";
 //BA.debugLineNum = 8019;BA.debugLine="itemText = $\"${c.GetString(\"COMENTARTIO\")}\"$";
_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("COMENTARTIO")))+"");
 //BA.debugLineNum = 8020;BA.debugLine="lv_comentarios.AddSingleLine(itemText)";
_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 }
};
 }else {
 //BA.debugLineNum = 8024;BA.debugLine="lv_comentarios.AddSingleLine(\"No hay datos disp";
_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles."));
 };
 //BA.debugLineNum = 8026;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 8027;BA.debugLine="et_comentario.Text = \"\"";
_et_comentario.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 8030;BA.debugLine="End Sub";
return "";
}
public String  _b_cancela_gallina_click() throws Exception{
 //BA.debugLineNum = 5844;BA.debugLine="Private Sub B_CANCELA_GALLINA_Click";
 //BA.debugLineNum = 5845;BA.debugLine="P_gallina.Visible = False";
_p_gallina.setVisible(__c.False);
 //BA.debugLineNum = 5847;BA.debugLine="B_GALLINA.Visible = False";
_b_gallina.setVisible(__c.False);
 //BA.debugLineNum = 5848;BA.debugLine="b_like.Visible = True";
_b_like.setVisible(__c.True);
 //BA.debugLineNum = 5849;BA.debugLine="Tar.Visible = True";
_tar.setVisible(__c.True);
 //BA.debugLineNum = 5850;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 5851;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 5853;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 5854;BA.debugLine="Guardar.Visible = True";
_guardar.setVisible(__c.True);
 //BA.debugLineNum = 5857;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarcodigoautorizacion_click() throws Exception{
 //BA.debugLineNum = 7126;BA.debugLine="Private Sub b_cancelarCodigoAutorizacion_Click";
 //BA.debugLineNum = 7127;BA.debugLine="p_transparenteTicketImpreso.Visible = False";
_p_transparenteticketimpreso.setVisible(__c.False);
 //BA.debugLineNum = 7128;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarenviopdf_click() throws Exception{
 //BA.debugLineNum = 7856;BA.debugLine="Private Sub b_cancelarEnvioPDF_Click";
 //BA.debugLineNum = 7857;BA.debugLine="p_transparentePDF.Visible = False";
_p_transparentepdf.setVisible(__c.False);
 //BA.debugLineNum = 7858;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelatiende_click() throws Exception{
 //BA.debugLineNum = 8323;BA.debugLine="Private Sub b_cancelatiende_Click";
 //BA.debugLineNum = 8324;BA.debugLine="p_atiende.Visible = False";
_p_atiende.setVisible(__c.False);
 //BA.debugLineNum = 8325;BA.debugLine="et_atiende.Text = \"\"";
_et_atiende.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 8326;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8327;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelencu_click() throws Exception{
 //BA.debugLineNum = 8466;BA.debugLine="Private Sub b_cancelencu_Click";
 //BA.debugLineNum = 8467;BA.debugLine="scv_bat.Visible = False";
_scv_bat.setVisible(__c.False);
 //BA.debugLineNum = 8468;BA.debugLine="End Sub";
return "";
}
public String  _b_canceltelefono_click() throws Exception{
 //BA.debugLineNum = 8374;BA.debugLine="Private Sub b_canceltelefono_Click";
 //BA.debugLineNum = 8375;BA.debugLine="p_telefono.Visible = False";
_p_telefono.setVisible(__c.False);
 //BA.debugLineNum = 8376;BA.debugLine="et_telefono.Text = \"\"";
_et_telefono.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 8377;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
 //BA.debugLineNum = 8378;BA.debugLine="End Sub";
return "";
}
public String  _b_cerarcom_click() throws Exception{
 //BA.debugLineNum = 7984;BA.debugLine="Private Sub b_cerarcom_Click";
 //BA.debugLineNum = 7985;BA.debugLine="p_comentario.Visible = False";
_p_comentario.setVisible(__c.False);
 //BA.debugLineNum = 7986;BA.debugLine="et_comentario.Text = \"\"";
_et_comentario.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 7987;BA.debugLine="End Sub";
return "";
}
public String  _b_chk_e_click() throws Exception{
 //BA.debugLineNum = 6873;BA.debugLine="Private Sub b_chk_e_Click";
 //BA.debugLineNum = 6875;BA.debugLine="End Sub";
return "";
}
public String  _b_codigoautorizacion_click() throws Exception{
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 7108;BA.debugLine="Private Sub b_codigoAutorizacion_Click";
 //BA.debugLineNum = 7109;BA.debugLine="If et_codigoAutorizacion.Text <> \"KMTS1\" Then";
if ((_et_codigoautorizacion.getText()).equals("KMTS1") == false) { 
 //BA.debugLineNum = 7110;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 7111;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 7112;BA.debugLine="cmd.Name = \"select_codigoAutorizacion\"";
_cmd.Name /*String*/  = "select_codigoAutorizacion";
 //BA.debugLineNum = 7113;BA.debugLine="cmd.Parameters = Array As Object(et_codigoAutori";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))};
 //BA.debugLineNum = 7114;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"codigoAutoriza";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("codigoAutorizacion"));
 }else {
 //BA.debugLineNum = 7116;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from ticket_im";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ticket_impreso where idCliente in (select cuenta from cuentaa)");
 //BA.debugLineNum = 7117;BA.debugLine="p_transparenteTicketImpreso.Visible = False";
_p_transparenteticketimpreso.setVisible(__c.False);
 //BA.debugLineNum = 7118;BA.debugLine="et_codigoAutorizacion.Text = \"\"";
_et_codigoautorizacion.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 7119;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 7120;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CREDIT";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
 };
 //BA.debugLineNum = 7122;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 7124;BA.debugLine="End Sub";
return "";
}
public String  _b_comentarios_click() throws Exception{
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
String _itemtext = "";
 //BA.debugLineNum = 7948;BA.debugLine="Private Sub b_comentarios_Click";
 //BA.debugLineNum = 7949;BA.debugLine="p_comentario.Visible = True";
_p_comentario.setVisible(__c.True);
 //BA.debugLineNum = 7950;BA.debugLine="et_comentario.Text = \"\"";
_et_comentario.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 7951;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 7952;BA.debugLine="label1 = lv_comentarios.SingleLineLayout.Label";
_label1 = _lv_comentarios.getSingleLineLayout().Label;
 //BA.debugLineNum = 7953;BA.debugLine="label1.TextSize = 16";
_label1.setTextSize((float) (16));
 //BA.debugLineNum = 7954;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
 //BA.debugLineNum = 7959;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DEF";
_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
 //BA.debugLineNum = 7964;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COMENTARTIO FROM COMENTARIOS WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 7965;BA.debugLine="lv_comentarios.SingleLineLayout.Label.TextColor =";
_lv_comentarios.getSingleLineLayout().Label.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 7966;BA.debugLine="lv_comentarios.Clear";
_lv_comentarios.Clear();
 //BA.debugLineNum = 7967;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 7968;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step12 = 1;
final int limit12 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit12 ;_i = _i + step12 ) {
 //BA.debugLineNum = 7969;BA.debugLine="c.Position = i";
_c.setPosition(_i);
 //BA.debugLineNum = 7970;BA.debugLine="Dim itemText As String";
_itemtext = "";
 //BA.debugLineNum = 7972;BA.debugLine="itemText = $\"${c.GetString(\"COMENTARTIO\")}\"$";
_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("COMENTARTIO")))+"");
 //BA.debugLineNum = 7973;BA.debugLine="lv_comentarios.AddSingleLine(itemText)";
_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence(_itemtext));
 }
};
 }else {
 //BA.debugLineNum = 7977;BA.debugLine="lv_comentarios.AddSingleLine(\"No hay datos dispo";
_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles."));
 };
 //BA.debugLineNum = 7982;BA.debugLine="End Sub";
return "";
}
public String  _b_e_next_click() throws Exception{
 //BA.debugLineNum = 5013;BA.debugLine="Sub B_E_NEXT_Click";
 //BA.debugLineNum = 5014;BA.debugLine="If E_RES_E.Text <> \"\" Then";
if ((_e_res_e.getText()).equals("") == false) { 
 //BA.debugLineNum = 5015;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int";
_b4xpages._mainpage /*gunav2.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)(_la_cuenta.getText()),(Object)(_e_res_e.getText()),(Object)(_sdate+_stime),(Object)("DONDE")}));
 //BA.debugLineNum = 5016;BA.debugLine="Panel2.Visible = False";
_panel2.setVisible(__c.False);
 //BA.debugLineNum = 5017;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
 }else {
 //BA.debugLineNum = 5019;BA.debugLine="Msgbox(\"SIN RESPUESTA\",\"AVISO\") 'Ignore";
__c.Msgbox(BA.ObjectToCharSequence("SIN RESPUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 5021;BA.debugLine="End Sub";
return "";
}
public String  _b_encuesta_1_click() throws Exception{
anywheresoftware.b4a.objects.ButtonWrapper _btn = null;
 //BA.debugLineNum = 6797;BA.debugLine="Private Sub b_encuesta_1_Click";
 //BA.debugLineNum = 6798;BA.debugLine="Log(\"BOTON 1 CLICK\")";
__c.LogImpl("424707073","BOTON 1 CLICK",0);
 //BA.debugLineNum = 6799;BA.debugLine="Dim btn As Button = Sender";
_btn = new anywheresoftware.b4a.objects.ButtonWrapper();
_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)));
 //BA.debugLineNum = 6800;BA.debugLine="Log(\"BOTON 1 CLICKED \"& \" clicked - \" & btn.Text";
__c.LogImpl("424707075","BOTON 1 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0);
 //BA.debugLineNum = 6801;BA.debugLine="encuestaRes = btn.Text";
_encuestares = _btn.getText();
 //BA.debugLineNum = 6802;BA.debugLine="indicePregunta = btn.Tag";
_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag()));
 //BA.debugLineNum = 6803;BA.debugLine="ocultaPanelEncuesta";
_ocultapanelencuesta();
 //BA.debugLineNum = 6804;BA.debugLine="botonPresionado = 1";
_botonpresionado = (int) (1);
 //BA.debugLineNum = 6805;BA.debugLine="End Sub";
return "";
}
public String  _b_encuesta_2_click() throws Exception{
anywheresoftware.b4a.objects.ButtonWrapper _btn = null;
 //BA.debugLineNum = 6807;BA.debugLine="Private Sub b_encuesta_2_Click";
 //BA.debugLineNum = 6808;BA.debugLine="Log(\"BOTON 2 CLICK\")";
__c.LogImpl("424772609","BOTON 2 CLICK",0);
 //BA.debugLineNum = 6809;BA.debugLine="Dim btn As Button = Sender";
_btn = new anywheresoftware.b4a.objects.ButtonWrapper();
_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)));
 //BA.debugLineNum = 6810;BA.debugLine="Log(\"BOTON 2 CLICKED \"& \" clicked - \" & btn.Text";
__c.LogImpl("424772611","BOTON 2 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0);
 //BA.debugLineNum = 6811;BA.debugLine="encuestaRes = btn.Text";
_encuestares = _btn.getText();
 //BA.debugLineNum = 6812;BA.debugLine="indicePregunta = btn.Tag";
_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag()));
 //BA.debugLineNum = 6813;BA.debugLine="ocultaPanelEncuesta";
_ocultapanelencuesta();
 //BA.debugLineNum = 6814;BA.debugLine="botonPresionado = 1";
_botonpresionado = (int) (1);
 //BA.debugLineNum = 6815;BA.debugLine="End Sub";
return "";
}
public String  _b_encuesta_3_click() throws Exception{
anywheresoftware.b4a.objects.ButtonWrapper _btn = null;
 //BA.debugLineNum = 6817;BA.debugLine="Private Sub b_encuesta_3_Click";
 //BA.debugLineNum = 6818;BA.debugLine="Log(\"BOTON 3 CLICK\")";
__c.LogImpl("424838145","BOTON 3 CLICK",0);
 //BA.debugLineNum = 6819;BA.debugLine="Dim btn As Button = Sender";
_btn = new anywheresoftware.b4a.objects.ButtonWrapper();
_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)));
 //BA.debugLineNum = 6820;BA.debugLine="Log(\"BOTON 3 CLICKED \"& \" clicked - \" & btn.Text";
__c.LogImpl("424838147","BOTON 3 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0);
 //BA.debugLineNum = 6821;BA.debugLine="encuestaRes = btn.Text";
_encuestares = _btn.getText();
 //BA.debugLineNum = 6822;BA.debugLine="indicePregunta = btn.Tag";
_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag()));
 //BA.debugLineNum = 6823;BA.debugLine="ocultaPanelEncuesta";
_ocultapanelencuesta();
 //BA.debugLineNum = 6824;BA.debugLine="botonPresionado = 1";
_botonpresionado = (int) (1);
 //BA.debugLineNum = 6825;BA.debugLine="End Sub";
return "";
}
public String  _b_encuesta_continuar_click() throws Exception{
anywheresoftware.b4a.objects.ButtonWrapper _btn = null;
 //BA.debugLineNum = 6827;BA.debugLine="Private Sub b_encuesta_continuar_Click";
 //BA.debugLineNum = 6828;BA.debugLine="Dim btn As Button = Sender";
_btn = new anywheresoftware.b4a.objects.ButtonWrapper();
_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)));
 //BA.debugLineNum = 6829;BA.debugLine="Log(\"BOTON CONTINUAR CLICK - \" & btn.Text & \" - \"";
__c.LogImpl("424903682","BOTON CONTINUAR CLICK - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0);
 //BA.debugLineNum = 6830;BA.debugLine="encuestaRes = et_encuesta.Text";
_encuestares = _et_encuesta.getText();
 //BA.debugLineNum = 6831;BA.debugLine="indicePregunta = btn.Tag";
_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag()));
 //BA.debugLineNum = 6832;BA.debugLine="et_encuesta.Text = \"\"";
_et_encuesta.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 6833;BA.debugLine="et_encuesta.Visible = False";
_et_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 6834;BA.debugLine="b_encuesta_continuar.Visible = False";
_b_encuesta_continuar.setVisible(__c.False);
 //BA.debugLineNum = 6835;BA.debugLine="ocultaPanelEncuesta";
_ocultapanelencuesta();
 //BA.debugLineNum = 6836;BA.debugLine="botonPresionado = 1";
_botonpresionado = (int) (1);
 //BA.debugLineNum = 6837;BA.debugLine="End Sub";
return "";
}
public String  _b_enviarticket_click() throws Exception{
 //BA.debugLineNum = 7679;BA.debugLine="Private Sub b_enviarTicket_Click";
 //BA.debugLineNum = 7680;BA.debugLine="et_numeroPDF.Text = telefono.trim";
_et_numeropdf.setText(BA.ObjectToCharSequence(_telefono.trim()));
 //BA.debugLineNum = 7681;BA.debugLine="p_transparentePDF.Visible = True";
_p_transparentepdf.setVisible(__c.True);
 //BA.debugLineNum = 7689;BA.debugLine="Log(\"Progress 2\")";
__c.LogImpl("426214410","Progress 2",0);
 //BA.debugLineNum = 7690;BA.debugLine="End Sub";
return "";
}
public String  _b_enviarticket_longclick() throws Exception{
 //BA.debugLineNum = 7692;BA.debugLine="Private Sub b_enviarTicket_LongClick";
 //BA.debugLineNum = 7698;BA.debugLine="End Sub";
return "";
}
public void  _b_enviopdf_click() throws Exception{
ResumableSub_b_envioPDF_Click rsub = new ResumableSub_b_envioPDF_Click(this);
rsub.resume(ba, null);
}
public static class ResumableSub_b_envioPDF_Click extends BA.ResumableSub {
public ResumableSub_b_envioPDF_Click(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 7822;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then";
if (true) break;

case 1:
//if
this.state = 12;
if ((parent._almacen).equals(BA.NumberToString(87)) || (parent._almacen).equals(BA.NumberToString(6))) { 
this.state = 3;
}else {
this.state = 11;
}if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 7823;BA.debugLine="If Subs.traemontoprod Then";
if (true) break;

case 4:
//if
this.state = 9;
if (parent._subs._traemontoprod /*boolean*/ (ba)) { 
this.state = 6;
}else {
this.state = 8;
}if (true) break;

case 6:
//C
this.state = 9;
 //BA.debugLineNum = 7824;BA.debugLine="PDFGENERAR2";
parent._pdfgenerar2();
 if (true) break;

case 8:
//C
this.state = 9;
 //BA.debugLineNum = 7826;BA.debugLine="PDFGENERAR";
parent._pdfgenerar();
 if (true) break;

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

case 11:
//C
this.state = 12;
 //BA.debugLineNum = 7829;BA.debugLine="PDFGENERAR";
parent._pdfgenerar();
 if (true) break;

case 12:
//C
this.state = -1;
;
 //BA.debugLineNum = 7832;BA.debugLine="Sleep(3000)";
parent.__c.Sleep(ba,this,(int) (3000));
this.state = 13;
return;
case 13:
//C
this.state = -1;
;
 //BA.debugLineNum = 7833;BA.debugLine="EnviarPDFWhatsAppNumero(et_numeroPDF.Text)";
parent._enviarpdfwhatsappnumero(parent._et_numeropdf.getText());
 //BA.debugLineNum = 7835;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TICKET_IMPRESO where idCliente In (select cuenta from cuentaa)");
 //BA.debugLineNum = 7836;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into TICKET_IMPRESO (idCliente) values ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"')"));
 //BA.debugLineNum = 7838;BA.debugLine="DateTime.DateFormat = \"YYYY/MM/dd HH:mm:ss\"";
parent.__c.DateTime.setDateFormat("YYYY/MM/dd HH:mm:ss");
 //BA.debugLineNum = 7839;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 7840;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 7841;BA.debugLine="cmd.Name = \"insertEnvioTicketPDF\"";
_cmd.Name /*String*/  = "insertEnvioTicketPDF";
 //BA.debugLineNum = 7842;BA.debugLine="Log(DateTime.Date(DateTime.Now))";
parent.__c.LogImpl("426542101",parent.__c.DateTime.Date(parent.__c.DateTime.getNow()),0);
 //BA.debugLineNum = 7843;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeCliente";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(parent._subs._traecliente /*String*/ (ba)),(Object)(parent._subs._traeusuariodebd /*String*/ (ba)),(Object)(parent._et_numeropdf.getText()),(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()))};
 //BA.debugLineNum = 7844;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insertEnvioTicke";
parent._reqmanager._executecommand /*String*/ (_cmd,(Object)("insertEnvioTicketPDF"));
 //BA.debugLineNum = 7846;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 7847;BA.debugLine="cmd.Name = \"insertaTelefonoTicketPDF\"";
_cmd.Name /*String*/  = "insertaTelefonoTicketPDF";
 //BA.debugLineNum = 7848;BA.debugLine="Log(DateTime.Date(DateTime.Now))";
parent.__c.LogImpl("426542107",parent.__c.DateTime.Date(parent.__c.DateTime.getNow()),0);
 //BA.debugLineNum = 7849;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeAlmacen";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(parent._subs._traealmacen /*String*/ (ba)),(Object)(parent._subs._traeruta /*String*/ (ba)),(Object)(parent._subs._traecliente /*String*/ (ba)),(Object)(parent._et_numeropdf.getText())};
 //BA.debugLineNum = 7850;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insertTelefonoTi";
parent._reqmanager._executecommand /*String*/ (_cmd,(Object)("insertTelefonoTicketPDF"));
 //BA.debugLineNum = 7852;BA.debugLine="Guardar_Click";
parent._guardar_click();
 //BA.debugLineNum = 7853;BA.debugLine="p_transparentePDF.Visible = False";
parent._p_transparentepdf.setVisible(parent.__c.False);
 //BA.debugLineNum = 7854;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_foto_click() throws Exception{
 //BA.debugLineNum = 8141;BA.debugLine="Private Sub b_foto_Click";
 //BA.debugLineNum = 8163;BA.debugLine="camEx.TakePicture";
_camex._takepicture /*String*/ ();
 //BA.debugLineNum = 8164;BA.debugLine="p_camara.Visible = False";
_p_camara.setVisible(__c.False);
 //BA.debugLineNum = 8168;BA.debugLine="End Sub";
return "";
}
public String  _b_gallina_click() throws Exception{
 //BA.debugLineNum = 5859;BA.debugLine="Private Sub B_GALLINA_Click";
 //BA.debugLineNum = 5860;BA.debugLine="P_gallina.Visible = True";
_p_gallina.setVisible(__c.True);
 //BA.debugLineNum = 5862;BA.debugLine="B_GALLINA.Visible = False";
_b_gallina.setVisible(__c.False);
 //BA.debugLineNum = 5863;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 5864;BA.debugLine="BT_QR.Visible = False";
_bt_qr.setVisible(__c.False);
 //BA.debugLineNum = 5866;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 5867;BA.debugLine="Tar.Visible = False";
_tar.setVisible(__c.False);
 //BA.debugLineNum = 5868;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 5869;BA.debugLine="gest.Visible = False ': ToastMessageShow(\"ccc\", F";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 5870;BA.debugLine="b_venta.Visible = False";
_b_venta.setVisible(__c.False);
 //BA.debugLineNum = 5871;BA.debugLine="Guardar.Visible = False";
_guardar.setVisible(__c.False);
 //BA.debugLineNum = 5872;BA.debugLine="HIST.Visible = False";
_hist.setVisible(__c.False);
 //BA.debugLineNum = 5873;BA.debugLine="End Sub";
return "";
}
public String  _b_geopass_click() throws Exception{
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 1942;BA.debugLine="Private Sub b_geopass_Click";
 //BA.debugLineNum = 1943;BA.debugLine="If et_geopass.Text.trim = \"KMTS1\" Then";
if ((_et_geopass.getText().trim()).equals("KMTS1")) { 
 //BA.debugLineNum = 1944;BA.debugLine="m_lat = B4XPages.MainPage.lat_gps";
_m_lat = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ;
 //BA.debugLineNum = 1945;BA.debugLine="m_lon = B4XPages.MainPage.lon_gps";
_m_lon = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ;
 //BA.debugLineNum = 1946;BA.debugLine="GPS_LocationChanged(Starter.ubicacionActual)";
_gps_locationchanged(_starter._ubicacionactual /*anywheresoftware.b4a.gps.LocationWrapper*/ );
 //BA.debugLineNum = 1947;BA.debugLine="skmt.ExecNonQuery($\"update kmt_info3 set CAT_CL_";
_skmt.ExecNonQuery(("update kmt_info3 set CAT_CL_LAT = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ))+"', CAT_CL_LONG = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ))+"' where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"'"));
 //BA.debugLineNum = 1948;BA.debugLine="et_geopass.Text = \"\"";
_et_geopass.setText(BA.ObjectToCharSequence(""));
 }else {
 //BA.debugLineNum = 1950;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1951;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1952;BA.debugLine="cmd.Name = \"select_geoPass_GUNA\"";
_cmd.Name /*String*/  = "select_geoPass_GUNA";
 //BA.debugLineNum = 1953;BA.debugLine="cmd.Parameters = Array As Object(et_geopass.Text";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_et_geopass.getText().trim()),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
 //BA.debugLineNum = 1954;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeGeoPass\")";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("traeGeoPass"));
 //BA.debugLineNum = 1955;BA.debugLine="Log($\"${Starter.server}, ${et_geopass.Text}, ${S";
__c.LogImpl("414876685",(""+__c.SmartStringFormatter("",(Object)(_starter._server /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(_et_geopass.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+""),0);
 //BA.debugLineNum = 1956;BA.debugLine="et_geopass.Text = \"\"";
_et_geopass.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 1958;BA.debugLine="p_pideGeoPass.Visible = False";
_p_pidegeopass.setVisible(__c.False);
 //BA.debugLineNum = 1965;BA.debugLine="End Sub";
return "";
}
public String  _b_gps_click() throws Exception{
 //BA.debugLineNum = 5057;BA.debugLine="Sub B_GPS_Click";
 //BA.debugLineNum = 5058;BA.debugLine="Dim result As Int";
_result = 0;
 //BA.debugLineNum = 5059;BA.debugLine="result = Msgbox2(\"Esta seguro de cambiar las coor";
_result = __c.Msgbox2(BA.ObjectToCharSequence("Esta seguro de cambiar las coordenadas de este cliente"),BA.ObjectToCharSequence("Aviso GPS"),"SI","","NO",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alerta.jpg").getObject()),ba);
 //BA.debugLineNum = 5060;BA.debugLine="If result = DialogResponse.Positive Then";
if (_result==__c.DialogResponse.POSITIVE) { 
 //BA.debugLineNum = 5061;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE kmt";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET CAT_CL_LAT = ?, CAT_CL_LONG = ? where CAT_CL_CODIGO In (Select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 5062;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 };
 //BA.debugLineNum = 5064;BA.debugLine="End Sub";
return "";
}
public String  _b_guadarenc_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _coloressaldo = null;
int _i = 0;
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 8412;BA.debugLine="Private Sub b_guadarenc_Click";
 //BA.debugLineNum = 8413;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 8414;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 8415;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 8416;BA.debugLine="Dim coloressaldo As Cursor=B4XPages.MainPage.skmt";
_coloressaldo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coloressaldo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_CLASIFICADOR5,0) AS CAT_CL_CLASIFICADOR5 from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 8417;BA.debugLine="If coloressaldo.RowCount > 0 Then";
if (_coloressaldo.getRowCount()>0) { 
 //BA.debugLineNum = 8418;BA.debugLine="coloressaldo.Position = 0";
_coloressaldo.setPosition((int) (0));
 //BA.debugLineNum = 8419;BA.debugLine="If coloressaldo.GetString(\"CAT_CL_CLASIFICADOR5\"";
if ((_coloressaldo.GetString("CAT_CL_CLASIFICADOR5")).equals("1")) { 
 //BA.debugLineNum = 8420;BA.debugLine="If e_1 <> \"Selecciona una opcion\" And e_2 <> \"S";
if ((_e_1).equals("Selecciona una opcion") == false && (_e_2).equals("Selecciona una opcion") == false && (_e_3).equals("Selecciona una opcion") == false && (_e_4).equals("Selecciona una opcion") == false && (_e_5).equals("Selecciona una opcion") == false) { 
 //BA.debugLineNum = 8421;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert i";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into ENCUESTAS_BAT (CLIENTE, RUTA, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10,FECHA) values ('"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_e_1))+"', '"+__c.SmartStringFormatter("",(Object)(_e_2))+"', '"+__c.SmartStringFormatter("",(Object)(_e_3))+"', '"+__c.SmartStringFormatter("",(Object)(_e_4))+"', '"+__c.SmartStringFormatter("",(Object)(_e_5))+"', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A' , '"+__c.SmartStringFormatter("",(Object)(_sdate))+"')"));
 //BA.debugLineNum = 8422;BA.debugLine="scv_bat.Visible = False";
_scv_bat.setVisible(__c.False);
 //BA.debugLineNum = 8425;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * F";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ENCUESTAS_BAT WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8426;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 8427;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step13 = 1;
final int limit13 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit13 ;_i = _i + step13 ) {
 //BA.debugLineNum = 8428;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 8429;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 8430;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 8431;BA.debugLine="cmd.Name = \"insert_encuestas_bat_guna\"";
_cmd.Name /*String*/  = "insert_encuestas_bat_guna";
 //BA.debugLineNum = 8432;BA.debugLine="cmd.Parameters = Array As Object(c.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("FECHA")),(Object)(_c.GetString("P1")),(Object)(_c.GetString("P2")),(Object)(_c.GetString("P3")),(Object)(_c.GetString("P4")),(Object)(_c.GetString("P5")),(Object)(_c.GetString("P6")),(Object)(_c.GetString("P7")),(Object)(_c.GetString("P8")),(Object)(_c.GetString("P9")),(Object)(_c.GetString("P10"))};
 //BA.debugLineNum = 8433;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INSENCUESTAS"));
 }
};
 };
 //BA.debugLineNum = 8436;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 8437;BA.debugLine="vent";
_vent();
 }else {
 //BA.debugLineNum = 8439;BA.debugLine="MsgboxAsync(\"Favor de responder todas las preg";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de responder todas las preguntas"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR5")).equals("5")) { 
 //BA.debugLineNum = 8442;BA.debugLine="If e_1 <> \"Selecciona una opcion\" And e_2 <> \"S";
if ((_e_1).equals("Selecciona una opcion") == false && (_e_2).equals("Selecciona una opcion") == false && (_e_3).equals("Selecciona una opcion") == false && (_e_4).equals("Selecciona una opcion") == false && (_e_5).equals("Selecciona una opcion") == false && (_e_6).equals("Selecciona una opcion") == false && (_e_7).equals("Selecciona una opcion") == false && (_e_8).equals("Selecciona una opcion") == false && (_e_9).equals("Selecciona una opcion") == false && (_e_10).equals("Selecciona una opcion") == false) { 
 //BA.debugLineNum = 8443;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert i";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into ENCUESTAS_BAT (CLIENTE, RUTA, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10,FECHA) values ('"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_e_1))+"', '"+__c.SmartStringFormatter("",(Object)(_e_2))+"', '"+__c.SmartStringFormatter("",(Object)(_e_3))+"', '"+__c.SmartStringFormatter("",(Object)(_e_4))+"', '"+__c.SmartStringFormatter("",(Object)(_e_5))+"', '"+__c.SmartStringFormatter("",(Object)(_e_6))+"', '"+__c.SmartStringFormatter("",(Object)(_e_7))+"', '"+__c.SmartStringFormatter("",(Object)(_e_8))+"', '"+__c.SmartStringFormatter("",(Object)(_e_9))+"', '"+__c.SmartStringFormatter("",(Object)(_e_10))+"' , '"+__c.SmartStringFormatter("",(Object)(_sdate))+"')"));
 //BA.debugLineNum = 8444;BA.debugLine="scv_bat.Visible = False";
_scv_bat.setVisible(__c.False);
 //BA.debugLineNum = 8447;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * F";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ENCUESTAS_BAT WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8448;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 8449;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step33 = 1;
final int limit33 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit33 ;_i = _i + step33 ) {
 //BA.debugLineNum = 8450;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 8451;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 8452;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 8453;BA.debugLine="cmd.Name = \"insert_encuestas_bat_guna\"";
_cmd.Name /*String*/  = "insert_encuestas_bat_guna";
 //BA.debugLineNum = 8454;BA.debugLine="cmd.Parameters = Array As Object(c.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("FECHA")),(Object)(_c.GetString("P1")),(Object)(_c.GetString("P2")),(Object)(_c.GetString("P3")),(Object)(_c.GetString("P4")),(Object)(_c.GetString("P5")),(Object)(_c.GetString("P6")),(Object)(_c.GetString("P7")),(Object)(_c.GetString("P8")),(Object)(_c.GetString("P9")),(Object)(_c.GetString("P10"))};
 //BA.debugLineNum = 8455;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INSENCUESTAS"));
 }
};
 };
 //BA.debugLineNum = 8458;BA.debugLine="vent";
_vent();
 }else {
 //BA.debugLineNum = 8460;BA.debugLine="MsgboxAsync(\"Favor de responder todas las preg";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de responder todas las preguntas"),BA.ObjectToCharSequence("Atención"),ba);
 };
 };
 };
 //BA.debugLineNum = 8464;BA.debugLine="End Sub";
return "";
}
public String  _b_guarda_c_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null;
 //BA.debugLineNum = 4948;BA.debugLine="Sub B_GUARDA_C_Click";
 //BA.debugLineNum = 4949;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 4950;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 4951;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 4952;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
 //BA.debugLineNum = 4953;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 4954;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
_clie_id = _c.GetString("CUENTA");
 //BA.debugLineNum = 4955;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 4956;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 4957;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 4958;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 4959;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 4960;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*gunav2.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)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)}));
 //BA.debugLineNum = 4961;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*gunav2.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)(_la_cuenta.getText()),(Object)(_i_compra.getText()),(Object)(_la_ruta),(Object)(_almacen)}));
 //BA.debugLineNum = 4962;BA.debugLine="Panel1.Visible = False";
_panel1.setVisible(__c.False);
 //BA.debugLineNum = 4963;BA.debugLine="b_like.Visible = True";
_b_like.setVisible(__c.True);
 //BA.debugLineNum = 4964;BA.debugLine="Tar.Visible = True";
_tar.setVisible(__c.True);
 //BA.debugLineNum = 4965;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 4966;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 4967;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Exe";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 4968;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 4969;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 4970;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 4971;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 4973;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 4976;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 4977;BA.debugLine="Guardar.Visible = True";
_guardar.setVisible(__c.True);
 //BA.debugLineNum = 4978;BA.debugLine="End Sub";
return "";
}
public String  _b_guarda_ce_ped_click() throws Exception{
 //BA.debugLineNum = 5988;BA.debugLine="Private Sub B_GUARDA_CE_PED_Click";
 //BA.debugLineNum = 5990;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 5991;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 5992;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 5993;BA.debugLine="c=skmt.ExecQuery(\"Select CUENTA from cuentaa\")";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("Select CUENTA from cuentaa")));
 //BA.debugLineNum = 5994;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5995;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
_clie_id = _c.GetString("CUENTA");
 //BA.debugLineNum = 5996;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 5997;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 5998;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 5999;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 6000;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 6001;BA.debugLine="c=skmt.ExecQuery(\"select ID_ALMACEN from CAT_ALMA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
 //BA.debugLineNum = 6002;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 6003;BA.debugLine="C.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 6004;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
_almacen = _c.GetString("ID_ALMACEN");
 };
 //BA.debugLineNum = 6006;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 6023;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_PED";
_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_PED_DIST_1(ALMACEN , TIENDA , KP_01  , KP_02  , KP_03  , KP_04  , KP_05  , KP_06  , KP_07  , KP_08  , KP_09  , KP_10  , KP_11  , KP_12  , KP_13  , KP_14  , KP_15  , KP_16  , KP_17  , KP_18  , KP_19  , KP_20  , KG_01  , KG_02  , KG_03  , KG_04  , KG_05  , KG_06  , PK_01  , PK_02  , PK_03  , PK_04  , PK_05  , PK_06  , PK_07  , PK_08) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_clie_id),(Object)(_kp_01.getChecked()),(Object)(_kp_02.getChecked()),(Object)(_kp_03.getChecked()),(Object)(_kp_04.getChecked()),(Object)(_kp_05.getChecked()),(Object)(_kp_06.getChecked()),(Object)(_kp_07.getChecked()),(Object)(_kp_08.getChecked()),(Object)(_kp_09.getChecked()),(Object)(_kp_10.getChecked()),(Object)(_kp_11.getChecked()),(Object)(_kp_12.getChecked()),(Object)(_kp_13.getChecked()),(Object)(_kp_14.getChecked()),(Object)(_kp_15.getChecked()),(Object)(_kp_16.getChecked()),(Object)(_kp_17.getChecked()),(Object)(_kp_18.getChecked()),(Object)(_kp_19.getChecked()),(Object)(_kp_20.getChecked()),(Object)(_kg_01.getChecked()),(Object)(_kg_02.getChecked()),(Object)(_kg_03.getChecked()),(Object)(_kg_04.getChecked()),(Object)(_kg_05.getChecked()),(Object)(_kg_06.getChecked()),(Object)(_pk_01.getChecked()),(Object)(_pk_02.getChecked()),(Object)(_pk_03.getChecked()),(Object)(_pk_04.getChecked()),(Object)(_pk_05.getChecked()),(Object)(_pk_06.getChecked()),(Object)(_pk_07.getChecked()),(Object)(_pk_08.getChecked())}));
 //BA.debugLineNum = 6025;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_PED";
_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_PED_DIST_2(ALMACEN , TIENDA , HPG_01  , HPG_02  , HPG_03  , HPG_04  , HPG_05  , HPG_06  , HPG_07  , HPG_08  , HPG_09  , HPG_10  , HC_01  , HC_02  , HC_03  , HC_04  , B_01  , B_02) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_clie_id),(Object)(_hpg_01.getChecked()),(Object)(_hpg_02.getChecked()),(Object)(_hpg_03.getChecked()),(Object)(_hpg_04.getChecked()),(Object)(_hpg_05.getChecked()),(Object)(_hpg_06.getChecked()),(Object)(_hpg_07.getChecked()),(Object)(_hpg_08.getChecked()),(Object)(_hpg_09.getChecked()),(Object)(_hpg_10.getChecked()),(Object)(_hc_01.getChecked()),(Object)(_hc_02.getChecked()),(Object)(_hc_03.getChecked()),(Object)(_hc_04.getChecked()),(Object)(_b_01.getChecked()),(Object)(_b_02.getChecked())}));
 //BA.debugLineNum = 6038;BA.debugLine="I_COMPRA.TEXT  = \"\"";
_i_compra.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 6039;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 6040;BA.debugLine="Panel1.Visible = False";
_panel1.setVisible(__c.False);
 //BA.debugLineNum = 6042;BA.debugLine="b_like.Visible = True";
_b_like.setVisible(__c.True);
 //BA.debugLineNum = 6043;BA.debugLine="Tar.Visible = True";
_tar.setVisible(__c.True);
 //BA.debugLineNum = 6044;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 6045;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 6047;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 6048;BA.debugLine="Guardar.Visible = True";
_guardar.setVisible(__c.True);
 //BA.debugLineNum = 6050;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 //BA.debugLineNum = 6052;BA.debugLine="End Sub";
return "";
}
public String  _b_guardaencuesta_click() throws Exception{
String _si_guardar = "";
 //BA.debugLineNum = 3131;BA.debugLine="Sub B_guardaencuesta_Click";
 //BA.debugLineNum = 3132;BA.debugLine="Dim SI_GUARDAR As String";
_si_guardar = "";
 //BA.debugLineNum = 3133;BA.debugLine="SI_GUARDAR = 1";
_si_guardar = BA.NumberToString(1);
 //BA.debugLineNum = 3135;BA.debugLine="If RB1_E1.Checked = False And RB2_E1.Checked = Fa";
if (_rb1_e1.getChecked()==__c.False && _rb2_e1.getChecked()==__c.False && _rb3_e1.getChecked()==__c.False) { 
 //BA.debugLineNum = 3136;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3139;BA.debugLine="If Panel7.Visible = True Then";
if (_panel7.getVisible()==__c.True) { 
 //BA.debugLineNum = 3140;BA.debugLine="If RadioButton15.Checked = False And RadioButton";
if (_radiobutton15.getChecked()==__c.False && _radiobutton16.getChecked()==__c.False && _radiobutton17.getChecked()==__c.False) { 
 //BA.debugLineNum = 3141;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 };
 //BA.debugLineNum = 3145;BA.debugLine="If RadioButton1.Checked = False And  RadioButton2";
if (_radiobutton1.getChecked()==__c.False && _radiobutton2.getChecked()==__c.False && _radiobutton3.getChecked()==__c.False && _radiobutton4.getChecked()==__c.False) { 
 //BA.debugLineNum = 3146;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3149;BA.debugLine="If RadioButton5.Checked = False And  RadioButton6";
if (_radiobutton5.getChecked()==__c.False && _radiobutton6.getChecked()==__c.False && _radiobutton7.getChecked()==__c.False && _radiobutton8.getChecked()==__c.False && _radiobutton9.getChecked()==__c.False) { 
 //BA.debugLineNum = 3150;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3153;BA.debugLine="If RadioButton10.Checked = False And  RadioButton";
if (_radiobutton10.getChecked()==__c.False && _radiobutton11.getChecked()==__c.False && _radiobutton12.getChecked()==__c.False && _radiobutton13.getChecked()==__c.False && _radiobutton14.getChecked()==__c.False) { 
 //BA.debugLineNum = 3154;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3157;BA.debugLine="If p6.Text = \"\" Then";
if ((_p6.getText()).equals("")) { 
 //BA.debugLineNum = 3158;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3160;BA.debugLine="If p7.Text = \"\" Then";
if ((_p7.getText()).equals("")) { 
 //BA.debugLineNum = 3161;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3163;BA.debugLine="If p8.Text = \"\" Then";
if ((_p8.getText()).equals("")) { 
 //BA.debugLineNum = 3164;BA.debugLine="SI_GUARDAR = 0";
_si_guardar = BA.NumberToString(0);
 };
 //BA.debugLineNum = 3167;BA.debugLine="If CheckBox1.Checked = False And CheckBox2.Checke";
if (_checkbox1.getChecked()==__c.False && _checkbox2.getChecked()==__c.False && _checkbox3.getChecked()==__c.False && _checkbox4.getChecked()==__c.False && _checkbox5.getChecked()==__c.False && _checkbox6.getChecked()==__c.False && _checkbox7.getChecked()==__c.False && _checkbox8.getChecked()==__c.False) { 
 //BA.debugLineNum = 3168;BA.debugLine="encuentasmapa.Put(\"P9\", \"\")";
_encuentasmapa.Put((Object)("P9"),(Object)(""));
 //BA.debugLineNum = 3169;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("416515110",BA.ObjectToString(_encuentasmapa),0);
 };
 //BA.debugLineNum = 3172;BA.debugLine="If SI_GUARDAR = 1 Then";
if ((_si_guardar).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 3173;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO1";
_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO1 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8, P9) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),_encuentasmapa.Get((Object)("P3")),_encuentasmapa.Get((Object)("P1")),_encuentasmapa.Get((Object)("P2")),_encuentasmapa.Get((Object)("P4")),_encuentasmapa.Get((Object)("P5")),(Object)(_p6.getText()),(Object)(_p7.getText()),(Object)(_p8.getText()),_encuentasmapa.Get((Object)("P9"))}));
 //BA.debugLineNum = 3179;BA.debugLine="RB1_E1.Checked = False";
_rb1_e1.setChecked(__c.False);
 //BA.debugLineNum = 3180;BA.debugLine="RB2_E1.Checked = False";
_rb2_e1.setChecked(__c.False);
 //BA.debugLineNum = 3181;BA.debugLine="RB3_E1.Checked = False";
_rb3_e1.setChecked(__c.False);
 //BA.debugLineNum = 3182;BA.debugLine="RadioButton15.Checked = False";
_radiobutton15.setChecked(__c.False);
 //BA.debugLineNum = 3183;BA.debugLine="RadioButton16.Checked = False";
_radiobutton16.setChecked(__c.False);
 //BA.debugLineNum = 3184;BA.debugLine="RadioButton17.Checked = False";
_radiobutton17.setChecked(__c.False);
 //BA.debugLineNum = 3185;BA.debugLine="RadioButton1.Checked = False";
_radiobutton1.setChecked(__c.False);
 //BA.debugLineNum = 3186;BA.debugLine="RadioButton2.Checked = False";
_radiobutton2.setChecked(__c.False);
 //BA.debugLineNum = 3187;BA.debugLine="RadioButton3.Checked = False";
_radiobutton3.setChecked(__c.False);
 //BA.debugLineNum = 3188;BA.debugLine="RadioButton4.Checked = False";
_radiobutton4.setChecked(__c.False);
 //BA.debugLineNum = 3189;BA.debugLine="RadioButton5.Checked = False";
_radiobutton5.setChecked(__c.False);
 //BA.debugLineNum = 3190;BA.debugLine="RadioButton6.Checked = False";
_radiobutton6.setChecked(__c.False);
 //BA.debugLineNum = 3191;BA.debugLine="RadioButton7.Checked = False";
_radiobutton7.setChecked(__c.False);
 //BA.debugLineNum = 3192;BA.debugLine="RadioButton8.Checked = False";
_radiobutton8.setChecked(__c.False);
 //BA.debugLineNum = 3193;BA.debugLine="RadioButton9.Checked = False";
_radiobutton9.setChecked(__c.False);
 //BA.debugLineNum = 3194;BA.debugLine="RadioButton10.Checked = False";
_radiobutton10.setChecked(__c.False);
 //BA.debugLineNum = 3195;BA.debugLine="RadioButton11.Checked = False";
_radiobutton11.setChecked(__c.False);
 //BA.debugLineNum = 3196;BA.debugLine="RadioButton12.Checked = False";
_radiobutton12.setChecked(__c.False);
 //BA.debugLineNum = 3197;BA.debugLine="RadioButton13.Checked = False";
_radiobutton13.setChecked(__c.False);
 //BA.debugLineNum = 3198;BA.debugLine="RadioButton14.Checked = False";
_radiobutton14.setChecked(__c.False);
 //BA.debugLineNum = 3199;BA.debugLine="p6.Text = \"\"";
_p6.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3200;BA.debugLine="p7.Text = \"\"";
_p7.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3201;BA.debugLine="p8.Text = \"\"";
_p8.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3202;BA.debugLine="CheckBox1.Checked = False";
_checkbox1.setChecked(__c.False);
 //BA.debugLineNum = 3203;BA.debugLine="CheckBox2.Checked = False";
_checkbox2.setChecked(__c.False);
 //BA.debugLineNum = 3204;BA.debugLine="CheckBox3.Checked = False";
_checkbox3.setChecked(__c.False);
 //BA.debugLineNum = 3205;BA.debugLine="CheckBox4.Checked = False";
_checkbox4.setChecked(__c.False);
 //BA.debugLineNum = 3206;BA.debugLine="CheckBox5.Checked = False";
_checkbox5.setChecked(__c.False);
 //BA.debugLineNum = 3207;BA.debugLine="CheckBox6.Checked = False";
_checkbox6.setChecked(__c.False);
 //BA.debugLineNum = 3208;BA.debugLine="CheckBox7.Checked = False";
_checkbox7.setChecked(__c.False);
 //BA.debugLineNum = 3209;BA.debugLine="CheckBox8.Checked = False";
_checkbox8.setChecked(__c.False);
 //BA.debugLineNum = 3211;BA.debugLine="If ENCUESTA > 1 Then";
if ((double)(Double.parseDouble(_encuesta))>1) { 
 //BA.debugLineNum = 3213;BA.debugLine="If p_m1.IsInitialized And p_m1.Visible Then";
if (_p_m1.IsInitialized() && _p_m1.getVisible()) { 
 //BA.debugLineNum = 3214;BA.debugLine="p_m1.Visible = False";
_p_m1.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 3218;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 3219;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 3220;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 3221;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ESNCUESTA_m2\")";
_sv_encuesta.getPanel().LoadLayout("ESNCUESTA_m2",ba);
 //BA.debugLineNum = 3222;BA.debugLine="p_m2.Width = Root.Width * 0.94";
_p_m2.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 3223;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m2.Height + 60";
_sv_encuesta.getPanel().setHeight((int) (_p_m2.getHeight()+60));
 //BA.debugLineNum = 3224;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 }else {
 //BA.debugLineNum = 3226;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 3227;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 3228;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 3231;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 }else {
 //BA.debugLineNum = 3234;BA.debugLine="Msgbox(\"FALTAN DATOS DE CAPTURA FAVOR DE VALIDAR";
__c.Msgbox(BA.ObjectToCharSequence("FALTAN DATOS DE CAPTURA FAVOR DE VALIDAR"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 3236;BA.debugLine="End Sub";
return "";
}
public String  _b_guardaencuesta_m2_click() throws Exception{
 //BA.debugLineNum = 5321;BA.debugLine="Private Sub B_guardaencuesta_m2_Click";
 //BA.debugLineNum = 5322;BA.debugLine="P3_M2 = \"\"";
_p3_m2 = "";
 //BA.debugLineNum = 5323;BA.debugLine="P6_M2 = \"\"";
_p6_m2 = "";
 //BA.debugLineNum = 5324;BA.debugLine="P4_M2 = \"\"";
_p4_m2 = "";
 //BA.debugLineNum = 5326;BA.debugLine="PASA = \"1\"";
_pasa = "1";
 //BA.debugLineNum = 5327;BA.debugLine="If et_p1_m2.Text = \"\" Then PASA = \"0\"";
if ((_et_p1_m2.getText()).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5328;BA.debugLine="If et_p2_m2.Text = \"\" Then PASA = \"0\"";
if ((_et_p2_m2.getText()).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5329;BA.debugLine="P4_M2 = \"\"";
_p4_m2 = "";
 //BA.debugLineNum = 5330;BA.debugLine="If rd1_p4_m2.Checked Then P4_M2 = \"ALTO\"";
if (_rd1_p4_m2.getChecked()) { 
_p4_m2 = "ALTO";};
 //BA.debugLineNum = 5331;BA.debugLine="If rd2_p4_m2.Checked Then P4_M2 = \"MEDIO\"";
if (_rd2_p4_m2.getChecked()) { 
_p4_m2 = "MEDIO";};
 //BA.debugLineNum = 5332;BA.debugLine="If rd3_p4_m2.Checked Then P4_M2 = \"BAJO\"";
if (_rd3_p4_m2.getChecked()) { 
_p4_m2 = "BAJO";};
 //BA.debugLineNum = 5334;BA.debugLine="If P4_M2 = \"\" Then PASA = \"0\"";
if ((_p4_m2).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5336;BA.debugLine="P6_M2 = \"\"";
_p6_m2 = "";
 //BA.debugLineNum = 5337;BA.debugLine="If RB1_P6_M2.Checked Then P6_M2 = \"LUNES\"";
if (_rb1_p6_m2.getChecked()) { 
_p6_m2 = "LUNES";};
 //BA.debugLineNum = 5338;BA.debugLine="If RB2_P6_M2.Checked Then P6_M2 = \"MARTES\"";
if (_rb2_p6_m2.getChecked()) { 
_p6_m2 = "MARTES";};
 //BA.debugLineNum = 5339;BA.debugLine="If RB3_P6_M2.Checked Then P6_M2 = \"MIERCOLES\"";
if (_rb3_p6_m2.getChecked()) { 
_p6_m2 = "MIERCOLES";};
 //BA.debugLineNum = 5340;BA.debugLine="If RB4_P6_M2.Checked Then P6_M2 = \"JUEVES\"";
if (_rb4_p6_m2.getChecked()) { 
_p6_m2 = "JUEVES";};
 //BA.debugLineNum = 5341;BA.debugLine="If RB5_P6_M2.Checked Then P6_M2 = \"VIERNES\"";
if (_rb5_p6_m2.getChecked()) { 
_p6_m2 = "VIERNES";};
 //BA.debugLineNum = 5342;BA.debugLine="If RB6_P6_M2.Checked Then P6_M2 = \"SABADO\"";
if (_rb6_p6_m2.getChecked()) { 
_p6_m2 = "SABADO";};
 //BA.debugLineNum = 5343;BA.debugLine="If RB7_P6_M2.Checked Then P6_M2 = \"DOMINGO\"";
if (_rb7_p6_m2.getChecked()) { 
_p6_m2 = "DOMINGO";};
 //BA.debugLineNum = 5345;BA.debugLine="If P6_M2 = \"\" Then PASA = \"0\"";
if ((_p6_m2).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5348;BA.debugLine="If  CB1_P3_M2.Checked = False And  CB2_P3_M2.Chec";
if (_cb1_p3_m2.getChecked()==__c.False && _cb2_p3_m2.getChecked()==__c.False && _cb3_p3_m2.getChecked()==__c.False && _cb4_p3_m2.getChecked()==__c.False && _cb5_p3_m2.getChecked()==__c.False && _cb6_p3_m2.getChecked()==__c.False && _rb1_p3_m2.getChecked()==__c.False && _rb2_p3_m2.getChecked()==__c.False && _rb3_p3_m2.getChecked()==__c.False && (_et_p3_m2.getText()).equals(BA.ObjectToString(__c.False)) && _cb1_p4_m2.getChecked()==__c.False && _cb2_p4_m2.getChecked()==__c.False && _cb3_p4_m2.getChecked()==__c.False && _cb4_p4_m2.getChecked()==__c.False) { 
_pasa = "0";};
 //BA.debugLineNum = 5349;BA.debugLine="If et_p5_m2.Text = \"\" Then PASA = \"0\"";
if ((_et_p5_m2.getText()).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5350;BA.debugLine="Log(textemp2)";
__c.LogImpl("420906013",_textemp2,0);
 //BA.debugLineNum = 5351;BA.debugLine="If textemp2 <> \"\" And textemp2.SubString2(0,2) =";
if ((_textemp2).equals("") == false && (_textemp2.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp2 = _textemp2.substring((int) (2));};
 //BA.debugLineNum = 5352;BA.debugLine="Log(textemp2)";
__c.LogImpl("420906015",_textemp2,0);
 //BA.debugLineNum = 5353;BA.debugLine="P3_M2 = textemp2";
_p3_m2 = _textemp2;
 //BA.debugLineNum = 5354;BA.debugLine="If RB2_P4_M2.Checked  Then";
if (_rb2_p4_m2.getChecked()) { 
 //BA.debugLineNum = 5355;BA.debugLine="P3_M2 = P3_M2 &\"|\" & \"NO\"";
_p3_m2 = _p3_m2+"|"+"NO";
 }else if(_rb1_p4_m2.getChecked()) { 
 //BA.debugLineNum = 5358;BA.debugLine="P3_M2 = P3_M2 &\"|\" & \"SI\"";
_p3_m2 = _p3_m2+"|"+"SI";
 //BA.debugLineNum = 5359;BA.debugLine="If ET_P3_M2.Text = \"\" Then";
if ((_et_p3_m2.getText()).equals("")) { 
 //BA.debugLineNum = 5360;BA.debugLine="If RB1_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb1_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Rappi";};
 //BA.debugLineNum = 5361;BA.debugLine="If RB2_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb2_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Coca Cola";};
 //BA.debugLineNum = 5362;BA.debugLine="If RB3_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb3_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Modelo";};
 //BA.debugLineNum = 5363;BA.debugLine="If RB4_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb4_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Rabbit";};
 }else if((_et_p3_m2.getText()).equals("") == false) { 
 //BA.debugLineNum = 5365;BA.debugLine="If RB1_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb1_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Rappi";};
 //BA.debugLineNum = 5366;BA.debugLine="If RB2_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb2_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Coca Cola";};
 //BA.debugLineNum = 5367;BA.debugLine="If RB3_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb3_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Modelo";};
 //BA.debugLineNum = 5368;BA.debugLine="If RB4_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &";
if (_rb4_p3_m2.getChecked()) { 
_p3_m2 = _p3_m2+"|"+"Rabbit";};
 //BA.debugLineNum = 5369;BA.debugLine="P3_M2 = P3_M2 &\", \" & ET_P3_M2.Text";
_p3_m2 = _p3_m2+", "+_et_p3_m2.getText();
 };
 };
 //BA.debugLineNum = 5372;BA.debugLine="If textemp3 <> \"\" And textemp3.SubString2(0,2) =";
if ((_textemp3).equals("") == false && (_textemp3.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp3 = _textemp3.substring((int) (2));};
 //BA.debugLineNum = 5374;BA.debugLine="P3_M2 = P3_M2 &\"|\" & textemp3";
_p3_m2 = _p3_m2+"|"+_textemp3;
 //BA.debugLineNum = 5376;BA.debugLine="If P3_M2 <> \"\" And P3_M2.SubString2(0,2) = \", \" T";
if ((_p3_m2).equals("") == false && (_p3_m2.substring((int) (0),(int) (2))).equals(", ")) { 
_p3_m2 = _p3_m2.substring((int) (2));};
 //BA.debugLineNum = 5377;BA.debugLine="LogColor(P3_M2,Colors.BlUE)";
__c.LogImpl("420906040",_p3_m2,__c.Colors.Blue);
 //BA.debugLineNum = 5378;BA.debugLine="If PASA = \"1\" Then";
if ((_pasa).equals("1")) { 
 //BA.debugLineNum = 5379;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO2";
_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO2 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_et_p1_m2.getText()),(Object)(_et_p2_m2.getText()),(Object)(_p3_m2),(Object)(_p4_m2),(Object)(_et_p5_m2.getText()),(Object)(_p6_m2)}));
 //BA.debugLineNum = 5380;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5381;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5382;BA.debugLine="et_p1_m2.Text = \"\"";
_et_p1_m2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5383;BA.debugLine="et_p2_m2.TEXT = \"\"";
_et_p2_m2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5384;BA.debugLine="RB7_P6_M2.Checked = False";
_rb7_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5385;BA.debugLine="RB6_P6_M2.Checked = False";
_rb6_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5386;BA.debugLine="RB5_P6_M2.Checked = False";
_rb5_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5387;BA.debugLine="RB4_P6_M2.Checked = False";
_rb4_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5388;BA.debugLine="RB3_P6_M2.Checked = False";
_rb3_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5389;BA.debugLine="RB2_P6_M2.Checked = False";
_rb2_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5390;BA.debugLine="RB1_P6_M2.Checked = False";
_rb1_p6_m2.setChecked(__c.False);
 //BA.debugLineNum = 5391;BA.debugLine="et_p5_m2.Text = \"\"";
_et_p5_m2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5392;BA.debugLine="rd3_p4_m2.Checked = False";
_rd3_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5393;BA.debugLine="rd2_p4_m2.Checked = False";
_rd2_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5394;BA.debugLine="rd1_p4_m2.Checked = False";
_rd1_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5395;BA.debugLine="RB1_P3_M2.Checked = False";
_rb1_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5396;BA.debugLine="RB2_P3_M2.Checked = False";
_rb2_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5397;BA.debugLine="RB3_P3_M2.Checked = False";
_rb3_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5398;BA.debugLine="RB4_P3_M2.Checked = False";
_rb4_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5400;BA.debugLine="CB1_P3_M2.Checked = False";
_cb1_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5401;BA.debugLine="CB2_P3_M2.Checked = False";
_cb2_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5402;BA.debugLine="CB3_P3_M2.Checked = False";
_cb3_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5403;BA.debugLine="CB4_P3_M2.Checked = False";
_cb4_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5404;BA.debugLine="CB5_P3_M2.Checked = False";
_cb5_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5405;BA.debugLine="CB6_P3_M2.Checked = False";
_cb6_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5407;BA.debugLine="ET_P3_M2.Text = \"\"";
_et_p3_m2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5408;BA.debugLine="P3_M2 = \"\"";
_p3_m2 = "";
 //BA.debugLineNum = 5409;BA.debugLine="P4_M2 = \"\"";
_p4_m2 = "";
 //BA.debugLineNum = 5410;BA.debugLine="P6_M2 = \"\"";
_p6_m2 = "";
 //BA.debugLineNum = 5412;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 //BA.debugLineNum = 5417;BA.debugLine="If ENCUESTA > 2 Then";
if ((double)(Double.parseDouble(_encuesta))>2) { 
 //BA.debugLineNum = 5418;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible Then";
if (_p_m2.IsInitialized() && _p_m2.getVisible()) { 
 //BA.debugLineNum = 5419;BA.debugLine="p_m2.Visible = False";
_p_m2.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 5423;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5424;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 5425;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 5426;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESSTA_M3\")";
_sv_encuesta.getPanel().LoadLayout("ENCUESSTA_M3",ba);
 //BA.debugLineNum = 5427;BA.debugLine="p_m3.Width = Root.Width * 0.94";
_p_m3.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 5428;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m3.Height + 60";
_sv_encuesta.getPanel().setHeight((int) (_p_m3.getHeight()+60));
 //BA.debugLineNum = 5430;BA.debugLine="If  Subs.traeAlmacen  = 1  Or  Subs.traeAlmacen";
if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(1)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(2)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(4)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(5)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(35)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(36)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(45)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(46)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(47)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(54)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(64)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(65)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(71)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(3)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(25)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(27)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(38))) { 
 //BA.debugLineNum = 5431;BA.debugLine="CB1_P6_M3.Text = \"GARIS\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("GARIS"));
 //BA.debugLineNum = 5432;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5433;BA.debugLine="CB3_P6_M3.Text = \"ZORRO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("ZORRO"));
 //BA.debugLineNum = 5434;BA.debugLine="CB4_P6_M3.Text = \"ESCORPION\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("ESCORPION"));
 //BA.debugLineNum = 5435;BA.debugLine="CB5_P6_M3.Text = \"RABBIT\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("RABBIT"));
 //BA.debugLineNum = 5436;BA.debugLine="CB6_P6_M3.Text = \"SAMS\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(12))) { 
 //BA.debugLineNum = 5439;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5440;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5441;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5442;BA.debugLine="CB4_P6_M3.Text = \"DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO"));
 //BA.debugLineNum = 5443;BA.debugLine="CB5_P6_M3.Text = \"HUGOSS\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS"));
 //BA.debugLineNum = 5444;BA.debugLine="CB6_P6_M3.Text = \"ZORRO\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("ZORRO"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(13))) { 
 //BA.debugLineNum = 5446;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5447;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5448;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5449;BA.debugLine="CB4_P6_M3.Text = \"SCORPION\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("SCORPION"));
 //BA.debugLineNum = 5450;BA.debugLine="CB5_P6_M3.Text = \"ZORRO\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("ZORRO"));
 //BA.debugLineNum = 5451;BA.debugLine="CB6_P6_M3.Text = \"GARIS\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("GARIS"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(14)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(69)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(37))) { 
 //BA.debugLineNum = 5453;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5454;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5455;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5456;BA.debugLine="CB4_P6_M3.Text = \"DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO"));
 //BA.debugLineNum = 5457;BA.debugLine="CB5_P6_M3.Text = \"RIVERA/GRAN BODEGA\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA"));
 //BA.debugLineNum = 5458;BA.debugLine="CB6_P6_M3.Text = \"ZORRO\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("ZORRO"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(16)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(70))) { 
 //BA.debugLineNum = 5460;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5461;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5462;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5463;BA.debugLine="CB4_P6_M3.Text = \"DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO"));
 //BA.debugLineNum = 5464;BA.debugLine="CB5_P6_M3.Text = \"RIVERA/GRAN BODEGA\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA"));
 //BA.debugLineNum = 5465;BA.debugLine="CB6_P6_M3.Text = \"SAMS\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(17))) { 
 //BA.debugLineNum = 5467;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5468;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5469;BA.debugLine="CB3_P6_M3.Text = \"\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5470;BA.debugLine="CB4_P6_M3.Text = \"\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5471;BA.debugLine="CB5_P6_M3.Text = \"\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5472;BA.debugLine="CB6_P6_M3.Text = \"\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence(""));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(29)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(31))) { 
 //BA.debugLineNum = 5474;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5475;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5476;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5477;BA.debugLine="CB4_P6_M3.Text = \"DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO"));
 //BA.debugLineNum = 5478;BA.debugLine="CB5_P6_M3.Text = \"SAMS\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("SAMS"));
 //BA.debugLineNum = 5479;BA.debugLine="CB6_P6_M3.Text = \"RIVERA/GRAN BODEGA\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(32)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(33))) { 
 //BA.debugLineNum = 5481;BA.debugLine="CB1_P6_M3.Text = \"MAS BODEGA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("MAS BODEGA"));
 //BA.debugLineNum = 5482;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5483;BA.debugLine="CB3_P6_M3.Text = \"TREVIÑO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("TREVIÑO"));
 //BA.debugLineNum = 5484;BA.debugLine="CB4_P6_M3.Text = \"HUGOSS\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS"));
 //BA.debugLineNum = 5485;BA.debugLine="CB5_P6_M3.Text = \"RABBIT\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("RABBIT"));
 //BA.debugLineNum = 5486;BA.debugLine="CB6_P6_M3.Text = \"SAMS\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(66)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(67))) { 
 //BA.debugLineNum = 5488;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5489;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5490;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5491;BA.debugLine="CB4_P6_M3.Text = \"DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO"));
 //BA.debugLineNum = 5492;BA.debugLine="CB5_P6_M3.Text = \"SCORPION\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("SCORPION"));
 //BA.debugLineNum = 5493;BA.debugLine="CB6_P6_M3.Text = \"SAMS\"";
_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS"));
 }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(22)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(34))) { 
 //BA.debugLineNum = 5496;BA.debugLine="CB1_P6_M3.Text = \"DECASA\"";
_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA"));
 //BA.debugLineNum = 5497;BA.debugLine="CB2_P6_M3.Text = \"ZETA\"";
_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA"));
 //BA.debugLineNum = 5498;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\"";
_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO"));
 //BA.debugLineNum = 5499;BA.debugLine="CB4_P6_M3.Text = \"MERZA/DUERO\"";
_cb4_p6_m3.setText(BA.ObjectToCharSequence("MERZA/DUERO"));
 //BA.debugLineNum = 5500;BA.debugLine="CB5_P6_M3.Text = \"HUGOSS\"";
_cb5_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS"));
 };
 }else {
 //BA.debugLineNum = 5503;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5504;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5505;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5507;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 //BA.debugLineNum = 5508;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba);
 };
 }else {
 //BA.debugLineNum = 5511;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")";
__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 5513;BA.debugLine="End Sub";
return "";
}
public String  _b_guardaencuesta_m3_click() throws Exception{
String _p3_m3 = "";
String _p4_m3 = "";
String _p5_m3 = "";
String _p6_m3 = "";
String _p7_m3 = "";
String _p8_m3 = "";
String _p9_m3 = "";
anywheresoftware.b4a.objects.collections.List _items2 = null;
anywheresoftware.b4a.objects.collections.List _items3 = null;
 //BA.debugLineNum = 5525;BA.debugLine="Private Sub B_guardaencuesta_m3_Click";
 //BA.debugLineNum = 5527;BA.debugLine="PASA = \"1\"";
_pasa = "1";
 //BA.debugLineNum = 5533;BA.debugLine="Private P3_M3 As String = \"\"";
_p3_m3 = "";
 //BA.debugLineNum = 5534;BA.debugLine="Private P4_M3 As String = \"\"";
_p4_m3 = "";
 //BA.debugLineNum = 5535;BA.debugLine="Private P5_M3 As String = \"\"";
_p5_m3 = "";
 //BA.debugLineNum = 5536;BA.debugLine="Private P6_M3 As String = \"\"";
_p6_m3 = "";
 //BA.debugLineNum = 5537;BA.debugLine="Private P7_M3 As String = \"\"";
_p7_m3 = "";
 //BA.debugLineNum = 5538;BA.debugLine="Private P8_M3 As String = \"\"";
_p8_m3 = "";
 //BA.debugLineNum = 5539;BA.debugLine="Private P9_M3 As String = \"\"";
_p9_m3 = "";
 //BA.debugLineNum = 5545;BA.debugLine="If rd1_p5_m3.Checked Then P5_M3 = \"SI\"";
if (_rd1_p5_m3.getChecked()) { 
_p5_m3 = "SI";};
 //BA.debugLineNum = 5546;BA.debugLine="If rd2_p5_m3.Checked Then P5_M3 = \"NO\"";
if (_rd2_p5_m3.getChecked()) { 
_p5_m3 = "NO";};
 //BA.debugLineNum = 5548;BA.debugLine="If RB1_P9_M3.Checked Then P9_M3 = \"DIARIO\"";
if (_rb1_p9_m3.getChecked()) { 
_p9_m3 = "DIARIO";};
 //BA.debugLineNum = 5549;BA.debugLine="If RB2_P9_M3.Checked Then P9_M3 = \"BISEMANAL\"";
if (_rb2_p9_m3.getChecked()) { 
_p9_m3 = "BISEMANAL";};
 //BA.debugLineNum = 5550;BA.debugLine="If RB3_P9_M3.Checked Then P9_M3 = \"SEMANAL\"";
if (_rb3_p9_m3.getChecked()) { 
_p9_m3 = "SEMANAL";};
 //BA.debugLineNum = 5551;BA.debugLine="If RB4_P9_M3.Checked Then P9_M3 = \"QUINCENAL\"";
if (_rb4_p9_m3.getChecked()) { 
_p9_m3 = "QUINCENAL";};
 //BA.debugLineNum = 5552;BA.debugLine="If RB5_P9_M3.Checked Then P9_M3 = \"MENSUAL\"";
if (_rb5_p9_m3.getChecked()) { 
_p9_m3 = "MENSUAL";};
 //BA.debugLineNum = 5553;BA.debugLine="If P9_M3 = \"\" Then PASA = \"0\"";
if ((_p9_m3).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5554;BA.debugLine="If P5_M3 = \"\" Then PASA = \"0\"";
if ((_p5_m3).equals("")) { 
_pasa = "0";};
 //BA.debugLineNum = 5557;BA.debugLine="If CB1_P3_M3.Checked = False And  CB2_P3_M3.Check";
if (_cb1_p3_m3.getChecked()==__c.False && _cb2_p3_m3.getChecked()==__c.False && _cb3_p3_m3.getChecked()==__c.False && _cb4_p3_m3.getChecked()==__c.False && _cb5_p3_m3.getChecked()==__c.False) { 
_pasa = "0";};
 //BA.debugLineNum = 5559;BA.debugLine="If  CB1_P4_M3.Checked  = False And  CB2_P4_M3.Che";
if (_cb1_p4_m3.getChecked()==__c.False && _cb2_p4_m3.getChecked()==__c.False && _cb3_p4_m3.getChecked()==__c.False && _cb4_p4_m3.getChecked()==__c.False && _cb5_p4_m3.getChecked()==__c.False) { 
_pasa = "0";};
 //BA.debugLineNum = 5564;BA.debugLine="If CB1_P7_M3.Checked  = False And  CB2_P7_M3.Chec";
if (_cb1_p7_m3.getChecked()==__c.False && _cb2_p7_m3.getChecked()==__c.False && _cb3_p7_m3.getChecked()==__c.False && _cb4_p7_m3.getChecked()==__c.False) { 
_pasa = "0";};
 //BA.debugLineNum = 5567;BA.debugLine="If CB1_P8_M3.Checked = False And  CB2_P8_M3.Check";
if (_cb1_p8_m3.getChecked()==__c.False && _cb2_p8_m3.getChecked()==__c.False && _cb3_p8_m3.getChecked()==__c.False && _cb4_p8_m3.getChecked()==__c.False) { 
_pasa = "0";};
 //BA.debugLineNum = 5568;BA.debugLine="If rb1_m3_p1.Checked Then P3_M3 = \"7 A 9\"";
if (_rb1_m3_p1.getChecked()) { 
_p3_m3 = "7 A 9";};
 //BA.debugLineNum = 5569;BA.debugLine="If RB2_M3_P1.Checked Then P3_M3 = \"9 A 11\"";
if (_rb2_m3_p1.getChecked()) { 
_p3_m3 = "9 A 11";};
 //BA.debugLineNum = 5570;BA.debugLine="If RB3_M3_P1.Checked Then P3_M3 = \"11 A 13\"";
if (_rb3_m3_p1.getChecked()) { 
_p3_m3 = "11 A 13";};
 //BA.debugLineNum = 5571;BA.debugLine="If RB4_M3_P1.Checked Then P3_M3 = \"13 +\"";
if (_rb4_m3_p1.getChecked()) { 
_p3_m3 = "13 +";};
 //BA.debugLineNum = 5573;BA.debugLine="If RB1_M3_P2.Checked Then P4_M3 = \"2 A 4\"";
if (_rb1_m3_p2.getChecked()) { 
_p4_m3 = "2 A 4";};
 //BA.debugLineNum = 5574;BA.debugLine="If RB2_M3_P2.Checked Then P4_M3 = \"4 A 6\"";
if (_rb2_m3_p2.getChecked()) { 
_p4_m3 = "4 A 6";};
 //BA.debugLineNum = 5575;BA.debugLine="If RB3_M3_P2.Checked Then P4_M3 = \"6 A 8\"";
if (_rb3_m3_p2.getChecked()) { 
_p4_m3 = "6 A 8";};
 //BA.debugLineNum = 5576;BA.debugLine="If RB4_M3_P2.Checked Then P4_M3 = \"8 +\"";
if (_rb4_m3_p2.getChecked()) { 
_p4_m3 = "8 +";};
 //BA.debugLineNum = 5578;BA.debugLine="If CB5_P4_M3.Checked  = True And ( CB2_P4_M3.Chec";
if (_cb5_p4_m3.getChecked()==__c.True && (_cb2_p4_m3.getChecked()==__c.True || _cb3_p4_m3.getChecked()==__c.True || _cb4_p4_m3.getChecked()==__c.True || _cb1_p4_m3.getChecked()==__c.True)) { 
 //BA.debugLineNum = 5579;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 //BA.debugLineNum = 5580;BA.debugLine="CB5_P4_M3.Checked = False";
_cb5_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 5581;BA.debugLine="CB2_P4_M3.Checked = False";
_cb2_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 5582;BA.debugLine="CB3_P4_M3.Checked = False";
_cb3_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 5583;BA.debugLine="CB4_P4_M3.Checked = False";
_cb4_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 5584;BA.debugLine="CB1_P4_M3.Checked = False";
_cb1_p4_m3.setChecked(__c.False);
 };
 //BA.debugLineNum = 5588;BA.debugLine="If PASA = \"1\" Then";
if ((_pasa).equals("1")) { 
 //BA.debugLineNum = 5589;BA.debugLine="If rb1_m3_p1.Checked Then P3_M3 = \"7 A 9\"";
if (_rb1_m3_p1.getChecked()) { 
_p3_m3 = "7 A 9";};
 //BA.debugLineNum = 5590;BA.debugLine="If RB2_M3_P1.Checked Then P3_M3 = \"9 A 11\"";
if (_rb2_m3_p1.getChecked()) { 
_p3_m3 = "9 A 11";};
 //BA.debugLineNum = 5591;BA.debugLine="If RB3_M3_P1.Checked Then P3_M3 = \"11 A 13\"";
if (_rb3_m3_p1.getChecked()) { 
_p3_m3 = "11 A 13";};
 //BA.debugLineNum = 5592;BA.debugLine="If RB4_M3_P1.Checked Then P3_M3 = \"13 +\"";
if (_rb4_m3_p1.getChecked()) { 
_p3_m3 = "13 +";};
 //BA.debugLineNum = 5594;BA.debugLine="If RB1_M3_P2.Checked Then P4_M3 = \"2 A 4\"";
if (_rb1_m3_p2.getChecked()) { 
_p4_m3 = "2 A 4";};
 //BA.debugLineNum = 5595;BA.debugLine="If RB2_M3_P2.Checked Then P4_M3 = \"4 A 6\"";
if (_rb2_m3_p2.getChecked()) { 
_p4_m3 = "4 A 6";};
 //BA.debugLineNum = 5596;BA.debugLine="If RB3_M3_P2.Checked Then P4_M3 = \"6 A 8\"";
if (_rb3_m3_p2.getChecked()) { 
_p4_m3 = "6 A 8";};
 //BA.debugLineNum = 5597;BA.debugLine="If RB4_M3_P2.Checked Then P4_M3 = \"8 +\"";
if (_rb4_m3_p2.getChecked()) { 
_p4_m3 = "8 +";};
 //BA.debugLineNum = 5599;BA.debugLine="If ET_P6_M3.Text <> \"\" Then";
if ((_et_p6_m3.getText()).equals("") == false) { 
 //BA.debugLineNum = 5600;BA.debugLine="textemp6 = textemp6 & \", \" & ET_P6_M3.Text";
_textemp6 = _textemp6+", "+_et_p6_m3.getText();
 };
 //BA.debugLineNum = 5603;BA.debugLine="If textemp4 <> \"\" And textemp4.SubString2(0,2) =";
if ((_textemp4).equals("") == false && (_textemp4.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp4 = _textemp4.substring((int) (2));};
 //BA.debugLineNum = 5604;BA.debugLine="If textemp5 <> \"\" And textemp5.SubString2(0,2) =";
if ((_textemp5).equals("") == false && (_textemp5.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp5 = _textemp5.substring((int) (2));};
 //BA.debugLineNum = 5605;BA.debugLine="If textemp6 <> \"\" And textemp6.SubString2(0,2) =";
if ((_textemp6).equals("") == false && (_textemp6.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp6 = _textemp6.substring((int) (2));};
 //BA.debugLineNum = 5606;BA.debugLine="If textemp7 <> \"\" And textemp7.SubString2(0,2) =";
if ((_textemp7).equals("") == false && (_textemp7.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp7 = _textemp7.substring((int) (2));};
 //BA.debugLineNum = 5607;BA.debugLine="If textemp8 <> \"\" And textemp8.SubString2(0,2) =";
if ((_textemp8).equals("") == false && (_textemp8.substring((int) (0),(int) (2))).equals(", ")) { 
_textemp8 = _textemp8.substring((int) (2));};
 //BA.debugLineNum = 5611;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO3";
_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO3 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6,P7,P8,P9,P10,P11) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)("x"),(Object)("x"),(Object)(_p3_m3),(Object)(_p4_m3),(Object)(_textemp4),(Object)(_textemp5),(Object)(_p5_m3),(Object)(_textemp6),(Object)(_textemp7),(Object)(_textemp8),(Object)(_p9_m3)}));
 //BA.debugLineNum = 5612;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5613;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5616;BA.debugLine="If ENCUESTA > 3 Then";
if ((double)(Double.parseDouble(_encuesta))>3) { 
 //BA.debugLineNum = 5617;BA.debugLine="If p_m3.IsInitialized And p_m3.Visible Then";
if (_p_m3.IsInitialized() && _p_m3.getVisible()) { 
 //BA.debugLineNum = 5618;BA.debugLine="p_m3.Visible = False";
_p_m3.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 5622;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5623;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 5624;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 5625;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5626;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M4\")";
_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M4",ba);
 //BA.debugLineNum = 5627;BA.debugLine="p_m4.Width = Root.Width * 0.94";
_p_m4.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 5628;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m4.Height + 60";
_sv_encuesta.getPanel().setHeight((int) (_p_m4.getHeight()+60));
 //BA.debugLineNum = 5630;BA.debugLine="Dim Items2 As List";
_items2 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 5631;BA.debugLine="Items2.Initialize";
_items2.Initialize();
 //BA.debugLineNum = 5632;BA.debugLine="Items2.Add(\"Selecciona una opcion\")";
_items2.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 5633;BA.debugLine="Items2.Add(\"Propio\")";
_items2.Add((Object)("Propio"));
 //BA.debugLineNum = 5634;BA.debugLine="Items2.Add(\"Rentado\")";
_items2.Add((Object)("Rentado"));
 //BA.debugLineNum = 5635;BA.debugLine="cb_p3_m4.SetItems(Items2)";
_cb_p3_m4._setitems /*String*/ (_items2);
 //BA.debugLineNum = 5636;BA.debugLine="itemselect2 = \"Selecciona una opcion\"";
_itemselect2 = "Selecciona una opcion";
 //BA.debugLineNum = 5639;BA.debugLine="Dim Items3 As List";
_items3 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 5640;BA.debugLine="Items3.Initialize";
_items3.Initialize();
 //BA.debugLineNum = 5641;BA.debugLine="Items3.Add(\"Selecciona una opcion\")";
_items3.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 5642;BA.debugLine="Items3.Add(\"Completamente Surtido\")";
_items3.Add((Object)("Completamente Surtido"));
 //BA.debugLineNum = 5643;BA.debugLine="Items3.Add(\"Bien Surtido\")";
_items3.Add((Object)("Bien Surtido"));
 //BA.debugLineNum = 5644;BA.debugLine="Items3.Add(\"Poco Surtido\")";
_items3.Add((Object)("Poco Surtido"));
 //BA.debugLineNum = 5645;BA.debugLine="Items3.Add(\"Muy Poco Surtido\")";
_items3.Add((Object)("Muy Poco Surtido"));
 //BA.debugLineNum = 5646;BA.debugLine="Items3.Add(\"Sin Existencias\")";
_items3.Add((Object)("Sin Existencias"));
 //BA.debugLineNum = 5647;BA.debugLine="cb_p4_1_m4.SetItems(Items3)";
_cb_p4_1_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 5648;BA.debugLine="itemselect3 = \"Selecciona una opcion\"";
_itemselect3 = "Selecciona una opcion";
 //BA.debugLineNum = 5649;BA.debugLine="cb_p4_2_m4.SetItems(Items3)";
_cb_p4_2_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 5650;BA.debugLine="itemselect4 = \"Selecciona una opcion\"";
_itemselect4 = "Selecciona una opcion";
 //BA.debugLineNum = 5651;BA.debugLine="cb_p4_3_m4.SetItems(Items3)";
_cb_p4_3_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 5652;BA.debugLine="itemselect5 = \"Selecciona una opcion\"";
_itemselect5 = "Selecciona una opcion";
 //BA.debugLineNum = 5653;BA.debugLine="cb_p4_4_m4.SetItems(Items3)";
_cb_p4_4_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 5654;BA.debugLine="itemselect6 = \"Selecciona una opcion\"";
_itemselect6 = "Selecciona una opcion";
 //BA.debugLineNum = 5655;BA.debugLine="cb_p4_5_m4.SetItems(Items3)";
_cb_p4_5_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 5656;BA.debugLine="itemselect7 = \"Selecciona una opcion\"";
_itemselect7 = "Selecciona una opcion";
 }else {
 //BA.debugLineNum = 5658;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5659;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5660;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5662;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 //BA.debugLineNum = 5663;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba);
 };
 }else {
 //BA.debugLineNum = 5666;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")";
__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 5668;BA.debugLine="End Sub";
return "";
}
public String  _b_guardaencuesta_m4_click() throws Exception{
anywheresoftware.b4a.objects.collections.List _items8 = null;
 //BA.debugLineNum = 5670;BA.debugLine="Private Sub B_guardaencuesta_m4_Click";
 //BA.debugLineNum = 5672;BA.debugLine="PASA = \"1\"";
_pasa = "1";
 //BA.debugLineNum = 5674;BA.debugLine="If itemselect2 = \"Selecciona una opcion\" Then";
if ((_itemselect2).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5675;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5677;BA.debugLine="If itemselect3 = \"Selecciona una opcion\" Then";
if ((_itemselect3).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5678;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5680;BA.debugLine="If itemselect4 = \"Selecciona una opcion\" Then";
if ((_itemselect4).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5681;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5683;BA.debugLine="If itemselect5 = \"Selecciona una opcion\" Then";
if ((_itemselect5).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5684;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5686;BA.debugLine="If itemselect6 = \"Selecciona una opcion\" Then";
if ((_itemselect6).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5687;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5689;BA.debugLine="If itemselect7 = \"Selecciona una opcion\" Then";
if ((_itemselect7).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5690;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5692;BA.debugLine="If et_p1_m4.Text.Length  < 2 Then";
if (_et_p1_m4.getText().length()<2) { 
 //BA.debugLineNum = 5694;BA.debugLine="et_p1_m4.Text = \"\"";
_et_p1_m4.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5695;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5697;BA.debugLine="If PASA = \"1\" Then";
if ((_pasa).equals("1")) { 
 //BA.debugLineNum = 5698;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO4";
_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO4 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_et_p1_m4.getText()),(Object)(_et_p2_m4.getText()),(Object)(_itemselect2),(Object)(_itemselect3),(Object)(_itemselect4),(Object)(_itemselect5),(Object)(_itemselect6),(Object)(_itemselect7)}));
 //BA.debugLineNum = 5699;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5700;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5702;BA.debugLine="If ENCUESTA > 4 Then";
if ((double)(Double.parseDouble(_encuesta))>4) { 
 //BA.debugLineNum = 5703;BA.debugLine="If p_m4.IsInitialized And p_m4.Visible Then";
if (_p_m4.IsInitialized() && _p_m4.getVisible()) { 
 //BA.debugLineNum = 5704;BA.debugLine="p_m4.Visible = False";
_p_m4.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 5708;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 5709;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 5710;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5711;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M5\")";
_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M5",ba);
 //BA.debugLineNum = 5712;BA.debugLine="p_modulo5.Width = Root.Width * 0.94";
_p_modulo5.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 5713;BA.debugLine="SV_ENCUESTA.Panel.Height = p_modulo5.Height + 6";
_sv_encuesta.getPanel().setHeight((int) (_p_modulo5.getHeight()+60));
 //BA.debugLineNum = 5715;BA.debugLine="Dim Items8 As List";
_items8 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 5716;BA.debugLine="Items8.Initialize";
_items8.Initialize();
 //BA.debugLineNum = 5717;BA.debugLine="Items8.Add(\"Selecciona una opcion\")";
_items8.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 5718;BA.debugLine="Items8.Add(\"Completamente Surtido\")";
_items8.Add((Object)("Completamente Surtido"));
 //BA.debugLineNum = 5719;BA.debugLine="Items8.Add(\"Bien Surtido\")";
_items8.Add((Object)("Bien Surtido"));
 //BA.debugLineNum = 5720;BA.debugLine="Items8.Add(\"Poco Surtido\")";
_items8.Add((Object)("Poco Surtido"));
 //BA.debugLineNum = 5721;BA.debugLine="Items8.Add(\"Muy Poco Surtido\")";
_items8.Add((Object)("Muy Poco Surtido"));
 //BA.debugLineNum = 5722;BA.debugLine="Items8.Add(\"Sin Existencias\")";
_items8.Add((Object)("Sin Existencias"));
 //BA.debugLineNum = 5723;BA.debugLine="cb_p1_m5.SetItems(Items8)";
_cb_p1_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5724;BA.debugLine="itemselect8 = \"Selecciona una opcion\"";
_itemselect8 = "Selecciona una opcion";
 //BA.debugLineNum = 5725;BA.debugLine="cb_p2_m5.SetItems(Items8)";
_cb_p2_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5726;BA.debugLine="itemselect9 = \"Selecciona una opcion\"";
_itemselect9 = "Selecciona una opcion";
 //BA.debugLineNum = 5727;BA.debugLine="cb_p3_m5.SetItems(Items8)";
_cb_p3_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5728;BA.debugLine="itemselect10 = \"Selecciona una opcion\"";
_itemselect10 = "Selecciona una opcion";
 //BA.debugLineNum = 5729;BA.debugLine="cb_p4_m5.SetItems(Items8)";
_cb_p4_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5730;BA.debugLine="itemselect11 = \"Selecciona una opcion\"";
_itemselect11 = "Selecciona una opcion";
 //BA.debugLineNum = 5731;BA.debugLine="cb_p5_m5.SetItems(Items8)";
_cb_p5_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5732;BA.debugLine="itemselect12 = \"Selecciona una opcion\"";
_itemselect12 = "Selecciona una opcion";
 //BA.debugLineNum = 5733;BA.debugLine="cb_p6_m5.SetItems(Items8)";
_cb_p6_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5734;BA.debugLine="itemselect13 = \"Selecciona una opcion\"";
_itemselect13 = "Selecciona una opcion";
 //BA.debugLineNum = 5735;BA.debugLine="cb_p7_m5.SetItems(Items8)";
_cb_p7_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5736;BA.debugLine="itemselect14 = \"Selecciona una opcion\"";
_itemselect14 = "Selecciona una opcion";
 //BA.debugLineNum = 5737;BA.debugLine="cb_p8_m5.SetItems(Items8)";
_cb_p8_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5738;BA.debugLine="itemselect15 = \"Selecciona una opcion\"";
_itemselect15 = "Selecciona una opcion";
 //BA.debugLineNum = 5739;BA.debugLine="cb_p9_m5.SetItems(Items8)";
_cb_p9_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 5740;BA.debugLine="itemselect16 = \"Selecciona una opcion\"";
_itemselect16 = "Selecciona una opcion";
 //BA.debugLineNum = 5741;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba);
 }else {
 //BA.debugLineNum = 5743;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = _tipo_venta;
 //BA.debugLineNum = 5745;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 5746;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5747;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5748;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 }else {
 //BA.debugLineNum = 5751;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")";
__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 5754;BA.debugLine="End Sub";
return "";
}
public String  _b_guardaencuesta_m5_click() throws Exception{
 //BA.debugLineNum = 5756;BA.debugLine="Private Sub B_guardaencuesta_m5_Click";
 //BA.debugLineNum = 5758;BA.debugLine="PASA = \"1\"";
_pasa = "1";
 //BA.debugLineNum = 5760;BA.debugLine="If itemselect8 = \"Selecciona una opcion\" Then";
if ((_itemselect8).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5761;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5763;BA.debugLine="If itemselect9 = \"Selecciona una opcion\" Then";
if ((_itemselect9).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5764;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5766;BA.debugLine="If itemselect10 = \"Selecciona una opcion\" Then";
if ((_itemselect10).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5767;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5769;BA.debugLine="If itemselect11 = \"Selecciona una opcion\" Then";
if ((_itemselect11).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5770;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5772;BA.debugLine="If itemselect12 = \"Selecciona una opcion\" Then";
if ((_itemselect12).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5773;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5775;BA.debugLine="If itemselect13 = \"Selecciona una opcion\" Then";
if ((_itemselect13).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5776;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5778;BA.debugLine="If itemselect14 = \"Selecciona una opcion\" Then";
if ((_itemselect14).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5779;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5781;BA.debugLine="If itemselect15 = \"Selecciona una opcion\" Then";
if ((_itemselect15).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5782;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5784;BA.debugLine="If itemselect16 = \"Selecciona una opcion\" Then";
if ((_itemselect16).equals("Selecciona una opcion")) { 
 //BA.debugLineNum = 5785;BA.debugLine="PASA = \"0\"";
_pasa = "0";
 };
 //BA.debugLineNum = 5788;BA.debugLine="If PASA = \"1\" Then";
if ((_pasa).equals("1")) { 
 //BA.debugLineNum = 5789;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO5";
_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO5 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8, P9) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_itemselect8),(Object)(_itemselect9),(Object)(_itemselect10),(Object)(_itemselect11),(Object)(_itemselect12),(Object)(_itemselect13),(Object)(_itemselect14),(Object)(_itemselect15),(Object)(_itemselect16)}));
 //BA.debugLineNum = 5790;BA.debugLine="SV_ENCUESTA.Visible = False";
_sv_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 5791;BA.debugLine="p_cliente.Visible = True";
_p_cliente.setVisible(__c.True);
 //BA.debugLineNum = 5792;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = _tipo_venta;
 //BA.debugLineNum = 5793;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 //BA.debugLineNum = 5794;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba);
 }else {
 //BA.debugLineNum = 5796;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")";
__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 5798;BA.debugLine="End Sub";
return "";
}
public void  _b_imp_click() throws Exception{
ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this);
rsub.resume(ba, null);
}
public static class ResumableSub_B_IMP_Click extends BA.ResumableSub {
public ResumableSub_B_IMP_Click(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
int _resultado = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 3466;BA.debugLine="If ALMACEN = 87 Then";
if (true) break;

case 1:
//if
this.state = 44;
if ((parent._almacen).equals(BA.NumberToString(87))) { 
this.state = 3;
}else if((parent._almacen).equals(BA.NumberToString(88)) || (parent._almacen).equals(BA.NumberToString(94))) { 
this.state = 11;
}else if((parent._almacen).equals(BA.NumberToString(81)) || (parent._almacen).equals(BA.NumberToString(102))) { 
this.state = 13;
}else {
this.state = 43;
}if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 3467;BA.debugLine="If Subs.traemontoprod Then";
if (true) break;

case 4:
//if
this.state = 9;
if (parent._subs._traemontoprod /*boolean*/ (ba)) { 
this.state = 6;
}else {
this.state = 8;
}if (true) break;

case 6:
//C
this.state = 9;
 //BA.debugLineNum = 3468;BA.debugLine="Impresion2";
parent._impresion2();
 if (true) break;

case 8:
//C
this.state = 9;
 //BA.debugLineNum = 3470;BA.debugLine="Impresion";
parent._impresion();
 if (true) break;

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

case 11:
//C
this.state = 44;
 //BA.debugLineNum = 3474;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

case 13:
//C
this.state = 14;
 //BA.debugLineNum = 3477;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO, IFNULL(CONFIRMADO,0) AS CONFIRMADO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 3478;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 3480;BA.debugLine="If c.GetString(\"CAT_CL_BCREDITO\") = 0 Then";
if (true) break;

case 14:
//if
this.state = 41;
if ((parent._c.GetString("CAT_CL_BCREDITO")).equals(BA.NumberToString(0))) { 
this.state = 16;
}else if((parent._c.GetString("CAT_CL_BCREDITO")).equals(BA.NumberToString(1))) { 
this.state = 18;
}if (true) break;

case 16:
//C
this.state = 41;
 //BA.debugLineNum = 3481;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

case 18:
//C
this.state = 19;
 //BA.debugLineNum = 3484;BA.debugLine="If c.GetString(\"CONFIRMADO\") = 0 Then";
if (true) break;

case 19:
//if
this.state = 40;
if ((parent._c.GetString("CONFIRMADO")).equals(BA.NumberToString(0))) { 
this.state = 21;
}else {
this.state = 39;
}if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 3486;BA.debugLine="Msgbox2Async(\"La entrega sera a credito o de c";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("La entrega sera a credito o de contado?"),BA.ObjectToCharSequence("Atención"),"Credito","Contado","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 3487;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 45;
return;
case 45:
//C
this.state = 22;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 3488;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 22:
//if
this.state = 37;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 24;
}else if(_resultado==parent.__c.DialogResponse.CANCEL) { 
this.state = 36;
}if (true) break;

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 3489;BA.debugLine="Dim creditocod As Cursor = Starter.skmt.ExecQ";
_creditocod = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_creditocod = (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 CODIGO FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 3490;BA.debugLine="Log(creditocod.RowCount)";
parent.__c.LogImpl("417563689",BA.NumberToString(_creditocod.getRowCount()),0);
 //BA.debugLineNum = 3491;BA.debugLine="If creditocod.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 34;
if (_creditocod.getRowCount()>0) { 
this.state = 27;
}else {
this.state = 33;
}if (true) break;

case 27:
//C
this.state = 28;
 //BA.debugLineNum = 3492;BA.debugLine="creditocod.Position = 0";
_creditocod.setPosition((int) (0));
 //BA.debugLineNum = 3493;BA.debugLine="Dim cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
 //BA.debugLineNum = 3494;BA.debugLine="cs.Initialize";
_cs.Initialize();
 //BA.debugLineNum = 3497;BA.debugLine="cs.Size(16).Append(\"Proporciona el siguiente";
_cs.Size((int) (16)).Append(BA.ObjectToCharSequence("Proporciona el siguiente codigo al cliente '"));
 //BA.debugLineNum = 3500;BA.debugLine="cs.Bold.Append(creditocod.GetString(\"CODIGO\"";
_cs.Bold().Append(BA.ObjectToCharSequence(_creditocod.GetString("CODIGO"))).Pop();
 //BA.debugLineNum = 3503;BA.debugLine="cs.Append(\"' para su entrega\").PopAll";
_cs.Append(BA.ObjectToCharSequence("' para su entrega")).PopAll();
 //BA.debugLineNum = 3506;BA.debugLine="Msgbox2Async(cs, \"Atención\", \"Ok\", \"\", \"\", L";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(_cs.getObject()),BA.ObjectToCharSequence("Atención"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 3507;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 46;
return;
case 46:
//C
this.state = 28;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 3508;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 28:
//if
this.state = 31;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 30;
}if (true) break;

case 30:
//C
this.state = 31;
 //BA.debugLineNum = 3509;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 3510;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_C";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 1  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 3512;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

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

case 33:
//C
this.state = 34;
 //BA.debugLineNum = 3515;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

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

case 36:
//C
this.state = 37;
 //BA.debugLineNum = 3520;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 3521;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

case 37:
//C
this.state = 40;
;
 if (true) break;

case 39:
//C
this.state = 40;
 //BA.debugLineNum = 3524;BA.debugLine="Impresion4";
parent._impresion4();
 if (true) break;

case 40:
//C
this.state = 41;
;
 if (true) break;

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

case 43:
//C
this.state = 44;
 //BA.debugLineNum = 3529;BA.debugLine="Impresion";
parent._impresion();
 if (true) break;

case 44:
//C
this.state = -1;
;
 //BA.debugLineNum = 3532;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TICKET_IMPRESO where idCliente In (select cuenta from cuentaa)");
 //BA.debugLineNum = 3533;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into TICKET_IMPRESO (idCliente) values ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"')"));
 //BA.debugLineNum = 3534;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _msgbox_result(int _resultado) throws Exception{
}
public String  _b_inicio_fin_venta_click() throws Exception{
 //BA.debugLineNum = 7045;BA.debugLine="Private Sub b_Inicio_Fin_venta_Click";
 //BA.debugLineNum = 7080;BA.debugLine="End Sub";
return "";
}
public String  _b_like_click() throws Exception{
 //BA.debugLineNum = 5047;BA.debugLine="Sub b_like_Click";
 //BA.debugLineNum = 5048;BA.debugLine="Panel1.Visible = True";
_panel1.setVisible(__c.True);
 //BA.debugLineNum = 5049;BA.debugLine="b_like.Visible = False";
_b_like.setVisible(__c.False);
 //BA.debugLineNum = 5050;BA.debugLine="Tar.Visible = False";
_tar.setVisible(__c.False);
 //BA.debugLineNum = 5051;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 5052;BA.debugLine="gest.Visible = False ' : ToastMessageShow(\"bbbb\",";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 5053;BA.debugLine="b_venta.Visible = False";
_b_venta.setVisible(__c.False);
 //BA.debugLineNum = 5054;BA.debugLine="Guardar.Visible = False";
_guardar.setVisible(__c.False);
 //BA.debugLineNum = 5055;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click() throws Exception{
 //BA.debugLineNum = 3445;BA.debugLine="Sub b_mapa_Click";
 //BA.debugLineNum = 3446;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
_b4xpages._showpage /*String*/ (ba,"mapas");
 //BA.debugLineNum = 3447;BA.debugLine="End Sub";
return "";
}
public String  _b_okdeuda_click() throws Exception{
 //BA.debugLineNum = 8239;BA.debugLine="Private Sub b_okdeuda_Click";
 //BA.debugLineNum = 8240;BA.debugLine="p_deuda.Visible = False";
_p_deuda.setVisible(__c.False);
 //BA.debugLineNum = 8241;BA.debugLine="End Sub";
return "";
}
public String  _b_preguntag_click() throws Exception{
anywheresoftware.b4a.objects.collections.List _items2 = null;
anywheresoftware.b4a.objects.collections.List _items3 = null;
anywheresoftware.b4a.objects.collections.List _items8 = null;
 //BA.debugLineNum = 2713;BA.debugLine="Private Sub b_preguntag_Click";
 //BA.debugLineNum = 2714;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE kmt_";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET CAT_CL_GIRO = ? WHERE CAT_CL_CODIGO = ? And CAT_CL_NOMBRE = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_girotienda),(Object)(_la_cuenta.getText()),(Object)(_la_nombre.getText())}));
 //BA.debugLineNum = 2715;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_AVI";
_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_AVISO_GIRO(HEAV_CLIENTE , HEAV_MODULO , HEAV_AVISO ,HEAV_GIRO  ) VALUES (?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_encuesta),(Object)("ACEPTA"),(Object)(_girotienda)}));
 //BA.debugLineNum = 2716;BA.debugLine="If girotienda <> \"Selecciona una opcion\" Then";
if ((_girotienda).equals("Selecciona una opcion") == false) { 
 //BA.debugLineNum = 2717;BA.debugLine="If girotienda = \"Tienda de Abarrotes (Abarrotes,";
if ((_girotienda).equals("Tienda de Abarrotes (Abarrotes, Misceláneas, Minisupers, Particulares con Venta y Cremerías)")) { 
 //BA.debugLineNum = 2718;BA.debugLine="Dim result As Int= -3";
_result = (int) (-3);
 //BA.debugLineNum = 2719;BA.debugLine="Do While result=-3";
while (_result==-3) {
 //BA.debugLineNum = 2720;BA.debugLine="result = 	Msgbox2(\"Entiendo, acepto y consient";
_result = __c.Msgbox2(BA.ObjectToCharSequence("Entiendo, acepto y consiento que GUNA usará mis datos Personales y serán tratados acorde con lo establecido en la Ley Federal de Protección de Datos Personales en Posesión de los Particulares (en lo sucesivo la “Ley”), y su respectivo Reglamento; bajo lo manifestado en el Aviso de Privacidad – Texto Completo – que se encuentra en la página www.guna.com.mx"),BA.ObjectToCharSequence("AVISO DE PRIVACIDAD"),"ACEPTO","","NO ACEPTO",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba);
 //BA.debugLineNum = 2721;BA.debugLine="Select Case result";
switch (BA.switchObjectToInt(_result,__c.DialogResponse.POSITIVE,__c.DialogResponse.NEGATIVE)) {
case 0: {
 //BA.debugLineNum = 2740;BA.debugLine="Log(que_modulo)";
__c.LogImpl("415466523",_que_modulo,0);
 //BA.debugLineNum = 2741;BA.debugLine="If que_modulo = Null Or que_modulo = \" \" The";
if (_que_modulo== null || (_que_modulo).equals(" ")) { 
_que_modulo = "1";};
 //BA.debugLineNum = 2743;BA.debugLine="If que_modulo < =  ENCUESTA	Then";
if ((double)(Double.parseDouble(_que_modulo))<=(double)(Double.parseDouble(_encuesta))) { 
 //BA.debugLineNum = 2744;BA.debugLine="If que_modulo = \"1\" Then";
if ((_que_modulo).equals("1")) { 
 //BA.debugLineNum = 2747;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible The";
if (_p_m2.IsInitialized() && _p_m2.getVisible()) { 
 //BA.debugLineNum = 2748;BA.debugLine="p_m2.Visible = False";
_p_m2.setVisible(__c.False);
 }else if(_p_m3.IsInitialized() && _p_m3.getVisible()) { 
 //BA.debugLineNum = 2750;BA.debugLine="p_m3.Visible = False";
_p_m3.setVisible(__c.False);
 }else if(_p_m4.IsInitialized() && _p_m4.getVisible()) { 
 //BA.debugLineNum = 2752;BA.debugLine="p_m4.Visible = False";
_p_m4.setVisible(__c.False);
 }else if(_p_modulo5.IsInitialized() && _p_modulo5.getVisible()) { 
 //BA.debugLineNum = 2754;BA.debugLine="p_modulo5.Visible = False";
_p_modulo5.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 2758;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2759;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 2760;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 2761;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA\")";
_sv_encuesta.getPanel().LoadLayout("ENCUESTA",ba);
 //BA.debugLineNum = 2762;BA.debugLine="p_m1.Width = Root.Width * 0.94";
_p_m1.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 2763;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m1.Height + 6";
_sv_encuesta.getPanel().setHeight((int) (_p_m1.getHeight()+60));
 //BA.debugLineNum = 2764;BA.debugLine="Panel7.Visible = False";
_panel7.setVisible(__c.False);
 }else if((_que_modulo).equals("2")) { 
 //BA.debugLineNum = 2768;BA.debugLine="If p_m1.IsInitialized And p_m1.Visible The";
if (_p_m1.IsInitialized() && _p_m1.getVisible()) { 
 //BA.debugLineNum = 2769;BA.debugLine="p_m1.Visible = False";
_p_m1.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 2773;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2774;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 2775;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 2776;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ESNCUESTA_m2";
_sv_encuesta.getPanel().LoadLayout("ESNCUESTA_m2",ba);
 //BA.debugLineNum = 2777;BA.debugLine="p_m2.Width = Root.Width * 0.94";
_p_m2.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 2778;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m2.Height + 6";
_sv_encuesta.getPanel().setHeight((int) (_p_m2.getHeight()+60));
 //BA.debugLineNum = 2779;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 }else if((_que_modulo).equals("3")) { 
 //BA.debugLineNum = 2782;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible The";
if (_p_m2.IsInitialized() && _p_m2.getVisible()) { 
 //BA.debugLineNum = 2783;BA.debugLine="p_m2.Visible = False";
_p_m2.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 2787;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2788;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 2789;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 2790;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESSTA_M3";
_sv_encuesta.getPanel().LoadLayout("ENCUESSTA_M3",ba);
 //BA.debugLineNum = 2792;BA.debugLine="p_m3.Width = Root.Width * 0.94";
_p_m3.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 2793;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m3.Height + 6";
_sv_encuesta.getPanel().setHeight((int) (_p_m3.getHeight()+60));
 }else if((_que_modulo).equals("4")) { 
 //BA.debugLineNum = 2796;BA.debugLine="If p_m3.IsInitialized And p_m3.Visible The";
if (_p_m3.IsInitialized() && _p_m3.getVisible()) { 
 //BA.debugLineNum = 2798;BA.debugLine="p_m3.Visible = False";
_p_m3.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 2801;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2802;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 2803;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 2804;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2805;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M4\"";
_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M4",ba);
 //BA.debugLineNum = 2806;BA.debugLine="p_m4.Width = Root.Width * 0.94";
_p_m4.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 2807;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m4.Height + 6";
_sv_encuesta.getPanel().setHeight((int) (_p_m4.getHeight()+60));
 //BA.debugLineNum = 2809;BA.debugLine="Dim Items2 As List";
_items2 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2810;BA.debugLine="Items2.Initialize";
_items2.Initialize();
 //BA.debugLineNum = 2811;BA.debugLine="Items2.Add(\"Selecciona una opcion\")";
_items2.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2812;BA.debugLine="Items2.Add(\"Propio\")";
_items2.Add((Object)("Propio"));
 //BA.debugLineNum = 2813;BA.debugLine="Items2.Add(\"Rentado\")";
_items2.Add((Object)("Rentado"));
 //BA.debugLineNum = 2814;BA.debugLine="cb_p3_m4.SetItems(Items2)";
_cb_p3_m4._setitems /*String*/ (_items2);
 //BA.debugLineNum = 2815;BA.debugLine="itemselect2 = \"Selecciona una opcion\"";
_itemselect2 = "Selecciona una opcion";
 //BA.debugLineNum = 2817;BA.debugLine="Dim Items3 As List";
_items3 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2818;BA.debugLine="Items3.Initialize";
_items3.Initialize();
 //BA.debugLineNum = 2819;BA.debugLine="Items3.Add(\"Selecciona una opcion\")";
_items3.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2820;BA.debugLine="Items3.Add(\"Completamente Surtido\")";
_items3.Add((Object)("Completamente Surtido"));
 //BA.debugLineNum = 2821;BA.debugLine="Items3.Add(\"Bien Surtido\")";
_items3.Add((Object)("Bien Surtido"));
 //BA.debugLineNum = 2822;BA.debugLine="Items3.Add(\"Poco Surtido\")";
_items3.Add((Object)("Poco Surtido"));
 //BA.debugLineNum = 2823;BA.debugLine="Items3.Add(\"Muy Poco Surtido\")";
_items3.Add((Object)("Muy Poco Surtido"));
 //BA.debugLineNum = 2824;BA.debugLine="Items3.Add(\"Sin Existencias\")";
_items3.Add((Object)("Sin Existencias"));
 //BA.debugLineNum = 2825;BA.debugLine="cb_p4_1_m4.SetItems(Items3)";
_cb_p4_1_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 2826;BA.debugLine="itemselect3 = \"Selecciona una opcion\"";
_itemselect3 = "Selecciona una opcion";
 //BA.debugLineNum = 2827;BA.debugLine="cb_p4_2_m4.SetItems(Items3)";
_cb_p4_2_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 2828;BA.debugLine="itemselect4 = \"Selecciona una opcion\"";
_itemselect4 = "Selecciona una opcion";
 //BA.debugLineNum = 2829;BA.debugLine="cb_p4_3_m4.SetItems(Items3)";
_cb_p4_3_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 2830;BA.debugLine="itemselect5 = \"Selecciona una opcion\"";
_itemselect5 = "Selecciona una opcion";
 //BA.debugLineNum = 2831;BA.debugLine="cb_p4_4_m4.SetItems(Items3)";
_cb_p4_4_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 2832;BA.debugLine="itemselect6 = \"Selecciona una opcion\"";
_itemselect6 = "Selecciona una opcion";
 //BA.debugLineNum = 2833;BA.debugLine="cb_p4_5_m4.SetItems(Items3)";
_cb_p4_5_m4._setitems /*String*/ (_items3);
 //BA.debugLineNum = 2834;BA.debugLine="itemselect7 = \"Selecciona una opcion\"";
_itemselect7 = "Selecciona una opcion";
 }else if((_que_modulo).equals("5")) { 
 //BA.debugLineNum = 2837;BA.debugLine="If p_m4.IsInitialized And p_m4.Visible The";
if (_p_m4.IsInitialized() && _p_m4.getVisible()) { 
 //BA.debugLineNum = 2838;BA.debugLine="p_m4.Visible = False";
_p_m4.setVisible(__c.False);
 }else {
 };
 //BA.debugLineNum = 2841;BA.debugLine="p_cliente.Visible = False";
_p_cliente.setVisible(__c.False);
 //BA.debugLineNum = 2842;BA.debugLine="SV_ENCUESTA.Visible = True";
_sv_encuesta.setVisible(__c.True);
 //BA.debugLineNum = 2843;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2844;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M5\"";
_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M5",ba);
 //BA.debugLineNum = 2845;BA.debugLine="p_modulo5.Width = Root.Width * 0.94";
_p_modulo5.setWidth((int) (_root.getWidth()*0.94));
 //BA.debugLineNum = 2846;BA.debugLine="SV_ENCUESTA.Panel.Height = p_modulo5.Heigh";
_sv_encuesta.getPanel().setHeight((int) (_p_modulo5.getHeight()+30));
 //BA.debugLineNum = 2847;BA.debugLine="Dim Items8 As List";
_items8 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2848;BA.debugLine="Items8.Initialize";
_items8.Initialize();
 //BA.debugLineNum = 2849;BA.debugLine="Items8.Add(\"Selecciona una opcion\")";
_items8.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2850;BA.debugLine="Items8.Add(\"Completamente Surtido\")";
_items8.Add((Object)("Completamente Surtido"));
 //BA.debugLineNum = 2851;BA.debugLine="Items8.Add(\"Bien Surtido\")";
_items8.Add((Object)("Bien Surtido"));
 //BA.debugLineNum = 2852;BA.debugLine="Items8.Add(\"Poco Surtido\")";
_items8.Add((Object)("Poco Surtido"));
 //BA.debugLineNum = 2853;BA.debugLine="Items8.Add(\"Muy Poco Surtido\")";
_items8.Add((Object)("Muy Poco Surtido"));
 //BA.debugLineNum = 2854;BA.debugLine="Items8.Add(\"Sin Existencias\")";
_items8.Add((Object)("Sin Existencias"));
 //BA.debugLineNum = 2855;BA.debugLine="cb_p1_m5.SetItems(Items8)";
_cb_p1_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2856;BA.debugLine="itemselect8 = \"Selecciona una opcion\"";
_itemselect8 = "Selecciona una opcion";
 //BA.debugLineNum = 2857;BA.debugLine="cb_p2_m5.SetItems(Items8)";
_cb_p2_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2858;BA.debugLine="itemselect9 = \"Selecciona una opcion\"";
_itemselect9 = "Selecciona una opcion";
 //BA.debugLineNum = 2859;BA.debugLine="cb_p3_m5.SetItems(Items8)";
_cb_p3_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2860;BA.debugLine="itemselect10 = \"Selecciona una opcion\"";
_itemselect10 = "Selecciona una opcion";
 //BA.debugLineNum = 2861;BA.debugLine="cb_p4_m5.SetItems(Items8)";
_cb_p4_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2862;BA.debugLine="itemselect11 = \"Selecciona una opcion\"";
_itemselect11 = "Selecciona una opcion";
 //BA.debugLineNum = 2863;BA.debugLine="cb_p5_m5.SetItems(Items8)";
_cb_p5_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2864;BA.debugLine="itemselect12 = \"Selecciona una opcion\"";
_itemselect12 = "Selecciona una opcion";
 //BA.debugLineNum = 2865;BA.debugLine="cb_p6_m5.SetItems(Items8)";
_cb_p6_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2866;BA.debugLine="itemselect13 = \"Selecciona una opcion\"";
_itemselect13 = "Selecciona una opcion";
 //BA.debugLineNum = 2867;BA.debugLine="cb_p7_m5.SetItems(Items8)";
_cb_p7_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2868;BA.debugLine="itemselect14 = \"Selecciona una opcion\"";
_itemselect14 = "Selecciona una opcion";
 //BA.debugLineNum = 2869;BA.debugLine="cb_p8_m5.SetItems(Items8)";
_cb_p8_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2870;BA.debugLine="itemselect15 = \"Selecciona una opcion\"";
_itemselect15 = "Selecciona una opcion";
 //BA.debugLineNum = 2871;BA.debugLine="cb_p9_m5.SetItems(Items8)";
_cb_p9_m5._setitems /*String*/ (_items8);
 //BA.debugLineNum = 2872;BA.debugLine="itemselect16 = \"Selecciona una opcion\"";
_itemselect16 = "Selecciona una opcion";
 };
 }else {
 //BA.debugLineNum = 2875;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 2876;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 break; }
case 1: {
 //BA.debugLineNum = 2880;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 break; }
}
;
 }
;
 }else {
 //BA.debugLineNum = 3032;BA.debugLine="p_pregunta1.Visible = False";
_p_pregunta1.setVisible(__c.False);
 //BA.debugLineNum = 3033;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 }else {
 //BA.debugLineNum = 3036;BA.debugLine="Msgbox(\"Contesta la pregunta por favor\",\"AVISO\")";
__c.Msgbox(BA.ObjectToCharSequence("Contesta la pregunta por favor"),BA.ObjectToCharSequence("AVISO"),ba);
 };
 //BA.debugLineNum = 3038;BA.debugLine="End Sub";
return "";
}
public String  _b_preventa_click() throws Exception{
 //BA.debugLineNum = 7100;BA.debugLine="Private Sub b_preventa_Click";
 //BA.debugLineNum = 7102;BA.debugLine="End Sub";
return "";
}
public void  _b_preventa2_click() throws Exception{
ResumableSub_b_preventa2_Click rsub = new ResumableSub_b_preventa2_Click(this);
rsub.resume(ba, null);
}
public static class ResumableSub_b_preventa2_Click extends BA.ResumableSub {
public ResumableSub_b_preventa2_Click(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null;
String _fechainicio = "";
long _ticksinicio = 0L;
long _tickshoy = 0L;
int _diferenciadias = 0;
int _resultado = 0;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 8251;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTURA\"";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "PREVENTA_FUTURA";
 //BA.debugLineNum = 8252;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt.";
_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8253;BA.debugLine="If pagarepen.RowCount > 0 Then";
if (true) break;

case 1:
//if
this.state = 16;
if (_pagarepen.getRowCount()>0) { 
this.state = 3;
}else {
this.state = 15;
}if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 8254;BA.debugLine="pagarepen.Position = 0";
_pagarepen.setPosition((int) (0));
 //BA.debugLineNum = 8255;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 8256;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString(";
_fechainicio = _pagarepen.GetString("FECHA");
 //BA.debugLineNum = 8258;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))";
parent.__c.LogImpl("428311563",_pagarepen.GetString("FECHA"),0);
 //BA.debugLineNum = 8261;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec";
_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio);
 //BA.debugLineNum = 8262;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi";
_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()));
 //BA.debugLineNum = 8265;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni";
_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay);
 //BA.debugLineNum = 8268;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)";
parent.__c.LogImpl("428311573",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0);
 //BA.debugLineNum = 8270;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 8271;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 8273;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDIT";
if (true) break;

case 4:
//if
this.state = 13;
if (_diferenciadias<=parent._c.GetInt("CAT_CL_DIASCREDITO")+8) { 
this.state = 6;
}else if(_diferenciadias>parent._c.GetInt("CAT_CL_DIASCREDITO")+8) { 
this.state = 12;
}if (true) break;

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 8275;BA.debugLine="Msgbox2Async($\"Favor de pagar su credito el día";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Favor de pagar su credito el día de mañana por un monto  de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Recordatorio"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 8276;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 17;
return;
case 17:
//C
this.state = 7;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 8277;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

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

case 9:
//C
this.state = 10;
 //BA.debugLineNum = 8278;BA.debugLine="gestionar";
parent._gestionar();
 if (true) break;

case 10:
//C
this.state = 13;
;
 if (true) break;

case 12:
//C
this.state = 13;
 //BA.debugLineNum = 8281;BA.debugLine="MsgboxAsync($\"No se puede realizar venta por qu";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("No se puede realizar venta por que presenta "+parent.__c.SmartStringFormatter("",(Object)((_diferenciadias-(parent._c.GetInt("CAT_CL_DIASCREDITO")+1))))+" días de atraso en el credito, por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 15:
//C
this.state = 16;
 //BA.debugLineNum = 8284;BA.debugLine="gestionar";
parent._gestionar();
 if (true) break;

case 16:
//C
this.state = -1;
;
 //BA.debugLineNum = 8286;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_preventa2_longclick() throws Exception{
 //BA.debugLineNum = 4209;BA.debugLine="Private Sub b_preventa2_LongClick";
 //BA.debugLineNum = 4211;BA.debugLine="Log(NumberFormat2(Subs.calculaTotalConPromoXRango";
__c.LogImpl("417825794",__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 4212;BA.debugLine="Log(NumberFormat2(Subs.calculaTotalConPromoXRango";
__c.LogImpl("417825795",__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 4213;BA.debugLine="Log(NumberFormat2( (Subs.calculaTotalConPromoXRan";
__c.LogImpl("417825796",__c.NumberFormat2(((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 4214;BA.debugLine="Log(NumberFormat2( (((Subs.calculaTotalConPromoXR";
__c.LogImpl("417825797",__c.NumberFormat2(((((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))))*100)/(double)(double)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False)))),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 4217;BA.debugLine="End Sub";
return "";
}
public String  _b_venta_click() throws Exception{
 //BA.debugLineNum = 4980;BA.debugLine="Sub b_venta_Click";
 //BA.debugLineNum = 4981;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 4982;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 4983;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 5011;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear() throws Exception{
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _permission = "";
boolean _resultc = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar = null;
byte[] _fotomostrarfinal = null;
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _inputstream1 = null;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bitmap1 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null;
int _resultado = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _j3 = null;
int _i = 0;
float _des = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
float _rec = 0f;
float _cantres = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
float _recalculo = 0f;
float _recalculototal = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null;
float _rec1 = 0f;
float _cantres1 = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null;
String _geo = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _fac = null;
String _factura = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null;
String _fechainicio = "";
long _ticksinicio = 0L;
long _tickshoy = 0L;
int _diferenciadias = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _coloressaldo = null;
int step271;
int limit271;
int step312;
int limit312;
int step332;
int limit332;
int step379;
int limit379;
int step400;
int limit400;
int step423;
int limit423;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 572;BA.debugLine="Starter.enCliente = True";
parent._starter._encliente /*boolean*/  = parent.__c.True;
 //BA.debugLineNum = 573;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 574;BA.debugLine="gest.Visible = False";
parent._gest.setVisible(parent.__c.False);
 //BA.debugLineNum = 575;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 //BA.debugLineNum = 581;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PEDIDO where PE_CANT <= 0");
 //BA.debugLineNum = 582;BA.debugLine="recalculoXcant";
parent._recalculoxcant();
 //BA.debugLineNum = 584;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets,\"im";
parent._imageview4.setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"images.png").getObject()));
 //BA.debugLineNum = 585;BA.debugLine="btnPlanLealtad.Visible = False";
parent._btnplanlealtad.setVisible(parent.__c.False);
 //BA.debugLineNum = 586;BA.debugLine="bitacora.inicioFin";
parent._bitacora._iniciofin /*String*/ ();
 //BA.debugLineNum = 588;BA.debugLine="que_modulo = 1";
parent._que_modulo = BA.NumberToString(1);
 //BA.debugLineNum = 589;BA.debugLine="scv_bat.Width = Root.Width";
parent._scv_bat.setWidth(parent._root.getWidth());
 //BA.debugLineNum = 590;BA.debugLine="scv_bat.Height = Root.Height";
parent._scv_bat.setHeight(parent._root.getHeight());
 //BA.debugLineNum = 591;BA.debugLine="dentroDeGeocerca = False";
parent._dentrodegeocerca = parent.__c.False;
 //BA.debugLineNum = 592;BA.debugLine="indicePregunta = 0";
parent._indicepregunta = (int) (0);
 //BA.debugLineNum = 593;BA.debugLine="l_credito.Visible = False";
parent._l_credito.setVisible(parent.__c.False);
 //BA.debugLineNum = 594;BA.debugLine="l_limite.Visible = False";
parent._l_limite.setVisible(parent.__c.False);
 //BA.debugLineNum = 595;BA.debugLine="pnlPlanLealtad.Top = 0";
parent._pnlplanlealtad.setTop((int) (0));
 //BA.debugLineNum = 596;BA.debugLine="pnlPlanLealtad.Left = 0";
parent._pnlplanlealtad.setLeft((int) (0));
 //BA.debugLineNum = 597;BA.debugLine="pnlPlanLealtad.Width = Root.Width";
parent._pnlplanlealtad.setWidth(parent._root.getWidth());
 //BA.debugLineNum = 598;BA.debugLine="pnlPlanLealtad.Height = Root.Height";
parent._pnlplanlealtad.setHeight(parent._root.getHeight());
 //BA.debugLineNum = 599;BA.debugLine="p_cliente.Width = Root.Width";
parent._p_cliente.setWidth(parent._root.getWidth());
 //BA.debugLineNum = 600;BA.debugLine="p_cliente.Height = Root.Height";
parent._p_cliente.setHeight(parent._root.getHeight());
 //BA.debugLineNum = 601;BA.debugLine="p_cliente_.Width = Root.Width";
parent._p_cliente_.setWidth(parent._root.getWidth());
 //BA.debugLineNum = 602;BA.debugLine="Subs.centraPanel(p_atiende, Root.Width)";
parent._subs._centrapanel /*String*/ (ba,parent._p_atiende,parent._root.getWidth());
 //BA.debugLineNum = 603;BA.debugLine="Subs.centraPanel(p_telefono, Root.Width)";
parent._subs._centrapanel /*String*/ (ba,parent._p_telefono,parent._root.getWidth());
 //BA.debugLineNum = 606;BA.debugLine="If TOMAR_FOTO <> 0 Then Cuestionario";
if (true) break;

case 1:
//if
this.state = 6;
if ((parent._tomar_foto).equals(BA.NumberToString(0)) == false) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
parent._cuestionario();
if (true) break;

case 6:
//C
this.state = 7;
;
 //BA.debugLineNum = 607;BA.debugLine="Starter.idCliente = Subs.traeCliente";
parent._starter._idcliente /*String*/  = parent._subs._traecliente /*String*/ (ba);
 //BA.debugLineNum = 609;BA.debugLine="If Subs.traeCliente = \"0\" Then";
if (true) break;

case 7:
//if
this.state = 12;
if ((parent._subs._traecliente /*String*/ (ba)).equals("0")) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

case 9:
//C
this.state = 12;
 //BA.debugLineNum = 610;BA.debugLine="tipo_venta = \"ABORDO\"";
parent._tipo_venta = "ABORDO";
 //BA.debugLineNum = 611;BA.debugLine="Log(1)";
parent.__c.LogImpl("414221352",BA.NumberToString(1),0);
 //BA.debugLineNum = 612;BA.debugLine="Log(\"ABORDO\")";
parent.__c.LogImpl("414221353","ABORDO",0);
 if (true) break;

case 11:
//C
this.state = 12;
 //BA.debugLineNum = 614;BA.debugLine="tipo_venta = Subs.traeTipoVentaDeBD";
parent._tipo_venta = parent._subs._traetipoventadebd /*String*/ (ba);
 //BA.debugLineNum = 616;BA.debugLine="Log(Subs.traeTipoVentaDeBD)";
parent.__c.LogImpl("414221357",parent._subs._traetipoventadebd /*String*/ (ba),0);
 if (true) break;

case 12:
//C
this.state = 13;
;
 //BA.debugLineNum = 618;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = parent._tipo_venta;
 //BA.debugLineNum = 619;BA.debugLine="Log($\"TIPO_VENTA: ${tipo_venta}\"$)";
parent.__c.LogImpl("414221360",("TIPO_VENTA: "+parent.__c.SmartStringFormatter("",(Object)(parent._tipo_venta))+""),0);
 //BA.debugLineNum = 620;BA.debugLine="encuentasmapa.Initialize";
parent._encuentasmapa.Initialize();
 //BA.debugLineNum = 621;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);
 //BA.debugLineNum = 622;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 554;
return;
case 554:
//C
this.state = 13;
_permission = (String) result[0];
_resultc = (Boolean) result[1];
;
 //BA.debugLineNum = 623;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);
 //BA.debugLineNum = 624;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 555;
return;
case 555:
//C
this.state = 13;
_permission = (String) result[0];
_resultc = (Boolean) result[1];
;
 //BA.debugLineNum = 625;BA.debugLine="LA_GPS.TextColor = Colors.Red";
parent._la_gps.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 626;BA.debugLine="LA_GPS.Text = \"SIN UBICACION GPS\"";
parent._la_gps.setText(BA.ObjectToCharSequence("SIN UBICACION GPS"));
 //BA.debugLineNum = 627;BA.debugLine="cercavalor = 0";
parent._cercavalor = BA.NumberToString(0);
 //BA.debugLineNum = 628;BA.debugLine="l_version.Text = Application.VersionName";
parent._l_version.setText(BA.ObjectToCharSequence(parent.__c.Application.getVersionName()));
 //BA.debugLineNum = 629;BA.debugLine="b_preventa.left = (Root.Width / 2) - (b_preventa.";
parent._b_preventa.setLeft((int) ((parent._root.getWidth()/(double)2)-(parent._b_preventa.getWidth()/(double)2)));
 //BA.debugLineNum = 644;BA.debugLine="If Subs.hayPedido Then 'Si hay pedido, deshabilit";
if (true) break;

case 13:
//if
this.state = 18;
if (parent._subs._haypedido /*boolean*/ (ba)) { 
this.state = 15;
}else {
this.state = 17;
}if (true) break;

case 15:
//C
this.state = 18;
 //BA.debugLineNum = 645;BA.debugLine="Log(\">>>>>     HAY PEDIDO\")";
parent.__c.LogImpl("414221386",">>>>>     HAY PEDIDO",0);
 //BA.debugLineNum = 646;BA.debugLine="Tels.Enabled = False";
parent._tels.setEnabled(parent.__c.False);
 if (true) break;

case 17:
//C
this.state = 18;
 //BA.debugLineNum = 648;BA.debugLine="Tels.Enabled = True";
parent._tels.setEnabled(parent.__c.True);
 if (true) break;
;
 //BA.debugLineNum = 651;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";

case 18:
//if
this.state = 21;
if (parent.__c.Not(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
this.state = 20;
}if (true) break;

case 20:
//C
this.state = 21;
 //BA.debugLineNum = 652;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),parent.__c.True);
 //BA.debugLineNum = 653;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
parent.__c.StartActivity(ba,(Object)(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 if (true) break;

case 21:
//C
this.state = 22;
;
 //BA.debugLineNum = 655;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
parent._skmt.Initialize(parent._ruta,"kmt.db",parent.__c.True);
 //BA.debugLineNum = 656;BA.debugLine="reqManager.Initialize(Me, Starter.server)";
parent._reqmanager._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ );
 //BA.debugLineNum = 676;BA.debugLine="Subs.centraPanel(P_Imagengrande,Root.Width)";
parent._subs._centrapanel /*String*/ (ba,parent._p_imagengrande,parent._root.getWidth());
 //BA.debugLineNum = 677;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PEDIDO where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CANT <= 0");
 //BA.debugLineNum = 679;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.ExecQue";
_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar1 = (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 foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NOT NULL")));
 //BA.debugLineNum = 680;BA.debugLine="If fotomostrar1.RowCount = 0 Then";
if (true) break;

case 22:
//if
this.state = 33;
if (_fotomostrar1.getRowCount()==0) { 
this.state = 24;
}else {
this.state = 32;
}if (true) break;

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 682;BA.debugLine="Dim fotomostrar As Cursor = Starter.skmt.ExecQue";
_fotomostrar = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar = (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 FOTO FROM FOTOS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 683;BA.debugLine="If fotomostrar.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 30;
if (_fotomostrar.getRowCount()>0) { 
this.state = 27;
}else {
this.state = 29;
}if (true) break;

case 27:
//C
this.state = 30;
 //BA.debugLineNum = 685;BA.debugLine="fotomostrar.Position = 0";
_fotomostrar.setPosition((int) (0));
 //BA.debugLineNum = 686;BA.debugLine="Private fotomostrarfinal() As Byte = fotomostra";
_fotomostrarfinal = _fotomostrar.GetBlob("FOTO");
 //BA.debugLineNum = 687;BA.debugLine="Dim InputStream1 As InputStream";
_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
 //BA.debugLineNum = 688;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomostr";
_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length);
 //BA.debugLineNum = 689;BA.debugLine="Dim Bitmap1 As Bitmap";
_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
 //BA.debugLineNum = 690;BA.debugLine="Bitmap1.Initialize2(InputStream1)";
_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject()));
 //BA.debugLineNum = 691;BA.debugLine="InputStream1.Close";
_inputstream1.Close();
 //BA.debugLineNum = 692;BA.debugLine="ImageView4.Bitmap = Bitmap1";
parent._imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject()));
 //BA.debugLineNum = 693;BA.debugLine="Log(\"aqui si hay foto\")";
parent.__c.LogImpl("414221434","aqui si hay foto",0);
 if (true) break;

case 29:
//C
this.state = 30;
 //BA.debugLineNum = 695;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets,\"";
parent._imageview4.setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"images.png").getObject()));
 //BA.debugLineNum = 696;BA.debugLine="Log(\"aqui no hay foto\")";
parent.__c.LogImpl("414221437","aqui no hay foto",0);
 if (true) break;

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

case 32:
//C
this.state = 33;
 //BA.debugLineNum = 700;BA.debugLine="fotomostrar1.Position = 0";
_fotomostrar1.setPosition((int) (0));
 //BA.debugLineNum = 701;BA.debugLine="Private fotomostrarfinal() As Byte = fotomostrar";
_fotomostrarfinal = _fotomostrar1.GetBlob("foto");
 //BA.debugLineNum = 702;BA.debugLine="Dim InputStream1 As InputStream";
_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
 //BA.debugLineNum = 703;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomostra";
_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length);
 //BA.debugLineNum = 704;BA.debugLine="Dim Bitmap1 As Bitmap";
_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
 //BA.debugLineNum = 705;BA.debugLine="Bitmap1.Initialize2(InputStream1)";
_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject()));
 //BA.debugLineNum = 706;BA.debugLine="InputStream1.Close";
_inputstream1.Close();
 //BA.debugLineNum = 707;BA.debugLine="ImageView4.Bitmap = Bitmap1";
parent._imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject()));
 //BA.debugLineNum = 708;BA.debugLine="Log(\"aqui si hay foto\")";
parent.__c.LogImpl("414221449","aqui si hay foto",0);
 if (true) break;

case 33:
//C
this.state = 34;
;
 //BA.debugLineNum = 716;BA.debugLine="l_tipocliente.Text = Subs.traeTipoCliente";
parent._l_tipocliente.setText(BA.ObjectToCharSequence(parent._subs._traetipocliente /*int*/ (ba)));
 //BA.debugLineNum = 717;BA.debugLine="p_camara.Width = Root.Width";
parent._p_camara.setWidth(parent._root.getWidth());
 //BA.debugLineNum = 718;BA.debugLine="p_camara.Height = Root.Height";
parent._p_camara.setHeight(parent._root.getHeight());
 //BA.debugLineNum = 719;BA.debugLine="S2=B4XPages.MainPage.skmt.ExecQuery(\"select count";
parent._s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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)")));
 //BA.debugLineNum = 720;BA.debugLine="S2.Position =0";
parent._s2.setPosition((int) (0));
 //BA.debugLineNum = 721;BA.debugLine="CUANTOS = S2.GetString(\"CUANTOS\")";
parent._cuantos = parent._s2.GetString("CUANTOS");
 //BA.debugLineNum = 722;BA.debugLine="S2.Close";
parent._s2.Close();
 //BA.debugLineNum = 723;BA.debugLine="If CUANTOS > 0 Then";
if (true) break;

case 34:
//if
this.state = 39;
if ((double)(Double.parseDouble(parent._cuantos))>0) { 
this.state = 36;
}else {
this.state = 38;
}if (true) break;

case 36:
//C
this.state = 39;
 //BA.debugLineNum = 724;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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)")));
 //BA.debugLineNum = 725;BA.debugLine="c2.Position =0";
parent._c2.setPosition((int) (0));
 //BA.debugLineNum = 726;BA.debugLine="MONTO_COMPRA = c2.GetString(\"TOTAL\")";
parent._monto_compra = parent._c2.GetString("TOTAL");
 //BA.debugLineNum = 727;BA.debugLine="c2.Close";
parent._c2.Close();
 if (true) break;

case 38:
//C
this.state = 39;
 //BA.debugLineNum = 729;BA.debugLine="MONTO_COMPRA = \"0\"";
parent._monto_compra = "0";
 if (true) break;

case 39:
//C
this.state = 40;
;
 //BA.debugLineNum = 731;BA.debugLine="la_saldotot.Text = MONTO_COMPRA";
parent._la_saldotot.setText(BA.ObjectToCharSequence(parent._monto_compra));
 //BA.debugLineNum = 732;BA.debugLine="If MONTO_COMPRA <> \"0\" Then";
if (true) break;

case 40:
//if
this.state = 45;
if ((parent._monto_compra).equals("0") == false) { 
this.state = 42;
}else {
this.state = 44;
}if (true) break;

case 42:
//C
this.state = 45;
 //BA.debugLineNum = 733;BA.debugLine="META2 = 300 -  MONTO_COMPRA";
parent._meta2 = BA.NumberToString(300-(double)(Double.parseDouble(parent._monto_compra)));
 if (true) break;

case 44:
//C
this.state = 45;
 //BA.debugLineNum = 735;BA.debugLine="META2 = 300";
parent._meta2 = BA.NumberToString(300);
 if (true) break;
;
 //BA.debugLineNum = 737;BA.debugLine="If META2 < 1 Then";

case 45:
//if
this.state = 48;
if ((double)(Double.parseDouble(parent._meta2))<1) { 
this.state = 47;
}if (true) break;

case 47:
//C
this.state = 48;
 //BA.debugLineNum = 738;BA.debugLine="META2 = \"CUBIERTO\"";
parent._meta2 = "CUBIERTO";
 if (true) break;
;
 //BA.debugLineNum = 740;BA.debugLine="If IsNumber(META2) Then META2 = NumberFormat2(MET";

case 48:
//if
this.state = 53;
if (parent.__c.IsNumber(parent._meta2)) { 
this.state = 50;
;}if (true) break;

case 50:
//C
this.state = 53;
parent._meta2 = parent.__c.NumberFormat2((double)(Double.parseDouble(parent._meta2)),(int) (0),(int) (2),(int) (2),parent.__c.True);
if (true) break;

case 53:
//C
this.state = 54;
;
 //BA.debugLineNum = 741;BA.debugLine="la_saldooper.Text = META2";
parent._la_saldooper.setText(BA.ObjectToCharSequence(parent._meta2));
 //BA.debugLineNum = 742;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
 //BA.debugLineNum = 743;BA.debugLine="If c.RowCount>0 Then";
if (true) break;

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

case 56:
//C
this.state = 57;
 //BA.debugLineNum = 744;BA.debugLine="C.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 745;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
parent._almacen = parent._c.GetString("ID_ALMACEN");
 if (true) break;

case 57:
//C
this.state = 58;
;
 //BA.debugLineNum = 747;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 749;BA.debugLine="If ALMACEN = \"1\" Then";
if (true) break;

case 58:
//if
this.state = 61;
if ((parent._almacen).equals("1")) { 
this.state = 60;
}if (true) break;

case 60:
//C
this.state = 61;
 //BA.debugLineNum = 750;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 751;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 //BA.debugLineNum = 752;BA.debugLine="B_GPS.Visible = False";
parent._b_gps.setVisible(parent.__c.False);
 if (true) break;
;
 //BA.debugLineNum = 754;BA.debugLine="If ALMACEN = \"4\"  Then";

case 61:
//if
this.state = 78;
if ((parent._almacen).equals("4")) { 
this.state = 63;
}else {
this.state = 77;
}if (true) break;

case 63:
//C
this.state = 64;
 //BA.debugLineNum = 755;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 //BA.debugLineNum = 756;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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"})));
 //BA.debugLineNum = 757;BA.debugLine="DD.Position =0";
parent._dd.setPosition((int) (0));
 //BA.debugLineNum = 758;BA.debugLine="If DD.GetString(\"CUANTOS\")  = 0 Then";
if (true) break;

case 64:
//if
this.state = 75;
if ((parent._dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 66;
}else {
this.state = 74;
}if (true) break;

case 66:
//C
this.state = 67;
 //BA.debugLineNum = 759;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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"})));
 //BA.debugLineNum = 760;BA.debugLine="c.Position =0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 761;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if (true) break;

case 67:
//if
this.state = 72;
if ((parent._c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 69;
}else {
this.state = 71;
}if (true) break;

case 69:
//C
this.state = 72;
 //BA.debugLineNum = 762;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 if (true) break;

case 71:
//C
this.state = 72;
 //BA.debugLineNum = 764;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 if (true) break;

case 72:
//C
this.state = 75;
;
 //BA.debugLineNum = 766;BA.debugLine="c.Close";
parent._c.Close();
 if (true) break;

case 74:
//C
this.state = 75;
 //BA.debugLineNum = 768;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 if (true) break;

case 75:
//C
this.state = 78;
;
 //BA.debugLineNum = 770;BA.debugLine="DD.Close";
parent._dd.Close();
 if (true) break;

case 77:
//C
this.state = 78;
 //BA.debugLineNum = 772;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 if (true) break;
;
 //BA.debugLineNum = 774;BA.debugLine="If ALMACEN = \"16\" Or ALMACEN = \"13\" Then";

case 78:
//if
this.state = 81;
if ((parent._almacen).equals("16") || (parent._almacen).equals("13")) { 
this.state = 80;
}if (true) break;

case 80:
//C
this.state = 81;
 //BA.debugLineNum = 775;BA.debugLine="Tels.Visible = True";
parent._tels.setVisible(parent.__c.True);
 //BA.debugLineNum = 776;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 if (true) break;

case 81:
//C
this.state = 82;
;
 //BA.debugLineNum = 778;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE  FROM PEDID";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT PC_CLIENTE  FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 779;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 82:
//if
this.state = 121;
if (parent._c.getRowCount()>0) { 
this.state = 84;
}else if(parent._c.getRowCount()==0) { 
this.state = 96;
}if (true) break;

case 84:
//C
this.state = 85;
 //BA.debugLineNum = 780;BA.debugLine="Tels.Visible = True";
parent._tels.setVisible(parent.__c.True);
 //BA.debugLineNum = 781;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 //BA.debugLineNum = 782;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 783;BA.debugLine="If future.RowCount > 0 Then";
if (true) break;

case 85:
//if
this.state = 94;
if (_future.getRowCount()>0) { 
this.state = 87;
}if (true) break;

case 87:
//C
this.state = 88;
 //BA.debugLineNum = 784;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 785;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (true) break;

case 88:
//if
this.state = 93;
if (_future.GetInt("CAT_VA_VALOR")==1) { 
this.state = 90;
}else if(_future.GetInt("CAT_VA_VALOR")==0) { 
this.state = 92;
}if (true) break;

case 90:
//C
this.state = 93;
 //BA.debugLineNum = 786;BA.debugLine="b_preventa2.Visible = True";
parent._b_preventa2.setVisible(parent.__c.True);
 if (true) break;

case 92:
//C
this.state = 93;
 //BA.debugLineNum = 788;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 if (true) break;

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

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

case 96:
//C
this.state = 97;
 //BA.debugLineNum = 793;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 794;BA.debugLine="gest.Visible = False";
parent._gest.setVisible(parent.__c.False);
 //BA.debugLineNum = 796;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 //BA.debugLineNum = 798;BA.debugLine="c = skmt.ExecQuery(\"SELECT NV_CLIENTE FROM NOVEN";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 799;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 97:
//if
this.state = 116;
if (parent._c.getRowCount()>0) { 
this.state = 99;
}else if(parent._c.getRowCount()==0) { 
this.state = 111;
}if (true) break;

case 99:
//C
this.state = 100;
 //BA.debugLineNum = 800;BA.debugLine="Tels.Visible = True";
parent._tels.setVisible(parent.__c.True);
 //BA.debugLineNum = 801;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 //BA.debugLineNum = 802;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.E";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 803;BA.debugLine="If future.RowCount > 0 Then";
if (true) break;

case 100:
//if
this.state = 109;
if (_future.getRowCount()>0) { 
this.state = 102;
}if (true) break;

case 102:
//C
this.state = 103;
 //BA.debugLineNum = 804;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 805;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (true) break;

case 103:
//if
this.state = 108;
if (_future.GetInt("CAT_VA_VALOR")==1) { 
this.state = 105;
}else if(_future.GetInt("CAT_VA_VALOR")==0) { 
this.state = 107;
}if (true) break;

case 105:
//C
this.state = 108;
 //BA.debugLineNum = 806;BA.debugLine="b_preventa2.Visible = True";
parent._b_preventa2.setVisible(parent.__c.True);
 if (true) break;

case 107:
//C
this.state = 108;
 //BA.debugLineNum = 808;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 if (true) break;

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

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

case 111:
//C
this.state = 112;
 //BA.debugLineNum = 812;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 813;BA.debugLine="gest.Visible = False";
parent._gest.setVisible(parent.__c.False);
 //BA.debugLineNum = 814;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 //BA.debugLineNum = 815;BA.debugLine="LA_GEO.TextColor = Colors.Red";
parent._la_geo.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 816;BA.debugLine="If ALMACEN = \"1\" Then";
if (true) break;

case 112:
//if
this.state = 115;
if ((parent._almacen).equals("1")) { 
this.state = 114;
}if (true) break;

case 114:
//C
this.state = 115;
 //BA.debugLineNum = 817;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 818;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 if (true) break;

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

case 116:
//C
this.state = 117;
;
 //BA.debugLineNum = 821;BA.debugLine="LA_GEO.TextColor = Colors.Red";
parent._la_geo.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 822;BA.debugLine="If ALMACEN = \"1\" Then";
if (true) break;

case 117:
//if
this.state = 120;
if ((parent._almacen).equals("1")) { 
this.state = 119;
}if (true) break;

case 119:
//C
this.state = 120;
 //BA.debugLineNum = 823;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 824;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 if (true) break;

case 120:
//C
this.state = 121;
;
 if (true) break;

case 121:
//C
this.state = 122;
;
 //BA.debugLineNum = 828;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"StartFLPSmall");
 //BA.debugLineNum = 830;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
if (true) break;

case 122:
//if
this.state = 125;
if (parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { 
this.state = 124;
}if (true) break;

case 124:
//C
this.state = 125;
 //BA.debugLineNum = 831;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
 //BA.debugLineNum = 832;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
 //BA.debugLineNum = 833;BA.debugLine="Log($\"Tenemos UUC: ${Tracker.FLP.GetLastKnownLoc";
parent.__c.LogImpl("414221574",("Tenemos UUC: "+parent.__c.SmartStringFormatter("",(Object)(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+""),0);
 //BA.debugLineNum = 834;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
parent._gps_locationchanged(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
 if (true) break;
;
 //BA.debugLineNum = 836;BA.debugLine="If ALMACEN = \"1\" Or ALMACEN = \"2\" Or ALMACEN = \"4";

case 125:
//if
this.state = 142;
if ((parent._almacen).equals("1") || (parent._almacen).equals("2") || (parent._almacen).equals("4") || (parent._almacen).equals("5") || (parent._almacen).equals("25")) { 
this.state = 127;
}else {
this.state = 141;
}if (true) break;

case 127:
//C
this.state = 128;
 //BA.debugLineNum = 837;BA.debugLine="DD=skmt.ExecQuery2(\"SELECT COUNT(*) AS CUANTOS F";
parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{"KNORR SUIZA GALLINA"})));
 //BA.debugLineNum = 838;BA.debugLine="DD.Position =0";
parent._dd.setPosition((int) (0));
 //BA.debugLineNum = 839;BA.debugLine="If DD.GetString(\"CUANTOS\")  = 0 Then";
if (true) break;

case 128:
//if
this.state = 139;
if ((parent._dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 130;
}else {
this.state = 138;
}if (true) break;

case 130:
//C
this.state = 131;
 //BA.debugLineNum = 840;BA.debugLine="c=skmt.ExecQuery2(\"SELECT COUNT(*) AS CUANTOS F";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM PEDIDO  WHERE PE_CLIENTE  IN (Select cuenta from cuentaa) AND PE_PRONOMBRE =?",new String[]{"KNORR SUIZA GALLINA"})));
 //BA.debugLineNum = 841;BA.debugLine="c.Position =0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 842;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if (true) break;

case 131:
//if
this.state = 136;
if ((parent._c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 133;
}else {
this.state = 135;
}if (true) break;

case 133:
//C
this.state = 136;
 //BA.debugLineNum = 843;BA.debugLine="B_GALLINA.Visible = True";
parent._b_gallina.setVisible(parent.__c.True);
 if (true) break;

case 135:
//C
this.state = 136;
 //BA.debugLineNum = 845;BA.debugLine="B_GALLINA.Visible = False";
parent._b_gallina.setVisible(parent.__c.False);
 if (true) break;

case 136:
//C
this.state = 139;
;
 //BA.debugLineNum = 847;BA.debugLine="c.Close";
parent._c.Close();
 if (true) break;

case 138:
//C
this.state = 139;
 //BA.debugLineNum = 849;BA.debugLine="B_GALLINA.Visible = False";
parent._b_gallina.setVisible(parent.__c.False);
 if (true) break;

case 139:
//C
this.state = 142;
;
 //BA.debugLineNum = 851;BA.debugLine="DD.Close";
parent._dd.Close();
 if (true) break;

case 141:
//C
this.state = 142;
 //BA.debugLineNum = 853;BA.debugLine="B_GALLINA.Visible = False";
parent._b_gallina.setVisible(parent.__c.False);
 if (true) break;

case 142:
//C
this.state = 143;
;
 //BA.debugLineNum = 855;BA.debugLine="P_gallina.Visible = False";
parent._p_gallina.setVisible(parent.__c.False);
 //BA.debugLineNum = 856;BA.debugLine="B_GALLINA.Visible = False";
parent._b_gallina.setVisible(parent.__c.False);
 //BA.debugLineNum = 857;BA.debugLine="que_modulo = 1";
parent._que_modulo = BA.NumberToString(1);
 //BA.debugLineNum = 858;BA.debugLine="If ALMACEN = \"2\" Or ALMACEN = \"4\" Or  ALMACEN = \"";
if (true) break;

case 143:
//if
this.state = 148;
if ((parent._almacen).equals("2") || (parent._almacen).equals("4") || (parent._almacen).equals("5") || (parent._almacen).equals("4") || (parent._almacen).equals("53") || (parent._almacen).equals("64") || (parent._almacen).equals("25")) { 
this.state = 145;
}else {
this.state = 147;
}if (true) break;

case 145:
//C
this.state = 148;
 //BA.debugLineNum = 859;BA.debugLine="b_like.Visible = True";
parent._b_like.setVisible(parent.__c.True);
 if (true) break;

case 147:
//C
this.state = 148;
 //BA.debugLineNum = 861;BA.debugLine="b_like.Visible = False";
parent._b_like.setVisible(parent.__c.False);
 if (true) break;

case 148:
//C
this.state = 149;
;
 //BA.debugLineNum = 863;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"})));
 //BA.debugLineNum = 864;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 149:
//if
this.state = 152;
if (parent._c.getRowCount()>0) { 
this.state = 151;
}if (true) break;

case 151:
//C
this.state = 152;
 //BA.debugLineNum = 865;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 866;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
parent._starter._mac_impresora /*String*/  = parent._c.GetString("CAT_VA_VALOR");
 if (true) break;
;
 //BA.debugLineNum = 868;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";

case 152:
//if
this.state = 157;
if ((parent._starter._mac_impresora /*String*/ ).equals("")) { 
this.state = 154;
;}if (true) break;

case 154:
//C
this.state = 157;
parent._starter._mac_impresora /*String*/  = "0";
if (true) break;

case 157:
//C
this.state = 158;
;
 //BA.debugLineNum = 870;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
parent._printer1._initialize /*String*/ (ba,parent,"Printer1");
 //BA.debugLineNum = 872;BA.debugLine="If Printer1.IsConnected = False Then";
if (true) break;

case 158:
//if
this.state = 163;
if (parent._printer1._isconnected /*boolean*/ ()==parent.__c.False) { 
this.state = 160;
}else {
this.state = 162;
}if (true) break;

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

case 162:
//C
this.state = 163;
 //BA.debugLineNum = 876;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 877;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 878;BA.debugLine="Log(\"2\")";
parent.__c.LogImpl("414221619","2",0);
 if (true) break;

case 163:
//C
this.state = 164;
;
 //BA.debugLineNum = 880;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT HABILITADA FROM IMPRESORA")));
 //BA.debugLineNum = 881;BA.debugLine="If c.RowCount >  0 Then";
if (true) break;

case 164:
//if
this.state = 175;
if (parent._c.getRowCount()>0) { 
this.state = 166;
}else if(parent._c.getRowCount()==0) { 
this.state = 174;
}if (true) break;

case 166:
//C
this.state = 167;
 //BA.debugLineNum = 882;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 883;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then";
if (true) break;

case 167:
//if
this.state = 172;
if ((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(1))) { 
this.state = 169;
}else if((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(0))) { 
this.state = 171;
}if (true) break;

case 169:
//C
this.state = 172;
 //BA.debugLineNum = 884;BA.debugLine="B_IMP.Visible = True";
parent._b_imp.setVisible(parent.__c.True);
 if (true) break;

case 171:
//C
this.state = 172;
 //BA.debugLineNum = 886;BA.debugLine="B_IMP.Visible = False";
parent._b_imp.setVisible(parent.__c.False);
 if (true) break;

case 172:
//C
this.state = 175;
;
 if (true) break;

case 174:
//C
this.state = 175;
 //BA.debugLineNum = 889;BA.debugLine="B_IMP.Visible = False";
parent._b_imp.setVisible(parent.__c.False);
 if (true) break;
;
 //BA.debugLineNum = 895;BA.debugLine="If ALMACEN = 32 Then";

case 175:
//if
this.state = 201;
if ((parent._almacen).equals(BA.NumberToString(32))) { 
this.state = 177;
}if (true) break;

case 177:
//C
this.state = 178;
 //BA.debugLineNum = 896;BA.debugLine="If Subs.traemontoprod And Subs.InvSuficienteProm";
if (true) break;

case 178:
//if
this.state = 187;
if (parent._subs._traemontoprod /*boolean*/ (ba) && parent._subs._invsuficientepromoesp /*boolean*/ (ba) && parent.__c.Not(parent._subs._vendidopromoesp /*boolean*/ (ba))) { 
this.state = 180;
}else {
this.state = 186;
}if (true) break;

case 180:
//C
this.state = 181;
 //BA.debugLineNum = 897;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a una pr";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a una promo por la compra de mas de $120 en productos Helmanns, Maizena y/o Knorr"),BA.ObjectToCharSequence("Promo disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 898;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 556;
return;
case 556:
//C
this.state = 181;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 899;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 181:
//if
this.state = 184;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 183;
}if (true) break;

case 183:
//C
this.state = 184;
 //BA.debugLineNum = 900;BA.debugLine="B4XPages.MainPage.productos.terminarpromoesp";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._terminarpromoesp /*String*/ ();
 if (true) break;

case 184:
//C
this.state = 187;
;
 if (true) break;

case 186:
//C
this.state = 187;
 if (true) break;
;
 //BA.debugLineNum = 904;BA.debugLine="If Not(Subs.traemontoprod) And Subs.vendidoPromo";

case 187:
//if
this.state = 200;
if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba)) && parent._subs._vendidopromoesp /*boolean*/ (ba)) { 
this.state = 189;
}else {
this.state = 199;
}if (true) break;

case 189:
//C
this.state = 190;
 //BA.debugLineNum = 905;BA.debugLine="Private j3 As Cursor";
_j3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 906;BA.debugLine="Log(\"SI PROMO\")";
parent.__c.LogImpl("414221647","SI PROMO",0);
 //BA.debugLineNum = 907;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_PROID = ?)",new String[]{"PROUNI01"})));
 //BA.debugLineNum = 908;BA.debugLine="Log(j3.RowCount)";
parent.__c.LogImpl("414221649",BA.NumberToString(_j3.getRowCount()),0);
 //BA.debugLineNum = 909;BA.debugLine="If j3.RowCount = 0 Then";
if (true) break;

case 190:
//if
this.state = 197;
if (_j3.getRowCount()==0) { 
this.state = 192;
}if (true) break;

case 192:
//C
this.state = 193;
 //BA.debugLineNum = 910;BA.debugLine="Log(\"estoy aqui\")";
parent.__c.LogImpl("414221651","estoy aqui",0);
 //BA.debugLineNum = 911;BA.debugLine="For i = 0 To j3.RowCount -1";
if (true) break;

case 193:
//for
this.state = 196;
step271 = 1;
limit271 = (int) (_j3.getRowCount()-1);
_i = (int) (0) ;
this.state = 557;
if (true) break;

case 557:
//C
this.state = 196;
if ((step271 > 0 && _i <= limit271) || (step271 < 0 && _i >= limit271)) this.state = 195;
if (true) break;

case 558:
//C
this.state = 557;
_i = ((int)(0 + _i + step271)) ;
if (true) break;

case 195:
//C
this.state = 558;
 //BA.debugLineNum = 912;BA.debugLine="Log(\"aqui tronare?\")";
parent.__c.LogImpl("414221653","aqui tronare?",0);
 //BA.debugLineNum = 913;BA.debugLine="j3.Position = i";
_j3.setPosition(_i);
 //BA.debugLineNum = 914;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+parent.__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+parent.__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"));
 //BA.debugLineNum = 915;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where  pe_cedis in (select pe_cedis from pedido where pe_pronombre = ?) and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_j3.GetString("PE_PRONOMBRE")),(Object)(parent._tipo_venta)}));
 if (true) break;
if (true) break;

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

case 197:
//C
this.state = 200;
;
 //BA.debugLineNum = 918;BA.debugLine="j3.Close";
_j3.Close();
 if (true) break;

case 199:
//C
this.state = 200;
 if (true) break;

case 200:
//C
this.state = 201;
;
 if (true) break;
;
 //BA.debugLineNum = 923;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then";

case 201:
//if
this.state = 321;
if ((parent._almacen).equals(BA.NumberToString(87)) || (parent._almacen).equals(BA.NumberToString(6))) { 
this.state = 203;
}if (true) break;

case 203:
//C
this.state = 204;
 //BA.debugLineNum = 924;BA.debugLine="If Subs.traemontoprod And Subs.traeCliente <> \"0";
if (true) break;

case 204:
//if
this.state = 301;
if (parent._subs._traemontoprod /*boolean*/ (ba) && (parent._subs._traecliente /*String*/ (ba)).equals("0") == false) { 
this.state = 206;
}else if(parent._subs._traemontoprod2 /*boolean*/ (ba) && (parent._subs._traecliente /*String*/ (ba)).equals("0") == false) { 
this.state = 254;
}if (true) break;

case 206:
//C
this.state = 207;
 //BA.debugLineNum = 925;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a un des";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a un descuento de 150 pesos por la compra de mas de $500 en productos participantes"),BA.ObjectToCharSequence("Descuento disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 926;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 559;
return;
case 559:
//C
this.state = 207;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 927;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 207:
//if
this.state = 252;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 209;
}if (true) break;

case 209:
//C
this.state = 210;
 //BA.debugLineNum = 928;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.E";
parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS PIEZAS FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 929;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 210:
//if
this.state = 251;
if (parent._c.getRowCount()>0) { 
this.state = 212;
}if (true) break;

case 212:
//C
this.state = 213;
 //BA.debugLineNum = 930;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 931;BA.debugLine="Private des As Float = NumberFormat2(150/c.Ge";
_des = (float)(Double.parseDouble(parent.__c.NumberFormat2(150/(double)(double)(Double.parseDouble(parent._c.GetString("PIEZAS"))),(int) (0),(int) (2),(int) (2),parent.__c.False)));
 //BA.debugLineNum = 932;BA.debugLine="Log( NumberFormat2(des,0,2,2,False))";
parent.__c.LogImpl("414221673",parent.__c.NumberFormat2(_des,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 933;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt";
parent._c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU < ?",new String[]{BA.NumberToString(_des)})));
 //BA.debugLineNum = 934;BA.debugLine="If c2.RowCount > 0 Then";
if (true) break;

case 213:
//if
this.state = 216;
if (parent._c2.getRowCount()>0) { 
this.state = 215;
}if (true) break;

case 215:
//C
this.state = 216;
 //BA.debugLineNum = 935;BA.debugLine="c2.Position = 0";
parent._c2.setPosition((int) (0));
 //BA.debugLineNum = 936;BA.debugLine="Log(c2.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221677",parent._c2.GetString("PE_CANT"),0);
 if (true) break;

case 216:
//C
this.state = 217;
;
 //BA.debugLineNum = 938;BA.debugLine="Private c3 As Cursor = B4XPages.MainPage.skmt";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_des)})));
 //BA.debugLineNum = 939;BA.debugLine="If c3.RowCount > 0 Then";
if (true) break;

case 217:
//if
this.state = 250;
if (_c3.getRowCount()>0) { 
this.state = 219;
}if (true) break;

case 219:
//C
this.state = 220;
 //BA.debugLineNum = 940;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
 //BA.debugLineNum = 941;BA.debugLine="Log(c3.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221682",_c3.GetString("PE_CANT"),0);
 //BA.debugLineNum = 942;BA.debugLine="Private rec As Float = (des * c2.GetString(\"";
_rec = (float) ((_des*(double)(Double.parseDouble(parent._c2.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c3.GetString("PE_CANT"))));
 //BA.debugLineNum = 943;BA.debugLine="Log( NumberFormat2(rec,0,2,2,False))";
parent.__c.LogImpl("414221684",parent.__c.NumberFormat2(_rec,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 944;BA.debugLine="Private cantres As Float = des + rec";
_cantres = (float) (_des+_rec);
 //BA.debugLineNum = 945;BA.debugLine="Log( NumberFormat2(cantres,0,2,2,False))";
parent.__c.LogImpl("414221686",parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 946;BA.debugLine="Private c5 As Cursor = B4XPages.MainPage.skm";
_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU > ? and PE_COSTOU < ?",new String[]{BA.NumberToString(_des),BA.NumberToString(_cantres)})));
 //BA.debugLineNum = 947;BA.debugLine="If c5.RowCount > 0 Then";
if (true) break;

case 220:
//if
this.state = 249;
if (_c5.getRowCount()>0) { 
this.state = 222;
}if (true) break;

case 222:
//C
this.state = 223;
 //BA.debugLineNum = 948;BA.debugLine="c5.Position = 0";
_c5.setPosition((int) (0));
 //BA.debugLineNum = 949;BA.debugLine="Log(c5.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221690",_c5.GetString("PE_CANT"),0);
 //BA.debugLineNum = 950;BA.debugLine="If c5.GetString(\"PE_CANT\") = \"0\" Then";
if (true) break;

case 223:
//if
this.state = 248;
if ((_c5.GetString("PE_CANT")).equals("0")) { 
this.state = 225;
}else {
this.state = 235;
}if (true) break;

case 225:
//C
this.state = 226;
 //BA.debugLineNum = 951;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.s";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)})));
 //BA.debugLineNum = 952;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 226:
//if
this.state = 233;
if (_c4.getRowCount()>0) { 
this.state = 228;
}if (true) break;

case 228:
//C
this.state = 229;
 //BA.debugLineNum = 953;BA.debugLine="For i = 0 To c4.RowCount -1";
if (true) break;

case 229:
//for
this.state = 232;
step312 = 1;
limit312 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
this.state = 560;
if (true) break;

case 560:
//C
this.state = 232;
if ((step312 > 0 && _i <= limit312) || (step312 < 0 && _i >= limit312)) this.state = 231;
if (true) break;

case 561:
//C
this.state = 560;
_i = ((int)(0 + _i + step312)) ;
if (true) break;

case 231:
//C
this.state = 561;
 //BA.debugLineNum = 954;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
 //BA.debugLineNum = 955;BA.debugLine="Private recalculo As Float = c4.GetStrin";
_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 956;BA.debugLine="LogColor(recalculo,Colors.Blue)";
parent.__c.LogImpl("414221697",BA.NumberToString(_recalculo),parent.__c.Colors.Blue);
 //BA.debugLineNum = 957;BA.debugLine="Private recalculototal As Float = c4.Get";
_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 959;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE";
parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")}));
 if (true) break;
if (true) break;

case 232:
//C
this.state = 233;
;
 if (true) break;

case 233:
//C
this.state = 248;
;
 //BA.debugLineNum = 962;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 235:
//C
this.state = 236;
 //BA.debugLineNum = 964;BA.debugLine="Private c6 As Cursor = B4XPages.MainPage.s";
_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_cantres)})));
 //BA.debugLineNum = 965;BA.debugLine="If c6.RowCount > 0 Then";
if (true) break;

case 236:
//if
this.state = 247;
if (_c6.getRowCount()>0) { 
this.state = 238;
}if (true) break;

case 238:
//C
this.state = 239;
 //BA.debugLineNum = 966;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
 //BA.debugLineNum = 967;BA.debugLine="Log(c6.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221708",_c6.GetString("PE_CANT"),0);
 //BA.debugLineNum = 968;BA.debugLine="Private rec1 As Float = (cantres * c5.Get";
_rec1 = (float) ((_cantres*(double)(Double.parseDouble(_c5.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c6.GetString("PE_CANT"))));
 //BA.debugLineNum = 969;BA.debugLine="Log( NumberFormat2(rec1,0,2,2,False))";
parent.__c.LogImpl("414221710",parent.__c.NumberFormat2(_rec1,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 970;BA.debugLine="Private cantres1 As Float = cantres + rec";
_cantres1 = (float) (_cantres+_rec1);
 //BA.debugLineNum = 971;BA.debugLine="Log( NumberFormat2(cantres1,0,2,2,False))";
parent.__c.LogImpl("414221712",parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 972;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)})));
 //BA.debugLineNum = 973;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 239:
//if
this.state = 246;
if (_c4.getRowCount()>0) { 
this.state = 241;
}if (true) break;

case 241:
//C
this.state = 242;
 //BA.debugLineNum = 974;BA.debugLine="For i = 0 To c4.RowCount -1";
if (true) break;

case 242:
//for
this.state = 245;
step332 = 1;
limit332 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
this.state = 562;
if (true) break;

case 562:
//C
this.state = 245;
if ((step332 > 0 && _i <= limit332) || (step332 < 0 && _i >= limit332)) this.state = 244;
if (true) break;

case 563:
//C
this.state = 562;
_i = ((int)(0 + _i + step332)) ;
if (true) break;

case 244:
//C
this.state = 563;
 //BA.debugLineNum = 975;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
 //BA.debugLineNum = 976;BA.debugLine="Private recalculo As Float = c4.GetStri";
_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 977;BA.debugLine="LogColor(recalculo,Colors.Blue)";
parent.__c.LogImpl("414221718",BA.NumberToString(_recalculo),parent.__c.Colors.Blue);
 //BA.debugLineNum = 978;BA.debugLine="Private recalculototal As Float = c4.Ge";
_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 980;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set P";
parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")}));
 if (true) break;
if (true) break;

case 245:
//C
this.state = 246;
;
 if (true) break;

case 246:
//C
this.state = 247;
;
 //BA.debugLineNum = 983;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 247:
//C
this.state = 248;
;
 if (true) break;

case 248:
//C
this.state = 249;
;
 if (true) break;

case 249:
//C
this.state = 250;
;
 if (true) break;

case 250:
//C
this.state = 251;
;
 if (true) break;

case 251:
//C
this.state = 252;
;
 if (true) break;

case 252:
//C
this.state = 301;
;
 //BA.debugLineNum = 990;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 991;BA.debugLine="c2.Close";
parent._c2.Close();
 //BA.debugLineNum = 992;BA.debugLine="c3.Close";
_c3.Close();
 if (true) break;

case 254:
//C
this.state = 255;
 //BA.debugLineNum = 994;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a un des";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a un descuento de 70 pesos por la compra de mas de $350 en productos participantes"),BA.ObjectToCharSequence("Descuento disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 995;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 564;
return;
case 564:
//C
this.state = 255;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 996;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 255:
//if
this.state = 300;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 257;
}if (true) break;

case 257:
//C
this.state = 258;
 //BA.debugLineNum = 997;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.E";
parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS PIEZAS FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 998;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 258:
//if
this.state = 299;
if (parent._c.getRowCount()>0) { 
this.state = 260;
}if (true) break;

case 260:
//C
this.state = 261;
 //BA.debugLineNum = 999;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1000;BA.debugLine="Private des As Float = NumberFormat2(70/c.Get";
_des = (float)(Double.parseDouble(parent.__c.NumberFormat2(70/(double)(double)(Double.parseDouble(parent._c.GetString("PIEZAS"))),(int) (0),(int) (5),(int) (5),parent.__c.False)));
 //BA.debugLineNum = 1001;BA.debugLine="Log(des)";
parent.__c.LogImpl("414221742",BA.NumberToString(_des),0);
 //BA.debugLineNum = 1002;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt";
parent._c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU < ?",new String[]{BA.NumberToString(_des)})));
 //BA.debugLineNum = 1003;BA.debugLine="If c2.RowCount > 0 Then";
if (true) break;

case 261:
//if
this.state = 264;
if (parent._c2.getRowCount()>0) { 
this.state = 263;
}if (true) break;

case 263:
//C
this.state = 264;
 //BA.debugLineNum = 1004;BA.debugLine="c2.Position = 0";
parent._c2.setPosition((int) (0));
 //BA.debugLineNum = 1005;BA.debugLine="Log(c2.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221746",parent._c2.GetString("PE_CANT"),0);
 if (true) break;

case 264:
//C
this.state = 265;
;
 //BA.debugLineNum = 1007;BA.debugLine="Private c3 As Cursor = B4XPages.MainPage.skmt";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_des)})));
 //BA.debugLineNum = 1008;BA.debugLine="If c3.RowCount > 0 Then";
if (true) break;

case 265:
//if
this.state = 298;
if (_c3.getRowCount()>0) { 
this.state = 267;
}if (true) break;

case 267:
//C
this.state = 268;
 //BA.debugLineNum = 1009;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
 //BA.debugLineNum = 1010;BA.debugLine="Log(c3.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221751",_c3.GetString("PE_CANT"),0);
 //BA.debugLineNum = 1011;BA.debugLine="Private rec As Float = (des * c2.GetString(\"";
_rec = (float) ((_des*(double)(Double.parseDouble(parent._c2.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c3.GetString("PE_CANT"))));
 //BA.debugLineNum = 1012;BA.debugLine="Log( NumberFormat2(rec,0,2,2,False))";
parent.__c.LogImpl("414221753",parent.__c.NumberFormat2(_rec,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 1013;BA.debugLine="Private cantres As Float = des + rec";
_cantres = (float) (_des+_rec);
 //BA.debugLineNum = 1014;BA.debugLine="Log( NumberFormat2(cantres,0,2,2,False))";
parent.__c.LogImpl("414221755",parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 1015;BA.debugLine="Private c5 As Cursor = B4XPages.MainPage.skm";
_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU > ? and PE_COSTOU < ?",new String[]{BA.NumberToString(_des),BA.NumberToString(_cantres)})));
 //BA.debugLineNum = 1016;BA.debugLine="If c5.RowCount > 0 Then";
if (true) break;

case 268:
//if
this.state = 297;
if (_c5.getRowCount()>0) { 
this.state = 270;
}if (true) break;

case 270:
//C
this.state = 271;
 //BA.debugLineNum = 1017;BA.debugLine="c5.Position = 0";
_c5.setPosition((int) (0));
 //BA.debugLineNum = 1018;BA.debugLine="Log(c5.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221759",_c5.GetString("PE_CANT"),0);
 //BA.debugLineNum = 1019;BA.debugLine="If c5.GetString(\"PE_CANT\") = \"0\" Then";
if (true) break;

case 271:
//if
this.state = 296;
if ((_c5.GetString("PE_CANT")).equals("0")) { 
this.state = 273;
}else {
this.state = 283;
}if (true) break;

case 273:
//C
this.state = 274;
 //BA.debugLineNum = 1020;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.s";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)})));
 //BA.debugLineNum = 1021;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 274:
//if
this.state = 281;
if (_c4.getRowCount()>0) { 
this.state = 276;
}if (true) break;

case 276:
//C
this.state = 277;
 //BA.debugLineNum = 1022;BA.debugLine="For i = 0 To c4.RowCount -1";
if (true) break;

case 277:
//for
this.state = 280;
step379 = 1;
limit379 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
this.state = 565;
if (true) break;

case 565:
//C
this.state = 280;
if ((step379 > 0 && _i <= limit379) || (step379 < 0 && _i >= limit379)) this.state = 279;
if (true) break;

case 566:
//C
this.state = 565;
_i = ((int)(0 + _i + step379)) ;
if (true) break;

case 279:
//C
this.state = 566;
 //BA.debugLineNum = 1023;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
 //BA.debugLineNum = 1024;BA.debugLine="Private recalculo As Float = c4.GetStrin";
_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 1025;BA.debugLine="LogColor(recalculo,Colors.Blue)";
parent.__c.LogImpl("414221766",BA.NumberToString(_recalculo),parent.__c.Colors.Blue);
 //BA.debugLineNum = 1026;BA.debugLine="Private recalculototal As Float = c4.Get";
_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 1027;BA.debugLine="Log(recalculo&\"|||||\"&recalculototal&\"||";
parent.__c.LogImpl("414221768",BA.NumberToString(_recalculo)+"|||||"+BA.NumberToString(_recalculototal)+"|||||||||||||||||||"+_c4.GetString("PE_PROID"),0);
 //BA.debugLineNum = 1028;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE";
parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")}));
 if (true) break;
if (true) break;

case 280:
//C
this.state = 281;
;
 if (true) break;

case 281:
//C
this.state = 296;
;
 //BA.debugLineNum = 1031;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 283:
//C
this.state = 284;
 //BA.debugLineNum = 1033;BA.debugLine="Private c6 As Cursor = B4XPages.MainPage.s";
_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_cantres)})));
 //BA.debugLineNum = 1034;BA.debugLine="If c6.RowCount > 0 Then";
if (true) break;

case 284:
//if
this.state = 295;
if (_c6.getRowCount()>0) { 
this.state = 286;
}if (true) break;

case 286:
//C
this.state = 287;
 //BA.debugLineNum = 1035;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
 //BA.debugLineNum = 1036;BA.debugLine="Log(c6.GetString(\"PE_CANT\"))";
parent.__c.LogImpl("414221777",_c6.GetString("PE_CANT"),0);
 //BA.debugLineNum = 1037;BA.debugLine="Private rec1 As Float = (cantres * c5.Get";
_rec1 = (float) ((_cantres*(double)(Double.parseDouble(_c5.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c6.GetString("PE_CANT"))));
 //BA.debugLineNum = 1038;BA.debugLine="Log( NumberFormat2(rec1,0,2,2,False))";
parent.__c.LogImpl("414221779",parent.__c.NumberFormat2(_rec1,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 1039;BA.debugLine="Private cantres1 As Float = cantres + rec";
_cantres1 = (float) (_cantres+_rec1);
 //BA.debugLineNum = 1040;BA.debugLine="Log( NumberFormat2(cantres1,0,2,2,False))";
parent.__c.LogImpl("414221781",parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False),0);
 //BA.debugLineNum = 1041;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)})));
 //BA.debugLineNum = 1042;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 287:
//if
this.state = 294;
if (_c4.getRowCount()>0) { 
this.state = 289;
}if (true) break;

case 289:
//C
this.state = 290;
 //BA.debugLineNum = 1043;BA.debugLine="For i = 0 To c4.RowCount -1";
if (true) break;

case 290:
//for
this.state = 293;
step400 = 1;
limit400 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
this.state = 567;
if (true) break;

case 567:
//C
this.state = 293;
if ((step400 > 0 && _i <= limit400) || (step400 < 0 && _i >= limit400)) this.state = 292;
if (true) break;

case 568:
//C
this.state = 567;
_i = ((int)(0 + _i + step400)) ;
if (true) break;

case 292:
//C
this.state = 568;
 //BA.debugLineNum = 1044;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
 //BA.debugLineNum = 1045;BA.debugLine="Private recalculo As Float = c4.GetStri";
_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 1046;BA.debugLine="LogColor(recalculo,Colors.Blue)";
parent.__c.LogImpl("414221787",BA.NumberToString(_recalculo),parent.__c.Colors.Blue);
 //BA.debugLineNum = 1047;BA.debugLine="Private recalculototal As Float = c4.Ge";
_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False))));
 //BA.debugLineNum = 1049;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set P";
parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")}));
 if (true) break;
if (true) break;

case 293:
//C
this.state = 294;
;
 if (true) break;

case 294:
//C
this.state = 295;
;
 //BA.debugLineNum = 1052;BA.debugLine="c4.Close";
_c4.Close();
 if (true) break;

case 295:
//C
this.state = 296;
;
 if (true) break;

case 296:
//C
this.state = 297;
;
 if (true) break;

case 297:
//C
this.state = 298;
;
 if (true) break;

case 298:
//C
this.state = 299;
;
 if (true) break;

case 299:
//C
this.state = 300;
;
 if (true) break;

case 300:
//C
this.state = 301;
;
 //BA.debugLineNum = 1059;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 1060;BA.debugLine="c2.Close";
parent._c2.Close();
 //BA.debugLineNum = 1061;BA.debugLine="c3.Close";
_c3.Close();
 if (true) break;
;
 //BA.debugLineNum = 1063;BA.debugLine="If Not(Subs.traemontoprod)  Then";

case 301:
//if
this.state = 320;
if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba))) { 
this.state = 303;
}else {
this.state = 319;
}if (true) break;

case 303:
//C
this.state = 304;
 //BA.debugLineNum = 1064;BA.debugLine="If Not(Subs.traemontoprod2) Then";
if (true) break;

case 304:
//if
this.state = 317;
if (parent.__c.Not(parent._subs._traemontoprod2 /*boolean*/ (ba))) { 
this.state = 306;
}else {
this.state = 316;
}if (true) break;

case 306:
//C
this.state = 307;
 //BA.debugLineNum = 1065;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.skmt.";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND (PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"null"})));
 //BA.debugLineNum = 1066;BA.debugLine="If c4.RowCount > 0 Then";
if (true) break;

case 307:
//if
this.state = 314;
if (_c4.getRowCount()>0) { 
this.state = 309;
}if (true) break;

case 309:
//C
this.state = 310;
 //BA.debugLineNum = 1067;BA.debugLine="For i = 0 To c4.RowCount -1";
if (true) break;

case 310:
//for
this.state = 313;
step423 = 1;
limit423 = (int) (_c4.getRowCount()-1);
_i = (int) (0) ;
this.state = 569;
if (true) break;

case 569:
//C
this.state = 313;
if ((step423 > 0 && _i <= limit423) || (step423 < 0 && _i >= limit423)) this.state = 312;
if (true) break;

case 570:
//C
this.state = 569;
_i = ((int)(0 + _i + step423)) ;
if (true) break;

case 312:
//C
this.state = 570;
 //BA.debugLineNum = 1068;BA.debugLine="c4.Position = i";
_c4.setPosition(_i);
 //BA.debugLineNum = 1072;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"","",_c4.GetString("PE_PROID")}));
 if (true) break;
if (true) break;

case 313:
//C
this.state = 314;
;
 if (true) break;

case 314:
//C
this.state = 317;
;
 if (true) break;

case 316:
//C
this.state = 317;
 if (true) break;

case 317:
//C
this.state = 320;
;
 if (true) break;

case 319:
//C
this.state = 320;
 if (true) break;

case 320:
//C
this.state = 321;
;
 if (true) break;

case 321:
//C
this.state = 322;
;
 //BA.debugLineNum = 1083;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.ExecQ";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"})));
 //BA.debugLineNum = 1085;BA.debugLine="If s3.RowCount > 0 Then";
if (true) break;

case 322:
//if
this.state = 419;
if (_s3.getRowCount()>0) { 
this.state = 324;
}else if(_s3.getRowCount()==0) { 
this.state = 372;
}if (true) break;

case 324:
//C
this.state = 325;
 //BA.debugLineNum = 1087;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1088;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select iFNU";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"})));
 //BA.debugLineNum = 1089;BA.debugLine="s.Position=0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 1090;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Ex";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"","null"})));
 //BA.debugLineNum = 1091;BA.debugLine="s5.Position = 0";
_s5.setPosition((int) (0));
 //BA.debugLineNum = 1092;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 325:
//if
this.state = 370;
if (parent._c.getRowCount()>0) { 
this.state = 327;
}if (true) break;

case 327:
//C
this.state = 328;
 //BA.debugLineNum = 1093;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1094;BA.debugLine="Log(\">>>>>>  \" & c.GetString(\"CAT_CL_CODIGO\"))";
parent.__c.LogImpl("414221835",">>>>>>  "+parent._c.GetString("CAT_CL_CODIGO"),0);
 //BA.debugLineNum = 1095;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
parent._la_cuenta.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO")));
 //BA.debugLineNum = 1096;BA.debugLine="la_cuenta_gallina.Text = c.GetString(\"CAT_CL_CO";
parent._la_cuenta_gallina.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO")));
 //BA.debugLineNum = 1097;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
parent._la_nombre.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE")));
 //BA.debugLineNum = 1098;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \"";
parent._la_calle.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE")+" "+parent._c.GetString("CAT_CL_NOEXT")));
 //BA.debugLineNum = 1099;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
parent._la_col.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_COLONIA")));
 //BA.debugLineNum = 1100;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
parent._la_edo.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_EDO")));
 //BA.debugLineNum = 1101;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
parent._l_entre1.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE1")));
 //BA.debugLineNum = 1102;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
parent._l_entre2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE2")));
 //BA.debugLineNum = 1103;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
parent._l_atiende.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENDE1")));
 //BA.debugLineNum = 1104;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\"";
parent._l_atiende2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENTE2")));
 //BA.debugLineNum = 1105;BA.debugLine="telefono  = c.GetString(\"CAT_CL_TELEFONO\")";
parent._telefono = parent._c.GetString("CAT_CL_TELEFONO");
 //BA.debugLineNum = 1106;BA.debugLine="Label19.Text = c.GetString(\"CAT_CL_TELEFONO\")";
parent._label19.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_TELEFONO")));
 //BA.debugLineNum = 1107;BA.debugLine="BCREDITO = c.GetString(\"CAT_CL_BCREDITO\") '####";
parent._bcredito = parent._c.GetString("CAT_CL_BCREDITO");
 //BA.debugLineNum = 1109;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then";
if (true) break;

case 328:
//if
this.state = 333;
if (parent._s.GetString("TOTAL_CLIE")== null) { 
this.state = 330;
}else {
this.state = 332;
}if (true) break;

case 330:
//C
this.state = 333;
 //BA.debugLineNum = 1110;BA.debugLine="l_total.Text = 0";
parent._l_total.setText(BA.ObjectToCharSequence(0));
 if (true) break;

case 332:
//C
this.state = 333;
 //BA.debugLineNum = 1112;BA.debugLine="l_total.Text =NumberFormat2((s.GetString(\"TOTA";
parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))),(int) (0),(int) (2),(int) (2),parent.__c.False)));
 if (true) break;

case 333:
//C
this.state = 334;
;
 //BA.debugLineNum = 1114;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\") + s5.";
parent._total_cliente = BA.NumberToString((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE"))));
 //BA.debugLineNum = 1115;BA.debugLine="m_lat = \"0\"";
parent._m_lat = "0";
 //BA.debugLineNum = 1116;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat =";
if (true) break;

case 334:
//if
this.state = 339;
if ((parent._c.GetString("CAT_CL_LAT")).equals("") == false) { 
this.state = 336;
;}if (true) break;

case 336:
//C
this.state = 339;
parent._m_lat = parent._c.GetString("CAT_CL_LAT");
if (true) break;

case 339:
//C
this.state = 340;
;
 //BA.debugLineNum = 1117;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\"";
if (true) break;

case 340:
//if
this.state = 345;
if (parent._m_lat.length()<5) { 
this.state = 342;
;}if (true) break;

case 342:
//C
this.state = 345;
parent._m_lat = "0";
if (true) break;

case 345:
//C
this.state = 346;
;
 //BA.debugLineNum = 1118;BA.debugLine="m_lon = \"0\"";
parent._m_lon = "0";
 //BA.debugLineNum = 1119;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon";
if (true) break;

case 346:
//if
this.state = 351;
if ((parent._c.GetString("CAT_CL_LONG")).equals("") == false) { 
this.state = 348;
;}if (true) break;

case 348:
//C
this.state = 351;
parent._m_lon = parent._c.GetString("CAT_CL_LONG");
if (true) break;

case 351:
//C
this.state = 352;
;
 //BA.debugLineNum = 1120;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\"";
if (true) break;

case 352:
//if
this.state = 357;
if (parent._m_lon.length()<5) { 
this.state = 354;
;}if (true) break;

case 354:
//C
this.state = 357;
parent._m_lon = "0";
if (true) break;

case 357:
//C
this.state = 358;
;
 //BA.debugLineNum = 1121;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")";
parent._la_ruta = parent._c.GetString("CAT_CL_RUTA");
 //BA.debugLineNum = 1123;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\"";
if (true) break;

case 358:
//if
this.state = 369;
if ((parent._c.GetString("CAT_CL_NUM_SERIEFISICO")).equals("0")) { 
this.state = 360;
}else {
this.state = 368;
}if (true) break;

case 360:
//C
this.state = 361;
 //BA.debugLineNum = 1124;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\"";
parent._l_qr.setText(BA.ObjectToCharSequence("SIN CODIGO"));
 //BA.debugLineNum = 1125;BA.debugLine="L_QR.TextColor = Colors.Red";
parent._l_qr.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 1126;BA.debugLine="If ALMACEN <> \"32\" And ALMACEN <> \"33\" And ALM";
if (true) break;

case 361:
//if
this.state = 366;
if ((parent._almacen).equals("32") == false && (parent._almacen).equals("33") == false && (parent._almacen).equals(BA.NumberToString(6)) == false) { 
this.state = 363;
;}if (true) break;

case 363:
//C
this.state = 366;
parent._gest.setVisible(parent.__c.True && parent._tels.getVisible()==parent.__c.True);
if (true) break;

case 366:
//C
this.state = 369;
;
 //BA.debugLineNum = 1127;BA.debugLine="BT_QR.Visible = True";
parent._bt_qr.setVisible(parent.__c.True);
 if (true) break;

case 368:
//C
this.state = 369;
 //BA.debugLineNum = 1129;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISIC";
parent._l_qr.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NUM_SERIEFISICO")));
 //BA.debugLineNum = 1130;BA.debugLine="L_QR.TextColor = Colors.Blue";
parent._l_qr.setTextColor(parent.__c.Colors.Blue);
 //BA.debugLineNum = 1131;BA.debugLine="BT_QR.Visible = False";
parent._bt_qr.setVisible(parent.__c.False);
 if (true) break;

case 369:
//C
this.state = 370;
;
 if (true) break;

case 370:
//C
this.state = 419;
;
 //BA.debugLineNum = 1134;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 1135;BA.debugLine="s.Close";
parent._s.Close();
 if (true) break;

case 372:
//C
this.state = 373;
 //BA.debugLineNum = 1138;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1139;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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 FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1140;BA.debugLine="s.Position=0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 1141;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 373:
//if
this.state = 418;
if (parent._c.getRowCount()>0) { 
this.state = 375;
}if (true) break;

case 375:
//C
this.state = 376;
 //BA.debugLineNum = 1142;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1143;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
parent._la_cuenta.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO")));
 //BA.debugLineNum = 1144;BA.debugLine="la_cuenta_gallina.Text = c.GetString(\"CAT_CL_CO";
parent._la_cuenta_gallina.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO")));
 //BA.debugLineNum = 1145;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
parent._la_nombre.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE")));
 //BA.debugLineNum = 1146;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \"";
parent._la_calle.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE")+" "+parent._c.GetString("CAT_CL_NOEXT")));
 //BA.debugLineNum = 1147;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
parent._la_col.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_COLONIA")));
 //BA.debugLineNum = 1148;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
parent._la_edo.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_EDO")));
 //BA.debugLineNum = 1149;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
parent._l_entre1.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE1")));
 //BA.debugLineNum = 1150;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
parent._l_entre2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE2")));
 //BA.debugLineNum = 1151;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
parent._l_atiende.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENDE1")));
 //BA.debugLineNum = 1152;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\"";
parent._l_atiende2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENTE2")));
 //BA.debugLineNum = 1153;BA.debugLine="telefono  = c.GetString(\"CAT_CL_TELEFONO\")";
parent._telefono = parent._c.GetString("CAT_CL_TELEFONO");
 //BA.debugLineNum = 1154;BA.debugLine="Label19.Text = c.GetString(\"CAT_CL_TELEFONO\")";
parent._label19.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_TELEFONO")));
 //BA.debugLineNum = 1155;BA.debugLine="BCREDITO  = c.GetString(\"CAT_CL_BCREDITO\") '###";
parent._bcredito = parent._c.GetString("CAT_CL_BCREDITO");
 //BA.debugLineNum = 1158;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then";
if (true) break;

case 376:
//if
this.state = 381;
if (parent._s.GetString("TOTAL_CLIE")== null) { 
this.state = 378;
}else {
this.state = 380;
}if (true) break;

case 378:
//C
this.state = 381;
 //BA.debugLineNum = 1159;BA.debugLine="l_total.Text = 0";
parent._l_total.setText(BA.ObjectToCharSequence(0));
 if (true) break;

case 380:
//C
this.state = 381;
 //BA.debugLineNum = 1161;BA.debugLine="l_total.Text =NumberFormat2(s.GetString(\"TOTAL";
parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),parent.__c.False)));
 if (true) break;

case 381:
//C
this.state = 382;
;
 //BA.debugLineNum = 1163;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
parent._total_cliente = parent._s.GetString("TOTAL_CLIE");
 //BA.debugLineNum = 1164;BA.debugLine="m_lat = \"0\"";
parent._m_lat = "0";
 //BA.debugLineNum = 1165;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat =";
if (true) break;

case 382:
//if
this.state = 387;
if ((parent._c.GetString("CAT_CL_LAT")).equals("") == false) { 
this.state = 384;
;}if (true) break;

case 384:
//C
this.state = 387;
parent._m_lat = parent._c.GetString("CAT_CL_LAT");
if (true) break;

case 387:
//C
this.state = 388;
;
 //BA.debugLineNum = 1166;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\"";
if (true) break;

case 388:
//if
this.state = 393;
if (parent._m_lat.length()<5) { 
this.state = 390;
;}if (true) break;

case 390:
//C
this.state = 393;
parent._m_lat = "0";
if (true) break;

case 393:
//C
this.state = 394;
;
 //BA.debugLineNum = 1167;BA.debugLine="m_lon = \"0\"";
parent._m_lon = "0";
 //BA.debugLineNum = 1168;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon";
if (true) break;

case 394:
//if
this.state = 399;
if ((parent._c.GetString("CAT_CL_LONG")).equals("") == false) { 
this.state = 396;
;}if (true) break;

case 396:
//C
this.state = 399;
parent._m_lon = parent._c.GetString("CAT_CL_LONG");
if (true) break;

case 399:
//C
this.state = 400;
;
 //BA.debugLineNum = 1169;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\"";
if (true) break;

case 400:
//if
this.state = 405;
if (parent._m_lon.length()<5) { 
this.state = 402;
;}if (true) break;

case 402:
//C
this.state = 405;
parent._m_lon = "0";
if (true) break;

case 405:
//C
this.state = 406;
;
 //BA.debugLineNum = 1170;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")";
parent._la_ruta = parent._c.GetString("CAT_CL_RUTA");
 //BA.debugLineNum = 1172;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\"";
if (true) break;

case 406:
//if
this.state = 417;
if ((parent._c.GetString("CAT_CL_NUM_SERIEFISICO")).equals("0")) { 
this.state = 408;
}else {
this.state = 416;
}if (true) break;

case 408:
//C
this.state = 409;
 //BA.debugLineNum = 1173;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\"";
parent._l_qr.setText(BA.ObjectToCharSequence("SIN CODIGO"));
 //BA.debugLineNum = 1174;BA.debugLine="L_QR.TextColor = Colors.Red";
parent._l_qr.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 1175;BA.debugLine="If ALMACEN <> \"32\" And ALMACEN <> \"33\" And ALM";
if (true) break;

case 409:
//if
this.state = 414;
if ((parent._almacen).equals("32") == false && (parent._almacen).equals("33") == false && (parent._almacen).equals(BA.NumberToString(6)) == false) { 
this.state = 411;
;}if (true) break;

case 411:
//C
this.state = 414;
parent._gest.setVisible(parent.__c.True && parent._tels.getVisible()==parent.__c.True);
if (true) break;

case 414:
//C
this.state = 417;
;
 //BA.debugLineNum = 1176;BA.debugLine="BT_QR.Visible = True";
parent._bt_qr.setVisible(parent.__c.True);
 if (true) break;

case 416:
//C
this.state = 417;
 //BA.debugLineNum = 1178;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISIC";
parent._l_qr.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NUM_SERIEFISICO")));
 //BA.debugLineNum = 1179;BA.debugLine="L_QR.TextColor = Colors.Blue";
parent._l_qr.setTextColor(parent.__c.Colors.Blue);
 //BA.debugLineNum = 1180;BA.debugLine="BT_QR.Visible = False";
parent._bt_qr.setVisible(parent.__c.False);
 if (true) break;

case 417:
//C
this.state = 418;
;
 if (true) break;

case 418:
//C
this.state = 419;
;
 //BA.debugLineNum = 1183;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 1184;BA.debugLine="s.Close";
parent._s.Close();
 if (true) break;

case 419:
//C
this.state = 420;
;
 //BA.debugLineNum = 1188;BA.debugLine="Starter.idCliente = la_cuenta.text";
parent._starter._idcliente /*String*/  = parent._la_cuenta.getText();
 //BA.debugLineNum = 1189;BA.debugLine="c = skmt.ExecQuery(\"SELECT CAT_VA_VALOR FROM CAT_";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'GEOCERCA'")));
 //BA.debugLineNum = 1190;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 420:
//if
this.state = 423;
if (parent._c.getRowCount()>0) { 
this.state = 422;
}if (true) break;

case 422:
//C
this.state = 423;
 //BA.debugLineNum = 1191;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1192;BA.debugLine="Dim geo As String = c.GetString(\"CAT_VA_VALOR\")";
_geo = parent._c.GetString("CAT_VA_VALOR");
 if (true) break;

case 423:
//C
this.state = 424;
;
 //BA.debugLineNum = 1194;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 1196;BA.debugLine="If geo = \"0\" Then";
if (true) break;

case 424:
//if
this.state = 443;
if ((_geo).equals("0")) { 
this.state = 426;
}else if((_geo).equals("1") && parent._distance>100) { 
this.state = 438;
}if (true) break;

case 426:
//C
this.state = 427;
 //BA.debugLineNum = 1197;BA.debugLine="gest.Visible = True";
parent._gest.setVisible(parent.__c.True);
 //BA.debugLineNum = 1198;BA.debugLine="Tels.Visible = True";
parent._tels.setVisible(parent.__c.True);
 //BA.debugLineNum = 1199;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1200;BA.debugLine="If future.RowCount > 0 Then";
if (true) break;

case 427:
//if
this.state = 436;
if (_future.getRowCount()>0) { 
this.state = 429;
}if (true) break;

case 429:
//C
this.state = 430;
 //BA.debugLineNum = 1201;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1202;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (true) break;

case 430:
//if
this.state = 435;
if (_future.GetInt("CAT_VA_VALOR")==1) { 
this.state = 432;
}else if(_future.GetInt("CAT_VA_VALOR")==0) { 
this.state = 434;
}if (true) break;

case 432:
//C
this.state = 435;
 //BA.debugLineNum = 1203;BA.debugLine="b_preventa2.Visible = True";
parent._b_preventa2.setVisible(parent.__c.True);
 if (true) break;

case 434:
//C
this.state = 435;
 //BA.debugLineNum = 1205;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 if (true) break;

case 435:
//C
this.state = 436;
;
 if (true) break;

case 436:
//C
this.state = 443;
;
 //BA.debugLineNum = 1209;BA.debugLine="precision = \"1\"";
parent._precision = "1";
 if (true) break;

case 438:
//C
this.state = 439;
 //BA.debugLineNum = 1212;BA.debugLine="gest.Visible = False";
parent._gest.setVisible(parent.__c.False);
 //BA.debugLineNum = 1213;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 //BA.debugLineNum = 1214;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 1215;BA.debugLine="If b_Inicio_Fin_venta.IsInitialized Then";
if (true) break;

case 439:
//if
this.state = 442;
if (parent._b_inicio_fin_venta.IsInitialized()) { 
this.state = 441;
}if (true) break;

case 441:
//C
this.state = 442;
 //BA.debugLineNum = 1217;BA.debugLine="b_Inicio_Fin_venta.Visible = False";
parent._b_inicio_fin_venta.setVisible(parent.__c.False);
 if (true) break;

case 442:
//C
this.state = 443;
;
 if (true) break;

case 443:
//C
this.state = 444;
;
 //BA.debugLineNum = 1221;BA.debugLine="gest.Typeface =Typeface.CreateNew(Typeface.FONTAW";
parent._gest.setTypeface(parent.__c.Typeface.CreateNew(parent.__c.Typeface.getFONTAWESOME(),parent.__c.Typeface.STYLE_BOLD));
 //BA.debugLineNum = 1222;BA.debugLine="gest.Text = \"  Preventa\"";
parent._gest.setText(BA.ObjectToCharSequence("  Preventa"));
 //BA.debugLineNum = 1223;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Then gest.Tex";
if (true) break;

case 444:
//if
this.state = 449;
if ((parent._subs._traetipoventadebd /*String*/ (ba)).equals("VENTA")) { 
this.state = 446;
;}if (true) break;

case 446:
//C
this.state = 449;
parent._gest.setText(BA.ObjectToCharSequence("  Venta"));
if (true) break;

case 449:
//C
this.state = 450;
;
 //BA.debugLineNum = 1225;BA.debugLine="If la_cuenta.Text.trim = \"0\" Then gest.Text = \"Ca";
if (true) break;

case 450:
//if
this.state = 455;
if ((parent._la_cuenta.getText().trim()).equals("0")) { 
this.state = 452;
;}if (true) break;

case 452:
//C
this.state = 455;
parent._gest.setText(BA.ObjectToCharSequence("Carga Abordo"));
if (true) break;

case 455:
//C
this.state = 456;
;
 //BA.debugLineNum = 1227;BA.debugLine="Log(Subs.traeRuta)";
parent.__c.LogImpl("414221968",parent._subs._traeruta /*String*/ (ba),0);
 //BA.debugLineNum = 1228;BA.debugLine="If Subs.hayPedido Then";
if (true) break;

case 456:
//if
this.state = 461;
if (parent._subs._haypedido /*boolean*/ (ba)) { 
this.state = 458;
}else {
this.state = 460;
}if (true) break;

case 458:
//C
this.state = 461;
 //BA.debugLineNum = 1229;BA.debugLine="B_IMP.Enabled = True";
parent._b_imp.setEnabled(parent.__c.True);
 //BA.debugLineNum = 1230;BA.debugLine="b_enviarTicket.Enabled = False";
parent._b_enviarticket.setEnabled(parent.__c.False);
 if (true) break;

case 460:
//C
this.state = 461;
 //BA.debugLineNum = 1232;BA.debugLine="B_IMP.Enabled = False";
parent._b_imp.setEnabled(parent.__c.False);
 //BA.debugLineNum = 1233;BA.debugLine="b_enviarTicket.Enabled = False";
parent._b_enviarticket.setEnabled(parent.__c.False);
 if (true) break;
;
 //BA.debugLineNum = 1236;BA.debugLine="If ALMACEN = 46 Or ALMACEN = 6 Then";

case 461:
//if
this.state = 478;
if ((parent._almacen).equals(BA.NumberToString(46)) || (parent._almacen).equals(BA.NumberToString(6))) { 
this.state = 463;
}else {
this.state = 477;
}if (true) break;

case 463:
//C
this.state = 464;
 //BA.debugLineNum = 1237;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IfNull(PL_BAN";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IfNull(PL_BANDERA, 0) AS PL_BANDERA FROM PLAN_LEALTAD WHERE PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 1238;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 464:
//if
this.state = 475;
if (parent._c.getRowCount()>0) { 
this.state = 466;
}else {
this.state = 474;
}if (true) break;

case 466:
//C
this.state = 467;
 //BA.debugLineNum = 1239;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1240;BA.debugLine="If c.GetString(\"PL_BANDERA\") = 0 Then";
if (true) break;

case 467:
//if
this.state = 472;
if ((parent._c.GetString("PL_BANDERA")).equals(BA.NumberToString(0))) { 
this.state = 469;
}else {
this.state = 471;
}if (true) break;

case 469:
//C
this.state = 472;
 //BA.debugLineNum = 1241;BA.debugLine="btnPlanLealtad.Visible = True";
parent._btnplanlealtad.setVisible(parent.__c.True);
 if (true) break;

case 471:
//C
this.state = 472;
 //BA.debugLineNum = 1243;BA.debugLine="btnPlanLealtad.Visible = False";
parent._btnplanlealtad.setVisible(parent.__c.False);
 if (true) break;

case 472:
//C
this.state = 475;
;
 if (true) break;

case 474:
//C
this.state = 475;
 //BA.debugLineNum = 1246;BA.debugLine="btnPlanLealtad.Visible = True";
parent._btnplanlealtad.setVisible(parent.__c.True);
 if (true) break;

case 475:
//C
this.state = 478;
;
 if (true) break;

case 477:
//C
this.state = 478;
 //BA.debugLineNum = 1249;BA.debugLine="btnPlanLealtad.Visible = False";
parent._btnplanlealtad.setVisible(parent.__c.False);
 if (true) break;
;
 //BA.debugLineNum = 1260;BA.debugLine="If ALMACEN = 88 Then";

case 478:
//if
this.state = 511;
if ((parent._almacen).equals(BA.NumberToString(88))) { 
this.state = 480;
}if (true) break;

case 480:
//C
this.state = 481;
 //BA.debugLineNum = 1261;BA.debugLine="If Not(Subs.TraeMontoProd) Then";
if (true) break;

case 481:
//if
this.state = 510;
if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba))) { 
this.state = 483;
}if (true) break;

case 483:
//C
this.state = 484;
 //BA.debugLineNum = 1262;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fr";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where  pe_cedis = 'MYKONOS_01' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._tipo_venta)}));
 //BA.debugLineNum = 1264;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Exe";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"})));
 //BA.debugLineNum = 1266;BA.debugLine="If s3.RowCount > 0 Then";
if (true) break;

case 484:
//if
this.state = 509;
if (_s3.getRowCount()>0) { 
this.state = 486;
}else {
this.state = 498;
}if (true) break;

case 486:
//C
this.state = 487;
 //BA.debugLineNum = 1267;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1268;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select iF";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"})));
 //BA.debugLineNum = 1269;BA.debugLine="s.Position=0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 1270;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"","null"})));
 //BA.debugLineNum = 1271;BA.debugLine="s5.Position = 0";
_s5.setPosition((int) (0));
 //BA.debugLineNum = 1272;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 487:
//if
this.state = 496;
if (parent._c.getRowCount()>0) { 
this.state = 489;
}if (true) break;

case 489:
//C
this.state = 490;
 //BA.debugLineNum = 1273;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1274;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then";
if (true) break;

case 490:
//if
this.state = 495;
if (parent._s.GetString("TOTAL_CLIE")== null) { 
this.state = 492;
}else {
this.state = 494;
}if (true) break;

case 492:
//C
this.state = 495;
 //BA.debugLineNum = 1275;BA.debugLine="l_total.Text = 0";
parent._l_total.setText(BA.ObjectToCharSequence(0));
 if (true) break;

case 494:
//C
this.state = 495;
 //BA.debugLineNum = 1277;BA.debugLine="l_total.Text =NumberFormat2((s.GetString(\"TO";
parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))),(int) (0),(int) (2),(int) (2),parent.__c.False)));
 if (true) break;

case 495:
//C
this.state = 496;
;
 //BA.debugLineNum = 1279;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\") + s";
parent._total_cliente = BA.NumberToString((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE"))));
 if (true) break;

case 496:
//C
this.state = 509;
;
 if (true) break;

case 498:
//C
this.state = 499;
 //BA.debugLineNum = 1282;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1283;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.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 FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1284;BA.debugLine="s.Position=0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 1285;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 499:
//if
this.state = 508;
if (parent._c.getRowCount()>0) { 
this.state = 501;
}if (true) break;

case 501:
//C
this.state = 502;
 //BA.debugLineNum = 1286;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1287;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then";
if (true) break;

case 502:
//if
this.state = 507;
if (parent._s.GetString("TOTAL_CLIE")== null) { 
this.state = 504;
}else {
this.state = 506;
}if (true) break;

case 504:
//C
this.state = 507;
 //BA.debugLineNum = 1288;BA.debugLine="l_total.Text = 0";
parent._l_total.setText(BA.ObjectToCharSequence(0));
 if (true) break;

case 506:
//C
this.state = 507;
 //BA.debugLineNum = 1290;BA.debugLine="l_total.Text =NumberFormat2(s.GetString(\"TOT";
parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),parent.__c.False)));
 if (true) break;

case 507:
//C
this.state = 508;
;
 //BA.debugLineNum = 1292;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
parent._total_cliente = parent._s.GetString("TOTAL_CLIE");
 if (true) break;

case 508:
//C
this.state = 509;
;
 if (true) break;

case 509:
//C
this.state = 510;
;
 if (true) break;

case 510:
//C
this.state = 511;
;
 if (true) break;

case 511:
//C
this.state = 512;
;
 //BA.debugLineNum = 1298;BA.debugLine="Log(\"============================================";
parent.__c.LogImpl("414222039","============================================================",0);
 //BA.debugLineNum = 1299;BA.debugLine="Log(\"============================================";
parent.__c.LogImpl("414222040","============================================================",0);
 //BA.debugLineNum = 1300;BA.debugLine="Log(\"============================================";
parent.__c.LogImpl("414222041","============================================================",0);
 //BA.debugLineNum = 1302;BA.debugLine="l_total.Text = Subs.calculaTotalConPromoXRango(Su";
parent._l_total.setText(BA.ObjectToCharSequence(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))));
 //BA.debugLineNum = 1305;BA.debugLine="SV_ENCUESTA.Visible = False";
parent._sv_encuesta.setVisible(parent.__c.False);
 //BA.debugLineNum = 1306;BA.debugLine="P_gallina.Visible = False";
parent._p_gallina.setVisible(parent.__c.False);
 //BA.debugLineNum = 1307;BA.debugLine="p_pregunta1.Visible = False";
parent._p_pregunta1.setVisible(parent.__c.False);
 //BA.debugLineNum = 1308;BA.debugLine="p_camara.Visible = False";
parent._p_camara.setVisible(parent.__c.False);
 //BA.debugLineNum = 1309;BA.debugLine="Panel2.Visible = False";
parent._panel2.setVisible(parent.__c.False);
 //BA.debugLineNum = 1310;BA.debugLine="p_comentario.Visible = False";
parent._p_comentario.setVisible(parent.__c.False);
 //BA.debugLineNum = 1311;BA.debugLine="p_transparenteTicketImpreso.Visible = False";
parent._p_transparenteticketimpreso.setVisible(parent.__c.False);
 //BA.debugLineNum = 1312;BA.debugLine="p_encuesta.Visible = False";
parent._p_encuesta.setVisible(parent.__c.False);
 //BA.debugLineNum = 1313;BA.debugLine="pnlPlanLealtad.Visible = False";
parent._pnlplanlealtad.setVisible(parent.__c.False);
 //BA.debugLineNum = 1314;BA.debugLine="Panel10.Visible = False";
parent._panel10.setVisible(parent.__c.False);
 //BA.debugLineNum = 1315;BA.debugLine="p_transparentePDF.Visible = False";
parent._p_transparentepdf.setVisible(parent.__c.False);
 //BA.debugLineNum = 1316;BA.debugLine="CH_FACTURA.Checked = False";
parent._ch_factura.setChecked(parent.__c.False);
 //BA.debugLineNum = 1317;BA.debugLine="Dim fac As Cursor=B4XPages.MainPage.skmt.ExecQuer";
_fac = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fac = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select ifnull(SUM(PE_COSTO_TOT), 0)  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))")));
 //BA.debugLineNum = 1318;BA.debugLine="fac.Position = 0";
_fac.setPosition((int) (0));
 //BA.debugLineNum = 1319;BA.debugLine="Private factura As String = 0";
_factura = BA.NumberToString(0);
 //BA.debugLineNum = 1320;BA.debugLine="If fac.GetString(\"PC_FACTURA\") <> Null And IsNumb";
if (true) break;

case 512:
//if
this.state = 517;
if (_fac.GetString("PC_FACTURA")!= null && parent.__c.IsNumber(_fac.GetString("PC_FACTURA"))) { 
this.state = 514;
;}if (true) break;

case 514:
//C
this.state = 517;
_factura = _fac.GetString("PC_FACTURA");
if (true) break;

case 517:
//C
this.state = 518;
;
 //BA.debugLineNum = 1321;BA.debugLine="If factura = \"1\" Then CH_FACTURA.Checked = True";
if (true) break;

case 518:
//if
this.state = 523;
if ((_factura).equals("1")) { 
this.state = 520;
;}if (true) break;

case 520:
//C
this.state = 523;
parent._ch_factura.setChecked(parent.__c.True);
if (true) break;

case 523:
//C
this.state = 524;
;
 //BA.debugLineNum = 1324;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1325;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 1326;BA.debugLine="If c.GetInt(\"CAT_CL_BCREDITO\") = 1 Then";
if (true) break;

case 524:
//if
this.state = 541;
if (parent._c.GetInt("CAT_CL_BCREDITO")==1) { 
this.state = 526;
}else if(parent._c.GetInt("CAT_CL_BCREDITO")==0) { 
this.state = 540;
}if (true) break;

case 526:
//C
this.state = 527;
 //BA.debugLineNum = 1328;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt";
_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 1329;BA.debugLine="If pagarepen.RowCount > 0 Then";
if (true) break;

case 527:
//if
this.state = 538;
if (_pagarepen.getRowCount()>0) { 
this.state = 529;
}else {
this.state = 537;
}if (true) break;

case 529:
//C
this.state = 530;
 //BA.debugLineNum = 1330;BA.debugLine="pagarepen.Position = 0";
_pagarepen.setPosition((int) (0));
 //BA.debugLineNum = 1331;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 1332;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString";
_fechainicio = _pagarepen.GetString("FECHA");
 //BA.debugLineNum = 1334;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))";
parent.__c.LogImpl("414222075",_pagarepen.GetString("FECHA"),0);
 //BA.debugLineNum = 1336;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fe";
_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio);
 //BA.debugLineNum = 1337;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateT";
_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()));
 //BA.debugLineNum = 1340;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIn";
_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay);
 //BA.debugLineNum = 1343;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)";
parent.__c.LogImpl("414222084",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0);
 //BA.debugLineNum = 1345;BA.debugLine="Dim c4 As Cursor=B4XPages.MainPage.skmt.ExecQue";
_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1346;BA.debugLine="c4.Position = 0";
_c4.setPosition((int) (0));
 //BA.debugLineNum = 1348;BA.debugLine="If DiferenciaDias <= c4.GetInt(\"CAT_CL_DIASCRED";
if (true) break;

case 530:
//if
this.state = 535;
if (_diferenciadias<=_c4.GetInt("CAT_CL_DIASCREDITO")+1) { 
this.state = 532;
}else if(_diferenciadias>_c4.GetInt("CAT_CL_DIASCREDITO")+1) { 
this.state = 534;
}if (true) break;

case 532:
//C
this.state = 535;
 //BA.debugLineNum = 1349;BA.debugLine="l_credito.Color = Colors.Green";
parent._l_credito.setColor(parent.__c.Colors.Green);
 //BA.debugLineNum = 1350;BA.debugLine="l_limite.Color = Colors.Green";
parent._l_limite.setColor(parent.__c.Colors.Green);
 if (true) break;

case 534:
//C
this.state = 535;
 //BA.debugLineNum = 1352;BA.debugLine="l_credito.Color = Colors.Red";
parent._l_credito.setColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 1353;BA.debugLine="l_limite.Color = Colors.Red";
parent._l_limite.setColor(parent.__c.Colors.Red);
 if (true) break;

case 535:
//C
this.state = 538;
;
 if (true) break;

case 537:
//C
this.state = 538;
 //BA.debugLineNum = 1356;BA.debugLine="l_credito.Color = Colors.Transparent";
parent._l_credito.setColor(parent.__c.Colors.Transparent);
 //BA.debugLineNum = 1357;BA.debugLine="l_limite.Color = Colors.Transparent";
parent._l_limite.setColor(parent.__c.Colors.Transparent);
 if (true) break;

case 538:
//C
this.state = 541;
;
 //BA.debugLineNum = 1359;BA.debugLine="l_credito.Visible = True";
parent._l_credito.setVisible(parent.__c.True);
 //BA.debugLineNum = 1360;BA.debugLine="l_limite.Visible = True";
parent._l_limite.setVisible(parent.__c.True);
 //BA.debugLineNum = 1361;BA.debugLine="l_limite.Text = c.GetInt(\"CAT_CL_LIMITECREDITO\"";
parent._l_limite.setText(BA.ObjectToCharSequence(parent._c.GetInt("CAT_CL_LIMITECREDITO")));
 if (true) break;

case 540:
//C
this.state = 541;
 //BA.debugLineNum = 1363;BA.debugLine="l_credito.Visible = False";
parent._l_credito.setVisible(parent.__c.False);
 //BA.debugLineNum = 1364;BA.debugLine="l_limite.Visible = False";
parent._l_limite.setVisible(parent.__c.False);
 if (true) break;

case 541:
//C
this.state = 542;
;
 //BA.debugLineNum = 1368;BA.debugLine="Tels.Visible = False";
parent._tels.setVisible(parent.__c.False);
 //BA.debugLineNum = 1369;BA.debugLine="gest.Visible = False";
parent._gest.setVisible(parent.__c.False);
 //BA.debugLineNum = 1370;BA.debugLine="b_preventa2.Visible = False";
parent._b_preventa2.setVisible(parent.__c.False);
 //BA.debugLineNum = 1372;BA.debugLine="Dim coloressaldo As Cursor=B4XPages.MainPage.skmt";
_coloressaldo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coloressaldo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_CLASIFICADOR3,0) AS CAT_CL_CLASIFICADOR3, IFNULL(CAT_CL_CLASIFICADOR4,0) AS CAT_CL_CLASIFICADOR4, IFNULL(CAT_CL_CLASIFICADOR2,'') AS CAT_CL_CLASIFICADOR2 from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 1373;BA.debugLine="coloressaldo.Position = 0";
_coloressaldo.setPosition((int) (0));
 //BA.debugLineNum = 1374;BA.debugLine="la_saldooper.Text = NumberFormat2(coloressaldo.Ge";
parent._la_saldooper.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(_coloressaldo.GetDouble("CAT_CL_CLASIFICADOR3"),(int) (0),(int) (0),(int) (0),parent.__c.False)));
 //BA.debugLineNum = 1375;BA.debugLine="l_cajetillas.Text = NumberFormat2(coloressaldo.Ge";
parent._l_cajetillas.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(_coloressaldo.GetDouble("CAT_CL_CLASIFICADOR4"),(int) (0),(int) (0),(int) (0),parent.__c.False)));
 //BA.debugLineNum = 1376;BA.debugLine="l_animal.Text = coloressaldo.GetString(\"CAT_CL_CL";
parent._l_animal.setText(BA.ObjectToCharSequence(_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")));
 //BA.debugLineNum = 1377;BA.debugLine="If coloressaldo.GetString(\"CAT_CL_CLASIFICADOR2\")";
if (true) break;

case 542:
//if
this.state = 553;
if ((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Chimpancé KIN")) { 
this.state = 544;
}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Delfín Niky")) { 
this.state = 546;
}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Tortuga KOPI")) { 
this.state = 548;
}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Lechuza MON")) { 
this.state = 550;
}else {
this.state = 552;
}if (true) break;

case 544:
//C
this.state = 553;
 //BA.debugLineNum = 1378;BA.debugLine="l_animal.Color = Colors.RGB(84,255,172)";
parent._l_animal.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (172)));
 //BA.debugLineNum = 1379;BA.debugLine="Label22.Color = Colors.RGB(84,255,172)";
parent._label22.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (172)));
 if (true) break;

case 546:
//C
this.state = 553;
 //BA.debugLineNum = 1381;BA.debugLine="l_animal.Color = Colors.RGB(84,255,245)";
parent._l_animal.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (245)));
 //BA.debugLineNum = 1382;BA.debugLine="Label22.Color = Colors.RGB(84,255,245)";
parent._label22.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (245)));
 if (true) break;

case 548:
//C
this.state = 553;
 //BA.debugLineNum = 1384;BA.debugLine="l_animal.Color = Colors.RGB(255,123,84)";
parent._l_animal.setColor(parent.__c.Colors.RGB((int) (255),(int) (123),(int) (84)));
 //BA.debugLineNum = 1385;BA.debugLine="Label22.Color = Colors.RGB(255,123,84)";
parent._label22.setColor(parent.__c.Colors.RGB((int) (255),(int) (123),(int) (84)));
 if (true) break;

case 550:
//C
this.state = 553;
 //BA.debugLineNum = 1387;BA.debugLine="l_animal.Color = Colors.RGB(255,250,140)";
parent._l_animal.setColor(parent.__c.Colors.RGB((int) (255),(int) (250),(int) (140)));
 //BA.debugLineNum = 1388;BA.debugLine="Label22.Color = Colors.RGB(255,250,140)";
parent._label22.setColor(parent.__c.Colors.RGB((int) (255),(int) (250),(int) (140)));
 if (true) break;

case 552:
//C
this.state = 553;
 //BA.debugLineNum = 1390;BA.debugLine="l_animal.Color = Colors.Transparent";
parent._l_animal.setColor(parent.__c.Colors.Transparent);
 //BA.debugLineNum = 1391;BA.debugLine="Label22.Color = Colors.Transparent";
parent._label22.setColor(parent.__c.Colors.Transparent);
 if (true) break;

case 553:
//C
this.state = -1;
;
 //BA.debugLineNum = 1396;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b4xpage_permissionresult(String _permission,boolean _resultc) throws Exception{
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest() throws Exception{
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
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(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = 1;
 //BA.debugLineNum = 3245;BA.debugLine="cuest.encuestaIniciada = False";
parent._cuest._encuestainiciada /*boolean*/  = parent.__c.False;
 //BA.debugLineNum = 3246;BA.debugLine="cuest.ocultPanelPregunta";
parent._cuest._ocultpanelpregunta /*String*/ ();
 //BA.debugLineNum = 3247;BA.debugLine="If bitacora.p_transparenteInicioFin2.Visible And";
if (true) break;

case 1:
//if
this.state = 18;
if (parent._bitacora._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible() && (parent._bitacora._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText()).equals("TERMINAR VISITA")) { 
this.state = 3;
}else if(parent._subs._haypedido /*boolean*/ (ba)) { 
this.state = 5;
}else if(parent._p_encuesta.getVisible()) { 
this.state = 7;
}else if(parent._scv_bat.getVisible()) { 
this.state = 9;
}else if(parent._p_camara.getVisible()) { 
this.state = 11;
}else if(parent._p_pregunta1.getVisible()) { 
this.state = 13;
}else if(parent._sv_encuesta.getVisible()) { 
this.state = 15;
}else {
this.state = 17;
}if (true) break;

case 3:
//C
this.state = 18;
 //BA.debugLineNum = 3248;BA.debugLine="ToastMessageShow(\"Por favor presione el botón de";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor presione el botón de TERMINAR VISITA"),parent.__c.True);
 //BA.debugLineNum = 3249;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 5:
//C
this.state = 18;
 //BA.debugLineNum = 3251;BA.debugLine="ToastMessageShow(\"Por favor presione el botón de";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor presione el botón de GUARDAR"),parent.__c.True);
 //BA.debugLineNum = 3252;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 7:
//C
this.state = 18;
 //BA.debugLineNum = 3254;BA.debugLine="p_encuesta.Visible = False";
parent._p_encuesta.setVisible(parent.__c.False);
 if (true) break;

case 9:
//C
this.state = 18;
 //BA.debugLineNum = 3256;BA.debugLine="scv_bat.Visible = False";
parent._scv_bat.setVisible(parent.__c.False);
 if (true) break;

case 11:
//C
this.state = 18;
 //BA.debugLineNum = 3258;BA.debugLine="p_camara.Visible = False";
parent._p_camara.setVisible(parent.__c.False);
 //BA.debugLineNum = 3259;BA.debugLine="StopCamera2";
parent._stopcamera2();
 //BA.debugLineNum = 3260;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 13:
//C
this.state = 18;
 //BA.debugLineNum = 3262;BA.debugLine="p_pregunta1.Visible = False";
parent._p_pregunta1.setVisible(parent.__c.False);
 if (true) break;

case 15:
//C
this.state = 18;
 //BA.debugLineNum = 3264;BA.debugLine="SV_ENCUESTA.visible = False";
parent._sv_encuesta.setVisible(parent.__c.False);
 //BA.debugLineNum = 3265;BA.debugLine="p_cliente.Visible = True";
parent._p_cliente.setVisible(parent.__c.True);
 if (true) break;

case 17:
//C
this.state = 18;
 //BA.debugLineNum = 3268;BA.debugLine="Starter.enCliente = False";
parent._starter._encliente /*boolean*/  = parent.__c.False;
 //BA.debugLineNum = 3269;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
parent._b4xpages._showpage /*String*/ (ba,"Clientes");
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
 //BA.debugLineNum = 508;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 509;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 512;BA.debugLine="Root.LoadLayout(\"cliente\")";
_root.LoadLayout("cliente",ba);
 //BA.debugLineNum = 513;BA.debugLine="ruta = File.DirInternal";
_ruta = __c.File.getDirInternal();
 //BA.debugLineNum = 514;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { 
 //BA.debugLineNum = 515;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");
 };
 //BA.debugLineNum = 517;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
_skmt.Initialize(_ruta,"kmt.db",__c.True);
 //BA.debugLineNum = 518;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.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  from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 519;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.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 FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 520;BA.debugLine="s.Position=0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 521;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 522;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 523;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")));
 //BA.debugLineNum = 524;BA.debugLine="cuenta = c.GetString(\"CAT_CL_CODIGO\")";
_cuenta = _c.GetString("CAT_CL_CODIGO");
 //BA.debugLineNum = 525;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE")));
 //BA.debugLineNum = 526;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.";
_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT")));
 //BA.debugLineNum = 527;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA")));
 //BA.debugLineNum = 528;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO")));
 //BA.debugLineNum = 530;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1")));
 //BA.debugLineNum = 531;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2")));
 //BA.debugLineNum = 532;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1")));
 //BA.debugLineNum = 533;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2")));
 //BA.debugLineNum = 534;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\"";
_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO")));
 //BA.debugLineNum = 535;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL")));
 //BA.debugLineNum = 536;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
_l_total.setText(BA.ObjectToCharSequence(_s.GetString("TOTAL_CLIE")));
 //BA.debugLineNum = 537;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
_total_cliente = _s.GetString("TOTAL_CLIE");
 //BA.debugLineNum = 538;BA.debugLine="MONTO_COMPRA = c.GetString(\"CAT_CL_MTOCOMPRA\")";
_monto_compra = _c.GetString("CAT_CL_MTOCOMPRA");
 };
 //BA.debugLineNum = 540;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 541;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 542;BA.debugLine="File.Copy(File.DirAssets,\"guna-fondo.jpg\",xui.Def";
__c.File.Copy(__c.File.getDirAssets(),"guna-fondo.jpg",_xui.getDefaultFolder(),"guna-fondo.jpg");
 //BA.debugLineNum = 543;BA.debugLine="TOMAR_FOTO = 0";
_tomar_foto = BA.NumberToString(0);
 //BA.debugLineNum = 544;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
_btadmin.Initialize(ba,"BlueTeeth");
 //BA.debugLineNum = 545;BA.debugLine="cmp20.Initialize(\"Printer\")";
_cmp20.Initialize("Printer");
 //BA.debugLineNum = 546;BA.debugLine="SV_ENCUESTA.Height = Root.Height";
_sv_encuesta.setHeight(_root.getHeight());
 //BA.debugLineNum = 547;BA.debugLine="SV_ENCUESTA.Width = Root.Height";
_sv_encuesta.setWidth(_root.getHeight());
 //BA.debugLineNum = 548;BA.debugLine="p_pregunta1.Height = Root.Height";
_p_pregunta1.setHeight(_root.getHeight());
 //BA.debugLineNum = 549;BA.debugLine="p_pregunta1.Width = Root.Height";
_p_pregunta1.setWidth(_root.getHeight());
 //BA.debugLineNum = 550;BA.debugLine="p_transparenteTicketImpreso.Left = 0 : p_transpar";
_p_transparenteticketimpreso.setLeft((int) (0));
 //BA.debugLineNum = 550;BA.debugLine="p_transparenteTicketImpreso.Left = 0 : p_transpar";
_p_transparenteticketimpreso.setTop((int) (0));
 //BA.debugLineNum = 551;BA.debugLine="p_transparentePDF.Left = 0 : p_transparentePDF.to";
_p_transparentepdf.setLeft((int) (0));
 //BA.debugLineNum = 551;BA.debugLine="p_transparentePDF.Left = 0 : p_transparentePDF.to";
_p_transparentepdf.setTop((int) (0));
 //BA.debugLineNum = 552;BA.debugLine="p_transparenteTicketImpreso.Width = Root.Width :";
_p_transparenteticketimpreso.setWidth(_root.getWidth());
 //BA.debugLineNum = 552;BA.debugLine="p_transparenteTicketImpreso.Width = Root.Width :";
_p_transparenteticketimpreso.setHeight(_root.getHeight());
 //BA.debugLineNum = 553;BA.debugLine="p_transparentePDF.Width = Root.Width : p_transpar";
_p_transparentepdf.setWidth(_root.getWidth());
 //BA.debugLineNum = 553;BA.debugLine="p_transparentePDF.Width = Root.Width : p_transpar";
_p_transparentepdf.setHeight(_root.getHeight());
 //BA.debugLineNum = 554;BA.debugLine="Subs.centraPanel(p_ticketImpreso, p_transparenteT";
_subs._centrapanel /*String*/ (ba,_p_ticketimpreso,_p_transparenteticketimpreso.getWidth());
 //BA.debugLineNum = 555;BA.debugLine="Subs.centraPanel(p_envioPDF, p_transparentePDF.Wi";
_subs._centrapanel /*String*/ (ba,_p_enviopdf,_p_transparentepdf.getWidth());
 //BA.debugLineNum = 556;BA.debugLine="p_comentario.Left = 0 : p_comentario.top = 0";
_p_comentario.setLeft((int) (0));
 //BA.debugLineNum = 556;BA.debugLine="p_comentario.Left = 0 : p_comentario.top = 0";
_p_comentario.setTop((int) (0));
 //BA.debugLineNum = 557;BA.debugLine="p_comentario.Width = Root.Width : p_comentario.He";
_p_comentario.setWidth(_root.getWidth());
 //BA.debugLineNum = 557;BA.debugLine="p_comentario.Width = Root.Width : p_comentario.He";
_p_comentario.setHeight(_root.getHeight());
 //BA.debugLineNum = 558;BA.debugLine="Subs.centraPanel(p_comentarios, p_comentario.Widt";
_subs._centrapanel /*String*/ (ba,_p_comentarios,_p_comentario.getWidth());
 //BA.debugLineNum = 559;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 560;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 561;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 562;BA.debugLine="l_version.Left = Root.Width - (l_version.Width +";
_l_version.setLeft((int) (_root.getWidth()-(_l_version.getWidth()+10)));
 //BA.debugLineNum = 563;BA.debugLine="cuest.Initialize(Me, \"cuest\", Root, B4XPages.Main";
_cuest._initialize /*Object*/ (ba,this,"cuest",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ );
 //BA.debugLineNum = 564;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,";
_bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_reqmanager);
 //BA.debugLineNum = 565;BA.debugLine="l_version.Left = Root.Width - l_version.Width";
_l_version.setLeft((int) (_root.getWidth()-_l_version.getWidth()));
 //BA.debugLineNum = 567;BA.debugLine="End Sub";
return "";
}
public String  _bt_qr_click() throws Exception{
 //BA.debugLineNum = 3387;BA.debugLine="Sub BT_QR_Click";
 //BA.debugLineNum = 3388;BA.debugLine="sc.isportrait = True";
_sc.isportrait = __c.True;
 //BA.debugLineNum = 3389;BA.debugLine="sc.timeoutDuration = 45";
_sc.timeoutDuration = (int) (45);
 //BA.debugLineNum = 3390;BA.debugLine="sc.theViewFinderXfactor = 0.7";
_sc.theViewFinderXfactor = 0.7;
 //BA.debugLineNum = 3391;BA.debugLine="sc.theViewFinderYfactor = 0.5";
_sc.theViewFinderYfactor = 0.5;
 //BA.debugLineNum = 3392;BA.debugLine="sc.theResultColor = Colors.Green";
_sc.theResultColor = __c.Colors.Green;
 //BA.debugLineNum = 3393;BA.debugLine="sc.mustVibrate = True";
_sc.mustVibrate = __c.True;
 //BA.debugLineNum = 3394;BA.debugLine="sc.BeginScan(\"sc\")";
_sc.BeginScan(ba,"sc");
 //BA.debugLineNum = 3395;BA.debugLine="End Sub";
return "";
}
public String  _btnaceptaplanlealtad_click() throws Exception{
 //BA.debugLineNum = 7877;BA.debugLine="Private Sub btnAceptaPlanLealtad_Click";
 //BA.debugLineNum = 7879;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM PLAN_LE";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PLAN_LEALTAD WHERE PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 7880;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 7881;BA.debugLine="If c.RowCount = 0 Then";
if (_c.getRowCount()==0) { 
 //BA.debugLineNum = 7883;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert int";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into PLAN_LEALTAD (PL_BANDERA, PL_CLIENTE) values ('1','"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"')"));
 //BA.debugLineNum = 7884;BA.debugLine="pnlPlanLealtad.Visible = False";
_pnlplanlealtad.setVisible(__c.False);
 //BA.debugLineNum = 7885;BA.debugLine="Log(\"AQUI\")";
__c.LogImpl("426935304","AQUI",0);
 //BA.debugLineNum = 7886;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 }else {
 //BA.debugLineNum = 7888;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE PLAN_LEALTAD";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE PLAN_LEALTAD SET PL_BANDERA = 1 where PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"));
 //BA.debugLineNum = 7889;BA.debugLine="pnlPlanLealtad.Visible = False";
_pnlplanlealtad.setVisible(__c.False);
 //BA.debugLineNum = 7890;BA.debugLine="Log(\"AQUI2\")";
__c.LogImpl("426935309","AQUI2",0);
 //BA.debugLineNum = 7891;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 };
 //BA.debugLineNum = 7893;BA.debugLine="End Sub";
return "";
}
public String  _btncancelarplanlealtad_click() throws Exception{
 //BA.debugLineNum = 7873;BA.debugLine="Private Sub btnCancelarPlanLealtad_Click";
 //BA.debugLineNum = 7874;BA.debugLine="pnlPlanLealtad.Visible = False";
_pnlplanlealtad.setVisible(__c.False);
 //BA.debugLineNum = 7875;BA.debugLine="End Sub";
return "";
}
public String  _btnplanlealtad_click() throws Exception{
 //BA.debugLineNum = 7868;BA.debugLine="Private Sub btnPlanLealtad_Click";
 //BA.debugLineNum = 7869;BA.debugLine="Subs.centraPanel(pnl_btns, pnlPlanLealtad.Width)";
_subs._centrapanel /*String*/ (ba,_pnl_btns,_pnlplanlealtad.getWidth());
 //BA.debugLineNum = 7870;BA.debugLine="pnlPlanLealtad.Visible = True";
_pnlplanlealtad.setVisible(__c.True);
 //BA.debugLineNum = 7871;BA.debugLine="End Sub";
return "";
}
public String  _calc_ean_checksum(String _number) throws Exception{
int _i = 0;
char _co = '\0';
int _soma = 0;
int _n = 0;
float _digit = 0f;
 //BA.debugLineNum = 3430;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
 //BA.debugLineNum = 3431;BA.debugLine="Dim i As Int";
_i = 0;
 //BA.debugLineNum = 3432;BA.debugLine="Dim cO As Char";
_co = '\0';
 //BA.debugLineNum = 3433;BA.debugLine="Dim soma As Int";
_soma = 0;
 //BA.debugLineNum = 3434;BA.debugLine="Dim n As Int";
_n = 0;
 //BA.debugLineNum = 3435;BA.debugLine="Dim digit As Float";
_digit = 0f;
 //BA.debugLineNum = 3436;BA.debugLine="soma = 0";
_soma = (int) (0);
 //BA.debugLineNum = 3437;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 ) {
 //BA.debugLineNum = 3438;BA.debugLine="digit = number.SubString2(i,i+1)";
_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1))));
 //BA.debugLineNum = 3439;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
_n = (int) (_digit*((_i%2)*2+1));
 //BA.debugLineNum = 3440;BA.debugLine="soma=soma+n";
_soma = (int) (_soma+_n);
 }
};
 //BA.debugLineNum = 3442;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
if (true) return _number+BA.NumberToString(((10-(_soma%10))%10));
 //BA.debugLineNum = 3443;BA.debugLine="End Sub";
return "";
}
public String  _camera1_picturetaken(byte[] _data) throws Exception{
String _filename = "";
String _dirp = "";
String _dir = "";
String _dir2 = "";
anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _img = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
 //BA.debugLineNum = 8085;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)";
 //BA.debugLineNum = 8087;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
 //BA.debugLineNum = 8088;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\"";
_nombrefoto = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg";
 //BA.debugLineNum = 8089;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 8090;BA.debugLine="fototomada = nombrefoto";
_fototomada = _nombrefoto;
 //BA.debugLineNum = 8093;BA.debugLine="Log(\"tome foto\")";
__c.LogImpl("427656200","tome foto",0);
 //BA.debugLineNum = 8094;BA.debugLine="Dim filename As String = fototomada";
_filename = _fototomada;
 //BA.debugLineNum = 8095;BA.debugLine="Dim Dirp As String = File.DirInternal";
_dirp = __c.File.getDirInternal();
 //BA.debugLineNum = 8096;BA.debugLine="Dim Dir As String";
_dir = "";
 //BA.debugLineNum = 8097;BA.debugLine="Dim Dir2 As String";
_dir2 = "";
 //BA.debugLineNum = 8098;BA.debugLine="Try";
try { //BA.debugLineNum = 8099;BA.debugLine="File.MakeDir(Dirp,\"/md\")";
__c.File.MakeDir(_dirp,"/md");
 //BA.debugLineNum = 8100;BA.debugLine="Dir = \"/md\"";
_dir = "/md";
 //BA.debugLineNum = 8101;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
__c.LogImpl("427656208","creado en promotoria "+_dirp+_dir,0);
 } 
       catch (Exception e15) {
			ba.setLastException(e15); //BA.debugLineNum = 8103;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 8104;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("427656211","creado en raiz",0);
 };
 //BA.debugLineNum = 8107;BA.debugLine="Try";
try { //BA.debugLineNum = 8108;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
__c.File.MakeDir(_dirp+_dir,"/reduccion");
 //BA.debugLineNum = 8109;BA.debugLine="Dir2 = \"/reduccion\"";
_dir2 = "/reduccion";
 //BA.debugLineNum = 8110;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
__c.LogImpl("427656217","creado en promotoria "+_dirp+_dir+_dir2,0);
 } 
       catch (Exception e23) {
			ba.setLastException(e23); //BA.debugLineNum = 8112;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 8113;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("427656220","creado en raiz",0);
 };
 //BA.debugLineNum = 8116;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)";
_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename);
 //BA.debugLineNum = 8117;BA.debugLine="camEx.StartPreview 'restart preview";
_camex._startpreview /*String*/ ();
 //BA.debugLineNum = 8119;BA.debugLine="Log(\"Picture saved.\" & CRLF  & \"File size: \" & Fi";
__c.LogImpl("427656226","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0);
 //BA.debugLineNum = 8120;BA.debugLine="p_camara.Visible = False";
_p_camara.setVisible(__c.False);
 //BA.debugLineNum = 8122;BA.debugLine="Log(nombrefoto)";
__c.LogImpl("427656229",_nombrefoto,0);
 //BA.debugLineNum = 8124;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File.";
_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (225),(int) (300),__c.True);
 //BA.debugLineNum = 8125;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
 //BA.debugLineNum = 8126;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
 //BA.debugLineNum = 8129;BA.debugLine="out.Close";
_out.Close();
 //BA.debugLineNum = 8130;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal &";
_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto).getObject()));
 //BA.debugLineNum = 8132;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET foto = (";
_skmt.ExecNonQuery2("UPDATE kmt_info3 SET foto = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto))}));
 //BA.debugLineNum = 8133;BA.debugLine="StopCamera2";
_stopcamera2();
 //BA.debugLineNum = 8135;BA.debugLine="End Sub";
return "";
}
public String  _camera1_ready(boolean _success) throws Exception{
 //BA.debugLineNum = 8071;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
 //BA.debugLineNum = 8072;BA.debugLine="Log(\"Camara ready\")";
__c.LogImpl("427590657","Camara ready",0);
 //BA.debugLineNum = 8073;BA.debugLine="If Success Then";
if (_success) { 
 //BA.debugLineNum = 8074;BA.debugLine="camEx.SetJpegQuality(90)";
_camex._setjpegquality /*String*/ ((int) (90));
 //BA.debugLineNum = 8075;BA.debugLine="camEx.SetContinuousAutoFocus";
_camex._setcontinuousautofocus /*String*/ ();
 //BA.debugLineNum = 8076;BA.debugLine="camEx.CommitParameters";
_camex._commitparameters /*String*/ ();
 //BA.debugLineNum = 8077;BA.debugLine="camEx.StartPreview";
_camex._startpreview /*String*/ ();
 //BA.debugLineNum = 8078;BA.debugLine="Log(camEx.GetPreviewSize)";
__c.LogImpl("427590663",BA.ObjectToString(_camex._getpreviewsize /*gunav2.keymon.com.mx.cameraexclass._camerasize*/ ()),0);
 }else {
 //BA.debugLineNum = 8080;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);
 //BA.debugLineNum = 8081;BA.debugLine="Log(\"Cannot open camera\")";
__c.LogImpl("427590666","Cannot open camera",0);
 };
 //BA.debugLineNum = 8083;BA.debugLine="End Sub";
return "";
}
public String  _cb_p1_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3076;BA.debugLine="Private Sub cb_p1_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3077;BA.debugLine="itemselect8 = Sender.As(B4XComboBox).SelectedItem";
_itemselect8 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3078;BA.debugLine="Log(itemselect8)";
__c.LogImpl("415925250",_itemselect8,0);
 //BA.debugLineNum = 3079;BA.debugLine="Log(Index)";
__c.LogImpl("415925251",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3080;BA.debugLine="End Sub";
return "";
}
public String  _cb_p1_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8506;BA.debugLine="Private Sub cb_p1_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8507;BA.debugLine="e_1 = Sender.As(B4XComboBox).SelectedItem";
_e_1 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8508;BA.debugLine="End Sub";
return "";
}
public String  _cb_p10_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8470;BA.debugLine="Private Sub cb_p10_SelectedIndexChanged (Index As";
 //BA.debugLineNum = 8471;BA.debugLine="e_10 = Sender.As(B4XComboBox).SelectedItem";
_e_10 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8472;BA.debugLine="End Sub";
return "";
}
public String  _cb_p2_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3082;BA.debugLine="Private Sub cb_p2_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3083;BA.debugLine="itemselect9 = Sender.As(B4XComboBox).SelectedItem";
_itemselect9 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3084;BA.debugLine="Log(itemselect9)";
__c.LogImpl("415990786",_itemselect9,0);
 //BA.debugLineNum = 3085;BA.debugLine="Log(Index)";
__c.LogImpl("415990787",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3086;BA.debugLine="End Sub";
return "";
}
public String  _cb_p2_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8502;BA.debugLine="Private Sub cb_p2_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8503;BA.debugLine="e_2 = Sender.As(B4XComboBox).SelectedItem";
_e_2 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8504;BA.debugLine="End Sub";
return "";
}
public String  _cb_p3_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3040;BA.debugLine="Private Sub cb_p3_m4_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3041;BA.debugLine="itemselect2 = Sender.As(B4XComboBox).SelectedItem";
_itemselect2 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3042;BA.debugLine="Log(itemselect2)";
__c.LogImpl("415532034",_itemselect2,0);
 //BA.debugLineNum = 3043;BA.debugLine="Log(Index)";
__c.LogImpl("415532035",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3044;BA.debugLine="End Sub";
return "";
}
public String  _cb_p3_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3088;BA.debugLine="Private Sub cb_p3_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3089;BA.debugLine="itemselect10 = Sender.As(B4XComboBox).SelectedIte";
_itemselect10 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3090;BA.debugLine="Log(itemselect10)";
__c.LogImpl("416056322",_itemselect10,0);
 //BA.debugLineNum = 3091;BA.debugLine="Log(Index)";
__c.LogImpl("416056323",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3092;BA.debugLine="End Sub";
return "";
}
public String  _cb_p3_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8498;BA.debugLine="Private Sub cb_p3_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8499;BA.debugLine="e_3 = Sender.As(B4XComboBox).SelectedItem";
_e_3 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8500;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_1_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3046;BA.debugLine="Private Sub cb_p4_1_m4_SelectedIndexChanged (Index";
 //BA.debugLineNum = 3047;BA.debugLine="itemselect3 = Sender.As(B4XComboBox).SelectedItem";
_itemselect3 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3048;BA.debugLine="Log(itemselect3)";
__c.LogImpl("415597570",_itemselect3,0);
 //BA.debugLineNum = 3049;BA.debugLine="Log(Index)";
__c.LogImpl("415597571",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3050;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_2_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3052;BA.debugLine="Private Sub cb_p4_2_m4_SelectedIndexChanged (Index";
 //BA.debugLineNum = 3053;BA.debugLine="itemselect4 = Sender.As(B4XComboBox).SelectedItem";
_itemselect4 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3054;BA.debugLine="Log(itemselect4)";
__c.LogImpl("415663106",_itemselect4,0);
 //BA.debugLineNum = 3055;BA.debugLine="Log(Index)";
__c.LogImpl("415663107",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3056;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_3_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3058;BA.debugLine="Private Sub cb_p4_3_m4_SelectedIndexChanged (Index";
 //BA.debugLineNum = 3059;BA.debugLine="itemselect5 = Sender.As(B4XComboBox).SelectedItem";
_itemselect5 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3060;BA.debugLine="Log(itemselect5)";
__c.LogImpl("415728642",_itemselect5,0);
 //BA.debugLineNum = 3061;BA.debugLine="Log(Index)";
__c.LogImpl("415728643",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3062;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_4_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3064;BA.debugLine="Private Sub cb_p4_4_m4_SelectedIndexChanged (Index";
 //BA.debugLineNum = 3065;BA.debugLine="itemselect6 = Sender.As(B4XComboBox).SelectedItem";
_itemselect6 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3066;BA.debugLine="Log(itemselect6)";
__c.LogImpl("415794178",_itemselect6,0);
 //BA.debugLineNum = 3067;BA.debugLine="Log(Index)";
__c.LogImpl("415794179",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3068;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_5_m4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3070;BA.debugLine="Private Sub cb_p4_5_m4_SelectedIndexChanged (Index";
 //BA.debugLineNum = 3071;BA.debugLine="itemselect7 = Sender.As(B4XComboBox).SelectedItem";
_itemselect7 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3072;BA.debugLine="Log(itemselect7)";
__c.LogImpl("415859714",_itemselect7,0);
 //BA.debugLineNum = 3073;BA.debugLine="Log(Index)";
__c.LogImpl("415859715",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3074;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3094;BA.debugLine="Private Sub cb_p4_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3095;BA.debugLine="itemselect11 = Sender.As(B4XComboBox).SelectedIte";
_itemselect11 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3096;BA.debugLine="Log(itemselect11)";
__c.LogImpl("416121858",_itemselect11,0);
 //BA.debugLineNum = 3097;BA.debugLine="Log(Index)";
__c.LogImpl("416121859",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3098;BA.debugLine="End Sub";
return "";
}
public String  _cb_p4_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8494;BA.debugLine="Private Sub cb_p4_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8495;BA.debugLine="e_4 = Sender.As(B4XComboBox).SelectedItem";
_e_4 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8496;BA.debugLine="End Sub";
return "";
}
public String  _cb_p5_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3100;BA.debugLine="Private Sub cb_p5_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3101;BA.debugLine="itemselect12 = Sender.As(B4XComboBox).SelectedIte";
_itemselect12 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3102;BA.debugLine="Log(itemselect12)";
__c.LogImpl("416187394",_itemselect12,0);
 //BA.debugLineNum = 3103;BA.debugLine="Log(Index)";
__c.LogImpl("416187395",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3104;BA.debugLine="End Sub";
return "";
}
public String  _cb_p5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8490;BA.debugLine="Private Sub cb_p5_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8491;BA.debugLine="e_5 = Sender.As(B4XComboBox).SelectedItem";
_e_5 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8492;BA.debugLine="End Sub";
return "";
}
public String  _cb_p6_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3106;BA.debugLine="Private Sub cb_p6_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3107;BA.debugLine="itemselect13 = Sender.As(B4XComboBox).SelectedIte";
_itemselect13 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3108;BA.debugLine="Log(itemselect13)";
__c.LogImpl("416252930",_itemselect13,0);
 //BA.debugLineNum = 3109;BA.debugLine="Log(Index)";
__c.LogImpl("416252931",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3110;BA.debugLine="End Sub";
return "";
}
public String  _cb_p6_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8486;BA.debugLine="Private Sub cb_p6_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8487;BA.debugLine="e_6 = Sender.As(B4XComboBox).SelectedItem";
_e_6 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8488;BA.debugLine="End Sub";
return "";
}
public String  _cb_p7_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3112;BA.debugLine="Private Sub cb_p7_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3113;BA.debugLine="itemselect14 = Sender.As(B4XComboBox).SelectedIte";
_itemselect14 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3114;BA.debugLine="Log(itemselect14)";
__c.LogImpl("416318466",_itemselect14,0);
 //BA.debugLineNum = 3115;BA.debugLine="Log(Index)";
__c.LogImpl("416318467",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3116;BA.debugLine="End Sub";
return "";
}
public String  _cb_p7_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8482;BA.debugLine="Private Sub cb_p7_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8483;BA.debugLine="e_7 = Sender.As(B4XComboBox).SelectedItem";
_e_7 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8484;BA.debugLine="End Sub";
return "";
}
public String  _cb_p8_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3118;BA.debugLine="Private Sub cb_p8_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3119;BA.debugLine="itemselect15 = Sender.As(B4XComboBox).SelectedIte";
_itemselect15 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3120;BA.debugLine="Log(itemselect15)";
__c.LogImpl("416384002",_itemselect15,0);
 //BA.debugLineNum = 3121;BA.debugLine="Log(Index)";
__c.LogImpl("416384003",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3122;BA.debugLine="End Sub";
return "";
}
public String  _cb_p8_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8478;BA.debugLine="Private Sub cb_p8_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8479;BA.debugLine="e_8 = Sender.As(B4XComboBox).SelectedItem";
_e_8 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8480;BA.debugLine="End Sub";
return "";
}
public String  _cb_p9_m5_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 3124;BA.debugLine="Private Sub cb_p9_m5_SelectedIndexChanged (Index A";
 //BA.debugLineNum = 3125;BA.debugLine="itemselect16 = Sender.As(B4XComboBox).SelectedIte";
_itemselect16 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 3126;BA.debugLine="Log(itemselect16)";
__c.LogImpl("416449538",_itemselect16,0);
 //BA.debugLineNum = 3127;BA.debugLine="Log(Index)";
__c.LogImpl("416449539",BA.NumberToString(_index),0);
 //BA.debugLineNum = 3128;BA.debugLine="End Sub";
return "";
}
public String  _cb_p9_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 8474;BA.debugLine="Private Sub cb_p9_SelectedIndexChanged (Index As I";
 //BA.debugLineNum = 8475;BA.debugLine="e_9 = Sender.As(B4XComboBox).SelectedItem";
_e_9 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 8476;BA.debugLine="End Sub";
return "";
}
public String  _cb_pregunta_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 2707;BA.debugLine="Private Sub cb_pregunta_SelectedIndexChanged (Inde";
 //BA.debugLineNum = 2708;BA.debugLine="girotienda = Sender.As(B4XComboBox).SelectedItem";
_girotienda = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ ();
 //BA.debugLineNum = 2709;BA.debugLine="Log(girotienda)";
__c.LogImpl("415400962",_girotienda,0);
 //BA.debugLineNum = 2710;BA.debugLine="Log(Index)";
__c.LogImpl("415400963",BA.NumberToString(_index),0);
 //BA.debugLineNum = 2711;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6063;BA.debugLine="Private Sub CB1_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6064;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 //BA.debugLineNum = 6065;BA.debugLine="If CB1_P3_M2.Checked Then";
if (_cb1_p3_m2.getChecked()) { 
 //BA.debugLineNum = 6066;BA.debugLine="textemp2 = CB1_P3_M2.Text";
_textemp2 = _cb1_p3_m2.getText();
 }else {
 //BA.debugLineNum = 6068;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 };
 //BA.debugLineNum = 6070;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb2_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();};
 //BA.debugLineNum = 6071;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb3_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();};
 //BA.debugLineNum = 6072;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb4_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();};
 //BA.debugLineNum = 6073;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb5_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();};
 //BA.debugLineNum = 6074;BA.debugLine="Log(textemp2)";
__c.LogImpl("422216715",_textemp2,0);
 //BA.debugLineNum = 6075;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p3_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6190;BA.debugLine="Private Sub CB1_P3_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6191;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 //BA.debugLineNum = 6192;BA.debugLine="If CB1_P3_M3.Checked Then";
if (_cb1_p3_m3.getChecked()) { 
 //BA.debugLineNum = 6193;BA.debugLine="textemp4 = CB1_P3_M3.Text";
_textemp4 = _cb1_p3_m3.getText();
 }else {
 //BA.debugLineNum = 6195;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 };
 //BA.debugLineNum = 6197;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb2_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();};
 //BA.debugLineNum = 6198;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb3_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();};
 //BA.debugLineNum = 6199;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb4_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();};
 //BA.debugLineNum = 6200;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb5_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();};
 //BA.debugLineNum = 6201;BA.debugLine="Log(textemp4)";
__c.LogImpl("422806539",_textemp4,0);
 //BA.debugLineNum = 6202;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6135;BA.debugLine="Private Sub CB1_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6136;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 //BA.debugLineNum = 6137;BA.debugLine="If CB1_P4_M2.Checked Then";
if (_cb1_p4_m2.getChecked()) { 
 //BA.debugLineNum = 6138;BA.debugLine="textemp3 = CB1_P4_M2.Text";
_textemp3 = _cb1_p4_m2.getText();
 }else {
 //BA.debugLineNum = 6140;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 };
 //BA.debugLineNum = 6142;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb2_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();};
 //BA.debugLineNum = 6143;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb3_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();};
 //BA.debugLineNum = 6144;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb4_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();};
 //BA.debugLineNum = 6145;BA.debugLine="Log(textemp3)";
__c.LogImpl("422544394",_textemp3,0);
 //BA.debugLineNum = 6146;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p4_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6262;BA.debugLine="Private Sub CB1_P4_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6263;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 //BA.debugLineNum = 6264;BA.debugLine="CB5_P4_M3.Checked = False";
_cb5_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6265;BA.debugLine="If CB1_P4_M3.Checked Then";
if (_cb1_p4_m3.getChecked()) { 
 //BA.debugLineNum = 6266;BA.debugLine="textemp5 = CB1_P4_M3.Text";
_textemp5 = _cb1_p4_m3.getText();
 }else {
 //BA.debugLineNum = 6268;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 };
 //BA.debugLineNum = 6270;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb2_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();};
 //BA.debugLineNum = 6271;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb3_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();};
 //BA.debugLineNum = 6272;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb4_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();};
 //BA.debugLineNum = 6273;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb5_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();};
 //BA.debugLineNum = 6274;BA.debugLine="Log(textemp5)";
__c.LogImpl("423134220",_textemp5,0);
 //BA.debugLineNum = 6275;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6343;BA.debugLine="Private Sub CB1_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6344;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6345;BA.debugLine="If CB1_P6_M3.Checked Then";
if (_cb1_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6346;BA.debugLine="textemp6 = CB1_P6_M3.Text";
_textemp6 = _cb1_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6348;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6350;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6351;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6352;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6353;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6354;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6355;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6356;BA.debugLine="Log(textemp6)";
__c.LogImpl("423461901",_textemp6,0);
 //BA.debugLineNum = 6357;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p7_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6455;BA.debugLine="Private Sub CB1_P7_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6456;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 //BA.debugLineNum = 6457;BA.debugLine="If CB1_P7_M3.Checked Then";
if (_cb1_p7_m3.getChecked()) { 
 //BA.debugLineNum = 6458;BA.debugLine="textemp7 = CB1_P7_M3.Text";
_textemp7 = _cb1_p7_m3.getText();
 }else {
 //BA.debugLineNum = 6460;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 };
 //BA.debugLineNum = 6462;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb2_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();};
 //BA.debugLineNum = 6463;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb3_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();};
 //BA.debugLineNum = 6464;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb4_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();};
 //BA.debugLineNum = 6465;BA.debugLine="Log(textemp7)";
__c.LogImpl("423920650",_textemp7,0);
 //BA.debugLineNum = 6466;BA.debugLine="End Sub";
return "";
}
public String  _cb1_p8_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6512;BA.debugLine="Private Sub CB1_P8_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6513;BA.debugLine="textemp8 = \"\"";
_textemp8 = "";
 //BA.debugLineNum = 6514;BA.debugLine="textemp8 = CB1_P8_M3.Text";
_textemp8 = _cb1_p8_m3.getText();
 //BA.debugLineNum = 6515;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb2_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();};
 //BA.debugLineNum = 6516;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb3_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();};
 //BA.debugLineNum = 6517;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb4_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();};
 //BA.debugLineNum = 6518;BA.debugLine="Log(textemp8)";
__c.LogImpl("424182790",_textemp8,0);
 //BA.debugLineNum = 6519;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6077;BA.debugLine="Private Sub CB2_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6078;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 //BA.debugLineNum = 6079;BA.debugLine="If CB2_P3_M2.Checked Then";
if (_cb2_p3_m2.getChecked()) { 
 //BA.debugLineNum = 6080;BA.debugLine="textemp2 = CB2_P3_M2.Text";
_textemp2 = _cb2_p3_m2.getText();
 }else {
 //BA.debugLineNum = 6082;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 };
 //BA.debugLineNum = 6084;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb1_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();};
 //BA.debugLineNum = 6085;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb3_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();};
 //BA.debugLineNum = 6086;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb4_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();};
 //BA.debugLineNum = 6087;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb5_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();};
 //BA.debugLineNum = 6088;BA.debugLine="Log(textemp2)";
__c.LogImpl("422282251",_textemp2,0);
 //BA.debugLineNum = 6089;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p3_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6204;BA.debugLine="Private Sub CB2_P3_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6205;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 //BA.debugLineNum = 6206;BA.debugLine="If CB2_P3_M3.Checked Then";
if (_cb2_p3_m3.getChecked()) { 
 //BA.debugLineNum = 6207;BA.debugLine="textemp4 = CB2_P3_M3.Text";
_textemp4 = _cb2_p3_m3.getText();
 }else {
 //BA.debugLineNum = 6209;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 };
 //BA.debugLineNum = 6211;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb1_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();};
 //BA.debugLineNum = 6212;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb3_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();};
 //BA.debugLineNum = 6213;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb4_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();};
 //BA.debugLineNum = 6214;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb5_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();};
 //BA.debugLineNum = 6215;BA.debugLine="Log(textemp4)";
__c.LogImpl("422872075",_textemp4,0);
 //BA.debugLineNum = 6216;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6148;BA.debugLine="Private Sub CB2_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6149;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 //BA.debugLineNum = 6150;BA.debugLine="If CB2_P4_M2.Checked Then";
if (_cb2_p4_m2.getChecked()) { 
 //BA.debugLineNum = 6151;BA.debugLine="textemp3 = CB2_P4_M2.Text";
_textemp3 = _cb2_p4_m2.getText();
 }else {
 //BA.debugLineNum = 6153;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 };
 //BA.debugLineNum = 6155;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb1_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();};
 //BA.debugLineNum = 6156;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb3_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();};
 //BA.debugLineNum = 6157;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb4_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();};
 //BA.debugLineNum = 6158;BA.debugLine="Log(textemp3)";
__c.LogImpl("422609930",_textemp3,0);
 //BA.debugLineNum = 6159;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p4_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6277;BA.debugLine="Private Sub CB2_P4_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6278;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 //BA.debugLineNum = 6279;BA.debugLine="CB5_P4_M3.Checked = False";
_cb5_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6280;BA.debugLine="If CB2_P4_M3.Checked Then";
if (_cb2_p4_m3.getChecked()) { 
 //BA.debugLineNum = 6281;BA.debugLine="textemp5 = CB2_P4_M3.Text";
_textemp5 = _cb2_p4_m3.getText();
 }else {
 //BA.debugLineNum = 6283;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 };
 //BA.debugLineNum = 6285;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb1_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();};
 //BA.debugLineNum = 6286;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb3_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();};
 //BA.debugLineNum = 6287;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb4_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();};
 //BA.debugLineNum = 6288;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb5_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();};
 //BA.debugLineNum = 6289;BA.debugLine="Log(textemp5)";
__c.LogImpl("423199756",_textemp5,0);
 //BA.debugLineNum = 6290;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6359;BA.debugLine="Private Sub CB2_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6360;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6361;BA.debugLine="If CB2_P6_M3.Checked Then";
if (_cb2_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6362;BA.debugLine="textemp6 = CB2_P6_M3.Text";
_textemp6 = _cb2_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6364;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6366;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6367;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6368;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6369;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6370;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6371;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6372;BA.debugLine="Log(textemp6)";
__c.LogImpl("423527437",_textemp6,0);
 //BA.debugLineNum = 6373;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p7_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6468;BA.debugLine="Private Sub CB2_P7_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6469;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 //BA.debugLineNum = 6470;BA.debugLine="If CB2_P7_M3.Checked Then";
if (_cb2_p7_m3.getChecked()) { 
 //BA.debugLineNum = 6471;BA.debugLine="textemp7 = CB2_P7_M3.Text";
_textemp7 = _cb2_p7_m3.getText();
 }else {
 //BA.debugLineNum = 6473;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 };
 //BA.debugLineNum = 6475;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb1_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();};
 //BA.debugLineNum = 6476;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb3_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();};
 //BA.debugLineNum = 6477;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb4_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();};
 //BA.debugLineNum = 6478;BA.debugLine="Log(textemp7)";
__c.LogImpl("423986186",_textemp7,0);
 //BA.debugLineNum = 6479;BA.debugLine="End Sub";
return "";
}
public String  _cb2_p8_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6521;BA.debugLine="Private Sub CB2_P8_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6522;BA.debugLine="textemp8 = \"\"";
_textemp8 = "";
 //BA.debugLineNum = 6523;BA.debugLine="textemp8 = CB2_P8_M3.Text";
_textemp8 = _cb2_p8_m3.getText();
 //BA.debugLineNum = 6524;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb1_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();};
 //BA.debugLineNum = 6525;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb3_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();};
 //BA.debugLineNum = 6526;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb4_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();};
 //BA.debugLineNum = 6527;BA.debugLine="Log(textemp8)";
__c.LogImpl("424248326",_textemp8,0);
 //BA.debugLineNum = 6528;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6091;BA.debugLine="Private Sub CB3_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6092;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 //BA.debugLineNum = 6093;BA.debugLine="If CB3_P3_M2.Checked Then";
if (_cb3_p3_m2.getChecked()) { 
 //BA.debugLineNum = 6094;BA.debugLine="textemp2 = CB3_P3_M2.Text";
_textemp2 = _cb3_p3_m2.getText();
 }else {
 //BA.debugLineNum = 6096;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 };
 //BA.debugLineNum = 6098;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb1_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();};
 //BA.debugLineNum = 6099;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb2_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();};
 //BA.debugLineNum = 6100;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb4_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();};
 //BA.debugLineNum = 6101;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb5_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();};
 //BA.debugLineNum = 6102;BA.debugLine="Log(textemp2)";
__c.LogImpl("422347787",_textemp2,0);
 //BA.debugLineNum = 6103;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p3_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6218;BA.debugLine="Private Sub CB3_P3_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6219;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 //BA.debugLineNum = 6220;BA.debugLine="If CB3_P3_M3.Checked Then";
if (_cb3_p3_m3.getChecked()) { 
 //BA.debugLineNum = 6221;BA.debugLine="textemp4 = CB3_P3_M3.Text";
_textemp4 = _cb3_p3_m3.getText();
 }else {
 //BA.debugLineNum = 6223;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 };
 //BA.debugLineNum = 6225;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb1_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();};
 //BA.debugLineNum = 6226;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb2_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();};
 //BA.debugLineNum = 6227;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb4_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();};
 //BA.debugLineNum = 6228;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb5_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();};
 //BA.debugLineNum = 6229;BA.debugLine="Log(textemp4)";
__c.LogImpl("422937611",_textemp4,0);
 //BA.debugLineNum = 6230;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6161;BA.debugLine="Private Sub CB3_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6162;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 //BA.debugLineNum = 6163;BA.debugLine="If CB3_P4_M2.Checked Then";
if (_cb3_p4_m2.getChecked()) { 
 //BA.debugLineNum = 6164;BA.debugLine="textemp3 = CB3_P4_M2.Text";
_textemp3 = _cb3_p4_m2.getText();
 }else {
 //BA.debugLineNum = 6166;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 };
 //BA.debugLineNum = 6168;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb1_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();};
 //BA.debugLineNum = 6169;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb2_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();};
 //BA.debugLineNum = 6170;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb4_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();};
 //BA.debugLineNum = 6171;BA.debugLine="Log(textemp3)";
__c.LogImpl("422675466",_textemp3,0);
 //BA.debugLineNum = 6172;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p4_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6292;BA.debugLine="Private Sub CB3_P4_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6293;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 //BA.debugLineNum = 6294;BA.debugLine="CB5_P4_M3.Checked = False";
_cb5_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6295;BA.debugLine="If CB3_P4_M3.Checked Then";
if (_cb3_p4_m3.getChecked()) { 
 //BA.debugLineNum = 6296;BA.debugLine="textemp5 = CB3_P4_M3.Text";
_textemp5 = _cb3_p4_m3.getText();
 }else {
 //BA.debugLineNum = 6298;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 };
 //BA.debugLineNum = 6300;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb1_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();};
 //BA.debugLineNum = 6301;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb2_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();};
 //BA.debugLineNum = 6302;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb4_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();};
 //BA.debugLineNum = 6303;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb5_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();};
 //BA.debugLineNum = 6304;BA.debugLine="Log(textemp5)";
__c.LogImpl("423265292",_textemp5,0);
 //BA.debugLineNum = 6305;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6375;BA.debugLine="Private Sub CB3_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6376;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6377;BA.debugLine="If CB3_P6_M3.Checked Then";
if (_cb3_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6378;BA.debugLine="textemp6 = CB3_P6_M3.Text";
_textemp6 = _cb3_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6380;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6382;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6383;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6384;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6385;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6386;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6387;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6388;BA.debugLine="Log(textemp6)";
__c.LogImpl("423592973",_textemp6,0);
 //BA.debugLineNum = 6389;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p7_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6481;BA.debugLine="Private Sub CB3_P7_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6482;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 //BA.debugLineNum = 6483;BA.debugLine="If CB3_P7_M3.Checked Then";
if (_cb3_p7_m3.getChecked()) { 
 //BA.debugLineNum = 6484;BA.debugLine="textemp7 = CB3_P7_M3.Text";
_textemp7 = _cb3_p7_m3.getText();
 }else {
 //BA.debugLineNum = 6486;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 };
 //BA.debugLineNum = 6488;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb1_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();};
 //BA.debugLineNum = 6489;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb2_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();};
 //BA.debugLineNum = 6490;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb4_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();};
 //BA.debugLineNum = 6491;BA.debugLine="Log(textemp7)";
__c.LogImpl("424051722",_textemp7,0);
 //BA.debugLineNum = 6492;BA.debugLine="End Sub";
return "";
}
public String  _cb3_p8_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6530;BA.debugLine="Private Sub CB3_P8_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6531;BA.debugLine="textemp8 = \"\"";
_textemp8 = "";
 //BA.debugLineNum = 6532;BA.debugLine="textemp8 = CB3_P8_M3.Text";
_textemp8 = _cb3_p8_m3.getText();
 //BA.debugLineNum = 6533;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb1_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();};
 //BA.debugLineNum = 6534;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb2_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();};
 //BA.debugLineNum = 6535;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb4_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();};
 //BA.debugLineNum = 6536;BA.debugLine="Log(textemp8)";
__c.LogImpl("424313862",_textemp8,0);
 //BA.debugLineNum = 6537;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6105;BA.debugLine="Private Sub CB4_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6106;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 //BA.debugLineNum = 6107;BA.debugLine="If CB4_P3_M2.Checked Then";
if (_cb4_p3_m2.getChecked()) { 
 //BA.debugLineNum = 6108;BA.debugLine="textemp2 = CB4_P3_M2.Text";
_textemp2 = _cb4_p3_m2.getText();
 }else {
 //BA.debugLineNum = 6110;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 };
 //BA.debugLineNum = 6112;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb1_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();};
 //BA.debugLineNum = 6113;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb2_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();};
 //BA.debugLineNum = 6114;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb3_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();};
 //BA.debugLineNum = 6115;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb5_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();};
 //BA.debugLineNum = 6116;BA.debugLine="Log(textemp2)";
__c.LogImpl("422413323",_textemp2,0);
 //BA.debugLineNum = 6117;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p3_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6232;BA.debugLine="Private Sub CB4_P3_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6233;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 //BA.debugLineNum = 6234;BA.debugLine="If CB4_P3_M3.Checked Then";
if (_cb4_p3_m3.getChecked()) { 
 //BA.debugLineNum = 6235;BA.debugLine="textemp4 = CB4_P3_M3.Text";
_textemp4 = _cb4_p3_m3.getText();
 }else {
 //BA.debugLineNum = 6237;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 };
 //BA.debugLineNum = 6239;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb1_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();};
 //BA.debugLineNum = 6240;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb2_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();};
 //BA.debugLineNum = 6241;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb3_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();};
 //BA.debugLineNum = 6242;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb5_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();};
 //BA.debugLineNum = 6243;BA.debugLine="Log(textemp4)";
__c.LogImpl("423003147",_textemp4,0);
 //BA.debugLineNum = 6244;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6174;BA.debugLine="Private Sub CB4_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6175;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 //BA.debugLineNum = 6176;BA.debugLine="If CB4_P4_M2.Checked Then";
if (_cb4_p4_m2.getChecked()) { 
 //BA.debugLineNum = 6177;BA.debugLine="textemp3 = CB4_P4_M2.Text";
_textemp3 = _cb4_p4_m2.getText();
 }else {
 //BA.debugLineNum = 6179;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 };
 //BA.debugLineNum = 6181;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb1_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();};
 //BA.debugLineNum = 6182;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb2_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();};
 //BA.debugLineNum = 6183;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \"";
if (_cb3_p4_m2.getChecked()) { 
_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();};
 //BA.debugLineNum = 6184;BA.debugLine="Log(textemp3)";
__c.LogImpl("422741002",_textemp3,0);
 //BA.debugLineNum = 6185;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p4_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6307;BA.debugLine="Private Sub CB4_P4_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6308;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 //BA.debugLineNum = 6309;BA.debugLine="CB5_P4_M3.Checked = False";
_cb5_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6310;BA.debugLine="If CB4_P4_M3.Checked Then";
if (_cb4_p4_m3.getChecked()) { 
 //BA.debugLineNum = 6311;BA.debugLine="textemp5 = CB4_P4_M3.Text";
_textemp5 = _cb4_p4_m3.getText();
 }else {
 //BA.debugLineNum = 6313;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 };
 //BA.debugLineNum = 6315;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb1_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();};
 //BA.debugLineNum = 6316;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb2_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();};
 //BA.debugLineNum = 6317;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb3_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();};
 //BA.debugLineNum = 6318;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb5_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();};
 //BA.debugLineNum = 6319;BA.debugLine="Log(textemp5)";
__c.LogImpl("423330828",_textemp5,0);
 //BA.debugLineNum = 6320;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6391;BA.debugLine="Private Sub CB4_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6392;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6393;BA.debugLine="If CB4_P6_M3.Checked Then";
if (_cb4_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6394;BA.debugLine="textemp6 = CB4_P6_M3.Text";
_textemp6 = _cb4_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6396;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6398;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6399;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6400;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6401;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6402;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6403;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6404;BA.debugLine="Log(textemp6)";
__c.LogImpl("423658509",_textemp6,0);
 //BA.debugLineNum = 6405;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p7_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6494;BA.debugLine="Private Sub CB4_P7_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6495;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 //BA.debugLineNum = 6496;BA.debugLine="If CB4_P7_M3.Checked Then";
if (_cb4_p7_m3.getChecked()) { 
 //BA.debugLineNum = 6497;BA.debugLine="textemp7 = CB4_P7_M3.Text";
_textemp7 = _cb4_p7_m3.getText();
 }else {
 //BA.debugLineNum = 6499;BA.debugLine="textemp7 = \"\"";
_textemp7 = "";
 };
 //BA.debugLineNum = 6501;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb1_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();};
 //BA.debugLineNum = 6502;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb2_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();};
 //BA.debugLineNum = 6503;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \"";
if (_cb3_p7_m3.getChecked()) { 
_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();};
 //BA.debugLineNum = 6504;BA.debugLine="Log(textemp7)";
__c.LogImpl("424117258",_textemp7,0);
 //BA.debugLineNum = 6505;BA.debugLine="End Sub";
return "";
}
public String  _cb4_p8_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6539;BA.debugLine="Private Sub CB4_P8_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6540;BA.debugLine="textemp8 = \"\"";
_textemp8 = "";
 //BA.debugLineNum = 6541;BA.debugLine="textemp8 = CB4_P8_M3.Text";
_textemp8 = _cb4_p8_m3.getText();
 //BA.debugLineNum = 6542;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb1_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();};
 //BA.debugLineNum = 6543;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb2_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();};
 //BA.debugLineNum = 6544;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \"";
if (_cb3_p8_m3.getChecked()) { 
_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();};
 //BA.debugLineNum = 6545;BA.debugLine="Log(textemp8)";
__c.LogImpl("424379398",_textemp8,0);
 //BA.debugLineNum = 6546;BA.debugLine="End Sub";
return "";
}
public String  _cb5_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6119;BA.debugLine="Private Sub CB5_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6120;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 //BA.debugLineNum = 6121;BA.debugLine="If CB5_P3_M2.Checked Then";
if (_cb5_p3_m2.getChecked()) { 
 //BA.debugLineNum = 6122;BA.debugLine="textemp2 = CB5_P3_M2.Text";
_textemp2 = _cb5_p3_m2.getText();
 }else {
 //BA.debugLineNum = 6124;BA.debugLine="textemp2 = \"\"";
_textemp2 = "";
 };
 //BA.debugLineNum = 6126;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb1_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();};
 //BA.debugLineNum = 6127;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb2_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();};
 //BA.debugLineNum = 6128;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb3_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();};
 //BA.debugLineNum = 6129;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \"";
if (_cb4_p3_m2.getChecked()) { 
_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();};
 //BA.debugLineNum = 6130;BA.debugLine="Log(textemp2)";
__c.LogImpl("422478859",_textemp2,0);
 //BA.debugLineNum = 6131;BA.debugLine="End Sub";
return "";
}
public String  _cb5_p3_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6246;BA.debugLine="Private Sub CB5_P3_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6247;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 //BA.debugLineNum = 6248;BA.debugLine="If CB5_P3_M3.Checked Then";
if (_cb5_p3_m3.getChecked()) { 
 //BA.debugLineNum = 6249;BA.debugLine="textemp4 = CB5_P3_M3.Text";
_textemp4 = _cb5_p3_m3.getText();
 }else {
 //BA.debugLineNum = 6251;BA.debugLine="textemp4 = \"\"";
_textemp4 = "";
 };
 //BA.debugLineNum = 6253;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb1_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();};
 //BA.debugLineNum = 6254;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb2_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();};
 //BA.debugLineNum = 6255;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb3_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();};
 //BA.debugLineNum = 6256;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \"";
if (_cb4_p3_m3.getChecked()) { 
_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();};
 //BA.debugLineNum = 6257;BA.debugLine="Log(textemp4)";
__c.LogImpl("423068683",_textemp4,0);
 //BA.debugLineNum = 6258;BA.debugLine="End Sub";
return "";
}
public String  _cb5_p4_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6322;BA.debugLine="Private Sub CB5_P4_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6323;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 //BA.debugLineNum = 6324;BA.debugLine="CB1_P4_M3.Checked = False";
_cb1_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6325;BA.debugLine="CB2_P4_M3.Checked = False";
_cb2_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6326;BA.debugLine="CB3_P4_M3.Checked = False";
_cb3_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6327;BA.debugLine="CB4_P4_M3.Checked = False";
_cb4_p4_m3.setChecked(__c.False);
 //BA.debugLineNum = 6328;BA.debugLine="If CB5_P4_M3.Checked Then";
if (_cb5_p4_m3.getChecked()) { 
 //BA.debugLineNum = 6329;BA.debugLine="textemp5 = CB5_P4_M3.Text";
_textemp5 = _cb5_p4_m3.getText();
 }else {
 //BA.debugLineNum = 6331;BA.debugLine="textemp5 = \"\"";
_textemp5 = "";
 };
 //BA.debugLineNum = 6333;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb1_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();};
 //BA.debugLineNum = 6334;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb2_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();};
 //BA.debugLineNum = 6335;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb3_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();};
 //BA.debugLineNum = 6336;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \"";
if (_cb4_p4_m3.getChecked()) { 
_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();};
 //BA.debugLineNum = 6337;BA.debugLine="Log(textemp5)";
__c.LogImpl("423396367",_textemp5,0);
 //BA.debugLineNum = 6338;BA.debugLine="End Sub";
return "";
}
public String  _cb5_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6407;BA.debugLine="Private Sub CB5_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6408;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6409;BA.debugLine="If CB5_P6_M3.Checked Then";
if (_cb5_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6410;BA.debugLine="textemp6 = CB5_P6_M3.Text";
_textemp6 = _cb5_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6412;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6414;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6415;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6416;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6417;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6418;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6419;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6420;BA.debugLine="Log(textemp6)";
__c.LogImpl("423724045",_textemp6,0);
 //BA.debugLineNum = 6421;BA.debugLine="End Sub";
return "";
}
public String  _cb6_p3_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5515;BA.debugLine="Private Sub CB6_P3_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5516;BA.debugLine="If CB6_P3_M2.Checked = True Then";
if (_cb6_p3_m2.getChecked()==__c.True) { 
 //BA.debugLineNum = 5517;BA.debugLine="Panel7_M2.Visible = True";
_panel7_m2.setVisible(__c.True);
 }else {
 //BA.debugLineNum = 5519;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 };
 //BA.debugLineNum = 5523;BA.debugLine="End Sub";
return "";
}
public String  _cb6_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6423;BA.debugLine="Private Sub CB6_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6424;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6425;BA.debugLine="If CB6_P6_M3.Checked Then";
if (_cb6_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6426;BA.debugLine="textemp6 = CB6_P6_M3.Text";
_textemp6 = _cb6_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6428;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6430;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6431;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6432;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6433;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6434;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6435;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb7_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();};
 //BA.debugLineNum = 6436;BA.debugLine="Log(textemp6)";
__c.LogImpl("423789581",_textemp6,0);
 //BA.debugLineNum = 6437;BA.debugLine="End Sub";
return "";
}
public String  _cb7_p6_m3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 6439;BA.debugLine="Private Sub CB7_P6_M3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 6440;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 //BA.debugLineNum = 6441;BA.debugLine="If CB7_P6_M3.Checked Then";
if (_cb7_p6_m3.getChecked()) { 
 //BA.debugLineNum = 6442;BA.debugLine="textemp6 = CB7_P6_M3.Text";
_textemp6 = _cb7_p6_m3.getText();
 }else {
 //BA.debugLineNum = 6444;BA.debugLine="textemp6 = \"\"";
_textemp6 = "";
 };
 //BA.debugLineNum = 6446;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb1_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();};
 //BA.debugLineNum = 6447;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb2_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();};
 //BA.debugLineNum = 6448;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb3_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();};
 //BA.debugLineNum = 6449;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb4_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();};
 //BA.debugLineNum = 6450;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb5_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();};
 //BA.debugLineNum = 6451;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \"";
if (_cb6_p6_m3.getChecked()) { 
_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();};
 //BA.debugLineNum = 6452;BA.debugLine="Log(textemp6)";
__c.LogImpl("423855117",_textemp6,0);
 //BA.debugLineNum = 6453;BA.debugLine="End Sub";
return "";
}
public int  _centropantalla() throws Exception{
int _anchopantalla = 0;
 //BA.debugLineNum = 6791;BA.debugLine="Sub centroPantalla As Int";
 //BA.debugLineNum = 6792;BA.debugLine="Private anchoPantalla As Int = GetDeviceLayoutVal";
_anchopantalla = __c.GetDeviceLayoutValues(ba).Width;
 //BA.debugLineNum = 6793;BA.debugLine="Private anchoPantalla As Int = Root.Width";
_anchopantalla = _root.getWidth();
 //BA.debugLineNum = 6794;BA.debugLine="Return anchoPantalla/2";
if (true) return (int) (_anchopantalla/(double)2);
 //BA.debugLineNum = 6795;BA.debugLine="End Sub";
return 0;
}
public String  _ch_factura_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 8185;BA.debugLine="Private Sub CH_FACTURA_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 8187;BA.debugLine="End Sub";
return "";
}
public String  _chb_com_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 8384;BA.debugLine="Private Sub chb_com_CheckedChange(Checked As Boole";
 //BA.debugLineNum = 8386;BA.debugLine="End Sub";
return "";
}
public String  _checkbox1_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5209;BA.debugLine="Private Sub CheckBox1_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5210;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5211;BA.debugLine="textemp = CheckBox1.Text";
_textemp = _checkbox1.getText();
 //BA.debugLineNum = 5212;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5213;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5214;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5215;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5216;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5217;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5218;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5219;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5220;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420381707",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5221;BA.debugLine="End Sub";
return "";
}
public String  _checkbox2_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5223;BA.debugLine="Private Sub CheckBox2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5224;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5225;BA.debugLine="textemp = CheckBox2.Text";
_textemp = _checkbox2.getText();
 //BA.debugLineNum = 5226;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5227;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5228;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5229;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5230;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5231;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5232;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5233;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5234;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420447243",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5235;BA.debugLine="End Sub";
return "";
}
public String  _checkbox3_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5237;BA.debugLine="Private Sub CheckBox3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5238;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5239;BA.debugLine="textemp = CheckBox3.Text";
_textemp = _checkbox3.getText();
 //BA.debugLineNum = 5240;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5241;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5242;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5243;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5244;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5245;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5246;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5247;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5248;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420512779",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5249;BA.debugLine="End Sub";
return "";
}
public String  _checkbox4_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5251;BA.debugLine="Private Sub CheckBox4_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5252;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5253;BA.debugLine="textemp = CheckBox4.Text";
_textemp = _checkbox4.getText();
 //BA.debugLineNum = 5254;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5255;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5256;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5257;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5258;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5259;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5260;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5261;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5262;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420578315",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5263;BA.debugLine="End Sub";
return "";
}
public String  _checkbox5_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5265;BA.debugLine="Private Sub CheckBox5_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5266;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5267;BA.debugLine="textemp = CheckBox5.Text";
_textemp = _checkbox5.getText();
 //BA.debugLineNum = 5268;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5269;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5270;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5271;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5272;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5273;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5274;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5275;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5276;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420643851",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5277;BA.debugLine="End Sub";
return "";
}
public String  _checkbox6_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5279;BA.debugLine="Private Sub CheckBox6_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5280;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5281;BA.debugLine="textemp = CheckBox6.Text";
_textemp = _checkbox6.getText();
 //BA.debugLineNum = 5282;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5283;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5284;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5285;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5286;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5287;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5288;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5289;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5290;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420709387",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5291;BA.debugLine="End Sub";
return "";
}
public String  _checkbox7_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5293;BA.debugLine="Private Sub CheckBox7_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5294;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5295;BA.debugLine="textemp = CheckBox7.Text";
_textemp = _checkbox7.getText();
 //BA.debugLineNum = 5296;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5297;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5298;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5299;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5300;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5301;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5302;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \",";
if (_checkbox8.getChecked()) { 
_textemp = _textemp+", "+_checkbox8.getText();};
 //BA.debugLineNum = 5303;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5304;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420774923",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5305;BA.debugLine="End Sub";
return "";
}
public String  _checkbox8_checkedchange(boolean _checked) throws Exception{
String _textemp = "";
 //BA.debugLineNum = 5307;BA.debugLine="Private Sub CheckBox8_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5308;BA.debugLine="Dim textemp As String =\"\"";
_textemp = "";
 //BA.debugLineNum = 5309;BA.debugLine="textemp = CheckBox8.Text";
_textemp = _checkbox8.getText();
 //BA.debugLineNum = 5310;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \",";
if (_checkbox1.getChecked()) { 
_textemp = _textemp+", "+_checkbox1.getText();};
 //BA.debugLineNum = 5311;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \",";
if (_checkbox2.getChecked()) { 
_textemp = _textemp+", "+_checkbox2.getText();};
 //BA.debugLineNum = 5312;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \",";
if (_checkbox3.getChecked()) { 
_textemp = _textemp+", "+_checkbox3.getText();};
 //BA.debugLineNum = 5313;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \",";
if (_checkbox4.getChecked()) { 
_textemp = _textemp+", "+_checkbox4.getText();};
 //BA.debugLineNum = 5314;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \",";
if (_checkbox5.getChecked()) { 
_textemp = _textemp+", "+_checkbox5.getText();};
 //BA.debugLineNum = 5315;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \",";
if (_checkbox6.getChecked()) { 
_textemp = _textemp+", "+_checkbox6.getText();};
 //BA.debugLineNum = 5316;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \",";
if (_checkbox7.getChecked()) { 
_textemp = _textemp+", "+_checkbox7.getText();};
 //BA.debugLineNum = 5317;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)";
_encuentasmapa.Put((Object)("P9"),(Object)(_textemp));
 //BA.debugLineNum = 5318;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420840459",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5319;BA.debugLine="End Sub";
return "";
}
public String  _class_globals() throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 4;BA.debugLine="Private p_cliente As Panel";
_p_cliente = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 5;BA.debugLine="Dim cuest As C_Cuestionario";
_cuest = new gunav2.keymon.com.mx.c_cuestionario();
 //BA.debugLineNum = 6;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
 //BA.debugLineNum = 7;BA.debugLine="Dim ruta As String";
_ruta = "";
 //BA.debugLineNum = 8;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
 //BA.debugLineNum = 9;BA.debugLine="Dim clie_id As String";
_clie_id = "";
 //BA.debugLineNum = 10;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 11;BA.debugLine="Dim usuario As String";
_usuario = "";
 //BA.debugLineNum = 12;BA.debugLine="Dim total_cliente As String";
_total_cliente = "";
 //BA.debugLineNum = 13;BA.debugLine="Dim m_lat, m_lon As String";
_m_lat = "";
_m_lon = "";
 //BA.debugLineNum = 14;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
 //BA.debugLineNum = 15;BA.debugLine="Dim cmp20 As Serial";
_cmp20 = new anywheresoftware.b4a.objects.Serial();
 //BA.debugLineNum = 16;BA.debugLine="Dim printer As TextWriter";
_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
 //BA.debugLineNum = 17;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
 //BA.debugLineNum = 18;BA.debugLine="Dim L As List";
_l = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 19;BA.debugLine="Dim TAMANO As Int";
_tamano = 0;
 //BA.debugLineNum = 20;BA.debugLine="Dim ESPACIO As Int";
_espacio = 0;
 //BA.debugLineNum = 21;BA.debugLine="Dim BLANCO As String";
_blanco = "";
 //BA.debugLineNum = 22;BA.debugLine="Dim cuenta As String";
_cuenta = "";
 //BA.debugLineNum = 23;BA.debugLine="Dim tipo_venta As String";
_tipo_venta = "";
 //BA.debugLineNum = 24;BA.debugLine="Dim MAC_IMPRESORA As String";
_mac_impresora = "";
 //BA.debugLineNum = 25;BA.debugLine="Dim btAdmin As BluetoothAdmin";
_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
 //BA.debugLineNum = 26;BA.debugLine="Dim Printer1 As EscPosPrinter";
_printer1 = new gunav2.keymon.com.mx.escposprinter();
 //BA.debugLineNum = 27;BA.debugLine="Private location2 As Location";
_location2 = new anywheresoftware.b4a.gps.LocationWrapper();
 //BA.debugLineNum = 28;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 29;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 30;BA.debugLine="Dim DD As Cursor";
_dd = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 31;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 32;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
 //BA.debugLineNum = 33;BA.debugLine="Dim la_cuenta As Label";
_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 34;BA.debugLine="Dim La_nombre As Label";
_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 35;BA.debugLine="Dim la_Calle As Label";
_la_calle = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 36;BA.debugLine="Dim la_numero As Label";
_la_numero = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 37;BA.debugLine="Dim la_nint As Label";
_la_nint = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 38;BA.debugLine="Dim la_edo As Label";
_la_edo = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 39;BA.debugLine="Dim la_pob As Label";
_la_pob = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 40;BA.debugLine="Dim la_col As Label";
_la_col = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 41;BA.debugLine="Dim la_cp As Label";
_la_cp = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 42;BA.debugLine="Dim la_zona As Label";
_la_zona = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 43;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 44;BA.debugLine="Dim la_saldotot As Label";
_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 45;BA.debugLine="Dim la_saldooper As Label";
_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 46;BA.debugLine="Private l_cajetillas As Label";
_l_cajetillas = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 47;BA.debugLine="Dim Tels As Button";
_tels = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 48;BA.debugLine="Dim Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 49;BA.debugLine="Dim Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 51;BA.debugLine="Dim Tar As Button";
_tar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 52;BA.debugLine="Dim t1, t2 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
_t2 = new anywheresoftware.b4a.objects.Timer();
 //BA.debugLineNum = 53;BA.debugLine="Dim la_comm As Label";
_la_comm = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 54;BA.debugLine="Dim la_actdte As Label";
_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 55;BA.debugLine="Dim la_usuario As Label";
_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 56;BA.debugLine="Dim la_resultado As Label";
_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 57;BA.debugLine="Dim l_entre1 As Label";
_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 58;BA.debugLine="Dim l_entre2 As Label";
_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 59;BA.debugLine="Dim l_atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 60;BA.debugLine="Dim l_atiende2 As Label";
_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 61;BA.debugLine="Dim DATOS As Button";
_datos = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 62;BA.debugLine="Dim Guardar As Button";
_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 63;BA.debugLine="Dim NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 66;BA.debugLine="Dim l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 67;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 68;BA.debugLine="Dim S2 As Cursor";
_s2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 69;BA.debugLine="Private s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 70;BA.debugLine="Dim res As String";
_res = "";
 //BA.debugLineNum = 71;BA.debugLine="Private HIST As Button";
_hist = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 72;BA.debugLine="Private MONTO_COMPRA As String";
_monto_compra = "";
 //BA.debugLineNum = 73;BA.debugLine="Private META As String";
_meta = "";
 //BA.debugLineNum = 74;BA.debugLine="Private META2 As String";
_meta2 = "";
 //BA.debugLineNum = 75;BA.debugLine="Private VERIFICA As String";
_verifica = "";
 //BA.debugLineNum = 76;BA.debugLine="Private L_QR As Label";
_l_qr = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 77;BA.debugLine="Private BT_QR As Button";
_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 79;BA.debugLine="Dim CODIGO As String";
_codigo = "";
 //BA.debugLineNum = 81;BA.debugLine="Private b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 82;BA.debugLine="Dim CUANTOS As String";
_cuantos = "";
 //BA.debugLineNum = 83;BA.debugLine="Private B_IMP As Button";
_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 84;BA.debugLine="Dim Toggla As Toggle";
_toggla = new com.rootsoft.togglelibrary.ToggleLibrary();
 //BA.debugLineNum = 85;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
 //BA.debugLineNum = 86;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 87;BA.debugLine="Private I_COMPRA As EditText";
_i_compra = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 88;BA.debugLine="Private B_GUARDA_C As Button";
_b_guarda_c = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 89;BA.debugLine="Private b_venta As Button";
_b_venta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 90;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
 //BA.debugLineNum = 91;BA.debugLine="Dim LA_GPS As Label";
_la_gps = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 92;BA.debugLine="Private B_E_NEXT As Button";
_b_e_next = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 93;BA.debugLine="Private E_RES_E As EditText";
_e_res_e = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 94;BA.debugLine="Private t_tenc As Label";
_t_tenc = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 95;BA.debugLine="Private Panel2 As Panel";
_panel2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 96;BA.debugLine="Private CONTADOR_E As String";
_contador_e = "";
 //BA.debugLineNum = 97;BA.debugLine="Private HR_RES1 As String";
_hr_res1 = "";
 //BA.debugLineNum = 98;BA.debugLine="Private HR_RES2 As String";
_hr_res2 = "";
 //BA.debugLineNum = 99;BA.debugLine="Private HR_RES3 As String";
_hr_res3 = "";
 //BA.debugLineNum = 100;BA.debugLine="Private EXISTE As String";
_existe = "";
 //BA.debugLineNum = 101;BA.debugLine="Private telefono As String";
_telefono = "";
 //BA.debugLineNum = 104;BA.debugLine="Private RB1 As RadioButton";
_rb1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 105;BA.debugLine="Private RB2 As RadioButton";
_rb2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 106;BA.debugLine="Private RB3 As RadioButton";
_rb3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 107;BA.debugLine="Private RB4 As RadioButton";
_rb4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 108;BA.debugLine="Private RB5 As RadioButton";
_rb5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 110;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
 //BA.debugLineNum = 111;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
 //BA.debugLineNum = 112;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
 //BA.debugLineNum = 114;BA.debugLine="Private LA_GEO As Label";
_la_geo = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 115;BA.debugLine="Dim result As Int";
_result = 0;
 //BA.debugLineNum = 116;BA.debugLine="Private cercavalor As String";
_cercavalor = "";
 //BA.debugLineNum = 117;BA.debugLine="Private LA_RUTA As String";
_la_ruta = "";
 //BA.debugLineNum = 119;BA.debugLine="Private b_like As Button";
_b_like = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 120;BA.debugLine="Private B_GPS As Button";
_b_gps = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 121;BA.debugLine="Dim sc As JhsIceZxing1";
_sc = new ice.zxing.b4aZXingLib();
 //BA.debugLineNum = 122;BA.debugLine="Dim CODIGO As String";
_codigo = "";
 //BA.debugLineNum = 123;BA.debugLine="Private SV_ENCUESTA As ScrollView";
_sv_encuesta = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 124;BA.debugLine="Private RB1_E1 As RadioButton";
_rb1_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 125;BA.debugLine="Private RB2_E1 As RadioButton";
_rb2_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 126;BA.debugLine="Private RB3_E1 As RadioButton";
_rb3_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 127;BA.debugLine="Private CHB1 As CheckBox";
_chb1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 128;BA.debugLine="Private CHB2 As CheckBox";
_chb2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 129;BA.debugLine="Private CHB3 As CheckBox";
_chb3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 130;BA.debugLine="Private Panel5 As Panel";
_panel5 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 131;BA.debugLine="Private B_guardaencuesta As Button";
_b_guardaencuesta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 132;BA.debugLine="Private RadioButton1 As RadioButton";
_radiobutton1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 133;BA.debugLine="Private RadioButton2 As RadioButton";
_radiobutton2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 134;BA.debugLine="Private RadioButton3 As RadioButton";
_radiobutton3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 135;BA.debugLine="Private RadioButton4 As RadioButton";
_radiobutton4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 136;BA.debugLine="Private RadioButton5 As RadioButton";
_radiobutton5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 137;BA.debugLine="Private RadioButton6 As RadioButton";
_radiobutton6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 138;BA.debugLine="Private RadioButton7 As RadioButton";
_radiobutton7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 139;BA.debugLine="Private RadioButton8 As RadioButton";
_radiobutton8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 140;BA.debugLine="Private RadioButton9 As RadioButton";
_radiobutton9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 141;BA.debugLine="Private RadioButton10 As RadioButton";
_radiobutton10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 142;BA.debugLine="Private RadioButton11 As RadioButton";
_radiobutton11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 143;BA.debugLine="Private RadioButton12 As RadioButton";
_radiobutton12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 144;BA.debugLine="Private RadioButton13 As RadioButton";
_radiobutton13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 145;BA.debugLine="Private RadioButton14 As RadioButton";
_radiobutton14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 146;BA.debugLine="Private CheckBox1 As CheckBox";
_checkbox1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 147;BA.debugLine="Private CheckBox2 As CheckBox";
_checkbox2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 148;BA.debugLine="Private CheckBox3 As CheckBox";
_checkbox3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 149;BA.debugLine="Private CheckBox4 As CheckBox";
_checkbox4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 150;BA.debugLine="Private CheckBox5 As CheckBox";
_checkbox5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 151;BA.debugLine="Private CheckBox6 As CheckBox";
_checkbox6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 152;BA.debugLine="Private CheckBox7 As CheckBox";
_checkbox7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 153;BA.debugLine="Private CheckBox8 As CheckBox";
_checkbox8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 154;BA.debugLine="Dim encuentasmapa As Map";
_encuentasmapa = new anywheresoftware.b4a.objects.collections.Map();
 //BA.debugLineNum = 155;BA.debugLine="Private p6 As EditText";
_p6 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 156;BA.debugLine="Private p7 As EditText";
_p7 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 157;BA.debugLine="Private p8 As EditText";
_p8 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 158;BA.debugLine="Private Panel7 As Panel";
_panel7 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 159;BA.debugLine="Private RadioButton17 As RadioButton";
_radiobutton17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 160;BA.debugLine="Private RadioButton16 As RadioButton";
_radiobutton16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 161;BA.debugLine="Private RadioButton15 As RadioButton";
_radiobutton15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 162;BA.debugLine="Private B_guardaencuesta_m2 As Button";
_b_guardaencuesta_m2 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 163;BA.debugLine="Private et_p1_m2 As EditText";
_et_p1_m2 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 164;BA.debugLine="Private et_p2_m2 As EditText";
_et_p2_m2 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 165;BA.debugLine="Private RB7_P6_M2 As RadioButton";
_rb7_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 166;BA.debugLine="Private RB6_P6_M2 As RadioButton";
_rb6_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 167;BA.debugLine="Private RB5_P6_M2 As RadioButton";
_rb5_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 168;BA.debugLine="Private RB4_P6_M2 As RadioButton";
_rb4_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 169;BA.debugLine="Private RB3_P6_M2 As RadioButton";
_rb3_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 170;BA.debugLine="Private RB2_P6_M2 As RadioButton";
_rb2_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 171;BA.debugLine="Private RB1_P6_M2 As RadioButton";
_rb1_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 172;BA.debugLine="Private et_p5_m2 As EditText";
_et_p5_m2 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 173;BA.debugLine="Private rd3_p4_m2 As RadioButton";
_rd3_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 174;BA.debugLine="Private rd2_p4_m2 As RadioButton";
_rd2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 175;BA.debugLine="Private rd1_p4_m2 As RadioButton";
_rd1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 176;BA.debugLine="Private RB1_P3_M2 As RadioButton";
_rb1_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 177;BA.debugLine="Private RB2_P3_M2 As RadioButton";
_rb2_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 178;BA.debugLine="Private RB3_P3_M2 As RadioButton";
_rb3_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 179;BA.debugLine="Private RB4_P3_M2 As RadioButton";
_rb4_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 180;BA.debugLine="Private ET_P3_M2 As EditText";
_et_p3_m2 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 181;BA.debugLine="Private Panel7_M2 As Panel";
_panel7_m2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 182;BA.debugLine="Private P4_M2 As String";
_p4_m2 = "";
 //BA.debugLineNum = 183;BA.debugLine="Private P3_M2 As String";
_p3_m2 = "";
 //BA.debugLineNum = 184;BA.debugLine="Private P6_M2 As String";
_p6_m2 = "";
 //BA.debugLineNum = 186;BA.debugLine="Private CB1_P3_M2 As CheckBox";
_cb1_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 187;BA.debugLine="Private CB2_P3_M2 As CheckBox";
_cb2_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 188;BA.debugLine="Private CB3_P3_M2 As CheckBox";
_cb3_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 189;BA.debugLine="Private CB4_P3_M2 As CheckBox";
_cb4_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 190;BA.debugLine="Private CB5_P3_M2 As CheckBox";
_cb5_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 191;BA.debugLine="Private CB6_P3_M2 As CheckBox";
_cb6_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 192;BA.debugLine="Private EXISTE2 As String";
_existe2 = "";
 //BA.debugLineNum = 193;BA.debugLine="Private EXISTE3 As String";
_existe3 = "";
 //BA.debugLineNum = 194;BA.debugLine="Private EXISTE4 As String";
_existe4 = "";
 //BA.debugLineNum = 195;BA.debugLine="Private EXISTE5 As String";
_existe5 = "";
 //BA.debugLineNum = 196;BA.debugLine="Private et_p1_m3 As EditText";
_et_p1_m3 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 197;BA.debugLine="Private et_p2_m3 As EditText";
_et_p2_m3 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 198;BA.debugLine="Private CB1_P3_M3 As CheckBox";
_cb1_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 199;BA.debugLine="Private CB2_P3_M3 As CheckBox";
_cb2_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 200;BA.debugLine="Private CB3_P3_M3 As CheckBox";
_cb3_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 201;BA.debugLine="Private CB4_P3_M3 As CheckBox";
_cb4_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 202;BA.debugLine="Private CB5_P3_M3 As CheckBox";
_cb5_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 203;BA.debugLine="Private CB1_P4_M3 As CheckBox";
_cb1_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 204;BA.debugLine="Private CB2_P4_M3 As CheckBox";
_cb2_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 205;BA.debugLine="Private CB3_P4_M3 As CheckBox";
_cb3_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 206;BA.debugLine="Private CB4_P4_M3 As CheckBox";
_cb4_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 207;BA.debugLine="Private CB5_P4_M3 As CheckBox";
_cb5_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 208;BA.debugLine="Private rd1_p5_m3 As RadioButton";
_rd1_p5_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 209;BA.debugLine="Private rd2_p5_m3 As RadioButton";
_rd2_p5_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 210;BA.debugLine="Private CB1_P6_M3 As CheckBox";
_cb1_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 211;BA.debugLine="Private CB2_P6_M3 As CheckBox";
_cb2_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 212;BA.debugLine="Private CB3_P6_M3 As CheckBox";
_cb3_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 213;BA.debugLine="Private CB4_P6_M3 As CheckBox";
_cb4_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 214;BA.debugLine="Private CB5_P6_M3 As CheckBox";
_cb5_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 215;BA.debugLine="Private CB6_P6_M3 As CheckBox";
_cb6_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 216;BA.debugLine="Private ET_P6_M3 As EditText";
_et_p6_m3 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 217;BA.debugLine="Private CB1_P7_M3 As CheckBox";
_cb1_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 218;BA.debugLine="Private CB2_P7_M3 As CheckBox";
_cb2_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 219;BA.debugLine="Private CB3_P7_M3 As CheckBox";
_cb3_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 220;BA.debugLine="Private CB4_P7_M3 As CheckBox";
_cb4_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 221;BA.debugLine="Private CB1_P8_M3 As CheckBox";
_cb1_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 222;BA.debugLine="Private CB2_P8_M3 As CheckBox";
_cb2_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 223;BA.debugLine="Private CB4_P8_M3 As CheckBox";
_cb4_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 224;BA.debugLine="Private RB1_P9_M3 As RadioButton";
_rb1_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 225;BA.debugLine="Private RB2_P9_M3 As RadioButton";
_rb2_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 226;BA.debugLine="Private RB3_P9_M3 As RadioButton";
_rb3_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 227;BA.debugLine="Private RB4_P9_M3 As RadioButton";
_rb4_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 228;BA.debugLine="Private RB5_P9_M3 As RadioButton";
_rb5_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 229;BA.debugLine="Private B_guardaencuesta_m3 As Button";
_b_guardaencuesta_m3 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 230;BA.debugLine="Private P_gallina As Panel";
_p_gallina = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 231;BA.debugLine="Private b_acepta_gallina As Button";
_b_acepta_gallina = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 232;BA.debugLine="Private B_CANCELA_GALLINA As Button";
_b_cancela_gallina = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 233;BA.debugLine="Private B_GALLINA As Button";
_b_gallina = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 234;BA.debugLine="Private la_cuenta_gallina As Label";
_la_cuenta_gallina = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 235;BA.debugLine="Private cb_pregunta As B4XComboBox";
_cb_pregunta = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 236;BA.debugLine="Dim girotienda As String";
_girotienda = "";
 //BA.debugLineNum = 237;BA.debugLine="Private p_pregunta1 As Panel";
_p_pregunta1 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 238;BA.debugLine="Private b_preguntag As Button";
_b_preguntag = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 239;BA.debugLine="Private EN_QUE_ENCUESTA As String";
_en_que_encuesta = "";
 //BA.debugLineNum = 240;BA.debugLine="Private ENCUESTA As String";
_encuesta = "";
 //BA.debugLineNum = 241;BA.debugLine="Private et_p1_m4 As EditText";
_et_p1_m4 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 242;BA.debugLine="Private et_p2_m4 As EditText";
_et_p2_m4 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 243;BA.debugLine="Private cb_p3_m4 As B4XComboBox";
_cb_p3_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 244;BA.debugLine="Private cb_p4_1_m4 As B4XComboBox";
_cb_p4_1_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 245;BA.debugLine="Private cb_p4_2_m4 As B4XComboBox";
_cb_p4_2_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 246;BA.debugLine="Private cb_p4_3_m4 As B4XComboBox";
_cb_p4_3_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 247;BA.debugLine="Private cb_p4_4_m4 As B4XComboBox";
_cb_p4_4_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 248;BA.debugLine="Private cb_p4_5_m4 As B4XComboBox";
_cb_p4_5_m4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 249;BA.debugLine="Dim itemselect2 As String";
_itemselect2 = "";
 //BA.debugLineNum = 250;BA.debugLine="Dim itemselect3 As String";
_itemselect3 = "";
 //BA.debugLineNum = 251;BA.debugLine="Dim itemselect4 As String";
_itemselect4 = "";
 //BA.debugLineNum = 252;BA.debugLine="Dim itemselect5 As String";
_itemselect5 = "";
 //BA.debugLineNum = 253;BA.debugLine="Dim itemselect6 As String";
_itemselect6 = "";
 //BA.debugLineNum = 254;BA.debugLine="Dim itemselect7 As String";
_itemselect7 = "";
 //BA.debugLineNum = 255;BA.debugLine="Private B_guardaencuesta_m4 As Button";
_b_guardaencuesta_m4 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 256;BA.debugLine="Private p_modulo5 As Panel";
_p_modulo5 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 257;BA.debugLine="Private cb_p1_m5 As B4XComboBox";
_cb_p1_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 258;BA.debugLine="Private cb_p2_m5 As B4XComboBox";
_cb_p2_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 259;BA.debugLine="Private cb_p3_m5 As B4XComboBox";
_cb_p3_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 260;BA.debugLine="Private cb_p4_m5 As B4XComboBox";
_cb_p4_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 261;BA.debugLine="Private cb_p5_m5 As B4XComboBox";
_cb_p5_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 262;BA.debugLine="Private cb_p6_m5 As B4XComboBox";
_cb_p6_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 263;BA.debugLine="Private cb_p7_m5 As B4XComboBox";
_cb_p7_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 264;BA.debugLine="Private cb_p8_m5 As B4XComboBox";
_cb_p8_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 265;BA.debugLine="Private cb_p9_m5 As B4XComboBox";
_cb_p9_m5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 266;BA.debugLine="Dim itemselect8 As String";
_itemselect8 = "";
 //BA.debugLineNum = 267;BA.debugLine="Dim itemselect9 As String";
_itemselect9 = "";
 //BA.debugLineNum = 268;BA.debugLine="Dim itemselect10 As String";
_itemselect10 = "";
 //BA.debugLineNum = 269;BA.debugLine="Dim itemselect11 As String";
_itemselect11 = "";
 //BA.debugLineNum = 270;BA.debugLine="Dim itemselect12 As String";
_itemselect12 = "";
 //BA.debugLineNum = 271;BA.debugLine="Dim itemselect13 As String";
_itemselect13 = "";
 //BA.debugLineNum = 272;BA.debugLine="Dim itemselect14 As String";
_itemselect14 = "";
 //BA.debugLineNum = 273;BA.debugLine="Dim itemselect15 As String";
_itemselect15 = "";
 //BA.debugLineNum = 274;BA.debugLine="Dim itemselect16 As String";
_itemselect16 = "";
 //BA.debugLineNum = 275;BA.debugLine="Private B_guardaencuesta_m5 As Button";
_b_guardaencuesta_m5 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 276;BA.debugLine="Dim PASA As String";
_pasa = "";
 //BA.debugLineNum = 277;BA.debugLine="Private RB1_P4_M2 As RadioButton";
_rb1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 278;BA.debugLine="Private RB2_P4_M2 As RadioButton";
_rb2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 279;BA.debugLine="Private panel7_p4_m2 As Panel";
_panel7_p4_m2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 280;BA.debugLine="Private CB1_P4_M2 As CheckBox";
_cb1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 281;BA.debugLine="Private CB2_P4_M2 As CheckBox";
_cb2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 282;BA.debugLine="Private CB3_P4_M2 As CheckBox";
_cb3_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 283;BA.debugLine="Private CB4_P4_M2 As CheckBox";
_cb4_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 284;BA.debugLine="Private Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 285;BA.debugLine="Private B_GUARDA_CE_PED As Button";
_b_guarda_ce_ped = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 288;BA.debugLine="Private KP_01 As CheckBox";
_kp_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 289;BA.debugLine="Private KP_02 As CheckBox";
_kp_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 290;BA.debugLine="Private KP_03 As CheckBox";
_kp_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 291;BA.debugLine="Private KP_04 As CheckBox";
_kp_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 292;BA.debugLine="Private KP_05 As CheckBox";
_kp_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 293;BA.debugLine="Private KP_06 As CheckBox";
_kp_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 294;BA.debugLine="Private KP_07 As CheckBox";
_kp_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 295;BA.debugLine="Private KP_08 As CheckBox";
_kp_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 296;BA.debugLine="Private KP_09 As CheckBox";
_kp_09 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 297;BA.debugLine="Private KP_10 As CheckBox";
_kp_10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 298;BA.debugLine="Private KP_11 As CheckBox";
_kp_11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 299;BA.debugLine="Private KP_12 As CheckBox";
_kp_12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 300;BA.debugLine="Private KP_13 As CheckBox";
_kp_13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 301;BA.debugLine="Private KP_14 As CheckBox";
_kp_14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 302;BA.debugLine="Private KP_15 As CheckBox";
_kp_15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 303;BA.debugLine="Private KP_16 As CheckBox";
_kp_16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 304;BA.debugLine="Private KP_17 As CheckBox";
_kp_17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 305;BA.debugLine="Private KP_18 As CheckBox";
_kp_18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 306;BA.debugLine="Private KP_19 As CheckBox";
_kp_19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 307;BA.debugLine="Private KP_20 As CheckBox";
_kp_20 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 309;BA.debugLine="Private KG_01 As CheckBox";
_kg_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 310;BA.debugLine="Private KG_02 As CheckBox";
_kg_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 311;BA.debugLine="Private KG_03 As CheckBox";
_kg_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 312;BA.debugLine="Private KG_04 As CheckBox";
_kg_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 313;BA.debugLine="Private KG_05 As CheckBox";
_kg_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 314;BA.debugLine="Private KG_06 As CheckBox";
_kg_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 316;BA.debugLine="Private PK_01 As CheckBox";
_pk_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 317;BA.debugLine="Private PK_02 As CheckBox";
_pk_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 318;BA.debugLine="Private PK_03 As CheckBox";
_pk_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 319;BA.debugLine="Private PK_04 As CheckBox";
_pk_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 320;BA.debugLine="Private PK_05 As CheckBox";
_pk_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 321;BA.debugLine="Private PK_06 As CheckBox";
_pk_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 322;BA.debugLine="Private PK_07 As CheckBox";
_pk_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 323;BA.debugLine="Private PK_08 As CheckBox";
_pk_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 325;BA.debugLine="Private HPG_01 As CheckBox";
_hpg_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 326;BA.debugLine="Private HPG_02 As CheckBox";
_hpg_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 327;BA.debugLine="Private HPG_03 As CheckBox";
_hpg_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 328;BA.debugLine="Private HPG_04 As CheckBox";
_hpg_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 329;BA.debugLine="Private HPG_05 As CheckBox";
_hpg_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 330;BA.debugLine="Private HPG_06 As CheckBox";
_hpg_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 331;BA.debugLine="Private HPG_07 As CheckBox";
_hpg_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 332;BA.debugLine="Private HPG_08 As CheckBox";
_hpg_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 333;BA.debugLine="Private HPG_09 As CheckBox";
_hpg_09 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 334;BA.debugLine="Private HPG_10 As CheckBox";
_hpg_10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 336;BA.debugLine="Private HC_01 As CheckBox";
_hc_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 337;BA.debugLine="Private HC_02 As CheckBox";
_hc_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 338;BA.debugLine="Private HC_03 As CheckBox";
_hc_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 339;BA.debugLine="Private HC_04 As CheckBox";
_hc_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 341;BA.debugLine="Private B_01 As CheckBox";
_b_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 342;BA.debugLine="Private B_02 As CheckBox";
_b_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 344;BA.debugLine="Private CH_FACTURA As CheckBox";
_ch_factura = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 345;BA.debugLine="Private que_modulo As String";
_que_modulo = "";
 //BA.debugLineNum = 346;BA.debugLine="Private CUENTA_MODULO As String";
_cuenta_modulo = "";
 //BA.debugLineNum = 347;BA.debugLine="Private rb1_m3_p1 As RadioButton";
_rb1_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 348;BA.debugLine="Private RB2_M3_P1 As RadioButton";
_rb2_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 349;BA.debugLine="Private RB3_M3_P1 As RadioButton";
_rb3_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 350;BA.debugLine="Private RB4_M3_P1 As RadioButton";
_rb4_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 351;BA.debugLine="Private RB1_M3_P2 As RadioButton";
_rb1_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 352;BA.debugLine="Private RB2_M3_P2 As RadioButton";
_rb2_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 353;BA.debugLine="Private RB3_M3_P2 As RadioButton";
_rb3_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 354;BA.debugLine="Private RB4_M3_P2 As RadioButton";
_rb4_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 355;BA.debugLine="Private et_p2_m3_1 As EditText";
_et_p2_m3_1 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 356;BA.debugLine="Dim textemp2 As String =\"\"";
_textemp2 = "";
 //BA.debugLineNum = 357;BA.debugLine="Dim textemp3 As String =\"\"";
_textemp3 = "";
 //BA.debugLineNum = 358;BA.debugLine="Dim textemp4 As String =\"\"";
_textemp4 = "";
 //BA.debugLineNum = 359;BA.debugLine="Dim textemp5 As String =\"\"";
_textemp5 = "";
 //BA.debugLineNum = 360;BA.debugLine="Dim textemp6 As String =\"\"";
_textemp6 = "";
 //BA.debugLineNum = 361;BA.debugLine="Dim textemp7 As String =\"\"";
_textemp7 = "";
 //BA.debugLineNum = 362;BA.debugLine="Dim textemp8 As String =\"\"";
_textemp8 = "";
 //BA.debugLineNum = 363;BA.debugLine="Private CB3_P8_M3 As CheckBox";
_cb3_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 364;BA.debugLine="Private CB7_P6_M3 As CheckBox";
_cb7_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 365;BA.debugLine="Private p_m1 As Panel";
_p_m1 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 366;BA.debugLine="Private p_m2 As Panel";
_p_m2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 367;BA.debugLine="Private p_m3 As Panel";
_p_m3 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 368;BA.debugLine="Private p_m4 As Panel";
_p_m4 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 369;BA.debugLine="Dim impresoraConectada As Boolean = False";
_impresoraconectada = __c.False;
 //BA.debugLineNum = 370;BA.debugLine="Dim errorImpresora As Int = 0";
_errorimpresora = (int) (0);
 //BA.debugLineNum = 371;BA.debugLine="Dim idencuestaaguardar As String";
_idencuestaaguardar = "";
 //BA.debugLineNum = 373;BA.debugLine="Private botonPresionado As Int";
_botonpresionado = 0;
 //BA.debugLineNum = 374;BA.debugLine="Private encuestaRes As String";
_encuestares = "";
 //BA.debugLineNum = 375;BA.debugLine="Dim indicePregunta As Int";
_indicepregunta = 0;
 //BA.debugLineNum = 376;BA.debugLine="Dim TOMAR_FOTO As String";
_tomar_foto = "";
 //BA.debugLineNum = 377;BA.debugLine="Dim CURSOR_FOTO As Int";
_cursor_foto = 0;
 //BA.debugLineNum = 378;BA.debugLine="Dim id_encuesta As String";
_id_encuesta = "";
 //BA.debugLineNum = 379;BA.debugLine="Private chk_1_valor As String";
_chk_1_valor = "";
 //BA.debugLineNum = 380;BA.debugLine="Private chk_2_valor As String";
_chk_2_valor = "";
 //BA.debugLineNum = 381;BA.debugLine="Private chk_3_valor As String";
_chk_3_valor = "";
 //BA.debugLineNum = 382;BA.debugLine="Private Panel10 As Panel";
_panel10 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 383;BA.debugLine="Private b_chk_e As Button";
_b_chk_e = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 384;BA.debugLine="Private chk_3 As CheckBox";
_chk_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 385;BA.debugLine="Private chk_2 As CheckBox";
_chk_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 386;BA.debugLine="Private Chk_1 As CheckBox";
_chk_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 387;BA.debugLine="Private l_chk_e As Label";
_l_chk_e = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 388;BA.debugLine="Private Label28 As Label";
_label28 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 389;BA.debugLine="Private p_encuesta As Panel";
_p_encuesta = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 390;BA.debugLine="Private b_encuesta_continuar As Button";
_b_encuesta_continuar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 391;BA.debugLine="Private b_encuesta_3 As Button";
_b_encuesta_3 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 392;BA.debugLine="Private b_encuesta_2 As Button";
_b_encuesta_2 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 393;BA.debugLine="Private b_encuesta_1 As Button";
_b_encuesta_1 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 394;BA.debugLine="Private et_encuesta As EditText";
_et_encuesta = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 395;BA.debugLine="Private l_txtEncuesta As Label";
_l_txtencuesta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 396;BA.debugLine="Private l_titEncuesta As Label";
_l_titencuesta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 397;BA.debugLine="Private ImageView11 As ImageView";
_imageview11 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 398;BA.debugLine="Dim distance As Long";
_distance = 0L;
 //BA.debugLineNum = 399;BA.debugLine="Dim distancealm As Long";
_distancealm = 0L;
 //BA.debugLineNum = 400;BA.debugLine="Private p_pideGeoPass As Panel";
_p_pidegeopass = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 401;BA.debugLine="Private b_geopass As Button";
_b_geopass = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 402;BA.debugLine="Private et_geopass As EditText";
_et_geopass = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 403;BA.debugLine="Private l_geopass As Label";
_l_geopass = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 404;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager();
 //BA.debugLineNum = 405;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
 //BA.debugLineNum = 406;BA.debugLine="Private camEx As CameraExClass";
_camex = new gunav2.keymon.com.mx.cameraexclass();
 //BA.debugLineNum = 407;BA.debugLine="Dim frontCamera As Boolean = False";
_frontcamera = __c.False;
 //BA.debugLineNum = 408;BA.debugLine="Private p_cam As Panel";
_p_cam = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 409;BA.debugLine="Dim  nombrefoto As String = \"0\"";
_nombrefoto = "0";
 //BA.debugLineNum = 410;BA.debugLine="Private p_camara As Panel";
_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 411;BA.debugLine="Private teclado As IME";
_teclado = new anywheresoftware.b4a.objects.IME();
 //BA.debugLineNum = 412;BA.debugLine="Dim fototomada As String";
_fototomada = "";
 //BA.debugLineNum = 413;BA.debugLine="Private b_foto As Button";
_b_foto = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 414;BA.debugLine="Dim precision As String";
_precision = "";
 //BA.debugLineNum = 415;BA.debugLine="Dim b_Inicio_Fin_venta As Button";
_b_inicio_fin_venta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 417;BA.debugLine="Dim dentroDeGeocerca As Boolean = False";
_dentrodegeocerca = __c.False;
 //BA.debugLineNum = 418;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String";
_motivonoventa = "";
_motivonovisita = "";
 //BA.debugLineNum = 419;BA.debugLine="Dim contadorIniciarVenta As Int = 0";
_contadoriniciarventa = (int) (0);
 //BA.debugLineNum = 420;BA.debugLine="Dim IniVenNO As Boolean = False";
_inivenno = __c.False;
 //BA.debugLineNum = 421;BA.debugLine="Private geoCont As Int = 0";
_geocont = (int) (0);
 //BA.debugLineNum = 422;BA.debugLine="Private l_version As Label";
_l_version = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 427;BA.debugLine="Private b_preventa As Button";
_b_preventa = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 428;BA.debugLine="Dim bitacora As C_Bitacora";
_bitacora = new gunav2.keymon.com.mx.c_bitacora();
 //BA.debugLineNum = 429;BA.debugLine="Dim p_transparenteTicketImpreso As Panel";
_p_transparenteticketimpreso = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 430;BA.debugLine="Private et_codigoAutorizacion As EditText";
_et_codigoautorizacion = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 431;BA.debugLine="Private b_codigoAutorizacion As Button";
_b_codigoautorizacion = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 432;BA.debugLine="Private b_cancelarCodigoAutorizacion As Button";
_b_cancelarcodigoautorizacion = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 433;BA.debugLine="Private p_ticketImpreso As Panel";
_p_ticketimpreso = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 434;BA.debugLine="Private b_enviarTicket As Button";
_b_enviarticket = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 435;BA.debugLine="Dim archivoTicketPDF As String";
_archivoticketpdf = "";
 //BA.debugLineNum = 436;BA.debugLine="Private p_transparentePDF As Panel";
_p_transparentepdf = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 437;BA.debugLine="Private p_envioPDF As Panel";
_p_enviopdf = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 438;BA.debugLine="Private b_cancelarEnvioPDF As Button";
_b_cancelarenviopdf = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 439;BA.debugLine="Private b_envioPDF As Button";
_b_enviopdf = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 440;BA.debugLine="Private et_numeroPDF As EditText";
_et_numeropdf = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 441;BA.debugLine="Private btnPlanLealtad As Button";
_btnplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 442;BA.debugLine="Private pnl_btns As Panel";
_pnl_btns = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 443;BA.debugLine="Private pnlPlanLealtad As Panel";
_pnlplanlealtad = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 444;BA.debugLine="Private imgPlanLealtad As ImageView";
_imgplanlealtad = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 445;BA.debugLine="Private btnAceptaPlanLealtad As Button";
_btnaceptaplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 446;BA.debugLine="Private btnCancelarPlanLealtad As Button";
_btncancelarplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 447;BA.debugLine="Private BCREDITO As String";
_bcredito = "";
 //BA.debugLineNum = 450;BA.debugLine="Private p_comentarios As Panel";
_p_comentarios = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 451;BA.debugLine="Private p_comentario As Panel";
_p_comentario = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 452;BA.debugLine="Private b_agregarcom As Button";
_b_agregarcom = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 453;BA.debugLine="Private b_cerarcom As Button";
_b_cerarcom = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 454;BA.debugLine="Private Label19 As Label";
_label19 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 455;BA.debugLine="Private et_comentario As EditText";
_et_comentario = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 456;BA.debugLine="Private lv_comentarios As ListView";
_lv_comentarios = new anywheresoftware.b4a.objects.ListViewWrapper();
 //BA.debugLineNum = 457;BA.debugLine="Private ImageView4 As ImageView";
_imageview4 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 458;BA.debugLine="Private p_cliente_ As Panel";
_p_cliente_ = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 459;BA.debugLine="Private l_limite As Label";
_l_limite = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 460;BA.debugLine="Private l_credito As Label";
_l_credito = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 461;BA.debugLine="Private l_tipocliente As Label";
_l_tipocliente = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 462;BA.debugLine="Private l_deuda As Label";
_l_deuda = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 463;BA.debugLine="Private p_deuda As Panel";
_p_deuda = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 464;BA.debugLine="Private Label22 As Label";
_label22 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 465;BA.debugLine="Private l_animal As Label";
_l_animal = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 466;BA.debugLine="Private contIguales As Int = 0";
_contiguales = (int) (0);
 //BA.debugLineNum = 467;BA.debugLine="Private b_preventa2 As Button";
_b_preventa2 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 468;BA.debugLine="Private p_atiende As Panel";
_p_atiende = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 469;BA.debugLine="Private et_atiende As EditText";
_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 470;BA.debugLine="Private b_cancelatiende As Button";
_b_cancelatiende = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 471;BA.debugLine="Private b_acepatiende As Button";
_b_acepatiende = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 472;BA.debugLine="Private p_telefono As Panel";
_p_telefono = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 473;BA.debugLine="Private b_canceltelefono As Button";
_b_canceltelefono = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 474;BA.debugLine="Private b_aceptelefono As Button";
_b_aceptelefono = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 475;BA.debugLine="Private et_telefono As EditText";
_et_telefono = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 477;BA.debugLine="Dim totalpromos As Double";
_totalpromos = 0;
 //BA.debugLineNum = 478;BA.debugLine="Dim totalpromostotal As Double";
_totalpromostotal = 0;
 //BA.debugLineNum = 479;BA.debugLine="Private chb_com As CheckBox";
_chb_com = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
 //BA.debugLineNum = 481;BA.debugLine="Private P_Imagengrande As Panel";
_p_imagengrande = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 482;BA.debugLine="Private I_fotogrande As ImageView";
_i_fotogrande = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 485;BA.debugLine="Private scv_bat As ScrollView";
_scv_bat = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 486;BA.debugLine="Private b_cancelencu As Button";
_b_cancelencu = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 487;BA.debugLine="Private b_guadarenc As Button";
_b_guadarenc = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 488;BA.debugLine="Private p_encu As Panel";
_p_encu = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 489;BA.debugLine="Private cb_p1 As B4XComboBox";
_cb_p1 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 490;BA.debugLine="Private cb_p2 As B4XComboBox";
_cb_p2 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 491;BA.debugLine="Private cb_p3 As B4XComboBox";
_cb_p3 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 492;BA.debugLine="Private cb_p4 As B4XComboBox";
_cb_p4 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 493;BA.debugLine="Private cb_p5 As B4XComboBox";
_cb_p5 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 494;BA.debugLine="Dim e_1, e_2, e_3, e_4,e_5,e_6,e_7,e_8,e_9,e_10 A";
_e_1 = "";
_e_2 = "";
_e_3 = "";
_e_4 = "";
_e_5 = "";
_e_6 = "";
_e_7 = "";
_e_8 = "";
_e_9 = "";
_e_10 = "";
 //BA.debugLineNum = 495;BA.debugLine="Private cb_p6 As B4XComboBox";
_cb_p6 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 496;BA.debugLine="Private cb_p7 As B4XComboBox";
_cb_p7 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 497;BA.debugLine="Private cb_p8 As B4XComboBox";
_cb_p8 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 498;BA.debugLine="Private cb_p9 As B4XComboBox";
_cb_p9 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 499;BA.debugLine="Private cb_p10 As B4XComboBox";
_cb_p10 = new gunav2.keymon.com.mx.b4xcombobox();
 //BA.debugLineNum = 500;BA.debugLine="End Sub";
return "";
}
public String  _compra() throws Exception{
anywheresoftware.b4a.objects.collections.List _rutasencuesta = null;
anywheresoftware.b4a.objects.collections.List _alamcenesencuesta = null;
anywheresoftware.b4a.objects.collections.List _items = null;
 //BA.debugLineNum = 2532;BA.debugLine="Sub compra";
 //BA.debugLineNum = 2547;BA.debugLine="Private rutasEncuesta As List";
_rutasencuesta = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2548;BA.debugLine="rutasEncuesta.Initialize2(Array As Int(702, 703,";
_rutasencuesta.Initialize2(anywheresoftware.b4a.keywords.Common.ArrayToList(new int[]{(int) (702),(int) (703),(int) (707),(int) (718),(int) (730),(int) (732),(int) (733),(int) (734)}));
 //BA.debugLineNum = 2549;BA.debugLine="Private alamcenesEncuesta As List";
_alamcenesencuesta = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2550;BA.debugLine="alamcenesEncuesta.Initialize2(Array As Int(15, 35";
_alamcenesencuesta.Initialize2(anywheresoftware.b4a.keywords.Common.ArrayToList(new int[]{(int) (15),(int) (35),(int) (43),(int) (54),(int) (56),(int) (73),(int) (75),(int) (79)}));
 //BA.debugLineNum = 2565;BA.debugLine="If TOMAR_FOTO = 0 Then";
if ((_tomar_foto).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 2566;BA.debugLine="Cuestionario";
_cuestionario();
 }else {
 //BA.debugLineNum = 2568;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2569;BA.debugLine="Items.Initialize";
_items.Initialize();
 //BA.debugLineNum = 2570;BA.debugLine="Items.Add(\"Selecciona una opción\")";
_items.Add((Object)("Selecciona una opción"));
 //BA.debugLineNum = 2571;BA.debugLine="Items.Add(\"Tienda de Abarrotes (Abarrotes, Misce";
_items.Add((Object)("Tienda de Abarrotes (Abarrotes, Misceláneas, Minisupers, Particulares con Venta y Cremerías)"));
 //BA.debugLineNum = 2572;BA.debugLine="Items.Add(\"Recaudería (Frutas y Verduras)\")";
_items.Add((Object)("Recaudería (Frutas y Verduras)"));
 //BA.debugLineNum = 2573;BA.debugLine="Items.Add(\"Vinos y Licores\")";
_items.Add((Object)("Vinos y Licores"));
 //BA.debugLineNum = 2574;BA.debugLine="Items.Add(\"Carnicería o Pollería\")";
_items.Add((Object)("Carnicería o Pollería"));
 //BA.debugLineNum = 2575;BA.debugLine="Items.Add(\"Farmacia\")";
_items.Add((Object)("Farmacia"));
 //BA.debugLineNum = 2576;BA.debugLine="Items.Add(\"Jarciería (Productos de Limpieza)\")";
_items.Add((Object)("Jarciería (Productos de Limpieza)"));
 //BA.debugLineNum = 2577;BA.debugLine="Items.Add(\"Papelería y Regalos\")";
_items.Add((Object)("Papelería y Regalos"));
 //BA.debugLineNum = 2578;BA.debugLine="Items.Add(\"Tortillería\")";
_items.Add((Object)("Tortillería"));
 //BA.debugLineNum = 2579;BA.debugLine="Items.Add(\"Escuelas\")";
_items.Add((Object)("Escuelas"));
 //BA.debugLineNum = 2580;BA.debugLine="Items.Add(\"Estanquillos (Puestos Semifijos)\")";
_items.Add((Object)("Estanquillos (Puestos Semifijos)"));
 //BA.debugLineNum = 2581;BA.debugLine="Items.Add(\"Fonda, Cocina Económica, Cafetería)\")";
_items.Add((Object)("Fonda, Cocina Económica, Cafetería)"));
 //BA.debugLineNum = 2582;BA.debugLine="Items.Add(\"Tlapalería, Ferretería\")";
_items.Add((Object)("Tlapalería, Ferretería"));
 //BA.debugLineNum = 2583;BA.debugLine="Items.Add(\"Dulcería, Materias Primas\")";
_items.Add((Object)("Dulcería, Materias Primas"));
 //BA.debugLineNum = 2584;BA.debugLine="Items.Add(\"Semillas y Chiles Secos\")";
_items.Add((Object)("Semillas y Chiles Secos"));
 //BA.debugLineNum = 2585;BA.debugLine="Items.Add(\"Cybercafé\")";
_items.Add((Object)("Cybercafé"));
 //BA.debugLineNum = 2586;BA.debugLine="Items.Add(\"Hotel\")";
_items.Add((Object)("Hotel"));
 //BA.debugLineNum = 2587;BA.debugLine="Items.Add(\"Veterinaria\")";
_items.Add((Object)("Veterinaria"));
 //BA.debugLineNum = 2588;BA.debugLine="Items.Add(\"Tienda de Mascotas\")";
_items.Add((Object)("Tienda de Mascotas"));
 //BA.debugLineNum = 2589;BA.debugLine="Items.Add(\"Otros\")";
_items.Add((Object)("Otros"));
 //BA.debugLineNum = 2590;BA.debugLine="cb_pregunta.SetItems(Items)";
_cb_pregunta._setitems /*String*/ (_items);
 //BA.debugLineNum = 2591;BA.debugLine="girotienda = \"Selecciona una opcion\"";
_girotienda = "Selecciona una opcion";
 //BA.debugLineNum = 2592;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM HIST_ENCUESTA_CLIENTE WHERE HEC_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2593;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2594;BA.debugLine="CUENTA_MODULO = c.GetString(\"CUANTOS\")";
_cuenta_modulo = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2595;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2596;BA.debugLine="If CUENTA_MODULO > 0 Then";
if ((double)(Double.parseDouble(_cuenta_modulo))>0) { 
 //BA.debugLineNum = 2597;BA.debugLine="c=skmt.ExecQuery(\"SELECT HEC_MODULO FROM HIST_E";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HEC_MODULO FROM HIST_ENCUESTA_CLIENTE WHERE HEC_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2598;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2599;BA.debugLine="que_modulo = c.GetString(\"HEC_MODULO\")";
_que_modulo = _c.GetString("HEC_MODULO");
 //BA.debugLineNum = 2600;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 2602;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("415335494",_subs._traealmacen /*String*/ (ba),0);
 //BA.debugLineNum = 2603;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO1 WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2604;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2605;BA.debugLine="EXISTE = c.GetString(\"CUANTOS\")";
_existe = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2606;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2608;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO2 WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2609;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2610;BA.debugLine="EXISTE2 = c.GetString(\"CUANTOS\")";
_existe2 = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2611;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2613;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO3 WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2614;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2615;BA.debugLine="EXISTE3 = c.GetString(\"CUANTOS\")";
_existe3 = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2616;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2618;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO4 WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2619;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2620;BA.debugLine="EXISTE4 = c.GetString(\"CUANTOS\")";
_existe4 = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2621;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2623;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO5 WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 2624;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2625;BA.debugLine="EXISTE5 = c.GetString(\"CUANTOS\")";
_existe5 = _c.GetString("CUANTOS");
 //BA.debugLineNum = 2626;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2651;BA.debugLine="If EXISTE = 0 And EXISTE2 = 0 And EXISTE3 = 0 An";
if ((_existe).equals(BA.NumberToString(0)) && (_existe2).equals(BA.NumberToString(0)) && (_existe3).equals(BA.NumberToString(0)) && (_existe4).equals(BA.NumberToString(0)) && (_existe5).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 2652;BA.debugLine="S = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM C";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"CUESTIONARIO"})));
 //BA.debugLineNum = 2653;BA.debugLine="S.Position = 0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 2654;BA.debugLine="If s.GetString(\"CAT_VA_VALOR\") > \"0\" Then";
if ((double)(Double.parseDouble(_s.GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble("0"))) { 
 //BA.debugLineNum = 2656;BA.debugLine="ENCUESTA = s.GetString(\"CAT_VA_VALOR\")";
_encuesta = _s.GetString("CAT_VA_VALOR");
 //BA.debugLineNum = 2657;BA.debugLine="ENCUESTA =  \"3\"";
_encuesta = "3";
 }else {
 //BA.debugLineNum = 2690;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 }else {
 //BA.debugLineNum = 2693;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
 };
 //BA.debugLineNum = 2695;BA.debugLine="s.Close";
_s.Close();
 };
 //BA.debugLineNum = 2704;BA.debugLine="End Sub";
return "";
}
public String  _cuest_preguntacontestada(anywheresoftware.b4a.objects.collections.Map _m) throws Exception{
 //BA.debugLineNum = 6885;BA.debugLine="Sub cuest_preguntaContestada(m As Map)";
 //BA.debugLineNum = 6887;BA.debugLine="Log(m)";
__c.LogImpl("425427970",BA.ObjectToString(_m),0);
 //BA.debugLineNum = 6890;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();
 //BA.debugLineNum = 6891;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 6892;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 6893;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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")))+"'"));
 //BA.debugLineNum = 6894;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)))+"', '"+__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())))+"')"));
 //BA.debugLineNum = 6895;BA.debugLine="Log(\">> RESP: \" & m.Get(\"respuesta\"))";
__c.LogImpl("425427978",">> RESP: "+BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
 //BA.debugLineNum = 6896;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"),(Object)("7"))) {
case 0: {
 //BA.debugLineNum = 6898;BA.debugLine="If m.Get(\"respuesta\") = \"Ninguno de los anterio";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Ninguno de los anteriores"))) { 
 //BA.debugLineNum = 6901;BA.debugLine="cuest.agregaPreguntaCheckbox(\"3\", \"¿Qué produc";
_cuest._agregapreguntacheckbox /*String*/ ("3","¿Qué productos de Kileo Gato encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Whiskas","KITEKAT","PAL GATO","CAT CHOW","GATINA","MININO","MI MISHI","OTROS","Ninguno de los anteriores"}));
 }else {
 //BA.debugLineNum = 6904;BA.debugLine="cuest.agregaPreguntaAbierta(\"2\", \"Captura el p";
_cuest._agregapreguntaabierta /*String*/ ("2","Captura el precio por kilo de los articulos seleccionados anteriormente",_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("idRespuesta")))),_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("respuesta")))));
 };
 break; }
case 1: {
 //BA.debugLineNum = 6908;BA.debugLine="cuest.agregaPreguntaCheckbox(\"3\", \"¿Qué product";
_cuest._agregapreguntacheckbox /*String*/ ("3","¿Qué productos de Kileo Gato encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Whiskas","KITEKAT","PAL GATO","CAT CHOW","GATINA","MININO","MI MISHI","OTROS","Ninguno de los anteriores"}));
 break; }
case 2: {
 //BA.debugLineNum = 6911;BA.debugLine="If m.Get(\"respuesta\") = \"Ninguno de los anterio";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Ninguno de los anteriores"))) { 
 //BA.debugLineNum = 6914;BA.debugLine="cuest.agregaPreguntaCheckbox(\"5\", \"¿Qué produc";
_cuest._agregapreguntacheckbox /*String*/ ("5","¿Qué productos de húmedo MARS encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Pedigree Adulto res","Pedigree Adulto Pollo","Pedigree Cachorro res","Pedigree Cachorro Pollo","Pedigree Raz Peq res","Pedigree Raz Peq Pollo","Pedigree Adulto Cordero","Pedigree Adulto Lata res","Whiskas Atún","Whiskas Pollo","Whiskas res","Whiskas Salmón","Whiskas Parrillada Mixta","Whiskas Pescado BLANCO","Whiskas Souffle","Ninguno de los anteriores"}));
 }else {
 //BA.debugLineNum = 6916;BA.debugLine="cuest.agregaPreguntaAbierta(\"4\", \"Captura el p";
_cuest._agregapreguntaabierta /*String*/ ("4","Captura el precio por kilo de los articulos seleccionados anteriormente",_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("idRespuesta")))),_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("respuesta")))));
 };
 break; }
case 3: {
 //BA.debugLineNum = 6919;BA.debugLine="cuest.agregaPreguntaCheckbox(\"5\", \"¿Qué product";
_cuest._agregapreguntacheckbox /*String*/ ("5","¿Qué productos de húmedo MARS encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Pedigree Adulto res","Pedigree Adulto Pollo","Pedigree Cachorro res","Pedigree Cachorro Pollo","Pedigree Raz Peq res","Pedigree Raz Peq Pollo","Pedigree Adulto Cordero","Pedigree Adulto Lata res","Whiskas Atún","Whiskas Pollo","Whiskas res","Whiskas Salmón","Whiskas Parrillada Mixta","Whiskas Pescado BLANCO","Whiskas Souffle","Ninguno de los anteriores"}));
 break; }
case 4: {
 //BA.debugLineNum = 6921;BA.debugLine="cuest.agregaPreguntaCheckbox(\"6\", \"¿Qué product";
_cuest._agregapreguntacheckbox /*String*/ ("6","¿Qué productos de húmedo otros encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Dog Chow (cualquier sabor)","Ganador (cualquier sabor)","Felix (cualquier sabor)","Minino plus (cualquier sabor)","Cat Chow (cualquier sabor)","Beneful (cualquier sabor)","Amigo Gourmet (cualquier sabor)","Ninguno de los anteriores"}));
 break; }
case 5: {
 //BA.debugLineNum = 6923;BA.debugLine="cuest.agregaPreguntaCheckbox(\"7\", \"¿Qué product";
_cuest._agregapreguntacheckbox /*String*/ ("7","¿Qué productos de botanas encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Dentastix","Biscrok","Ninguno de los anteriores"}));
 break; }
case 6: {
 //BA.debugLineNum = 6926;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False);
 //BA.debugLineNum = 6927;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
__c.LogImpl("425428010",">>>>>>>>>>  "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
 //BA.debugLineNum = 6928;BA.debugLine="cuest.encuestaIniciada = False";
_cuest._encuestainiciada /*boolean*/  = __c.False;
 //BA.debugLineNum = 6929;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
__c.LogImpl("425428012",">>>>>>>>>>  "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
 //BA.debugLineNum = 6932;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 break; }
}
;
 //BA.debugLineNum = 6935;BA.debugLine="End Sub";
return "";
}
public void  _cuestionario() throws Exception{
ResumableSub_Cuestionario rsub = new ResumableSub_Cuestionario(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Cuestionario extends BA.ResumableSub {
public ResumableSub_Cuestionario(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
boolean _logger = false;
String _fecha = "";
int _cuantos2 = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _enc = null;
anywheresoftware.b4a.objects.collections.List _listapreguntas = null;
int _j = 0;
int _i = 0;
String _btop = "";
int step29;
int limit29;
int step35;
int limit35;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 6550;BA.debugLine="Log(\"Entramos a Cuestionario\")";
parent.__c.LogImpl("424444929","Entramos a Cuestionario",0);
 //BA.debugLineNum = 6551;BA.debugLine="Private logger As Boolean = True";
_logger = parent.__c.True;
 //BA.debugLineNum = 6552;BA.debugLine="b_encuesta_continuar.Visible = False";
parent._b_encuesta_continuar.setVisible(parent.__c.False);
 //BA.debugLineNum = 6553;BA.debugLine="et_encuesta.Visible = False";
parent._et_encuesta.setVisible(parent.__c.False);
 //BA.debugLineNum = 6554;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 6555;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 6556;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 6557;BA.debugLine="Private fecha As String = $\"${DateTime.Date(DateT";
_fecha = (""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow())))+" "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.DateTime.Time(parent.__c.DateTime.getNow())))+"");
 //BA.debugLineNum = 6558;BA.debugLine="CUANTOS = 0";
parent._cuantos = BA.NumberToString(0);
 //BA.debugLineNum = 6560;BA.debugLine="If logger Then Log($\"Tomar_Foto = ${TOMAR_FOTO}\"$";
if (true) break;

case 1:
//if
this.state = 6;
if (_logger) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
parent.__c.LogImpl("424444939",("Tomar_Foto = "+parent.__c.SmartStringFormatter("",(Object)(parent._tomar_foto))+""),0);
if (true) break;

case 6:
//C
this.state = 7;
;
 //BA.debugLineNum = 6561;BA.debugLine="If TOMAR_FOTO = 0 Then";
if (true) break;

case 7:
//if
this.state = 16;
if ((parent._tomar_foto).equals(BA.NumberToString(0))) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 //BA.debugLineNum = 6562;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select COU";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from HIST_ENCUESTA where HE_CLIE In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 6563;BA.debugLine="s.Position= 0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 6564;BA.debugLine="CUANTOS = s.GetString(\"CUANTOS\")";
parent._cuantos = parent._s.GetString("CUANTOS");
 //BA.debugLineNum = 6565;BA.debugLine="Private CUANTOS2 As Int = 0";
_cuantos2 = (int) (0);
 //BA.debugLineNum = 6566;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select COU";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS2 from HIST_ENCUESTA2 where HE_CLIENTE In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 6567;BA.debugLine="s.Position = 0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 6568;BA.debugLine="CUANTOS2 = s.GetString(\"CUANTOS2\")";
_cuantos2 = (int)(Double.parseDouble(parent._s.GetString("CUANTOS2")));
 //BA.debugLineNum = 6569;BA.debugLine="If logger Then LogColor($\"Hist:encuesta=${CUANTO";
if (true) break;

case 10:
//if
this.state = 15;
if (_logger) { 
this.state = 12;
;}if (true) break;

case 12:
//C
this.state = 15;
parent.__c.LogImpl("424444948",("Hist:encuesta="+parent.__c.SmartStringFormatter("",(Object)(parent._cuantos))+", hist_encuesta2 = "+parent.__c.SmartStringFormatter("",(Object)(_cuantos2))+""),parent.__c.Colors.Magenta);
if (true) break;

case 15:
//C
this.state = 16;
;
 if (true) break;
;
 //BA.debugLineNum = 6573;BA.debugLine="If logger Then Log(CUANTOS & \"|\" & CUANTOS2)";

case 16:
//if
this.state = 21;
if (_logger) { 
this.state = 18;
;}if (true) break;

case 18:
//C
this.state = 21;
parent.__c.LogImpl("424444952",parent._cuantos+"|"+BA.NumberToString(_cuantos2),0);
if (true) break;

case 21:
//C
this.state = 22;
;
 //BA.debugLineNum = 6574;BA.debugLine="If CUANTOS = 0 And CUANTOS2 = 0 Then";
if (true) break;

case 22:
//if
this.state = 224;
if ((parent._cuantos).equals(BA.NumberToString(0)) && _cuantos2==0) { 
this.state = 24;
}else {
this.state = 223;
}if (true) break;

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 6575;BA.debugLine="Private enc As Cursor = B4XPages.MainPage.skmt.E";
_enc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_enc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_EP_ID, CAT_EP_IDTIPOPREGUNTA, CAT_CE_DESCRIPCION, CAT_EP_PREGUNTA, CAT_EP_RES1_PRED, CAT_EP_RES2_PRED, CAT_EP_RES3_PRED, CAT_EP_ORDEN_PREGUNTA FROM CAT_ENCUESTA_PREGUNTA ORDER BY CAT_CE_DESCRIPCION, CAST(CAT_EP_ORDEN_PREGUNTA AS DECIMAL)")));
 //BA.debugLineNum = 6576;BA.debugLine="If enc.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 221;
if (_enc.getRowCount()>0) { 
this.state = 27;
}else {
this.state = 220;
}if (true) break;

case 27:
//C
this.state = 28;
 //BA.debugLineNum = 6577;BA.debugLine="enc.position = 0";
_enc.setPosition((int) (0));
 //BA.debugLineNum = 6578;BA.debugLine="If logger Then Log($\"CAT_EP_ID=${enc.GetString(";
if (true) break;

case 28:
//if
this.state = 33;
if (_logger) { 
this.state = 30;
;}if (true) break;

case 30:
//C
this.state = 33;
parent.__c.LogImpl("424444957",("CAT_EP_ID="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_ID")))+""),0);
if (true) break;

case 33:
//C
this.state = 34;
;
 //BA.debugLineNum = 6579;BA.debugLine="Private listaPreguntas As List";
_listapreguntas = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 6580;BA.debugLine="listaPreguntas.Initialize";
_listapreguntas.Initialize();
 //BA.debugLineNum = 6581;BA.debugLine="For j = 0 To enc.RowCount - 1 'Ponemos en una l";
if (true) break;

case 34:
//for
this.state = 37;
step29 = 1;
limit29 = (int) (_enc.getRowCount()-1);
_j = (int) (0) ;
this.state = 225;
if (true) break;

case 225:
//C
this.state = 37;
if ((step29 > 0 && _j <= limit29) || (step29 < 0 && _j >= limit29)) this.state = 36;
if (true) break;

case 226:
//C
this.state = 225;
_j = ((int)(0 + _j + step29)) ;
if (true) break;

case 36:
//C
this.state = 226;
 //BA.debugLineNum = 6582;BA.debugLine="enc.Position = j";
_enc.setPosition(_j);
 //BA.debugLineNum = 6583;BA.debugLine="listaPreguntas.Add(enc.GetString(\"CAT_EP_ID\"))";
_listapreguntas.Add((Object)(_enc.GetString("CAT_EP_ID")));
 if (true) break;
if (true) break;
;
 //BA.debugLineNum = 6585;BA.debugLine="If logger Then Log(listaPreguntas)";

case 37:
//if
this.state = 42;
if (_logger) { 
this.state = 39;
;}if (true) break;

case 39:
//C
this.state = 42;
parent.__c.LogImpl("424444964",BA.ObjectToString(_listapreguntas),0);
if (true) break;

case 42:
//C
this.state = 43;
;
 //BA.debugLineNum = 6586;BA.debugLine="enc.position = 0";
_enc.setPosition((int) (0));
 //BA.debugLineNum = 6587;BA.debugLine="For i = 0 To enc.RowCount - 1";
if (true) break;

case 43:
//for
this.state = 218;
step35 = 1;
limit35 = (int) (_enc.getRowCount()-1);
_i = (int) (0) ;
this.state = 227;
if (true) break;

case 227:
//C
this.state = 218;
if ((step35 > 0 && _i <= limit35) || (step35 < 0 && _i >= limit35)) this.state = 45;
if (true) break;

case 228:
//C
this.state = 227;
_i = ((int)(0 + _i + step35)) ;
if (true) break;

case 45:
//C
this.state = 46;
 //BA.debugLineNum = 6588;BA.debugLine="Log(\"#########################################";
parent.__c.LogImpl("424444967","########################################################",0);
 //BA.debugLineNum = 6591;BA.debugLine="If logger Then Log($\"Tipo: ${enc.GetString(\"CA";
if (true) break;

case 46:
//if
this.state = 51;
if (_logger) { 
this.state = 48;
;}if (true) break;

case 48:
//C
this.state = 51;
parent.__c.LogImpl("424444970",("Tipo: "+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_IDTIPOPREGUNTA")))+", CAT_EP_ID="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_ID")))+", CAT_EP_PREGUNTA="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_PREGUNTA")))+""),0);
if (true) break;

case 51:
//C
this.state = 52;
;
 //BA.debugLineNum = 6592;BA.debugLine="If enc.GetString(\"CAT_EP_IDTIPOPREGUNTA\") <> 4";
if (true) break;

case 52:
//if
this.state = 55;
if ((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(4)) == false && parent._indicepregunta!=0) { 
this.state = 54;
}if (true) break;

case 54:
//C
this.state = 55;
 //BA.debugLineNum = 6593;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.G";
parent._indicepregunta = (int) (_listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_ID")))+1);
 //BA.debugLineNum = 6594;BA.debugLine="i = indicePregunta";
_i = parent._indicepregunta;
 //BA.debugLineNum = 6595;BA.debugLine="Log($\"i = ${i}\"$)";
parent.__c.LogImpl("424444974",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0);
 if (true) break;
;
 //BA.debugLineNum = 6597;BA.debugLine="If logger Then Log(\"indicePregunta: \" & indice";

case 55:
//if
this.state = 60;
if (_logger) { 
this.state = 57;
;}if (true) break;

case 57:
//C
this.state = 60;
parent.__c.LogImpl("424444976","indicePregunta: "+BA.NumberToString(parent._indicepregunta)+", TIPO: "+_enc.GetString("CAT_EP_IDTIPOPREGUNTA"),0);
if (true) break;

case 60:
//C
this.state = 61;
;
 //BA.debugLineNum = 6599;BA.debugLine="If logger Then Log($\"EncuestaRes = ${encuestaR";
if (true) break;

case 61:
//if
this.state = 66;
if (_logger) { 
this.state = 63;
;}if (true) break;

case 63:
//C
this.state = 66;
parent.__c.LogImpl("424444978",("EncuestaRes = "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),0);
if (true) break;

case 66:
//C
this.state = 67;
;
 //BA.debugLineNum = 6600;BA.debugLine="If logger Then Log(listaPreguntas)";
if (true) break;

case 67:
//if
this.state = 72;
if (_logger) { 
this.state = 69;
;}if (true) break;

case 69:
//C
this.state = 72;
parent.__c.LogImpl("424444979",BA.ObjectToString(_listapreguntas),0);
if (true) break;

case 72:
//C
this.state = 73;
;
 //BA.debugLineNum = 6601;BA.debugLine="If TOMAR_FOTO = 1 Then";
if (true) break;

case 73:
//if
this.state = 87;
if ((parent._tomar_foto).equals(BA.NumberToString(1))) { 
this.state = 75;
}if (true) break;

case 75:
//C
this.state = 76;
 //BA.debugLineNum = 6602;BA.debugLine="If CURSOR_FOTO + 1 > enc.RowCount -1 Then";
if (true) break;

case 76:
//if
this.state = 81;
if (parent._cursor_foto+1>_enc.getRowCount()-1) { 
this.state = 78;
}else {
this.state = 80;
}if (true) break;

case 78:
//C
this.state = 81;
 //BA.debugLineNum = 6603;BA.debugLine="TOMAR_FOTO = 0";
parent._tomar_foto = BA.NumberToString(0);
 //BA.debugLineNum = 6604;BA.debugLine="LogColor(\"TOMAR FOTO = 1\", Colors.Red)";
parent.__c.LogImpl("424444983","TOMAR FOTO = 1",parent.__c.Colors.Red);
 //BA.debugLineNum = 6605;BA.debugLine="Exit";
this.state = 218;
if (true) break;
 if (true) break;

case 80:
//C
this.state = 81;
 //BA.debugLineNum = 6607;BA.debugLine="i = CURSOR_FOTO + 1";
_i = (int) (parent._cursor_foto+1);
 if (true) break;
;
 //BA.debugLineNum = 6609;BA.debugLine="If logger Then Log($\"i = ${i}\"$)";

case 81:
//if
this.state = 86;
if (_logger) { 
this.state = 83;
;}if (true) break;

case 83:
//C
this.state = 86;
parent.__c.LogImpl("424444988",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0);
if (true) break;

case 86:
//C
this.state = 87;
;
 //BA.debugLineNum = 6610;BA.debugLine="TOMAR_FOTO = 0";
parent._tomar_foto = BA.NumberToString(0);
 if (true) break;
;
 //BA.debugLineNum = 6612;BA.debugLine="If i > (enc.RowCount - 1) Then";

case 87:
//if
this.state = 90;
if (_i>(_enc.getRowCount()-1)) { 
this.state = 89;
}if (true) break;

case 89:
//C
this.state = 90;
 //BA.debugLineNum = 6613;BA.debugLine="LogColor(\"MAS DE ${enc.RowCount - 1}\", Colors";
parent.__c.LogImpl("424444992","MAS DE ${enc.RowCount - 1}",parent.__c.Colors.Red);
 //BA.debugLineNum = 6614;BA.debugLine="Exit ' Si se contestó la ultima pregunta, ent";
this.state = 218;
if (true) break;
 if (true) break;

case 90:
//C
this.state = 91;
;
 //BA.debugLineNum = 6618;BA.debugLine="i = indicePregunta";
_i = parent._indicepregunta;
 //BA.debugLineNum = 6620;BA.debugLine="enc.Position = i";
_enc.setPosition(_i);
 //BA.debugLineNum = 6621;BA.debugLine="Log($\"POSICION = ${enc.Position}\"$)";
parent.__c.LogImpl("424445000",("POSICION = "+parent.__c.SmartStringFormatter("",(Object)(_enc.getPosition()))+""),0);
 //BA.debugLineNum = 6622;BA.debugLine="If enc.GetString(\"CAT_EP_IDTIPOPREGUNTA\") = 5";
if (true) break;

case 91:
//if
this.state = 214;
if ((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(5))) { 
this.state = 93;
}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(3))) { 
this.state = 101;
}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(4))) { 
this.state = 124;
}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(2))) { 
this.state = 163;
}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(6))) { 
this.state = 187;
}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(1))) { 
this.state = 195;
}else {
this.state = 213;
}if (true) break;

case 93:
//C
this.state = 94;
 //BA.debugLineNum = 6623;BA.debugLine="If logger Then Log(\"Pregunta tipo 5\")";
if (true) break;

case 94:
//if
this.state = 99;
if (_logger) { 
this.state = 96;
;}if (true) break;

case 96:
//C
this.state = 99;
parent.__c.LogImpl("424445002","Pregunta tipo 5",0);
if (true) break;

case 99:
//C
this.state = 214;
;
 //BA.debugLineNum = 6624;BA.debugLine="id_encuesta = enc.GetString(\"CAT_EP_ID\")";
parent._id_encuesta = _enc.GetString("CAT_EP_ID");
 //BA.debugLineNum = 6625;BA.debugLine="idencuestaaguardar = enc.GetString(\"CAT_EP_ID";
parent._idencuestaaguardar = _enc.GetString("CAT_EP_ID");
 //BA.debugLineNum = 6626;BA.debugLine="LogColor(idencuestaaguardar,Colors.Blue)";
parent.__c.LogImpl("424445005",parent._idencuestaaguardar,parent.__c.Colors.Blue);
 //BA.debugLineNum = 6627;BA.debugLine="TOMAR_FOTO = 1";
parent._tomar_foto = BA.NumberToString(1);
 //BA.debugLineNum = 6628;BA.debugLine="CURSOR_FOTO = i";
parent._cursor_foto = _i;
 //BA.debugLineNum = 6629;BA.debugLine="LogColor(\"PREGUNTA TIPO 5 SALIMOS\", Colors.Re";
parent.__c.LogImpl("424445008","PREGUNTA TIPO 5 SALIMOS",parent.__c.Colors.Red);
 //BA.debugLineNum = 6631;BA.debugLine="InitializeCamera2";
parent._initializecamera2();
 //BA.debugLineNum = 6632;BA.debugLine="p_camara.Visible = True";
parent._p_camara.setVisible(parent.__c.True);
 if (true) break;

case 101:
//C
this.state = 102;
 //BA.debugLineNum = 6636;BA.debugLine="If logger Then Log(\"Pregunta tipo 3\")";
if (true) break;

case 102:
//if
this.state = 107;
if (_logger) { 
this.state = 104;
;}if (true) break;

case 104:
//C
this.state = 107;
parent.__c.LogImpl("424445015","Pregunta tipo 3",0);
if (true) break;

case 107:
//C
this.state = 108;
;
 //BA.debugLineNum = 6637;BA.debugLine="botonPresionado = 0 ' Bandera para que espere";
parent._botonpresionado = (int) (0);
 //BA.debugLineNum = 6638;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE";
parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION")));
 //BA.debugLineNum = 6639;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR";
parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA")));
 //BA.debugLineNum = 6640;BA.debugLine="Subs.centraEtiqueta(l_txtEncuesta, Root.Width";
parent._subs._centraetiqueta /*String*/ (ba,parent._l_txtencuesta,parent._root.getWidth());
 //BA.debugLineNum = 6641;BA.debugLine="muestraBoton(b_encuesta_1,\"SI\", enc.GetString";
parent._muestraboton(parent._b_encuesta_1,"SI",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-350),(int) (580),(int) (300),(int) (160));
 //BA.debugLineNum = 6642;BA.debugLine="muestraBoton(b_encuesta_2, \"NO\", enc.GetStrin";
parent._muestraboton(parent._b_encuesta_2,"NO",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()+50),(int) (580),(int) (300),(int) (160));
 //BA.debugLineNum = 6643;BA.debugLine="muestraEncuesta";
parent._muestraencuesta();
 //BA.debugLineNum = 6644;BA.debugLine="Log(\"Esperamos respuesta\")";
parent.__c.LogImpl("424445023","Esperamos respuesta",0);
 //BA.debugLineNum = 6645;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r";
if (true) break;

case 108:
//do until
this.state = 111;
while (!(parent._botonpresionado==1)) {
this.state = 110;
if (true) break;
}
if (true) break;

case 110:
//C
this.state = 108;
 //BA.debugLineNum = 6646;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 229;
return;
case 229:
//C
this.state = 108;
;
 if (true) break;
;
 //BA.debugLineNum = 6648;BA.debugLine="If logger Then Log(\"encuestaRes: \" & encuesta";

case 111:
//if
this.state = 116;
if (_logger) { 
this.state = 113;
;}if (true) break;

case 113:
//C
this.state = 116;
parent.__c.LogImpl("424445027","encuestaRes: "+parent._encuestares,0);
if (true) break;

case 116:
//C
this.state = 117;
;
 //BA.debugLineNum = 6649;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 3 :";
if (true) break;

case 117:
//if
this.state = 122;
if (_logger) { 
this.state = 119;
;}if (true) break;

case 119:
//C
this.state = 122;
parent.__c.LogImpl("424445028",("Guardamos tipo 3 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green);
if (true) break;

case 122:
//C
this.state = 214;
;
 //BA.debugLineNum = 6650;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 6651;BA.debugLine="ocultaPanelEncuesta";
parent._ocultapanelencuesta();
 if (true) break;

case 124:
//C
this.state = 125;
 //BA.debugLineNum = 6653;BA.debugLine="If logger Then Log(\"Pregunta tipo 4\")";
if (true) break;

case 125:
//if
this.state = 130;
if (_logger) { 
this.state = 127;
;}if (true) break;

case 127:
//C
this.state = 130;
parent.__c.LogImpl("424445032","Pregunta tipo 4",0);
if (true) break;

case 130:
//C
this.state = 131;
;
 //BA.debugLineNum = 6654;BA.debugLine="botonPresionado = 0 ' Bandera para que espere";
parent._botonpresionado = (int) (0);
 //BA.debugLineNum = 6655;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE";
parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION")));
 //BA.debugLineNum = 6656;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR";
parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA")));
 //BA.debugLineNum = 6657;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG";
if (true) break;

case 131:
//if
this.state = 136;
if (_logger) { 
this.state = 133;
;}if (true) break;

case 133:
//C
this.state = 136;
parent.__c.LogImpl("424445036",_enc.GetString("CAT_EP_PREGUNTA"),0);
if (true) break;

case 136:
//C
this.state = 137;
;
 //BA.debugLineNum = 6658;BA.debugLine="Subs.centraEtiqueta(l_txtEncuesta, Root.Width";
parent._subs._centraetiqueta /*String*/ (ba,parent._l_txtencuesta,parent._root.getWidth());
 //BA.debugLineNum = 6659;BA.debugLine="muestraBoton(b_encuesta_1,\"SI\", enc.GetString";
parent._muestraboton(parent._b_encuesta_1,"SI",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-350),(int) (580),(int) (300),(int) (160));
 //BA.debugLineNum = 6660;BA.debugLine="muestraBoton(b_encuesta_2, \"NO\", enc.GetStrin";
parent._muestraboton(parent._b_encuesta_2,"NO",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()+50),(int) (580),(int) (300),(int) (160));
 //BA.debugLineNum = 6661;BA.debugLine="muestraEncuesta";
parent._muestraencuesta();
 //BA.debugLineNum = 6662;BA.debugLine="Log(\"Esperamos respuesta\")";
parent.__c.LogImpl("424445041","Esperamos respuesta",0);
 //BA.debugLineNum = 6663;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r";
if (true) break;

case 137:
//do until
this.state = 140;
while (!(parent._botonpresionado==1)) {
this.state = 139;
if (true) break;
}
if (true) break;

case 139:
//C
this.state = 137;
 //BA.debugLineNum = 6664;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 230;
return;
case 230:
//C
this.state = 137;
;
 if (true) break;
;
 //BA.debugLineNum = 6666;BA.debugLine="If logger Then Log(\"encuestaRes: \" & encuesta";

case 140:
//if
this.state = 145;
if (_logger) { 
this.state = 142;
;}if (true) break;

case 142:
//C
this.state = 145;
parent.__c.LogImpl("424445045","encuestaRes: "+parent._encuestares,0);
if (true) break;

case 145:
//C
this.state = 146;
;
 //BA.debugLineNum = 6667;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 4 :";
if (true) break;

case 146:
//if
this.state = 151;
if (_logger) { 
this.state = 148;
;}if (true) break;

case 148:
//C
this.state = 151;
parent.__c.LogImpl("424445046",("Guardamos tipo 4 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green);
if (true) break;

case 151:
//C
this.state = 152;
;
 //BA.debugLineNum = 6668;BA.debugLine="If encuestaRes = \"SI\" Then";
if (true) break;

case 152:
//if
this.state = 161;
if ((parent._encuestares).equals("SI")) { 
this.state = 154;
}else if((parent._encuestares).equals("NO")) { 
this.state = 156;
}if (true) break;

case 154:
//C
this.state = 161;
 //BA.debugLineNum = 6669;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)("SI"),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 6670;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.";
parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_RES1_PRED")));
 //BA.debugLineNum = 6671;BA.debugLine="Log($\"IndicePreg = ${indicePregunta}\"$)";
parent.__c.LogImpl("424445050",("IndicePreg = "+parent.__c.SmartStringFormatter("",(Object)(parent._indicepregunta))+""),0);
 //BA.debugLineNum = 6672;BA.debugLine="i = indicePregunta";
_i = parent._indicepregunta;
 if (true) break;

case 156:
//C
this.state = 157;
 //BA.debugLineNum = 6674;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)("NO"),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 6675;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.";
parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_RES2_PRED")));
 //BA.debugLineNum = 6676;BA.debugLine="Log($\"IndicePreg = ${indicePregunta}\"$)";
parent.__c.LogImpl("424445055",("IndicePreg = "+parent.__c.SmartStringFormatter("",(Object)(parent._indicepregunta))+""),0);
 //BA.debugLineNum = 6677;BA.debugLine="i = indicePregunta";
_i = parent._indicepregunta;
 //BA.debugLineNum = 6678;BA.debugLine="Log($\"I = ${i}\"$)";
parent.__c.LogImpl("424445057",("I = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0);
 //BA.debugLineNum = 6679;BA.debugLine="If enc.GetString(\"CAT_EP_RES2_PRED\") = \"null";
if (true) break;

case 157:
//if
this.state = 160;
if ((_enc.GetString("CAT_EP_RES2_PRED")).equals("null") || _enc.GetString("CAT_EP_RES2_PRED")== null) { 
this.state = 159;
}if (true) break;

case 159:
//C
this.state = 160;
 //BA.debugLineNum = 6680;BA.debugLine="Exit";
this.state = 218;
if (true) break;
 if (true) break;

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

case 161:
//C
this.state = 214;
;
 if (true) break;

case 163:
//C
this.state = 164;
 //BA.debugLineNum = 6684;BA.debugLine="Log(\"Pregunta tipo 2\")";
parent.__c.LogImpl("424445063","Pregunta tipo 2",0);
 //BA.debugLineNum = 6685;BA.debugLine="botonPresionado = 0 ' Bandera para que espere";
parent._botonpresionado = (int) (0);
 //BA.debugLineNum = 6686;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE";
parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION")));
 //BA.debugLineNum = 6687;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR";
parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA")));
 //BA.debugLineNum = 6688;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG";
if (true) break;

case 164:
//if
this.state = 169;
if (_logger) { 
this.state = 166;
;}if (true) break;

case 166:
//C
this.state = 169;
parent.__c.LogImpl("424445067",_enc.GetString("CAT_EP_PREGUNTA"),0);
if (true) break;

case 169:
//C
this.state = 170;
;
 //BA.debugLineNum = 6689;BA.debugLine="muestraBoton(b_encuesta_1, enc.GetString(\"CAT";
parent._muestraboton(parent._b_encuesta_1,_enc.GetString("CAT_EP_RES1_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (580),(int) (500),(int) (160));
 //BA.debugLineNum = 6690;BA.debugLine="muestraBoton(b_encuesta_2, enc.GetString(\"CAT";
parent._muestraboton(parent._b_encuesta_2,_enc.GetString("CAT_EP_RES2_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (740),(int) (500),(int) (160));
 //BA.debugLineNum = 6691;BA.debugLine="muestraBoton(b_encuesta_3, enc.GetString(\"CAT";
parent._muestraboton(parent._b_encuesta_3,_enc.GetString("CAT_EP_RES3_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (900),(int) (500),(int) (160));
 //BA.debugLineNum = 6692;BA.debugLine="muestraEncuesta";
parent._muestraencuesta();
 //BA.debugLineNum = 6693;BA.debugLine="Log(\"Esperamos respuesta\")";
parent.__c.LogImpl("424445072","Esperamos respuesta",0);
 //BA.debugLineNum = 6694;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r";
if (true) break;

case 170:
//do until
this.state = 173;
while (!(parent._botonpresionado==1)) {
this.state = 172;
if (true) break;
}
if (true) break;

case 172:
//C
this.state = 170;
 //BA.debugLineNum = 6695;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 231;
return;
case 231:
//C
this.state = 170;
;
 if (true) break;

case 173:
//C
this.state = 174;
;
 //BA.debugLineNum = 6697;BA.debugLine="Log(\"encuestaRes: \" & encuestaRes)";
parent.__c.LogImpl("424445076","encuestaRes: "+parent._encuestares,0);
 //BA.debugLineNum = 6698;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 2 :";
if (true) break;

case 174:
//if
this.state = 179;
if (_logger) { 
this.state = 176;
;}if (true) break;

case 176:
//C
this.state = 179;
parent.__c.LogImpl("424445077",("Guardamos tipo 2 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green);
if (true) break;

case 179:
//C
this.state = 180;
;
 //BA.debugLineNum = 6699;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 6701;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.G";
parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_ID")));
 //BA.debugLineNum = 6702;BA.debugLine="i =  indicePregunta + 1";
_i = (int) (parent._indicepregunta+1);
 //BA.debugLineNum = 6703;BA.debugLine="If i = enc.RowCount - 1 Then i = i - 1";
if (true) break;

case 180:
//if
this.state = 185;
if (_i==_enc.getRowCount()-1) { 
this.state = 182;
;}if (true) break;

case 182:
//C
this.state = 185;
_i = (int) (_i-1);
if (true) break;

case 185:
//C
this.state = 214;
;
 //BA.debugLineNum = 6704;BA.debugLine="Log($\"i = ${i}\"$)";
parent.__c.LogImpl("424445083",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0);
 //BA.debugLineNum = 6705;BA.debugLine="ocultaPanelEncuesta";
parent._ocultapanelencuesta();
 if (true) break;

case 187:
//C
this.state = 188;
 //BA.debugLineNum = 6707;BA.debugLine="If logger Then Log(\"Pregunta tipo 6\")";
if (true) break;

case 188:
//if
this.state = 193;
if (_logger) { 
this.state = 190;
;}if (true) break;

case 190:
//C
this.state = 193;
parent.__c.LogImpl("424445086","Pregunta tipo 6",0);
if (true) break;

case 193:
//C
this.state = 214;
;
 //BA.debugLineNum = 6708;BA.debugLine="Panel10.Visible = True";
parent._panel10.setVisible(parent.__c.True);
 //BA.debugLineNum = 6709;BA.debugLine="l_chk_e.Text =  enc.GetString(\"CAT_EP_PREGUNT";
parent._l_chk_e.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA")));
 //BA.debugLineNum = 6710;BA.debugLine="Chk_1.Checked = False";
parent._chk_1.setChecked(parent.__c.False);
 //BA.debugLineNum = 6711;BA.debugLine="chk_2.Checked = False";
parent._chk_2.setChecked(parent.__c.False);
 //BA.debugLineNum = 6712;BA.debugLine="chk_3.Checked = False";
parent._chk_3.setChecked(parent.__c.False);
 //BA.debugLineNum = 6713;BA.debugLine="Chk_1.Text = enc.GetString(\"CAT_EP_RES1_PRED\"";
parent._chk_1.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES1_PRED")));
 //BA.debugLineNum = 6714;BA.debugLine="chk_2.Text =  enc.GetString(\"CAT_EP_RES2_PRED";
parent._chk_2.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES2_PRED")));
 //BA.debugLineNum = 6715;BA.debugLine="chk_3.Text =  enc.GetString(\"CAT_EP_RES3_PRED";
parent._chk_3.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES3_PRED")));
 //BA.debugLineNum = 6716;BA.debugLine="chk_1_valor =  enc.GetString(\"CAT_EP_RES1_PRE";
parent._chk_1_valor = _enc.GetString("CAT_EP_RES1_PRED");
 //BA.debugLineNum = 6717;BA.debugLine="chk_2_valor =  enc.GetString(\"CAT_EP_RES2_PRE";
parent._chk_2_valor = _enc.GetString("CAT_EP_RES2_PRED");
 //BA.debugLineNum = 6718;BA.debugLine="chk_3_valor =  enc.GetString(\"CAT_EP_RES3_PRE";
parent._chk_3_valor = _enc.GetString("CAT_EP_RES3_PRED");
 //BA.debugLineNum = 6719;BA.debugLine="Chk_1.Tag = enc.GetString(\"CAT_EP_ID\")";
parent._chk_1.setTag((Object)(_enc.GetString("CAT_EP_ID")));
 //BA.debugLineNum = 6720;BA.debugLine="chk_2.Tag = enc.GetString(\"CAT_EP_ID\")";
parent._chk_2.setTag((Object)(_enc.GetString("CAT_EP_ID")));
 //BA.debugLineNum = 6721;BA.debugLine="chk_3.Tag = enc.GetString(\"CAT_EP_ID\")";
parent._chk_3.setTag((Object)(_enc.GetString("CAT_EP_ID")));
 //BA.debugLineNum = 6722;BA.debugLine="TOMAR_FOTO = 1";
parent._tomar_foto = BA.NumberToString(1);
 //BA.debugLineNum = 6723;BA.debugLine="CURSOR_FOTO = i";
parent._cursor_foto = _i;
 //BA.debugLineNum = 6724;BA.debugLine="Exit";
this.state = 218;
if (true) break;
 if (true) break;

case 195:
//C
this.state = 196;
 //BA.debugLineNum = 6726;BA.debugLine="Log(\"Pregunta tipo 1\")";
parent.__c.LogImpl("424445105","Pregunta tipo 1",0);
 //BA.debugLineNum = 6727;BA.debugLine="botonPresionado = 0 ' Bandera para que espere";
parent._botonpresionado = (int) (0);
 //BA.debugLineNum = 6728;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE";
parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION")));
 //BA.debugLineNum = 6729;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR";
parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA")));
 //BA.debugLineNum = 6730;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG";
if (true) break;

case 196:
//if
this.state = 201;
if (_logger) { 
this.state = 198;
;}if (true) break;

case 198:
//C
this.state = 201;
parent.__c.LogImpl("424445109",_enc.GetString("CAT_EP_PREGUNTA")+"|"+_enc.GetString("CAT_EP_ORDEN_PREGUNTA"),0);
if (true) break;

case 201:
//C
this.state = 202;
;
 //BA.debugLineNum = 6731;BA.debugLine="Subs.centraEditText(et_encuesta, Root.Width)";
parent._subs._centraedittext /*String*/ (ba,parent._et_encuesta,parent._root.getWidth());
 //BA.debugLineNum = 6732;BA.debugLine="et_encuesta.Visible = True";
parent._et_encuesta.setVisible(parent.__c.True);
 //BA.debugLineNum = 6733;BA.debugLine="b_encuesta_continuar.Enabled = False";
parent._b_encuesta_continuar.setEnabled(parent.__c.False);
 //BA.debugLineNum = 6734;BA.debugLine="Private bTop = et_encuesta.Top + 130";
_btop = BA.NumberToString(parent._et_encuesta.getTop()+130);
 //BA.debugLineNum = 6735;BA.debugLine="muestraBoton(b_encuesta_continuar,\"Continuar\"";
parent._muestraboton(parent._b_encuesta_continuar,"Continuar",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int)(Double.parseDouble(_btop)),(int) (500),(int) (160));
 //BA.debugLineNum = 6736;BA.debugLine="muestraEncuesta";
parent._muestraencuesta();
 //BA.debugLineNum = 6737;BA.debugLine="Log(\"Esperamos respuesta\")";
parent.__c.LogImpl("424445116","Esperamos respuesta",0);
 //BA.debugLineNum = 6738;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r";
if (true) break;

case 202:
//do until
this.state = 205;
while (!(parent._botonpresionado==1)) {
this.state = 204;
if (true) break;
}
if (true) break;

case 204:
//C
this.state = 202;
 //BA.debugLineNum = 6739;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 232;
return;
case 232:
//C
this.state = 202;
;
 if (true) break;

case 205:
//C
this.state = 206;
;
 //BA.debugLineNum = 6741;BA.debugLine="Log($\"Respuesta: ${encuestaRes}\"$)";
parent.__c.LogImpl("424445120",("Respuesta: "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),0);
 //BA.debugLineNum = 6742;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 1 :";
if (true) break;

case 206:
//if
this.state = 211;
if (_logger) { 
this.state = 208;
;}if (true) break;

case 208:
//C
this.state = 211;
parent.__c.LogImpl("424445121",("Guardamos tipo 1 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green);
if (true) break;

case 211:
//C
this.state = 214;
;
 //BA.debugLineNum = 6743;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 6744;BA.debugLine="ocultaPanelEncuesta";
parent._ocultapanelencuesta();
 if (true) break;

case 213:
//C
this.state = 214;
 //BA.debugLineNum = 6747;BA.debugLine="B4XPages.ShowPage(\"productos\")";
parent._b4xpages._showpage /*String*/ (ba,"productos");
 if (true) break;
;
 //BA.debugLineNum = 6749;BA.debugLine="If i = enc.RowCount - 1 Then";

case 214:
//if
this.state = 217;
if (_i==_enc.getRowCount()-1) { 
this.state = 216;
}if (true) break;

case 216:
//C
this.state = 217;
 //BA.debugLineNum = 6750;BA.debugLine="i = i - 1";
_i = (int) (_i-1);
 if (true) break;

case 217:
//C
this.state = 228;
;
 if (true) break;
if (true) break;

case 218:
//C
this.state = 221;
;
 //BA.debugLineNum = 6753;BA.debugLine="enc.Close";
_enc.Close();
 if (true) break;

case 220:
//C
this.state = 221;
 //BA.debugLineNum = 6756;BA.debugLine="B4XPages.ShowPage(\"productos\")";
parent._b4xpages._showpage /*String*/ (ba,"productos");
 if (true) break;

case 221:
//C
this.state = 224;
;
 if (true) break;

case 223:
//C
this.state = 224;
 //BA.debugLineNum = 6760;BA.debugLine="B4XPages.ShowPage(\"productos\")";
parent._b4xpages._showpage /*String*/ (ba,"productos");
 if (true) break;

case 224:
//C
this.state = -1;
;
 //BA.debugLineNum = 6763;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _datos_click() throws Exception{
 //BA.debugLineNum = 3279;BA.debugLine="Sub DATOS_Click";
 //BA.debugLineNum = 3280;BA.debugLine="B4XPages.ShowPage(\"telefonos\")";
_b4xpages._showpage /*String*/ (ba,"telefonos");
 //BA.debugLineNum = 3281;BA.debugLine="End Sub";
return "";
}
public void  _enviarpdfwhatsappnumero(String _numerotelefono) throws Exception{
ResumableSub_EnviarPDFWhatsAppNumero rsub = new ResumableSub_EnviarPDFWhatsAppNumero(this,_numerotelefono);
rsub.resume(ba, null);
}
public static class ResumableSub_EnviarPDFWhatsAppNumero extends BA.ResumableSub {
public ResumableSub_EnviarPDFWhatsAppNumero(gunav2.keymon.com.mx.c_cliente parent,String _numerotelefono) {
this.parent = parent;
this._numerotelefono = _numerotelefono;
}
gunav2.keymon.com.mx.c_cliente parent;
String _numerotelefono;
gunav2.keymon.com.mx.httpjob._multipartfiledata _fd = null;
String _link = "";
anywheresoftware.b4a.objects.collections.Map _campos = null;
gunav2.keymon.com.mx.httpjob _job = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 7713;BA.debugLine="If NumeroTelefono.Length = 10 Then NumeroTelefono";
if (true) break;

case 1:
//if
this.state = 6;
if (_numerotelefono.length()==10) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
_numerotelefono = "521"+_numerotelefono;
if (true) break;

case 6:
//C
this.state = 7;
;
 //BA.debugLineNum = 7719;BA.debugLine="If File.Exists(Starter.fFileProvider.SharedFolder";
if (true) break;

case 7:
//if
this.state = 12;
if (parent.__c.File.Exists(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,parent._archivoticketpdf)) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

case 9:
//C
this.state = 12;
 //BA.debugLineNum = 7721;BA.debugLine="Dim fd As MultipartFileData";
_fd = new gunav2.keymon.com.mx.httpjob._multipartfiledata();
 //BA.debugLineNum = 7722;BA.debugLine="fd.Initialize";
_fd.Initialize();
 //BA.debugLineNum = 7723;BA.debugLine="fd.KeyName = \"file\"";
_fd.KeyName /*String*/  = "file";
 //BA.debugLineNum = 7724;BA.debugLine="fd.Dir = Starter.fFileProvider.SharedFolder";
_fd.Dir /*String*/  = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ;
 //BA.debugLineNum = 7725;BA.debugLine="fd.FileName = archivoTicketPDF";
_fd.FileName /*String*/  = parent._archivoticketpdf;
 //BA.debugLineNum = 7726;BA.debugLine="fd.ContentType = \"application/pdf\"";
_fd.ContentType /*String*/  = "application/pdf";
 //BA.debugLineNum = 7727;BA.debugLine="Private link As String = \"http://keymon.net:9001";
_link = "http://keymon.net:9001/v1/ticketpdf";
 //BA.debugLineNum = 7728;BA.debugLine="Private campos As Map = CreateMap( \"message\":\"Tu";
_campos = new anywheresoftware.b4a.objects.collections.Map();
_campos = parent.__c.createMap(new Object[] {(Object)("message"),(Object)("Tu compra de Guna va ser a *crédito* por el monto de $${NumberFormat2(monto, 1, 2, 2, True)}\\n\\nManda *1* para confirmar\\nManda *0* para rechazar\\n\\n*Nota:* Si este mensaje no se contesta, se considerará que el pago es en *EFECTIVO*.\\n\\n(Solo el *número* por favor)")});
 //BA.debugLineNum = 7729;BA.debugLine="campos.Put(\"number\", NumeroTelefono)";
_campos.Put((Object)("number"),(Object)(_numerotelefono));
 //BA.debugLineNum = 7730;BA.debugLine="Log(NumeroTelefono)";
parent.__c.LogImpl("426411026",_numerotelefono,0);
 //BA.debugLineNum = 7731;BA.debugLine="campos.Put(\"message\",\"Tu recibo\")";
_campos.Put((Object)("message"),(Object)("Tu recibo"));
 //BA.debugLineNum = 7732;BA.debugLine="Log(campos)";
parent.__c.LogImpl("426411028",BA.ObjectToString(_campos),0);
 //BA.debugLineNum = 7733;BA.debugLine="Private job As HttpJob";
_job = new gunav2.keymon.com.mx.httpjob();
 //BA.debugLineNum = 7734;BA.debugLine="job.Initialize(\"\", Me)";
_job._initialize /*String*/ (ba,"",parent);
 //BA.debugLineNum = 7735;BA.debugLine="job.PostMultipart(link, campos, Array(fd))";
_job._postmultipart /*String*/ (_link,_campos,anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fd)}));
 //BA.debugLineNum = 7737;BA.debugLine="Log(5555)";
parent.__c.LogImpl("426411033",BA.NumberToString(5555),0);
 //BA.debugLineNum = 7738;BA.debugLine="Wait For (job) JobDone(job As HttpJob)";
parent.__c.WaitFor("jobdone", ba, this, (Object)(_job));
this.state = 13;
return;
case 13:
//C
this.state = 12;
_job = (gunav2.keymon.com.mx.httpjob) result[0];
;
 if (true) break;

case 11:
//C
this.state = 12;
 //BA.debugLineNum = 7766;BA.debugLine="ToastMessageShow(\"El archivo PDF no existe.\", Tr";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("El archivo PDF no existe."),parent.__c.True);
 if (true) break;

case 12:
//C
this.state = -1;
;
 //BA.debugLineNum = 7768;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _enviarpdfwhatsappnumero2(String _numerotelefono) throws Exception{
ResumableSub_EnviarPDFWhatsAppNumero2 rsub = new ResumableSub_EnviarPDFWhatsAppNumero2(this,_numerotelefono);
rsub.resume(ba, null);
}
public static class ResumableSub_EnviarPDFWhatsAppNumero2 extends BA.ResumableSub {
public ResumableSub_EnviarPDFWhatsAppNumero2(gunav2.keymon.com.mx.c_cliente parent,String _numerotelefono) {
this.parent = parent;
this._numerotelefono = _numerotelefono;
}
gunav2.keymon.com.mx.c_cliente parent;
String _numerotelefono;
String _rutaarchivo = "";
String _uriwhatsapp = "";
anywheresoftware.b4a.objects.IntentWrapper _intentwhatsapp = null;
Object _uri0 = null;
anywheresoftware.b4a.objects.IntentWrapper _intent1 = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 7771;BA.debugLine="If NumeroTelefono.Length = 10 Then NumeroTelefono";
if (true) break;

case 1:
//if
this.state = 6;
if (_numerotelefono.length()==10) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
_numerotelefono = "521"+_numerotelefono;
if (true) break;

case 6:
//C
this.state = 7;
;
 //BA.debugLineNum = 7773;BA.debugLine="Dim RutaArchivo As String = Starter.fFileProvi";
_rutaarchivo = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ +"/"+parent._archivoticketpdf;
 //BA.debugLineNum = 7774;BA.debugLine="Log(RutaArchivo)";
parent.__c.LogImpl("426476548",_rutaarchivo,0);
 //BA.debugLineNum = 7777;BA.debugLine="If File.Exists(Starter.fFileProvider.SharedFolder";
if (true) break;

case 7:
//if
this.state = 12;
if (parent.__c.File.Exists(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,parent._archivoticketpdf)) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

case 9:
//C
this.state = 12;
 //BA.debugLineNum = 7779;BA.debugLine="Dim UriWhatsApp As String = \"https://wa.me";
_uriwhatsapp = "https://wa.me/"+_numerotelefono;
 //BA.debugLineNum = 7780;BA.debugLine="Dim IntentWhatsApp As Intent";
_intentwhatsapp = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 7781;BA.debugLine="IntentWhatsApp.Initialize(IntentWhatsApp.A";
_intentwhatsapp.Initialize(_intentwhatsapp.ACTION_VIEW,_uriwhatsapp);
 //BA.debugLineNum = 7790;BA.debugLine="StartActivity(IntentWhatsApp)";
parent.__c.StartActivity(ba,(Object)(_intentwhatsapp.getObject()));
 //BA.debugLineNum = 7793;BA.debugLine="ToastMessageShow(\"Por favor, comparte el a";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor, comparte el archivo manualmente en WhatsApp."),parent.__c.True);
 //BA.debugLineNum = 7796;BA.debugLine="Sleep(3000)";
parent.__c.Sleep(ba,this,(int) (3000));
this.state = 13;
return;
case 13:
//C
this.state = 12;
;
 //BA.debugLineNum = 7799;BA.debugLine="Dim Uri0 As Object = Starter.fFileProvider.GetFi";
_uri0 = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (parent._archivoticketpdf);
 //BA.debugLineNum = 7802;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 7803;BA.debugLine="Intent1.Initialize(Intent1.ACTION_SEND, \"\"";
_intent1.Initialize(_intent1.ACTION_SEND,"");
 //BA.debugLineNum = 7806;BA.debugLine="Intent1.SetType(\"application/pdf\")";
_intent1.SetType("application/pdf");
 //BA.debugLineNum = 7809;BA.debugLine="Intent1.PutExtra(\"android.intent.extra.STR";
_intent1.PutExtra("android.intent.extra.STREAM",_uri0);
 //BA.debugLineNum = 7812;BA.debugLine="Intent1.Flags = 1 ' FLAG_GRANT_READ_URI_PE";
_intent1.setFlags((int) (1));
 //BA.debugLineNum = 7815;BA.debugLine="StartActivity(Intent1)";
parent.__c.StartActivity(ba,(Object)(_intent1.getObject()));
 if (true) break;

case 11:
//C
this.state = 12;
 //BA.debugLineNum = 7817;BA.debugLine="ToastMessageShow(\"El archivo PDF no existe";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("El archivo PDF no existe."),parent.__c.True);
 if (true) break;

case 12:
//C
this.state = -1;
;
 //BA.debugLineNum = 7819;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _enviaticket() throws Exception{
ResumableSub_enviaTicket rsub = new ResumableSub_enviaTicket(this);
rsub.resume(ba, null);
}
public static class ResumableSub_enviaTicket extends BA.ResumableSub {
public ResumableSub_enviaTicket(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.phone.Phone.Email _email = null;
anywheresoftware.b4a.objects.IntentWrapper _in = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = -1;
 //BA.debugLineNum = 7702;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 1;
return;
case 1:
//C
this.state = -1;
;
 //BA.debugLineNum = 7703;BA.debugLine="Dim email As Email";
_email = new anywheresoftware.b4a.phone.Phone.Email();
 //BA.debugLineNum = 7704;BA.debugLine="email.To.Add(\"cheveguerra@gmail.com\")";
_email.To.Add((Object)("cheveguerra@gmail.com"));
 //BA.debugLineNum = 7705;BA.debugLine="email.Subject = \"subject\"";
_email.Subject = "subject";
 //BA.debugLineNum = 7706;BA.debugLine="email.Attachments.Add(Starter.fFileProvider.GetFi";
_email.Attachments.Add(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (parent._archivoticketpdf));
 //BA.debugLineNum = 7707;BA.debugLine="Dim in As Intent = email.GetIntent";
_in = new anywheresoftware.b4a.objects.IntentWrapper();
_in = (anywheresoftware.b4a.objects.IntentWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.IntentWrapper(), (android.content.Intent)(_email.GetIntent()));
 //BA.debugLineNum = 7708;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
_in.setFlags((int) (1));
 //BA.debugLineNum = 7709;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
 //BA.debugLineNum = 7710;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _et_encuesta_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 6839;BA.debugLine="Private Sub et_encuesta_TextChanged (Old As String";
 //BA.debugLineNum = 6841;BA.debugLine="If New.Length > 0 Then b_encuesta_continuar.Enabl";
if (_new.length()>0) { 
_b_encuesta_continuar.setEnabled(__c.True);};
 //BA.debugLineNum = 6842;BA.debugLine="If New.Length < 1 Then b_encuesta_continuar.Enabl";
if (_new.length()<1) { 
_b_encuesta_continuar.setEnabled(__c.False);};
 //BA.debugLineNum = 6843;BA.debugLine="End Sub";
return "";
}
public String  _et_numeropdf_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 7864;BA.debugLine="Private Sub et_numeroPDF_TextChanged (Old As Strin";
 //BA.debugLineNum = 7865;BA.debugLine="If New.Length = 10 Then b_envioPDF.Enabled = True";
if (_new.length()==10) { 
_b_enviopdf.setEnabled(__c.True);}
else {
_b_enviopdf.setEnabled(__c.False);};
 //BA.debugLineNum = 7866;BA.debugLine="End Sub";
return "";
}
public String  _et_p1_m2_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5922;BA.debugLine="Private Sub et_p1_m2_TextChanged (Old As String, N";
 //BA.debugLineNum = 5923;BA.debugLine="If et_p1_m2.Text.Length  > 2 Or et_p1_m2.Text = 0";
if (_et_p1_m2.getText().length()>2 || (_et_p1_m2.getText()).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 5925;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5926;BA.debugLine="et_p1_m2.Text = \"\"";
_et_p1_m2.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5928;BA.debugLine="End Sub";
return "";
}
public String  _et_p1_m4_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5947;BA.debugLine="Private Sub et_p1_m4_TextChanged (Old As String, N";
 //BA.debugLineNum = 5948;BA.debugLine="If et_p1_m4.Text.Length  > 5 Then";
if (_et_p1_m4.getText().length()>5) { 
 //BA.debugLineNum = 5950;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5951;BA.debugLine="et_p1_m4.Text = \"\"";
_et_p1_m4.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5953;BA.debugLine="End Sub";
return "";
}
public String  _et_p2_m2_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5930;BA.debugLine="Private Sub et_p2_m2_TextChanged (Old As String, N";
 //BA.debugLineNum = 5931;BA.debugLine="If et_p2_m2.Text.Length  > 2 Or et_p2_m2.Text = 0";
if (_et_p2_m2.getText().length()>2 || (_et_p2_m2.getText()).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 5933;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5934;BA.debugLine="et_p2_m2.Text = \"\"";
_et_p2_m2.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5937;BA.debugLine="End Sub";
return "";
}
public String  _et_p5_m2_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5939;BA.debugLine="Private Sub et_p5_m2_TextChanged (Old As String, N";
 //BA.debugLineNum = 5940;BA.debugLine="If et_p5_m2.Text.Length  > 4 Then";
if (_et_p5_m2.getText().length()>4) { 
 //BA.debugLineNum = 5942;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5943;BA.debugLine="et_p5_m2.Text = \"\"";
_et_p5_m2.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5945;BA.debugLine="End Sub";
return "";
}
public String  _gest_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _checkenc = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _checkenc1 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _coloressaldo = null;
anywheresoftware.b4a.objects.collections.List _itembat1 = null;
anywheresoftware.b4a.objects.collections.List _itembat2 = null;
anywheresoftware.b4a.objects.collections.List _itembat3 = null;
anywheresoftware.b4a.objects.collections.List _itembat4 = null;
anywheresoftware.b4a.objects.collections.List _itembat5 = null;
anywheresoftware.b4a.objects.collections.List _itembat6 = null;
anywheresoftware.b4a.objects.collections.List _itembat7 = null;
anywheresoftware.b4a.objects.collections.List _itembat8 = null;
anywheresoftware.b4a.objects.collections.List _itembat9 = null;
anywheresoftware.b4a.objects.collections.List _itembat10 = null;
 //BA.debugLineNum = 2105;BA.debugLine="Sub gest_Click";
 //BA.debugLineNum = 2110;BA.debugLine="Dim checkenc As Cursor = B4XPages.MainPage.skmt.E";
_checkenc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_checkenc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * FROM HIST_ENCUESTA_BAT WHERE CLIENTE In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 2111;BA.debugLine="If checkenc.RowCount = 0 Then";
if (_checkenc.getRowCount()==0) { 
 //BA.debugLineNum = 2112;BA.debugLine="Dim checkenc1 As Cursor = B4XPages.MainPage.skmt";
_checkenc1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_checkenc1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * FROM ENCUESTAS_BAT WHERE CLIENTE In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 2113;BA.debugLine="If checkenc1.RowCount = 0 Then";
if (_checkenc1.getRowCount()==0) { 
 //BA.debugLineNum = 2115;BA.debugLine="If ALMACEN = 81 Or ALMACEN = 94 Then";
if ((_almacen).equals(BA.NumberToString(81)) || (_almacen).equals(BA.NumberToString(94))) { 
 //BA.debugLineNum = 2117;BA.debugLine="Dim coloressaldo As Cursor=B4XPages.MainPage.s";
_coloressaldo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coloressaldo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_CLASIFICADOR5,0) AS CAT_CL_CLASIFICADOR5 from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 2118;BA.debugLine="If coloressaldo.RowCount > 0 Then";
if (_coloressaldo.getRowCount()>0) { 
 //BA.debugLineNum = 2119;BA.debugLine="coloressaldo.Position = 0";
_coloressaldo.setPosition((int) (0));
 //BA.debugLineNum = 2120;BA.debugLine="If coloressaldo.GetString(\"CAT_CL_CLASIFICADO";
if ((_coloressaldo.GetString("CAT_CL_CLASIFICADOR5")).equals("1")) { 
 //BA.debugLineNum = 2121;BA.debugLine="scv_bat.Visible = True";
_scv_bat.setVisible(__c.True);
 //BA.debugLineNum = 2122;BA.debugLine="scv_bat.Panel.RemoveAllViews";
_scv_bat.getPanel().RemoveAllViews();
 //BA.debugLineNum = 2123;BA.debugLine="scv_bat.Panel.LoadLayout(\"encuesta_1\")";
_scv_bat.getPanel().LoadLayout("encuesta_1",ba);
 //BA.debugLineNum = 2124;BA.debugLine="scv_bat.Panel.Height = p_encu.Height";
_scv_bat.getPanel().setHeight(_p_encu.getHeight());
 //BA.debugLineNum = 2125;BA.debugLine="p_encu.Width = scv_bat.Width";
_p_encu.setWidth(_scv_bat.getWidth());
 //BA.debugLineNum = 2128;BA.debugLine="Dim itembat1 As List";
_itembat1 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2129;BA.debugLine="itembat1.Initialize";
_itembat1.Initialize();
 //BA.debugLineNum = 2130;BA.debugLine="itembat1.Add(\"Selecciona una opcion\")";
_itembat1.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2131;BA.debugLine="itembat1.Add(\"Ninguno\")";
_itembat1.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2132;BA.debugLine="itembat1.Add(\"Menos de medio paquete\")";
_itembat1.Add((Object)("Menos de medio paquete"));
 //BA.debugLineNum = 2133;BA.debugLine="itembat1.Add(\"Medio paquete a 1 paquete\")";
_itembat1.Add((Object)("Medio paquete a 1 paquete"));
 //BA.debugLineNum = 2134;BA.debugLine="itembat1.Add(\"1.1 a 2.9 paquetes\")";
_itembat1.Add((Object)("1.1 a 2.9 paquetes"));
 //BA.debugLineNum = 2135;BA.debugLine="itembat1.Add(\"3 a 5.9 paquetes\")";
_itembat1.Add((Object)("3 a 5.9 paquetes"));
 //BA.debugLineNum = 2136;BA.debugLine="itembat1.Add(\"6 a 10.9 paquetes\")";
_itembat1.Add((Object)("6 a 10.9 paquetes"));
 //BA.debugLineNum = 2137;BA.debugLine="itembat1.Add(\"11 a 20.9 paquetes\")";
_itembat1.Add((Object)("11 a 20.9 paquetes"));
 //BA.debugLineNum = 2138;BA.debugLine="itembat1.Add(\"21 a 30 paquetes\")";
_itembat1.Add((Object)("21 a 30 paquetes"));
 //BA.debugLineNum = 2139;BA.debugLine="itembat1.Add(\"Más de 30 paquetes\")";
_itembat1.Add((Object)("Más de 30 paquetes"));
 //BA.debugLineNum = 2140;BA.debugLine="cb_p1.SetItems(itembat1)";
_cb_p1._setitems /*String*/ (_itembat1);
 //BA.debugLineNum = 2141;BA.debugLine="e_1 = \"Selecciona una opcion\"";
_e_1 = "Selecciona una opcion";
 //BA.debugLineNum = 2143;BA.debugLine="Dim itembat2 As List";
_itembat2 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2144;BA.debugLine="itembat2.Initialize";
_itembat2.Initialize();
 //BA.debugLineNum = 2145;BA.debugLine="itembat2.Add(\"Selecciona una opcion\")";
_itembat2.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2146;BA.debugLine="itembat2.Add(\"Ninguno\")";
_itembat2.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2147;BA.debugLine="itembat2.Add(\"Menos de medio paquete\")";
_itembat2.Add((Object)("Menos de medio paquete"));
 //BA.debugLineNum = 2148;BA.debugLine="itembat2.Add(\"Medio paquete a 1 paquete\")";
_itembat2.Add((Object)("Medio paquete a 1 paquete"));
 //BA.debugLineNum = 2149;BA.debugLine="itembat2.Add(\"1.1 a 2.9 paquetes\")";
_itembat2.Add((Object)("1.1 a 2.9 paquetes"));
 //BA.debugLineNum = 2150;BA.debugLine="itembat2.Add(\"3 a 5.9 paquetes\")";
_itembat2.Add((Object)("3 a 5.9 paquetes"));
 //BA.debugLineNum = 2151;BA.debugLine="itembat2.Add(\"6 a 10.9 paquetes\")";
_itembat2.Add((Object)("6 a 10.9 paquetes"));
 //BA.debugLineNum = 2152;BA.debugLine="itembat2.Add(\"11 a 20.9 paquetes\")";
_itembat2.Add((Object)("11 a 20.9 paquetes"));
 //BA.debugLineNum = 2153;BA.debugLine="itembat2.Add(\"21 a 30 paquetes\")";
_itembat2.Add((Object)("21 a 30 paquetes"));
 //BA.debugLineNum = 2154;BA.debugLine="itembat2.Add(\"Más de 30 paquetes\")";
_itembat2.Add((Object)("Más de 30 paquetes"));
 //BA.debugLineNum = 2155;BA.debugLine="cb_p2.SetItems(itembat2)";
_cb_p2._setitems /*String*/ (_itembat2);
 //BA.debugLineNum = 2156;BA.debugLine="e_2 = \"Selecciona una opcion\"";
_e_2 = "Selecciona una opcion";
 //BA.debugLineNum = 2158;BA.debugLine="Dim itembat3 As List";
_itembat3 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2159;BA.debugLine="itembat3.Initialize";
_itembat3.Initialize();
 //BA.debugLineNum = 2160;BA.debugLine="itembat3.Add(\"Selecciona una opcion\")";
_itembat3.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2161;BA.debugLine="itembat3.Add(\"Ninguno\")";
_itembat3.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2162;BA.debugLine="itembat3.Add(\"Menos de medio paquete\")";
_itembat3.Add((Object)("Menos de medio paquete"));
 //BA.debugLineNum = 2163;BA.debugLine="itembat3.Add(\"Medio paquete a 1 paquete\")";
_itembat3.Add((Object)("Medio paquete a 1 paquete"));
 //BA.debugLineNum = 2164;BA.debugLine="itembat3.Add(\"1.1 a 2.9 paquetes\")";
_itembat3.Add((Object)("1.1 a 2.9 paquetes"));
 //BA.debugLineNum = 2165;BA.debugLine="itembat3.Add(\"3 a 5.9 paquetes\")";
_itembat3.Add((Object)("3 a 5.9 paquetes"));
 //BA.debugLineNum = 2166;BA.debugLine="itembat3.Add(\"6 a 10.9 paquetes\")";
_itembat3.Add((Object)("6 a 10.9 paquetes"));
 //BA.debugLineNum = 2167;BA.debugLine="itembat3.Add(\"11 a 20.9 paquetes\")";
_itembat3.Add((Object)("11 a 20.9 paquetes"));
 //BA.debugLineNum = 2168;BA.debugLine="itembat3.Add(\"21 a 30 paquetes\")";
_itembat3.Add((Object)("21 a 30 paquetes"));
 //BA.debugLineNum = 2169;BA.debugLine="itembat3.Add(\"Más de 30 paquetes\")";
_itembat3.Add((Object)("Más de 30 paquetes"));
 //BA.debugLineNum = 2170;BA.debugLine="cb_p3.SetItems(itembat3)";
_cb_p3._setitems /*String*/ (_itembat3);
 //BA.debugLineNum = 2171;BA.debugLine="e_3 = \"Selecciona una opcion\"";
_e_3 = "Selecciona una opcion";
 //BA.debugLineNum = 2173;BA.debugLine="Dim itembat4 As List";
_itembat4 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2174;BA.debugLine="itembat4.Initialize";
_itembat4.Initialize();
 //BA.debugLineNum = 2175;BA.debugLine="itembat4.Add(\"Selecciona una opcion\")";
_itembat4.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2176;BA.debugLine="itembat4.Add(\"Ninguno\")";
_itembat4.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2177;BA.debugLine="itembat4.Add(\"Menos de medio paquete\")";
_itembat4.Add((Object)("Menos de medio paquete"));
 //BA.debugLineNum = 2178;BA.debugLine="itembat4.Add(\"Medio paquete a 1 paquete\")";
_itembat4.Add((Object)("Medio paquete a 1 paquete"));
 //BA.debugLineNum = 2179;BA.debugLine="itembat4.Add(\"1.1 a 2.9 paquetes\")";
_itembat4.Add((Object)("1.1 a 2.9 paquetes"));
 //BA.debugLineNum = 2180;BA.debugLine="itembat4.Add(\"3 a 5.9 paquetes\")";
_itembat4.Add((Object)("3 a 5.9 paquetes"));
 //BA.debugLineNum = 2181;BA.debugLine="itembat4.Add(\"6 a 10.9 paquetes\")";
_itembat4.Add((Object)("6 a 10.9 paquetes"));
 //BA.debugLineNum = 2182;BA.debugLine="itembat4.Add(\"11 a 20.9 paquetes\")";
_itembat4.Add((Object)("11 a 20.9 paquetes"));
 //BA.debugLineNum = 2183;BA.debugLine="itembat4.Add(\"21 a 30 paquetes\")";
_itembat4.Add((Object)("21 a 30 paquetes"));
 //BA.debugLineNum = 2184;BA.debugLine="itembat4.Add(\"Más de 30 paquetes\")";
_itembat4.Add((Object)("Más de 30 paquetes"));
 //BA.debugLineNum = 2185;BA.debugLine="cb_p4.SetItems(itembat4)";
_cb_p4._setitems /*String*/ (_itembat4);
 //BA.debugLineNum = 2186;BA.debugLine="e_4 = \"Selecciona una opcion\"";
_e_4 = "Selecciona una opcion";
 //BA.debugLineNum = 2188;BA.debugLine="Dim itembat5 As List";
_itembat5 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2189;BA.debugLine="itembat5.Initialize";
_itembat5.Initialize();
 //BA.debugLineNum = 2190;BA.debugLine="itembat5.Add(\"Selecciona una opcion\")";
_itembat5.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2191;BA.debugLine="itembat5.Add(\"Ninguno\")";
_itembat5.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2192;BA.debugLine="itembat5.Add(\"Tiendatek\")";
_itembat5.Add((Object)("Tiendatek"));
 //BA.debugLineNum = 2193;BA.debugLine="itembat5.Add(\"Yomp\")";
_itembat5.Add((Object)("Yomp"));
 //BA.debugLineNum = 2194;BA.debugLine="itembat5.Add(\"Systienda\")";
_itembat5.Add((Object)("Systienda"));
 //BA.debugLineNum = 2195;BA.debugLine="itembat5.Add(\"MyBusiness POS\")";
_itembat5.Add((Object)("MyBusiness POS"));
 //BA.debugLineNum = 2196;BA.debugLine="itembat5.Add(\"Eleventa\")";
_itembat5.Add((Object)("Eleventa"));
 //BA.debugLineNum = 2197;BA.debugLine="itembat5.Add(\"Otro\")";
_itembat5.Add((Object)("Otro"));
 //BA.debugLineNum = 2198;BA.debugLine="cb_p5.SetItems(itembat5)";
_cb_p5._setitems /*String*/ (_itembat5);
 //BA.debugLineNum = 2199;BA.debugLine="e_5 = \"Selecciona una opcion\"";
_e_5 = "Selecciona una opcion";
 }else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR5")).equals("5")) { 
 //BA.debugLineNum = 2202;BA.debugLine="scv_bat.Visible = True";
_scv_bat.setVisible(__c.True);
 //BA.debugLineNum = 2203;BA.debugLine="scv_bat.Panel.RemoveAllViews";
_scv_bat.getPanel().RemoveAllViews();
 //BA.debugLineNum = 2204;BA.debugLine="scv_bat.Panel.LoadLayout(\"encuesta_2\")";
_scv_bat.getPanel().LoadLayout("encuesta_2",ba);
 //BA.debugLineNum = 2205;BA.debugLine="scv_bat.Panel.Height = p_encu.Height";
_scv_bat.getPanel().setHeight(_p_encu.getHeight());
 //BA.debugLineNum = 2206;BA.debugLine="p_encu.Width = scv_bat.Width";
_p_encu.setWidth(_scv_bat.getWidth());
 //BA.debugLineNum = 2209;BA.debugLine="Dim itembat1 As List";
_itembat1 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2210;BA.debugLine="itembat1.Initialize";
_itembat1.Initialize();
 //BA.debugLineNum = 2211;BA.debugLine="itembat1.Add(\"Selecciona una opcion\")";
_itembat1.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2212;BA.debugLine="itembat1.Add(\"Ninguno\")";
_itembat1.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2213;BA.debugLine="itembat1.Add(\"Menos de medio cartón\")";
_itembat1.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2214;BA.debugLine="itembat1.Add(\"Medio cartón a 1 cartón\")";
_itembat1.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2215;BA.debugLine="itembat1.Add(\"1.1 a 3.9 cartones\")";
_itembat1.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2216;BA.debugLine="itembat1.Add(\"4 a 5.9 cartones\")";
_itembat1.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2217;BA.debugLine="itembat1.Add(\"6 a 10.9 cartones\")";
_itembat1.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2218;BA.debugLine="itembat1.Add(\"11 a 20.9 cartones\")";
_itembat1.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2219;BA.debugLine="itembat1.Add(\"21 a 30.9 cartones\")";
_itembat1.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2220;BA.debugLine="itembat1.Add(\"31 a 40 cartones\")";
_itembat1.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2221;BA.debugLine="itembat1.Add(\"Más de 40 cartones\")";
_itembat1.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2222;BA.debugLine="cb_p1.SetItems(itembat1)";
_cb_p1._setitems /*String*/ (_itembat1);
 //BA.debugLineNum = 2223;BA.debugLine="e_1 = \"Selecciona una opcion\"";
_e_1 = "Selecciona una opcion";
 //BA.debugLineNum = 2225;BA.debugLine="Dim itembat2 As List";
_itembat2 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2226;BA.debugLine="itembat2.Initialize";
_itembat2.Initialize();
 //BA.debugLineNum = 2227;BA.debugLine="itembat2.Add(\"Selecciona una opcion\")";
_itembat2.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2228;BA.debugLine="itembat2.Add(\"Ninguno\")";
_itembat2.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2229;BA.debugLine="itembat2.Add(\"Menos de medio cartón\")";
_itembat2.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2230;BA.debugLine="itembat2.Add(\"Medio cartón a 1 cartón\")";
_itembat2.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2231;BA.debugLine="itembat2.Add(\"1.1 a 3.9 cartones\")";
_itembat2.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2232;BA.debugLine="itembat2.Add(\"4 a 5.9 cartones\")";
_itembat2.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2233;BA.debugLine="itembat2.Add(\"6 a 10.9 cartones\")";
_itembat2.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2234;BA.debugLine="itembat2.Add(\"11 a 20.9 cartones\")";
_itembat2.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2235;BA.debugLine="itembat2.Add(\"21 a 30.9 cartones\")";
_itembat2.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2236;BA.debugLine="itembat2.Add(\"31 a 40 cartones\")";
_itembat2.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2237;BA.debugLine="itembat2.Add(\"Más de 40 cartones\")";
_itembat2.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2238;BA.debugLine="cb_p2.SetItems(itembat2)";
_cb_p2._setitems /*String*/ (_itembat2);
 //BA.debugLineNum = 2239;BA.debugLine="e_2 = \"Selecciona una opcion\"";
_e_2 = "Selecciona una opcion";
 //BA.debugLineNum = 2241;BA.debugLine="Dim itembat3 As List";
_itembat3 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2242;BA.debugLine="itembat3.Initialize";
_itembat3.Initialize();
 //BA.debugLineNum = 2243;BA.debugLine="itembat3.Add(\"Selecciona una opcion\")";
_itembat3.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2244;BA.debugLine="itembat3.Add(\"Ninguno\")";
_itembat3.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2245;BA.debugLine="itembat3.Add(\"Menos de medio cartón\")";
_itembat3.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2246;BA.debugLine="itembat3.Add(\"Medio cartón a 1 cartón\")";
_itembat3.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2247;BA.debugLine="itembat3.Add(\"1.1 a 3.9 cartones\")";
_itembat3.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2248;BA.debugLine="itembat3.Add(\"4 a 5.9 cartones\")";
_itembat3.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2249;BA.debugLine="itembat3.Add(\"6 a 10.9 cartones\")";
_itembat3.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2250;BA.debugLine="itembat3.Add(\"11 a 20.9 cartones\")";
_itembat3.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2251;BA.debugLine="itembat3.Add(\"21 a 30.9 cartones\")";
_itembat3.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2252;BA.debugLine="itembat3.Add(\"31 a 40 cartones\")";
_itembat3.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2253;BA.debugLine="itembat3.Add(\"Más de 40 cartones\")";
_itembat3.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2254;BA.debugLine="cb_p3.SetItems(itembat3)";
_cb_p3._setitems /*String*/ (_itembat3);
 //BA.debugLineNum = 2255;BA.debugLine="e_3 = \"Selecciona una opcion\"";
_e_3 = "Selecciona una opcion";
 //BA.debugLineNum = 2257;BA.debugLine="Dim itembat4 As List";
_itembat4 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2258;BA.debugLine="itembat4.Initialize";
_itembat4.Initialize();
 //BA.debugLineNum = 2259;BA.debugLine="itembat4.Add(\"Selecciona una opcion\")";
_itembat4.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2260;BA.debugLine="itembat4.Add(\"Ninguno\")";
_itembat4.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2261;BA.debugLine="itembat4.Add(\"Menos de medio cartón\")";
_itembat4.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2262;BA.debugLine="itembat4.Add(\"Medio cartón a 1 cartón\")";
_itembat4.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2263;BA.debugLine="itembat4.Add(\"1.1 a 3.9 cartones\")";
_itembat4.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2264;BA.debugLine="itembat4.Add(\"4 a 5.9 cartones\")";
_itembat4.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2265;BA.debugLine="itembat4.Add(\"6 a 10.9 cartones\")";
_itembat4.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2266;BA.debugLine="itembat4.Add(\"11 a 20.9 cartones\")";
_itembat4.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2267;BA.debugLine="itembat4.Add(\"21 a 30.9 cartones\")";
_itembat4.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2268;BA.debugLine="itembat4.Add(\"31 a 40 cartones\")";
_itembat4.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2269;BA.debugLine="itembat4.Add(\"Más de 40 cartones\")";
_itembat4.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2270;BA.debugLine="cb_p4.SetItems(itembat4)";
_cb_p4._setitems /*String*/ (_itembat4);
 //BA.debugLineNum = 2271;BA.debugLine="e_4 = \"Selecciona una opcion\"";
_e_4 = "Selecciona una opcion";
 //BA.debugLineNum = 2273;BA.debugLine="Dim itembat5 As List";
_itembat5 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2274;BA.debugLine="itembat5.Initialize";
_itembat5.Initialize();
 //BA.debugLineNum = 2275;BA.debugLine="itembat5.Add(\"Selecciona una opcion\")";
_itembat5.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2276;BA.debugLine="itembat5.Add(\"Ninguno\")";
_itembat5.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2277;BA.debugLine="itembat5.Add(\"Menos de medio cartón\")";
_itembat5.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2278;BA.debugLine="itembat5.Add(\"Medio cartón a 1 cartón\")";
_itembat5.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2279;BA.debugLine="itembat5.Add(\"1.1 a 3.9 cartones\")";
_itembat5.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2280;BA.debugLine="itembat5.Add(\"4 a 5.9 cartones\")";
_itembat5.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2281;BA.debugLine="itembat5.Add(\"6 a 10.9 cartones\")";
_itembat5.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2282;BA.debugLine="itembat5.Add(\"11 a 20.9 cartones\")";
_itembat5.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2283;BA.debugLine="itembat5.Add(\"21 a 30.9 cartones\")";
_itembat5.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2284;BA.debugLine="itembat5.Add(\"31 a 40 cartones\")";
_itembat5.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2285;BA.debugLine="itembat5.Add(\"Más de 40 cartones\")";
_itembat5.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2286;BA.debugLine="cb_p5.SetItems(itembat5)";
_cb_p5._setitems /*String*/ (_itembat5);
 //BA.debugLineNum = 2287;BA.debugLine="e_5 = \"Selecciona una opcion\"";
_e_5 = "Selecciona una opcion";
 //BA.debugLineNum = 2289;BA.debugLine="Dim itembat6 As List";
_itembat6 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2290;BA.debugLine="itembat6.Initialize";
_itembat6.Initialize();
 //BA.debugLineNum = 2291;BA.debugLine="itembat6.Add(\"Selecciona una opcion\")";
_itembat6.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2292;BA.debugLine="itembat6.Add(\"Ninguno\")";
_itembat6.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2293;BA.debugLine="itembat6.Add(\"Menos de medio cartón\")";
_itembat6.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2294;BA.debugLine="itembat6.Add(\"Medio cartón a 1 cartón\")";
_itembat6.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2295;BA.debugLine="itembat6.Add(\"1.1 a 3.9 cartones\")";
_itembat6.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2296;BA.debugLine="itembat6.Add(\"4 a 5.9 cartones\")";
_itembat6.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2297;BA.debugLine="itembat6.Add(\"6 a 10.9 cartones\")";
_itembat6.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2298;BA.debugLine="itembat6.Add(\"11 a 20.9 cartones\")";
_itembat6.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2299;BA.debugLine="itembat6.Add(\"21 a 30.9 cartones\")";
_itembat6.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2300;BA.debugLine="itembat6.Add(\"31 a 40 cartones\")";
_itembat6.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2301;BA.debugLine="itembat6.Add(\"Más de 40 cartones\")";
_itembat6.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2302;BA.debugLine="cb_p6.SetItems(itembat6)";
_cb_p6._setitems /*String*/ (_itembat6);
 //BA.debugLineNum = 2303;BA.debugLine="e_6 = \"Selecciona una opcion\"";
_e_6 = "Selecciona una opcion";
 //BA.debugLineNum = 2305;BA.debugLine="Dim itembat7 As List";
_itembat7 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2306;BA.debugLine="itembat7.Initialize";
_itembat7.Initialize();
 //BA.debugLineNum = 2307;BA.debugLine="itembat7.Add(\"Selecciona una opcion\")";
_itembat7.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2308;BA.debugLine="itembat7.Add(\"Ninguno\")";
_itembat7.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2309;BA.debugLine="itembat7.Add(\"Menos de medio cartón\")";
_itembat7.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2310;BA.debugLine="itembat7.Add(\"Medio cartón a 1 cartón\")";
_itembat7.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2311;BA.debugLine="itembat7.Add(\"1.1 a 3.9 cartones\")";
_itembat7.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2312;BA.debugLine="itembat7.Add(\"4 a 5.9 cartones\")";
_itembat7.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2313;BA.debugLine="itembat7.Add(\"6 a 10.9 cartones\")";
_itembat7.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2314;BA.debugLine="itembat7.Add(\"11 a 20.9 cartones\")";
_itembat7.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2315;BA.debugLine="itembat7.Add(\"21 a 30.9 cartones\")";
_itembat7.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2316;BA.debugLine="itembat7.Add(\"31 a 40 cartones\")";
_itembat7.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2317;BA.debugLine="itembat7.Add(\"Más de 40 cartones\")";
_itembat7.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2318;BA.debugLine="cb_p7.SetItems(itembat7)";
_cb_p7._setitems /*String*/ (_itembat7);
 //BA.debugLineNum = 2319;BA.debugLine="e_7 = \"Selecciona una opcion\"";
_e_7 = "Selecciona una opcion";
 //BA.debugLineNum = 2321;BA.debugLine="Dim itembat8 As List";
_itembat8 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2322;BA.debugLine="itembat8.Initialize";
_itembat8.Initialize();
 //BA.debugLineNum = 2323;BA.debugLine="itembat8.Add(\"Selecciona una opcion\")";
_itembat8.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2324;BA.debugLine="itembat8.Add(\"Ninguno\")";
_itembat8.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2325;BA.debugLine="itembat8.Add(\"Menos de medio cartón\")";
_itembat8.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2326;BA.debugLine="itembat8.Add(\"Medio cartón a 1 cartón\")";
_itembat8.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2327;BA.debugLine="itembat8.Add(\"1.1 a 3.9 cartones\")";
_itembat8.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2328;BA.debugLine="itembat8.Add(\"4 a 5.9 cartones\")";
_itembat8.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2329;BA.debugLine="itembat8.Add(\"6 a 10.9 cartones\")";
_itembat8.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2330;BA.debugLine="itembat8.Add(\"11 a 20.9 cartones\")";
_itembat8.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2331;BA.debugLine="itembat8.Add(\"21 a 30.9 cartones\")";
_itembat8.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2332;BA.debugLine="itembat8.Add(\"31 a 40 cartones\")";
_itembat8.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2333;BA.debugLine="itembat8.Add(\"Más de 40 cartones\")";
_itembat8.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2334;BA.debugLine="cb_p8.SetItems(itembat8)";
_cb_p8._setitems /*String*/ (_itembat8);
 //BA.debugLineNum = 2335;BA.debugLine="e_8 = \"Selecciona una opcion\"";
_e_8 = "Selecciona una opcion";
 //BA.debugLineNum = 2337;BA.debugLine="Dim itembat9 As List";
_itembat9 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2338;BA.debugLine="itembat9.Initialize";
_itembat9.Initialize();
 //BA.debugLineNum = 2339;BA.debugLine="itembat9.Add(\"Selecciona una opcion\")";
_itembat9.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2340;BA.debugLine="itembat9.Add(\"Ninguno\")";
_itembat9.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2341;BA.debugLine="itembat9.Add(\"Menos de medio cartón\")";
_itembat9.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2342;BA.debugLine="itembat9.Add(\"Medio cartón a 1 cartón\")";
_itembat9.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2343;BA.debugLine="itembat9.Add(\"1.1 a 3.9 cartones\")";
_itembat9.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2344;BA.debugLine="itembat9.Add(\"4 a 5.9 cartones\")";
_itembat9.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2345;BA.debugLine="itembat9.Add(\"6 a 10.9 cartones\")";
_itembat9.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2346;BA.debugLine="itembat9.Add(\"11 a 20.9 cartones\")";
_itembat9.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2347;BA.debugLine="itembat9.Add(\"21 a 30.9 cartones\")";
_itembat9.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2348;BA.debugLine="itembat9.Add(\"31 a 40 cartones\")";
_itembat9.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2349;BA.debugLine="itembat9.Add(\"Más de 40 cartones\")";
_itembat9.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2350;BA.debugLine="cb_p9.SetItems(itembat9)";
_cb_p9._setitems /*String*/ (_itembat9);
 //BA.debugLineNum = 2351;BA.debugLine="e_9 = \"Selecciona una opcion\"";
_e_9 = "Selecciona una opcion";
 //BA.debugLineNum = 2353;BA.debugLine="Dim itembat10 As List";
_itembat10 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 2354;BA.debugLine="itembat10.Initialize";
_itembat10.Initialize();
 //BA.debugLineNum = 2355;BA.debugLine="itembat10.Add(\"Selecciona una opcion\")";
_itembat10.Add((Object)("Selecciona una opcion"));
 //BA.debugLineNum = 2356;BA.debugLine="itembat10.Add(\"Ninguno\")";
_itembat10.Add((Object)("Ninguno"));
 //BA.debugLineNum = 2357;BA.debugLine="itembat10.Add(\"Menos de medio cartón\")";
_itembat10.Add((Object)("Menos de medio cartón"));
 //BA.debugLineNum = 2358;BA.debugLine="itembat10.Add(\"Medio cartón a 1 cartón\")";
_itembat10.Add((Object)("Medio cartón a 1 cartón"));
 //BA.debugLineNum = 2359;BA.debugLine="itembat10.Add(\"1.1 a 3.9 cartones\")";
_itembat10.Add((Object)("1.1 a 3.9 cartones"));
 //BA.debugLineNum = 2360;BA.debugLine="itembat10.Add(\"4 a 5.9 cartones\")";
_itembat10.Add((Object)("4 a 5.9 cartones"));
 //BA.debugLineNum = 2361;BA.debugLine="itembat10.Add(\"6 a 10.9 cartones\")";
_itembat10.Add((Object)("6 a 10.9 cartones"));
 //BA.debugLineNum = 2362;BA.debugLine="itembat10.Add(\"11 a 20.9 cartones\")";
_itembat10.Add((Object)("11 a 20.9 cartones"));
 //BA.debugLineNum = 2363;BA.debugLine="itembat10.Add(\"21 a 30.9 cartones\")";
_itembat10.Add((Object)("21 a 30.9 cartones"));
 //BA.debugLineNum = 2364;BA.debugLine="itembat10.Add(\"31 a 40 cartones\")";
_itembat10.Add((Object)("31 a 40 cartones"));
 //BA.debugLineNum = 2365;BA.debugLine="itembat10.Add(\"Más de 40 cartones\")";
_itembat10.Add((Object)("Más de 40 cartones"));
 //BA.debugLineNum = 2366;BA.debugLine="cb_p10.SetItems(itembat10)";
_cb_p10._setitems /*String*/ (_itembat10);
 //BA.debugLineNum = 2367;BA.debugLine="e_10 = \"Selecciona una opcion\"";
_e_10 = "Selecciona una opcion";
 }else {
 //BA.debugLineNum = 2369;BA.debugLine="vent";
_vent();
 };
 };
 }else {
 //BA.debugLineNum = 2373;BA.debugLine="vent";
_vent();
 };
 }else {
 //BA.debugLineNum = 2377;BA.debugLine="vent";
_vent();
 };
 }else {
 //BA.debugLineNum = 2380;BA.debugLine="vent";
_vent();
 };
 //BA.debugLineNum = 2384;BA.debugLine="End Sub";
return "";
}
public String  _gestionar() throws Exception{
anywheresoftware.b4a.objects.IntentWrapper _intent1 = null;
String _enviorutas = "";
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 2438;BA.debugLine="Sub gestionar";
 //BA.debugLineNum = 2439;BA.debugLine="If B_IMP.Visible = True Then";
if (_b_imp.getVisible()==__c.True) { 
 //BA.debugLineNum = 2440;BA.debugLine="If Not(Subs.revisaImpreso) Then";
if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { 
 //BA.debugLineNum = 2441;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 2442;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2443;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then";
if ((_c.GetString("encuesta")).equals("0")) { 
 //BA.debugLineNum = 2444;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 2445;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/c";
_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba);
 //BA.debugLineNum = 2446;BA.debugLine="Log(enviorutas)";
__c.LogImpl("415269896",_enviorutas,0);
 //BA.debugLineNum = 2447;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envior";
_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas);
 //BA.debugLineNum = 2448;BA.debugLine="Try";
try { //BA.debugLineNum = 2449;BA.debugLine="Starter.encuesta = 1";
_starter._encuesta /*String*/  = BA.NumberToString(1);
 //BA.debugLineNum = 2450;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2451;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET encu";
_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
 //BA.debugLineNum = 2452;BA.debugLine="StartActivity(Intent1)";
__c.StartActivity(ba,(Object)(_intent1.getObject()));
 //BA.debugLineNum = 2453;BA.debugLine="compra";
_compra();
 } 
       catch (Exception e17) {
			ba.setLastException(e17); //BA.debugLineNum = 2455;BA.debugLine="Starter.encuesta = 0";
_starter._encuesta /*String*/  = BA.NumberToString(0);
 //BA.debugLineNum = 2459;BA.debugLine="compra";
_compra();
 };
 }else {
 //BA.debugLineNum = 2466;BA.debugLine="compra";
_compra();
 };
 }else {
 //BA.debugLineNum = 2469;BA.debugLine="If Subs.traeAlmacen = 94 Then";
if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { 
 //BA.debugLineNum = 2470;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 2471;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2472;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then";
if ((_c.GetString("encuesta")).equals("0")) { 
 //BA.debugLineNum = 2473;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 2474;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/";
_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba);
 //BA.debugLineNum = 2475;BA.debugLine="Log(enviorutas)";
__c.LogImpl("415269925",_enviorutas,0);
 //BA.debugLineNum = 2476;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envio";
_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas);
 //BA.debugLineNum = 2477;BA.debugLine="Try";
try { //BA.debugLineNum = 2478;BA.debugLine="Starter.encuesta = 1";
_starter._encuesta /*String*/  = BA.NumberToString(1);
 //BA.debugLineNum = 2479;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2480;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET enc";
_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
 //BA.debugLineNum = 2481;BA.debugLine="StartActivity(Intent1)";
__c.StartActivity(ba,(Object)(_intent1.getObject()));
 //BA.debugLineNum = 2482;BA.debugLine="compra";
_compra();
 } 
       catch (Exception e39) {
			ba.setLastException(e39); //BA.debugLineNum = 2484;BA.debugLine="Starter.encuesta = 0";
_starter._encuesta /*String*/  = BA.NumberToString(0);
 //BA.debugLineNum = 2488;BA.debugLine="compra";
_compra();
 };
 }else {
 //BA.debugLineNum = 2495;BA.debugLine="compra";
_compra();
 };
 }else {
 //BA.debugLineNum = 2498;BA.debugLine="p_transparenteTicketImpreso.Visible = True";
_p_transparenteticketimpreso.setVisible(__c.True);
 };
 };
 }else {
 //BA.debugLineNum = 2502;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 2503;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 2504;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then";
if ((_c.GetString("encuesta")).equals("0")) { 
 //BA.debugLineNum = 2505;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 2506;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/co";
_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba);
 //BA.debugLineNum = 2507;BA.debugLine="Log(enviorutas)";
__c.LogImpl("415269957",_enviorutas,0);
 //BA.debugLineNum = 2508;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envioru";
_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas);
 //BA.debugLineNum = 2509;BA.debugLine="Try";
try { //BA.debugLineNum = 2510;BA.debugLine="Starter.encuesta = 1";
_starter._encuesta /*String*/  = BA.NumberToString(1);
 //BA.debugLineNum = 2511;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2512;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET encue";
_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
 //BA.debugLineNum = 2513;BA.debugLine="StartActivity(Intent1)";
__c.StartActivity(ba,(Object)(_intent1.getObject()));
 //BA.debugLineNum = 2514;BA.debugLine="compra";
_compra();
 } 
       catch (Exception e64) {
			ba.setLastException(e64); //BA.debugLineNum = 2516;BA.debugLine="Starter.encuesta = 0";
_starter._encuesta /*String*/  = BA.NumberToString(0);
 //BA.debugLineNum = 2520;BA.debugLine="compra";
_compra();
 };
 }else {
 //BA.debugLineNum = 2527;BA.debugLine="compra";
_compra();
 };
 };
 //BA.debugLineNum = 2530;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
anywheresoftware.b4a.objects.collections.List _ultimasubicaciones = null;
double _latpromedio = 0;
double _lonpromedio = 0;
anywheresoftware.b4a.gps.LocationWrapper _loc = null;
String _al_longitud = "";
String _al_latitud = "";
anywheresoftware.b4a.gps.LocationWrapper _ubi1 = null;
anywheresoftware.b4a.gps.LocationWrapper _ubi2 = null;
anywheresoftware.b4a.gps.LocationWrapper _l1 = null;
anywheresoftware.b4a.gps.LocationWrapper _l2 = null;
String _habi = "";
String _geo = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null;
 //BA.debugLineNum = 1547;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
 //BA.debugLineNum = 1548;BA.debugLine="LogColor($\"Entrando a Cliente.GPS_LocationChanged";
__c.LogImpl("414680065",("Entrando a Cliente.GPS_LocationChanged"),__c.Colors.Red);
 //BA.debugLineNum = 1551;BA.debugLine="If Location1 = location2 Then";
if ((_location1).equals(_location2)) { 
 //BA.debugLineNum = 1552;BA.debugLine="contIguales = contIguales + 1";
_contiguales = (int) (_contiguales+1);
 //BA.debugLineNum = 1553;BA.debugLine="Log(\"Coords Iguales\")";
__c.LogImpl("414680070","Coords Iguales",0);
 //BA.debugLineNum = 1554;BA.debugLine="If contIguales >= 3 Then";
if (_contiguales>=3) { 
 //BA.debugLineNum = 1557;BA.debugLine="CallSubDelayed(Tracker, \"StopFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StopFLP");
 //BA.debugLineNum = 1558;BA.debugLine="Return";
if (true) return "";
 };
 }else {
 //BA.debugLineNum = 1561;BA.debugLine="contIguales = 0";
_contiguales = (int) (0);
 };
 //BA.debugLineNum = 1563;BA.debugLine="Log(\"############################################";
__c.LogImpl("414680080","################################################################################",0);
 //BA.debugLineNum = 1564;BA.debugLine="Log(\"############################################";
__c.LogImpl("414680081","################################################################################",0);
 //BA.debugLineNum = 1565;BA.debugLine="Log(\"############################################";
__c.LogImpl("414680082","################################################################################",0);
 //BA.debugLineNum = 1566;BA.debugLine="location2 = Location1";
_location2 = _location1;
 //BA.debugLineNum = 1576;BA.debugLine="If Location1.Accuracy > 50 Then ' Mayor a 50 metr";
if (_location1.getAccuracy()>50) { 
 //BA.debugLineNum = 1577;BA.debugLine="MejorarPrecisionGPS";
_mejorarprecisiongps();
 //BA.debugLineNum = 1578;BA.debugLine="Return ' Esperar siguiente lectura";
if (true) return "";
 };
 //BA.debugLineNum = 1582;BA.debugLine="If Location1.Accuracy > 50 Then ' Si la precisión";
if (_location1.getAccuracy()>50) { 
 //BA.debugLineNum = 1583;BA.debugLine="Return";
if (true) return "";
 };
 //BA.debugLineNum = 1587;BA.debugLine="Dim ultimasUbicaciones As List";
_ultimasubicaciones = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 1588;BA.debugLine="If ultimasUbicaciones.IsInitialized = False Then";
if (_ultimasubicaciones.IsInitialized()==__c.False) { 
 //BA.debugLineNum = 1589;BA.debugLine="ultimasUbicaciones.Initialize";
_ultimasubicaciones.Initialize();
 };
 //BA.debugLineNum = 1592;BA.debugLine="ultimasUbicaciones.Add(Location1)";
_ultimasubicaciones.Add((Object)(_location1.getObject()));
 //BA.debugLineNum = 1593;BA.debugLine="If ultimasUbicaciones.Size > 5 Then";
if (_ultimasubicaciones.getSize()>5) { 
 //BA.debugLineNum = 1594;BA.debugLine="ultimasUbicaciones.RemoveAt(0)";
_ultimasubicaciones.RemoveAt((int) (0));
 };
 //BA.debugLineNum = 1598;BA.debugLine="Dim latPromedio, lonPromedio As Double";
_latpromedio = 0;
_lonpromedio = 0;
 //BA.debugLineNum = 1599;BA.debugLine="For Each loc As Location In ultimasUbicaciones";
_loc = new anywheresoftware.b4a.gps.LocationWrapper();
{
final anywheresoftware.b4a.BA.IterableList group32 = _ultimasubicaciones;
final int groupLen32 = group32.getSize()
;int index32 = 0;
;
for (; index32 < groupLen32;index32++){
_loc = (anywheresoftware.b4a.gps.LocationWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.gps.LocationWrapper(), (android.location.Location)(group32.Get(index32)));
 //BA.debugLineNum = 1600;BA.debugLine="Log(\"***\")";
__c.LogImpl("414680117","***",0);
 //BA.debugLineNum = 1601;BA.debugLine="latPromedio = latPromedio + loc.Latitude";
_latpromedio = _latpromedio+_loc.getLatitude();
 //BA.debugLineNum = 1602;BA.debugLine="lonPromedio = lonPromedio + loc.Longitude";
_lonpromedio = _lonpromedio+_loc.getLongitude();
 }
};
 //BA.debugLineNum = 1604;BA.debugLine="latPromedio = latPromedio / ultimasUbicaciones.Si";
_latpromedio = _latpromedio/(double)_ultimasubicaciones.getSize();
 //BA.debugLineNum = 1605;BA.debugLine="lonPromedio = lonPromedio / ultimasUbicaciones.Si";
_lonpromedio = _lonpromedio/(double)_ultimasubicaciones.getSize();
 //BA.debugLineNum = 1608;BA.debugLine="B4XPages.MainPage.lat_gps = latPromedio";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_latpromedio);
 //BA.debugLineNum = 1609;BA.debugLine="B4XPages.MainPage.lon_gps = lonPromedio";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_lonpromedio);
 //BA.debugLineNum = 1611;BA.debugLine="If Tels.IsInitialized Then";
if (_tels.IsInitialized()) { 
 //BA.debugLineNum = 1612;BA.debugLine="Dim al_longitud As String = 0";
_al_longitud = BA.NumberToString(0);
 //BA.debugLineNum = 1613;BA.debugLine="Dim al_latitud As String = 0";
_al_latitud = BA.NumberToString(0);
 //BA.debugLineNum = 1614;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"LATITUD"})));
 //BA.debugLineNum = 1615;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1616;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1617;BA.debugLine="Dim al_latitud As String = c.GetString(\"CAT_VA_";
_al_latitud = _c.GetString("CAT_VA_VALOR");
 };
 //BA.debugLineNum = 1619;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1620;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"LONGITUD"})));
 //BA.debugLineNum = 1621;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1622;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1623;BA.debugLine="Dim al_longitud As String = c.GetString(\"CAT_VA";
_al_longitud = _c.GetString("CAT_VA_VALOR");
 };
 //BA.debugLineNum = 1625;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1626;BA.debugLine="Dim ubi1, ubi2 As Location";
_ubi1 = new anywheresoftware.b4a.gps.LocationWrapper();
_ubi2 = new anywheresoftware.b4a.gps.LocationWrapper();
 //BA.debugLineNum = 1627;BA.debugLine="ubi1.Initialize2(B4XPages.MainPage.lat_gps, B4XP";
_ubi1.Initialize2(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ );
 //BA.debugLineNum = 1628;BA.debugLine="ubi2.Initialize2(al_latitud, al_longitud)";
_ubi2.Initialize2(_al_latitud,_al_longitud);
 //BA.debugLineNum = 1629;BA.debugLine="distancealm = ubi1.DistanceTo(ubi2)";
_distancealm = (long) (_ubi1.DistanceTo((android.location.Location)(_ubi2.getObject())));
 };
 //BA.debugLineNum = 1632;BA.debugLine="If LA_GPS.IsInitialized Then";
if (_la_gps.IsInitialized()) { 
 //BA.debugLineNum = 1633;BA.debugLine="LA_GPS.Text = $\"UBICACIÓN - Precisión: ${NumberF";
_la_gps.setText(BA.ObjectToCharSequence(("UBICACIÓN - Precisión: "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_location1.getAccuracy(),(int) (0),(int) (1),(int) (1),__c.False)))+"m")));
 };
 //BA.debugLineNum = 1636;BA.debugLine="If Location1.Accuracy < 30 Then ' Menos de 30 met";
if (_location1.getAccuracy()<30) { 
 //BA.debugLineNum = 1638;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_location1.getLatitude());
 //BA.debugLineNum = 1639;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_location1.getLongitude());
 //BA.debugLineNum = 1641;BA.debugLine="If m_lat.Length > 0 And B4XPages.MainPage.lat_gp";
if (_m_lat.length()>0 && (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0") == false) { 
 //BA.debugLineNum = 1642;BA.debugLine="Dim l1, l2 As Location";
_l1 = new anywheresoftware.b4a.gps.LocationWrapper();
_l2 = new anywheresoftware.b4a.gps.LocationWrapper();
 //BA.debugLineNum = 1643;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPa";
_l1.Initialize2(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ );
 //BA.debugLineNum = 1645;BA.debugLine="l2.Initialize2(m_lat, m_lon)";
_l2.Initialize2(_m_lat,_m_lon);
 //BA.debugLineNum = 1646;BA.debugLine="BT_QR.Enabled = True";
_bt_qr.setEnabled(__c.True);
 //BA.debugLineNum = 1649;BA.debugLine="B_GPS.Enabled = True";
_b_gps.setEnabled(__c.True);
 //BA.debugLineNum = 1651;BA.debugLine="Dim distance As Long";
_distance = 0L;
 //BA.debugLineNum = 1652;BA.debugLine="distance = l1.DistanceTo(l2)  'the result is in";
_distance = (long) (_l1.DistanceTo((android.location.Location)(_l2.getObject())));
 //BA.debugLineNum = 1653;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\"";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HABILITADO FROM GPS")));
 //BA.debugLineNum = 1654;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1655;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1656;BA.debugLine="Dim habi As String = c.GetString(\"HABILITADO\")";
_habi = _c.GetString("HABILITADO");
 };
 //BA.debugLineNum = 1658;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1659;BA.debugLine="c = skmt.ExecQuery(\"SELECT CAT_VA_VALOR FROM CA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'GEOCERCA'")));
 //BA.debugLineNum = 1660;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1661;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1662;BA.debugLine="Dim geo As String = c.GetString(\"CAT_VA_VALOR\"";
_geo = _c.GetString("CAT_VA_VALOR");
 };
 //BA.debugLineNum = 1664;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1665;BA.debugLine="If gest.IsInitialized And Tels.IsInitialized Th";
if (_gest.IsInitialized() && _tels.IsInitialized()) { 
 //BA.debugLineNum = 1666;BA.debugLine="If geo = \"0\" Then";
if ((_geo).equals("0")) { 
 //BA.debugLineNum = 1667;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1668;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1669;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1670;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1671;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1672;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1673;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1675;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1678;BA.debugLine="iniciofin";
_iniciofin();
 //BA.debugLineNum = 1680;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 }else if((_geo).equals("1")) { 
 //BA.debugLineNum = 1682;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1683;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1684;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1690;BA.debugLine="If geo = \"1\" Then";
if ((_geo).equals("1")) { 
 //BA.debugLineNum = 1691;BA.debugLine="If distance < 1000000000000000000000 Then";
if (_distance<1000000000000000000000d) { 
 //BA.debugLineNum = 1692;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
_la_geo.setTextColor(__c.Colors.Blue);
 //BA.debugLineNum = 1693;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1694;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1695;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1696;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1697;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1698;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1699;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1701;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1704;BA.debugLine="bitacora.inicioFin";
_bitacora._iniciofin /*String*/ ();
 //BA.debugLineNum = 1705;BA.debugLine="precision = \"1\"";
_precision = "1";
 //BA.debugLineNum = 1707;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 }else if((_habi).equals("1")) { 
 //BA.debugLineNum = 1710;BA.debugLine="If distancealm < 50 Then";
if (_distancealm<50) { 
 //BA.debugLineNum = 1711;BA.debugLine="precision = \"0\"";
_precision = "0";
 //BA.debugLineNum = 1712;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
_la_geo.setTextColor(__c.Colors.Blue);
 //BA.debugLineNum = 1713;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1714;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1715;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skm";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1716;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1717;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1718;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1719;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1721;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1725;BA.debugLine="bitacora.banderaGeoCerca = \"1\"";
_bitacora._banderageocerca /*String*/  = "1";
 //BA.debugLineNum = 1726;BA.debugLine="iniciofin";
_iniciofin();
 }else if(_distancealm>50) { 
 //BA.debugLineNum = 1729;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1730;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1731;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1733;BA.debugLine="Log(998)";
__c.LogImpl("414680250",BA.NumberToString(998),0);
 //BA.debugLineNum = 1735;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE FROM P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1736;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1737;BA.debugLine="precision = \"0\"";
_precision = "0";
 //BA.debugLineNum = 1738;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1739;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1740;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.sk";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1741;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1742;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1743;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1744;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1746;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1750;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1751;BA.debugLine="iniciofin";
_iniciofin();
 }else if(_c.getRowCount()==0) { 
 //BA.debugLineNum = 1753;BA.debugLine="Private c5 As Cursor = skmt.ExecQuery(\"SELE";
_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1754;BA.debugLine="If c5.RowCount > 0 Then";
if (_c5.getRowCount()>0) { 
 //BA.debugLineNum = 1755;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1756;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1757;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.s";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1758;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1759;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1760;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1761;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1763;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1766;BA.debugLine="precision = \"0\"";
_precision = "0";
 //BA.debugLineNum = 1768;BA.debugLine="iniciofin";
_iniciofin();
 }else if(_c5.getRowCount()==0) { 
 //BA.debugLineNum = 1770;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1771;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1773;BA.debugLine="Log(997)";
__c.LogImpl("414680290",BA.NumberToString(997),0);
 //BA.debugLineNum = 1775;BA.debugLine="LA_GEO.TextColor = Colors.Red";
_la_geo.setTextColor(__c.Colors.Red);
 //BA.debugLineNum = 1776;BA.debugLine="If ALMACEN = \"1\" Then";
if ((_almacen).equals("1")) { 
 //BA.debugLineNum = 1777;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1778;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1779;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1781;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1782;BA.debugLine="iniciofin";
_iniciofin();
 };
 };
 //BA.debugLineNum = 1785;BA.debugLine="c5.Close";
_c5.Close();
 };
 //BA.debugLineNum = 1787;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1788;BA.debugLine="LA_GEO.TextColor = Colors.Red";
_la_geo.setTextColor(__c.Colors.Red);
 //BA.debugLineNum = 1789;BA.debugLine="If ALMACEN = \"1\" Then";
if ((_almacen).equals("1")) { 
 //BA.debugLineNum = 1790;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1791;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1793;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1794;BA.debugLine="iniciofin";
_iniciofin();
 };
 };
 }else if((_habi).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 1798;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE  FROM P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT PC_CLIENTE  FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1799;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1800;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1801;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1802;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skm";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1803;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1804;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1805;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1806;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1808;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1812;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1813;BA.debugLine="iniciofin";
_iniciofin();
 }else if(_c.getRowCount()==0) { 
 //BA.debugLineNum = 1815;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1816;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1817;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1819;BA.debugLine="Log(996)";
__c.LogImpl("414680336",BA.NumberToString(996),0);
 //BA.debugLineNum = 1821;BA.debugLine="c2 = skmt.ExecQuery(\"SELECT NV_CLIENTE FROM";
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 1822;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
 //BA.debugLineNum = 1823;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1824;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1825;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.sk";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1826;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1827;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1828;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1829;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1831;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1835;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1836;BA.debugLine="iniciofin";
_iniciofin();
 }else if(_c2.getRowCount()==0) { 
 //BA.debugLineNum = 1838;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1839;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1840;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1842;BA.debugLine="Log(995)";
__c.LogImpl("414680359",BA.NumberToString(995),0);
 //BA.debugLineNum = 1844;BA.debugLine="LA_GEO.TextColor = Colors.Red";
_la_geo.setTextColor(__c.Colors.Red);
 //BA.debugLineNum = 1845;BA.debugLine="If ALMACEN = \"1\" Then";
if ((_almacen).equals("1")) { 
 //BA.debugLineNum = 1846;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1847;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1848;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1850;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1851;BA.debugLine="iniciofin";
_iniciofin();
 };
 };
 //BA.debugLineNum = 1854;BA.debugLine="c2.Close";
_c2.Close();
 //BA.debugLineNum = 1855;BA.debugLine="LA_GEO.TextColor = Colors.Red";
_la_geo.setTextColor(__c.Colors.Red);
 //BA.debugLineNum = 1856;BA.debugLine="If ALMACEN = \"1\" Then";
if ((_almacen).equals("1")) { 
 //BA.debugLineNum = 1857;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1858;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1859;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1861;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1862;BA.debugLine="iniciofin";
_iniciofin();
 };
 };
 //BA.debugLineNum = 1865;BA.debugLine="c.Close";
_c.Close();
 }else {
 //BA.debugLineNum = 1867;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1868;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1869;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 //BA.debugLineNum = 1871;BA.debugLine="Log(994)";
__c.LogImpl("414680388",BA.NumberToString(994),0);
 //BA.debugLineNum = 1873;BA.debugLine="LA_GEO.TextColor = Colors.Red";
_la_geo.setTextColor(__c.Colors.Red);
 //BA.debugLineNum = 1874;BA.debugLine="If ALMACEN = \"1\" Then";
if ((_almacen).equals("1")) { 
 //BA.debugLineNum = 1875;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1876;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1877;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1879;BA.debugLine="bitacora.banderaGeoCerca = \"0\"";
_bitacora._banderageocerca /*String*/  = "0";
 //BA.debugLineNum = 1880;BA.debugLine="iniciofin";
_iniciofin();
 };
 };
 };
 };
 }else {
 //BA.debugLineNum = 1887;BA.debugLine="If LA_GPS.IsInitialized Then";
if (_la_gps.IsInitialized()) { 
 //BA.debugLineNum = 1889;BA.debugLine="LA_GPS.Text = $\"BAJA PRECISIÓN (${NumberFormat2";
_la_gps.setText(BA.ObjectToCharSequence(("BAJA PRECISIÓN ("+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_location1.getAccuracy(),(int) (0),(int) (1),(int) (1),__c.False)))+"m)")));
 //BA.debugLineNum = 1890;BA.debugLine="LA_GPS.TextColor = Colors.Red";
_la_gps.setTextColor(__c.Colors.Red);
 };
 };
 //BA.debugLineNum = 1894;BA.debugLine="If cuenta.StartsWith(\"N\") Then";
if (_cuenta.startsWith("N")) { 
 //BA.debugLineNum = 1895;BA.debugLine="precision = \"0\"";
_precision = "0";
 //BA.debugLineNum = 1896;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
_la_geo.setTextColor(__c.Colors.Blue);
 //BA.debugLineNum = 1897;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1898;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1899;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1900;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1901;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1902;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1903;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1905;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1909;BA.debugLine="bitacora.banderaGeoCerca = \"1\"";
_bitacora._banderageocerca /*String*/  = "1";
 //BA.debugLineNum = 1910;BA.debugLine="iniciofin";
_iniciofin();
 };
 //BA.debugLineNum = 1915;BA.debugLine="If LA_GEO.IsInitialized Then LA_GEO.Text= $\"$1.2{";
if (_la_geo.IsInitialized()) { 
_la_geo.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.2",(Object)(_distance/(double)1000))+" kms")));};
 //BA.debugLineNum = 1918;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
 //BA.debugLineNum = 1919;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*gunav2.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)(_sdate+_stime),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
 //BA.debugLineNum = 1921;BA.debugLine="End Sub";
return "";
}
public String  _guardadoventa() throws Exception{
 //BA.debugLineNum = 3375;BA.debugLine="Sub guardadoventa";
 //BA.debugLineNum = 3377;BA.debugLine="End Sub";
return "";
}
public String  _guardar_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
float _suma = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null;
int _cbfactura = 0;
 //BA.debugLineNum = 3283;BA.debugLine="Sub Guardar_Click";
 //BA.debugLineNum = 3284;BA.debugLine="Guardar.SendToBack";
_guardar.SendToBack();
 //BA.debugLineNum = 3285;BA.debugLine="bitacora.b_Inicio_Fin_venta2.Text = \"TERMINAR VIS";
_bitacora._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("TERMINAR VISITA"));
 //BA.debugLineNum = 3286;BA.debugLine="bitacora.enVenta = False";
_bitacora._enventa /*boolean*/  = __c.False;
 //BA.debugLineNum = 3287;BA.debugLine="bitacora.inicioFin";
_bitacora._iniciofin /*String*/ ();
 //BA.debugLineNum = 3288;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 3289;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 3290;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 3291;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
 //BA.debugLineNum = 3292;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3293;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
_clie_id = _c.GetString("CUENTA");
 //BA.debugLineNum = 3294;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3295;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 3296;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3297;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 3298;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3299;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.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)")));
 //BA.debugLineNum = 3300;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3303;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.ExecQ";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? AND PE_RECALCULO <> ? AND PE_RECALCULO <> ?",new String[]{"","null",BA.ObjectToString(__c.Null)})));
 //BA.debugLineNum = 3305;BA.debugLine="Private suma As Float = 0";
_suma = (float) (0);
 //BA.debugLineNum = 3306;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
 //BA.debugLineNum = 3307;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.ExecQ";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO = ? AND PE_RECALCULO = ? AND PE_RECALCULO = ?",new String[]{"","null",BA.ObjectToString(__c.Null)})));
 //BA.debugLineNum = 3308;BA.debugLine="s.Position = 0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 3309;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Ex";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? AND PE_RECALCULO <> ? AND PE_RECALCULO <> ?",new String[]{"","null",BA.ObjectToString(__c.Null)})));
 //BA.debugLineNum = 3310;BA.debugLine="s5.Position = 0";
_s5.setPosition((int) (0));
 //BA.debugLineNum = 3311;BA.debugLine="suma = s.GetString(\"TOTAL_CLIE\") + s5.GetString(";
_suma = (float) ((double)(Double.parseDouble(_s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE"))));
 //BA.debugLineNum = 3312;BA.debugLine="s.Close";
_s.Close();
 }else if(_s3.getRowCount()==0) { 
 //BA.debugLineNum = 3314;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.ExecQ";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 3315;BA.debugLine="s.Position=0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 3316;BA.debugLine="suma = s.GetString(\"TOTAL_CLIE\")";
_suma = (float)(Double.parseDouble(_s.GetString("TOTAL_CLIE")));
 //BA.debugLineNum = 3317;BA.debugLine="s.Close";
_s.Close();
 };
 //BA.debugLineNum = 3320;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { 
 //BA.debugLineNum = 3321;BA.debugLine="Private cbFactura As Int = 0";
_cbfactura = (int) (0);
 //BA.debugLineNum = 3322;BA.debugLine="If CH_FACTURA.Checked Then cbFactura = 1";
if (_ch_factura.getChecked()) { 
_cbfactura = (int) (1);};
 //BA.debugLineNum = 3323;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)");
 //BA.debugLineNum = 3324;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
 //BA.debugLineNum = 3325;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int";
_b4xpages._mainpage /*gunav2.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_FACTURA,PC_ALMACEN,PC_RUTA) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(__c.NumberFormat2(_suma,(int) (0),(int) (2),(int) (2),__c.False)),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_cbfactura),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}));
 //BA.debugLineNum = 3326;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
 };
 //BA.debugLineNum = 3330;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3331;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
 //BA.debugLineNum = 3332;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 3333;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIST";
_b4xpages._mainpage /*gunav2.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)(_stime)}));
 //BA.debugLineNum = 3335;BA.debugLine="Try";
try { //BA.debugLineNum = 3336;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\" Select (sub";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.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) ")));
 //BA.debugLineNum = 3342;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3343;BA.debugLine="stay_hh = c.GetString(\"HORAS_TOTALES\") * 60 * 60";
_stay_hh = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HORAS_TOTALES")))*60*60);
 //BA.debugLineNum = 3344;BA.debugLine="stay_mi = c.GetString(\"MINUTOS_TOTALES\") * 60";
_stay_mi = BA.NumberToString((double)(Double.parseDouble(_c.GetString("MINUTOS_TOTALES")))*60);
 //BA.debugLineNum = 3345;BA.debugLine="stay_ss = c.GetString(\"SEGUNDOS_TOTALES\")";
_stay_ss = _c.GetString("SEGUNDOS_TOTALES");
 //BA.debugLineNum = 3346;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*gunav2.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(_stay_hh))+(double)(Double.parseDouble(_stay_mi))+(double)(Double.parseDouble(_stay_ss)))}));
 //BA.debugLineNum = 3347;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*gunav2.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)(_stime)}));
 //BA.debugLineNum = 3348;BA.debugLine="c.Close";
_c.Close();
 } 
       catch (Exception e55) {
			ba.setLastException(e55); //BA.debugLineNum = 3350;BA.debugLine="ToastMessageShow(\".\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("."),__c.True);
 };
 //BA.debugLineNum = 3352;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 3354;BA.debugLine="Log(BCREDITO)";
__c.LogImpl("416842823",_bcredito,0);
 //BA.debugLineNum = 3368;BA.debugLine="End Sub";
return "";
}
public String  _guardar_longclick() throws Exception{
 //BA.debugLineNum = 3370;BA.debugLine="Sub Guardar_LongClick";
 //BA.debugLineNum = 3373;BA.debugLine="End Sub";
return "";
}
public String  _habilitarbotones(boolean _dentroderango) throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null;
 //BA.debugLineNum = 1508;BA.debugLine="Sub HabilitarBotones(dentroDeRango As Boolean)";
 //BA.debugLineNum = 1509;BA.debugLine="If dentroDeRango Then";
if (_dentroderango) { 
 //BA.debugLineNum = 1510;BA.debugLine="If Tels.IsInitialized Then";
if (_tels.IsInitialized()) { 
 //BA.debugLineNum = 1511;BA.debugLine="Tels.Visible = True";
_tels.setVisible(__c.True);
 //BA.debugLineNum = 1512;BA.debugLine="gest.Visible = True";
_gest.setVisible(__c.True);
 //BA.debugLineNum = 1513;BA.debugLine="Tels.Enabled = True";
_tels.setEnabled(__c.True);
 //BA.debugLineNum = 1514;BA.debugLine="gest.Enabled = True";
_gest.setEnabled(__c.True);
 //BA.debugLineNum = 1515;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.E";
_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"})));
 //BA.debugLineNum = 1516;BA.debugLine="If future.RowCount > 0 Then";
if (_future.getRowCount()>0) { 
 //BA.debugLineNum = 1517;BA.debugLine="future.Position = 0";
_future.setPosition((int) (0));
 //BA.debugLineNum = 1518;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
if (_future.GetInt("CAT_VA_VALOR")==1) { 
 //BA.debugLineNum = 1519;BA.debugLine="b_preventa2.Visible = True";
_b_preventa2.setVisible(__c.True);
 //BA.debugLineNum = 1520;BA.debugLine="b_preventa2.Enabled = True";
_b_preventa2.setEnabled(__c.True);
 }else if(_future.GetInt("CAT_VA_VALOR")==0) { 
 //BA.debugLineNum = 1522;BA.debugLine="b_preventa2.Enabled = False";
_b_preventa2.setEnabled(__c.False);
 //BA.debugLineNum = 1523;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 };
 };
 };
 }else {
 //BA.debugLineNum = 1529;BA.debugLine="If Tels.IsInitialized Then";
if (_tels.IsInitialized()) { 
 //BA.debugLineNum = 1530;BA.debugLine="b_preventa2.Visible = False";
_b_preventa2.setVisible(__c.False);
 //BA.debugLineNum = 1531;BA.debugLine="Tels.Visible = False";
_tels.setVisible(__c.False);
 //BA.debugLineNum = 1532;BA.debugLine="gest.Visible = False";
_gest.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 1536;BA.debugLine="End Sub";
return "";
}
public String  _hist_click() throws Exception{
 //BA.debugLineNum = 3383;BA.debugLine="Sub HIST_Click";
 //BA.debugLineNum = 3384;BA.debugLine="B4XPages.ShowPage(\"historicobat\")";
_b4xpages._showpage /*String*/ (ba,"historicobat");
 //BA.debugLineNum = 3385;BA.debugLine="End Sub";
return "";
}
public String  _imageview4_click() throws Exception{
 //BA.debugLineNum = 8050;BA.debugLine="Private Sub ImageView4_Click";
 //BA.debugLineNum = 8051;BA.debugLine="InitializeCamera2";
_initializecamera2();
 //BA.debugLineNum = 8052;BA.debugLine="p_camara.Visible = True";
_p_camara.setVisible(__c.True);
 //BA.debugLineNum = 8053;BA.debugLine="Subs.centraPanel(p_cam,p_camara.Width)";
_subs._centrapanel /*String*/ (ba,_p_cam,_p_camara.getWidth());
 //BA.debugLineNum = 8055;BA.debugLine="p_camara.BringToFront";
_p_camara.BringToFront();
 //BA.debugLineNum = 8056;BA.debugLine="End Sub";
return "";
}
public String  _imageview4_longclick() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar = null;
byte[] _fotomostrarfinal = null;
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _inputstream1 = null;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bitmap1 = null;
 //BA.debugLineNum = 8392;BA.debugLine="Private Sub ImageView4_LongClick";
 //BA.debugLineNum = 8393;BA.debugLine="Private fotomostrar As Cursor = Starter.skmt.Exec";
_fotomostrar = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT FOTO FROM FOTOS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8394;BA.debugLine="If fotomostrar.RowCount > 0 Then";
if (_fotomostrar.getRowCount()>0) { 
 //BA.debugLineNum = 8396;BA.debugLine="fotomostrar.Position = 0";
_fotomostrar.setPosition((int) (0));
 //BA.debugLineNum = 8397;BA.debugLine="Private fotomostrarfinal() As Byte = fotomostrar";
_fotomostrarfinal = _fotomostrar.GetBlob("FOTO");
 //BA.debugLineNum = 8398;BA.debugLine="Dim InputStream1 As InputStream";
_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
 //BA.debugLineNum = 8399;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomostra";
_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length);
 //BA.debugLineNum = 8400;BA.debugLine="Dim Bitmap1 As Bitmap";
_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
 //BA.debugLineNum = 8401;BA.debugLine="Bitmap1.Initialize2(InputStream1)";
_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject()));
 //BA.debugLineNum = 8402;BA.debugLine="InputStream1.Close";
_inputstream1.Close();
 //BA.debugLineNum = 8403;BA.debugLine="I_fotogrande.Bitmap = Bitmap1";
_i_fotogrande.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject()));
 //BA.debugLineNum = 8404;BA.debugLine="Log(\"aqui si hay foto\")";
__c.LogImpl("429032460","aqui si hay foto",0);
 }else {
 //BA.debugLineNum = 8406;BA.debugLine="I_fotogrande.Bitmap = LoadBitmap(File.DirAssets,";
_i_fotogrande.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"images.png").getObject()));
 //BA.debugLineNum = 8407;BA.debugLine="Log(\"aqui no hay foto\")";
__c.LogImpl("429032463","aqui no hay foto",0);
 };
 //BA.debugLineNum = 8409;BA.debugLine="P_Imagengrande.Visible = True";
_p_imagengrande.setVisible(__c.True);
 //BA.debugLineNum = 8410;BA.debugLine="End Sub";
return "";
}
public void  _impresion() throws Exception{
ResumableSub_Impresion rsub = new ResumableSub_Impresion(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Impresion extends BA.ResumableSub {
public ResumableSub_Impresion(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
int _i = 0;
int _e = 0;
int step50;
int limit50;
int step57;
int limit57;
int step71;
int limit71;
int step78;
int limit78;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 4632;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 4633;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4634;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 4636;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 4637;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4638;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4639;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4644;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
 //BA.debugLineNum = 4645;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
 //BA.debugLineNum = 4646;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4647;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 4649;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4650;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4651;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

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

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 4652;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 63;
return;
case 63:
//C
this.state = 7;
;
 //BA.debugLineNum = 4653;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4654;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 12:
//C
this.state = 13;
;
 //BA.debugLineNum = 4655;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 19:
//C
this.state = 38;
;
 //BA.debugLineNum = 4657;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 64;
return;
case 64:
//C
this.state = 38;
;
 //BA.debugLineNum = 4658;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 4661;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4662;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4663;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

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

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 4664;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 65;
return;
case 65:
//C
this.state = 25;
;
 //BA.debugLineNum = 4665;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4666;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 30:
//C
this.state = 31;
;
 //BA.debugLineNum = 4667;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 37:
//C
this.state = 38;
;
 //BA.debugLineNum = 4669;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 66;
return;
case 66:
//C
this.state = 38;
;
 //BA.debugLineNum = 4670;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
 //BA.debugLineNum = 4673;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4674;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4675;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 //BA.debugLineNum = 4692;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" &  eLI";
parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed);
 //BA.debugLineNum = 4694;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed);
 //BA.debugLineNum = 4695;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._stime+_elinefeed);
 //BA.debugLineNum = 4696;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eLI";
parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed);
 //BA.debugLineNum = 4697;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed);
 //BA.debugLineNum = 4698;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed);
 //BA.debugLineNum = 4699;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4700;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed);
 //BA.debugLineNum = 4702;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1.";
parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed);
 //BA.debugLineNum = 4703;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2.";
parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed);
 //BA.debugLineNum = 4705;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------";
parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed);
 //BA.debugLineNum = 4708;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, SUM(PE_CA";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, SUM(PE_CANT) AS PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,SUM(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_CEDIS <> ?  AND PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_COSTOU > 0.01  GROUP by  PE_PROID",new String[]{"DUR"})));
 //BA.debugLineNum = 4709;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 42:
//for
this.state = 49;
step50 = 1;
limit50 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 67;
if (true) break;

case 67:
//C
this.state = 49;
if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44;
if (true) break;

case 68:
//C
this.state = 67;
_i = ((int)(0 + _i + step50)) ;
if (true) break;

case 44:
//C
this.state = 45;
 //BA.debugLineNum = 4711;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4713;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4718;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4719;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4720;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4722;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4724;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 45:
//for
this.state = 48;
step57 = 1;
limit57 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 69;
if (true) break;

case 69:
//C
this.state = 48;
if ((step57 > 0 && _e <= limit57) || (step57 < 0 && _e >= limit57)) this.state = 47;
if (true) break;

case 70:
//C
this.state = 69;
_e = ((int)(0 + _e + step57)) ;
if (true) break;

case 47:
//C
this.state = 70;
 //BA.debugLineNum = 4725;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 48:
//C
this.state = 68;
;
 //BA.debugLineNum = 4727;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4728;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4729;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4730;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;
if (true) break;

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

case 50:
//C
this.state = 51;
;
 //BA.debugLineNum = 4734;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4735;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4737;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, SUM(PE_CA";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, SUM(PE_CANT) AS PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,SUM(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_CEDIS <> ?  AND PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_COSTOU = 0.01  GROUP by  PE_PROID",new String[]{"DUR"})));
 //BA.debugLineNum = 4739;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 51:
//if
this.state = 62;
if (parent._s.getRowCount()>0) { 
this.state = 53;
}if (true) break;

case 53:
//C
this.state = 54;
 //BA.debugLineNum = 4740;BA.debugLine="Printer1.WriteString(\"--------BONIFICACIONES----";
parent._printer1._writestring /*String*/ ("--------BONIFICACIONES--------"+_elinefeed);
 //BA.debugLineNum = 4741;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 54:
//for
this.state = 61;
step71 = 1;
limit71 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 71;
if (true) break;

case 71:
//C
this.state = 61;
if ((step71 > 0 && _i <= limit71) || (step71 < 0 && _i >= limit71)) this.state = 56;
if (true) break;

case 72:
//C
this.state = 71;
_i = ((int)(0 + _i + step71)) ;
if (true) break;

case 56:
//C
this.state = 57;
 //BA.debugLineNum = 4742;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4744;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4749;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4750;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4751;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4753;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4755;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 57:
//for
this.state = 60;
step78 = 1;
limit78 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 73;
if (true) break;

case 73:
//C
this.state = 60;
if ((step78 > 0 && _e <= limit78) || (step78 < 0 && _e >= limit78)) this.state = 59;
if (true) break;

case 74:
//C
this.state = 73;
_e = ((int)(0 + _e + step78)) ;
if (true) break;

case 59:
//C
this.state = 74;
 //BA.debugLineNum = 4756;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 60:
//C
this.state = 72;
;
 //BA.debugLineNum = 4758;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4759;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4760;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4761;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;
if (true) break;

case 61:
//C
this.state = 62;
;
 //BA.debugLineNum = 4764;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 if (true) break;

case 62:
//C
this.state = -1;
;
 //BA.debugLineNum = 4766;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4798;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 4799;BA.debugLine="s.Position =0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 4803;BA.debugLine="Printer1.WriteString(\"Total Preventa:   $\" & s.Ge";
parent._printer1._writestring /*String*/ ("Total Preventa:   $"+parent._s.GetString("TOTAL")+_elinefeed);
 //BA.debugLineNum = 4804;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4805;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 )")));
 //BA.debugLineNum = 4806;BA.debugLine="C.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4807;BA.debugLine="Printer1.WriteString(\"Total Articulos:   \" & c.Ge";
parent._printer1._writestring /*String*/ ("Total Articulos:   "+parent._c.GetString("PC_NOART")+_elinefeed);
 //BA.debugLineNum = 4808;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4810;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4811;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4812;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" &  eLINEFEED)";
parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed);
 //BA.debugLineNum = 4813;BA.debugLine="Printer1.WriteString(la_Calle.Text &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4814;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed);
 //BA.debugLineNum = 4815;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed);
 //BA.debugLineNum = 4816;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed);
 //BA.debugLineNum = 4817;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4818;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4820;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 75;
return;
case 75:
//C
this.state = -1;
;
 //BA.debugLineNum = 4821;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4823;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
 //BA.debugLineNum = 4826;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _impresion2() throws Exception{
ResumableSub_Impresion2 rsub = new ResumableSub_Impresion2(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Impresion2 extends BA.ResumableSub {
public ResumableSub_Impresion2(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
int _i = 0;
int _e = 0;
int step50;
int limit50;
int step60;
int limit60;
int step75;
int limit75;
int step85;
int limit85;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 4461;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 4462;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4463;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 4464;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 4466;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4467;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4468;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4473;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
 //BA.debugLineNum = 4474;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
 //BA.debugLineNum = 4475;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4476;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 4478;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4479;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4480;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

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

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 4481;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 75;
return;
case 75:
//C
this.state = 7;
;
 //BA.debugLineNum = 4482;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4483;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 12:
//C
this.state = 13;
;
 //BA.debugLineNum = 4484;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 19:
//C
this.state = 38;
;
 //BA.debugLineNum = 4486;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 76;
return;
case 76:
//C
this.state = 38;
;
 //BA.debugLineNum = 4487;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 4490;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4491;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4492;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

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

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 4493;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 77;
return;
case 77:
//C
this.state = 25;
;
 //BA.debugLineNum = 4494;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4495;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 30:
//C
this.state = 31;
;
 //BA.debugLineNum = 4496;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 37:
//C
this.state = 38;
;
 //BA.debugLineNum = 4498;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 78;
return;
case 78:
//C
this.state = 38;
;
 //BA.debugLineNum = 4499;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
 //BA.debugLineNum = 4502;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4503;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4504;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 //BA.debugLineNum = 4521;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" &  eLI";
parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed);
 //BA.debugLineNum = 4523;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed);
 //BA.debugLineNum = 4524;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._stime+_elinefeed);
 //BA.debugLineNum = 4525;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eLI";
parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed);
 //BA.debugLineNum = 4526;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed);
 //BA.debugLineNum = 4527;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed);
 //BA.debugLineNum = 4528;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4529;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed);
 //BA.debugLineNum = 4531;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1.";
parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed);
 //BA.debugLineNum = 4532;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2.";
parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed);
 //BA.debugLineNum = 4534;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------";
parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed);
 //BA.debugLineNum = 4536;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.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_CEDIS <> ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"DUR"})));
 //BA.debugLineNum = 4537;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 42:
//for
this.state = 55;
step50 = 1;
limit50 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 79;
if (true) break;

case 79:
//C
this.state = 55;
if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44;
if (true) break;

case 80:
//C
this.state = 79;
_i = ((int)(0 + _i + step50)) ;
if (true) break;

case 44:
//C
this.state = 45;
 //BA.debugLineNum = 4539;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4540;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 45:
//if
this.state = 54;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 47;
}else {
this.state = 49;
}if (true) break;

case 47:
//C
this.state = 54;
 //BA.debugLineNum = 4541;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 49:
//C
this.state = 50;
 //BA.debugLineNum = 4545;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4546;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4547;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4548;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4550;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4552;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 50:
//for
this.state = 53;
step60 = 1;
limit60 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 81;
if (true) break;

case 81:
//C
this.state = 53;
if ((step60 > 0 && _e <= limit60) || (step60 < 0 && _e >= limit60)) this.state = 52;
if (true) break;

case 82:
//C
this.state = 81;
_e = ((int)(0 + _e + step60)) ;
if (true) break;

case 52:
//C
this.state = 82;
 //BA.debugLineNum = 4553;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 53:
//C
this.state = 54;
;
 //BA.debugLineNum = 4555;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4556;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4557;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4558;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

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

case 56:
//C
this.state = 57;
;
 //BA.debugLineNum = 4562;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4563;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4564;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 LENGTH(PE_CEDIS) > 3 AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_CEDIS, PE_COSTOU")));
 //BA.debugLineNum = 4565;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 57:
//if
this.state = 74;
if (parent._s.getRowCount()>0) { 
this.state = 59;
}if (true) break;

case 59:
//C
this.state = 60;
 //BA.debugLineNum = 4566;BA.debugLine="Printer1.WriteString(\"------------PROMOS--------";
parent._printer1._writestring /*String*/ ("------------PROMOS------------"+_elinefeed);
 //BA.debugLineNum = 4567;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 60:
//for
this.state = 73;
step75 = 1;
limit75 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 83;
if (true) break;

case 83:
//C
this.state = 73;
if ((step75 > 0 && _i <= limit75) || (step75 < 0 && _i >= limit75)) this.state = 62;
if (true) break;

case 84:
//C
this.state = 83;
_i = ((int)(0 + _i + step75)) ;
if (true) break;

case 62:
//C
this.state = 63;
 //BA.debugLineNum = 4568;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4569;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 63:
//if
this.state = 72;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 65;
}else {
this.state = 67;
}if (true) break;

case 65:
//C
this.state = 72;
 //BA.debugLineNum = 4570;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 67:
//C
this.state = 68;
 //BA.debugLineNum = 4574;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4575;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4576;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4577;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4579;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4581;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 68:
//for
this.state = 71;
step85 = 1;
limit85 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 85;
if (true) break;

case 85:
//C
this.state = 71;
if ((step85 > 0 && _e <= limit85) || (step85 < 0 && _e >= limit85)) this.state = 70;
if (true) break;

case 86:
//C
this.state = 85;
_e = ((int)(0 + _e + step85)) ;
if (true) break;

case 70:
//C
this.state = 86;
 //BA.debugLineNum = 4582;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 71:
//C
this.state = 72;
;
 //BA.debugLineNum = 4584;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4585;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4586;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4587;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

case 73:
//C
this.state = 74;
;
 //BA.debugLineNum = 4590;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 if (true) break;

case 74:
//C
this.state = -1;
;
 //BA.debugLineNum = 4592;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4594;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 4595;BA.debugLine="s.Position =0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 4599;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa:   $\" & s";
parent._printer1._writestring /*String*/ ("Subtotal Preventa:   $"+parent._s.GetString("TOTAL")+_elinefeed);
 //BA.debugLineNum = 4600;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4601;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 )")));
 //BA.debugLineNum = 4602;BA.debugLine="C.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4603;BA.debugLine="Printer1.WriteString(\"Total Articulos:   \" & c.Ge";
parent._printer1._writestring /*String*/ ("Total Articulos:   "+parent._c.GetString("PC_NOART")+_elinefeed);
 //BA.debugLineNum = 4604;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4605;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 4606;BA.debugLine="s.Position =0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 4610;BA.debugLine="Printer1.WriteString(\"Descuento:   $\" & 150 &  eL";
parent._printer1._writestring /*String*/ ("Descuento:   $"+BA.NumberToString(150)+_elinefeed);
 //BA.debugLineNum = 4611;BA.debugLine="Printer1.WriteString(\"Total Preventa:   $\" & (s.G";
parent._printer1._writestring /*String*/ ("Total Preventa:   $"+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("TOTAL")))-150))+_elinefeed);
 //BA.debugLineNum = 4613;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4614;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4615;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" &  eLINEFEED)";
parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed);
 //BA.debugLineNum = 4616;BA.debugLine="Printer1.WriteString(la_Calle.Text &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4617;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed);
 //BA.debugLineNum = 4618;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed);
 //BA.debugLineNum = 4619;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed);
 //BA.debugLineNum = 4620;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4621;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4623;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 87;
return;
case 87:
//C
this.state = -1;
;
 //BA.debugLineNum = 4624;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4626;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
 //BA.debugLineNum = 4629;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _impresion3() throws Exception{
ResumableSub_Impresion3 rsub = new ResumableSub_Impresion3(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Impresion3 extends BA.ResumableSub {
public ResumableSub_Impresion3(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
int _i = 0;
int _e = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null;
String _subtot = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
int step50;
int limit50;
int step61;
int limit61;
int step74;
int limit74;
int step93;
int limit93;
int step105;
int limit105;
int step122;
int limit122;
int step132;
int limit132;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 4220;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 4221;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4222;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 4224;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 4225;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4226;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 4227;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4232;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
 //BA.debugLineNum = 4233;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
 //BA.debugLineNum = 4234;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4235;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 4237;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4238;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4239;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

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

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 4240;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 99;
return;
case 99:
//C
this.state = 7;
;
 //BA.debugLineNum = 4241;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4242;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 12:
//C
this.state = 13;
;
 //BA.debugLineNum = 4243;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 19:
//C
this.state = 38;
;
 //BA.debugLineNum = 4245;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 100;
return;
case 100:
//C
this.state = 38;
;
 //BA.debugLineNum = 4246;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 4249;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 4250;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 4251;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

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

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 4252;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 101;
return;
case 101:
//C
this.state = 25;
;
 //BA.debugLineNum = 4253;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 4254;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 30:
//C
this.state = 31;
;
 //BA.debugLineNum = 4255;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 37:
//C
this.state = 38;
;
 //BA.debugLineNum = 4257;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 102;
return;
case 102:
//C
this.state = 38;
;
 //BA.debugLineNum = 4258;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
 //BA.debugLineNum = 4261;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4262;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4263;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 //BA.debugLineNum = 4280;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" &  eLI";
parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed);
 //BA.debugLineNum = 4282;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed);
 //BA.debugLineNum = 4283;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._stime+_elinefeed);
 //BA.debugLineNum = 4284;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eLI";
parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed);
 //BA.debugLineNum = 4285;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed);
 //BA.debugLineNum = 4286;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed);
 //BA.debugLineNum = 4287;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4288;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed);
 //BA.debugLineNum = 4290;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1.";
parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed);
 //BA.debugLineNum = 4291;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2.";
parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed);
 //BA.debugLineNum = 4293;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------";
parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed);
 //BA.debugLineNum = 4295;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by  PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 4296;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 42:
//for
this.state = 75;
step50 = 1;
limit50 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 103;
if (true) break;

case 103:
//C
this.state = 75;
if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44;
if (true) break;

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

case 44:
//C
this.state = 45;
 //BA.debugLineNum = 4298;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4299;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 45:
//if
this.state = 74;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 47;
}else {
this.state = 49;
}if (true) break;

case 47:
//C
this.state = 74;
 //BA.debugLineNum = 4300;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 49:
//C
this.state = 50;
 //BA.debugLineNum = 4302;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then";
if (true) break;

case 50:
//if
this.state = 73;
if (parent._s.GetInt("PE_RECALCULO")==0) { 
this.state = 52;
}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { 
this.state = 58;
}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { 
this.state = 64;
}if (true) break;

case 52:
//C
this.state = 53;
 //BA.debugLineNum = 4303;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4304;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4305;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4306;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4308;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4310;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 53:
//for
this.state = 56;
step61 = 1;
limit61 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 105;
if (true) break;

case 105:
//C
this.state = 56;
if ((step61 > 0 && _e <= limit61) || (step61 < 0 && _e >= limit61)) this.state = 55;
if (true) break;

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

case 55:
//C
this.state = 106;
 //BA.debugLineNum = 4311;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 56:
//C
this.state = 73;
;
 //BA.debugLineNum = 4313;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4314;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4315;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4316;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 58:
//C
this.state = 59;
 //BA.debugLineNum = 4318;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4319;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4320;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4321;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 4323;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4325;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 59:
//for
this.state = 62;
step74 = 1;
limit74 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 107;
if (true) break;

case 107:
//C
this.state = 62;
if ((step74 > 0 && _e <= limit74) || (step74 < 0 && _e >= limit74)) this.state = 61;
if (true) break;

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

case 61:
//C
this.state = 108;
 //BA.debugLineNum = 4326;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 62:
//C
this.state = 73;
;
 //BA.debugLineNum = 4329;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 4330;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 4332;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4334;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4335;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4336;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4337;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 64:
//C
this.state = 65;
 //BA.debugLineNum = 4339;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))";
parent.__c.LogImpl("417891448",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0);
 //BA.debugLineNum = 4340;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))";
parent.__c.LogImpl("417891449",BA.NumberToString(parent._s.GetInt("PE_CANT")),0);
 //BA.debugLineNum = 4341;BA.debugLine="Log(\"aqui\")";
parent.__c.LogImpl("417891450","aqui",0);
 //BA.debugLineNum = 4342;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\"";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4343;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4344;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4345;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 4347;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4349;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 65:
//for
this.state = 68;
step93 = 1;
limit93 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 109;
if (true) break;

case 109:
//C
this.state = 68;
if ((step93 > 0 && _e <= limit93) || (step93 < 0 && _e >= limit93)) this.state = 67;
if (true) break;

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

case 67:
//C
this.state = 110;
 //BA.debugLineNum = 4350;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 68:
//C
this.state = 69;
;
 //BA.debugLineNum = 4354;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 4355;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 4357;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4358;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4360;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C";
_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))));
 //BA.debugLineNum = 4361;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4362;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4363;BA.debugLine="TAMANO = subTot + TAMANO";
parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano);
 //BA.debugLineNum = 4365;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4367;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 69:
//for
this.state = 72;
step105 = 1;
limit105 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 111;
if (true) break;

case 111:
//C
this.state = 72;
if ((step105 > 0 && _e <= limit105) || (step105 < 0 && _e >= limit105)) this.state = 71;
if (true) break;

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

case 71:
//C
this.state = 112;
 //BA.debugLineNum = 4368;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 72:
//C
this.state = 73;
;
 //BA.debugLineNum = 4371;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-";
parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4372;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P";
parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4375;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4376;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4377;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 73:
//C
this.state = 74;
;
 if (true) break;

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

case 75:
//C
this.state = 76;
;
 if (true) break;

case 76:
//C
this.state = 77;
;
 //BA.debugLineNum = 4382;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4383;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4384;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 LENGTH(PE_CEDIS) > 3 AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_CEDIS, PE_COSTOU")));
 //BA.debugLineNum = 4385;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 77:
//if
this.state = 94;
if (parent._s.getRowCount()>0) { 
this.state = 79;
}if (true) break;

case 79:
//C
this.state = 80;
 //BA.debugLineNum = 4386;BA.debugLine="Printer1.WriteString(\"------------PROMOS--------";
parent._printer1._writestring /*String*/ ("------------PROMOS------------"+_elinefeed);
 //BA.debugLineNum = 4387;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 80:
//for
this.state = 93;
step122 = 1;
limit122 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 113;
if (true) break;

case 113:
//C
this.state = 93;
if ((step122 > 0 && _i <= limit122) || (step122 < 0 && _i >= limit122)) this.state = 82;
if (true) break;

case 114:
//C
this.state = 113;
_i = ((int)(0 + _i + step122)) ;
if (true) break;

case 82:
//C
this.state = 83;
 //BA.debugLineNum = 4388;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4389;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 83:
//if
this.state = 92;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 85;
}else {
this.state = 87;
}if (true) break;

case 85:
//C
this.state = 92;
 //BA.debugLineNum = 4390;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 87:
//C
this.state = 88;
 //BA.debugLineNum = 4394;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4395;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4396;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4397;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4399;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4401;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 88:
//for
this.state = 91;
step132 = 1;
limit132 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 115;
if (true) break;

case 115:
//C
this.state = 91;
if ((step132 > 0 && _e <= limit132) || (step132 < 0 && _e >= limit132)) this.state = 90;
if (true) break;

case 116:
//C
this.state = 115;
_e = ((int)(0 + _e + step132)) ;
if (true) break;

case 90:
//C
this.state = 116;
 //BA.debugLineNum = 4402;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 91:
//C
this.state = 92;
;
 //BA.debugLineNum = 4404;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4405;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4406;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4407;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

case 93:
//C
this.state = 94;
;
 //BA.debugLineNum = 4410;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 if (true) break;

case 94:
//C
this.state = 95;
;
 //BA.debugLineNum = 4412;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4414;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 4415;BA.debugLine="s.Position =0";
parent._s.setPosition((int) (0));
 //BA.debugLineNum = 4419;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa:   $\" & s";
parent._printer1._writestring /*String*/ ("Subtotal Preventa:   $"+parent._s.GetString("TOTAL")+_elinefeed);
 //BA.debugLineNum = 4422;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 )")));
 //BA.debugLineNum = 4423;BA.debugLine="C.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 4424;BA.debugLine="Printer1.WriteString(\"Total Articulos:   \" & c.Ge";
parent._printer1._writestring /*String*/ ("Total Articulos:   "+parent._c.GetString("PC_NOART")+_elinefeed);
 //BA.debugLineNum = 4425;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 4426;BA.debugLine="Dim s3 As Cursor =skmt.ExecQuery(\"select IFNULL(S";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select IFNULL(SUM(PE_COSTO_TOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) = 0")));
 //BA.debugLineNum = 4427;BA.debugLine="s3.Position =0";
_s3.setPosition((int) (0));
 //BA.debugLineNum = 4428;BA.debugLine="S2=skmt.ExecQuery(\"select IFNULL(SUM(PE_RECALCULO";
parent._s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select IFNULL(SUM(PE_RECALCULOTOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) <> 0")));
 //BA.debugLineNum = 4429;BA.debugLine="S2.Position =0";
parent._s2.setPosition((int) (0));
 //BA.debugLineNum = 4431;BA.debugLine="If NumberFormat2((s3.GetString(\"TOTAL\") + S2.GetS";
if (true) break;

case 95:
//if
this.state = 98;
if ((parent.__c.NumberFormat2(((double)(Double.parseDouble(_s3.GetString("TOTAL")))+(double)(Double.parseDouble(parent._s2.GetString("TOTAL")))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent._s.GetString("TOTAL")) == false) { 
this.state = 97;
}if (true) break;

case 97:
//C
this.state = 98;
 //BA.debugLineNum = 4433;BA.debugLine="Printer1.WriteString(\"Descuento:   $\" & NumberFo";
parent._printer1._writestring /*String*/ ("Descuento:   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL")))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 if (true) break;

case 98:
//C
this.state = -1;
;
 //BA.debugLineNum = 4440;BA.debugLine="Printer1.WriteString(\"Total Preventa:   $\" & Numb";
parent._printer1._writestring /*String*/ ("Total Preventa:   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 //BA.debugLineNum = 4442;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4443;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4444;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" &  eLINEFEED)";
parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed);
 //BA.debugLineNum = 4445;BA.debugLine="Printer1.WriteString(la_Calle.Text &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4446;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed);
 //BA.debugLineNum = 4447;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed);
 //BA.debugLineNum = 4448;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed);
 //BA.debugLineNum = 4449;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed);
 //BA.debugLineNum = 4450;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4452;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 117;
return;
case 117:
//C
this.state = -1;
;
 //BA.debugLineNum = 4453;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4455;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
 //BA.debugLineNum = 4458;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _impresion4() throws Exception{
ResumableSub_Impresion4 rsub = new ResumableSub_Impresion4(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Impresion4 extends BA.ResumableSub {
public ResumableSub_Impresion4(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pedinow = null;
String _elinefeed = "";
int _cont = 0;
int _i = 0;
int _e = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null;
String _subtot = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _coloressaldo = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _contadocredito = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pedifutu = null;
int step57;
int limit57;
int step67;
int limit67;
int step80;
int limit80;
int step101;
int limit101;
int step113;
int limit113;
int step130;
int limit130;
int step139;
int limit139;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 3537;BA.debugLine="Dim pedinow As Cursor = skmt.ExecQuery(\"select *";
_pedinow = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pedinow = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FUTURO = '0' ")));
 //BA.debugLineNum = 3538;BA.debugLine="If pedinow.RowCount > 0 Then";
if (true) break;

case 1:
//if
this.state = 137;
if (_pedinow.getRowCount()>0) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 3541;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 3542;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 3543;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 3545;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 3546;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 3547;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 3548;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 3553;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
 //BA.debugLineNum = 3554;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
 //BA.debugLineNum = 3555;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 3556;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

case 4:
//if
this.state = 41;
if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { 
this.state = 6;
}else {
this.state = 24;
}if (true) break;

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 3558;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 3559;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 3560;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

case 7:
//do while
this.state = 22;
while (parent.__c.Not(parent._impresoraconectada)) {
this.state = 9;
if (true) break;
}
if (true) break;

case 9:
//C
this.state = 10;
 //BA.debugLineNum = 3561;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 142;
return;
case 142:
//C
this.state = 10;
;
 //BA.debugLineNum = 3562;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 3563;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
if (true) break;

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

case 12:
//C
this.state = 15;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 15:
//C
this.state = 16;
;
 //BA.debugLineNum = 3564;BA.debugLine="If cont > 15 Then impresoraConectada = True";
if (true) break;

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

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

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

case 22:
//C
this.state = 41;
;
 //BA.debugLineNum = 3566;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 143;
return;
case 143:
//C
this.state = 41;
;
 //BA.debugLineNum = 3567;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 3570;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 3571;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 3572;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

case 25:
//do while
this.state = 40;
while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
this.state = 27;
if (true) break;
}
if (true) break;

case 27:
//C
this.state = 28;
 //BA.debugLineNum = 3573;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 144;
return;
case 144:
//C
this.state = 28;
;
 //BA.debugLineNum = 3574;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 3575;BA.debugLine="If cont = 2 Then Printer1.Connect";
if (true) break;

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

case 30:
//C
this.state = 33;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 33:
//C
this.state = 34;
;
 //BA.debugLineNum = 3576;BA.debugLine="If cont > 4 Then impresoraConectada = True";
if (true) break;

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

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

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

case 40:
//C
this.state = 41;
;
 //BA.debugLineNum = 3578;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 145;
return;
case 145:
//C
this.state = 41;
;
 //BA.debugLineNum = 3579;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 41:
//C
this.state = 42;
;
 //BA.debugLineNum = 3582;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3583;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3584;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 //BA.debugLineNum = 3600;BA.debugLine="Printer1.WriteString(\"Centro de atencion a Client";
parent._printer1._writestring /*String*/ ("Centro de atencion a Clientes Bat"+_elinefeed);
 //BA.debugLineNum = 3601;BA.debugLine="Printer1.WriteString(\"Telefono: 800 400 5000\" &";
parent._printer1._writestring /*String*/ ("Telefono: 800 400 5000"+_elinefeed);
 //BA.debugLineNum = 3602;BA.debugLine="Printer1.WriteString(eLINEFEED)";
parent._printer1._writestring /*String*/ (_elinefeed);
 //BA.debugLineNum = 3603;BA.debugLine="Printer1.WriteString(eLINEFEED)";
parent._printer1._writestring /*String*/ (_elinefeed);
 //BA.debugLineNum = 3606;BA.debugLine="Printer1.WriteString(\"DISTRIBUIDORA ROCHA TULA PA";
parent._printer1._writestring /*String*/ ("DISTRIBUIDORA ROCHA TULA PACHUCA"+_elinefeed);
 //BA.debugLineNum = 3607;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" &  eLI";
parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed);
 //BA.debugLineNum = 3609;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed);
 //BA.debugLineNum = 3610;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._stime+_elinefeed);
 //BA.debugLineNum = 3611;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eLI";
parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed);
 //BA.debugLineNum = 3612;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed);
 //BA.debugLineNum = 3613;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed);
 //BA.debugLineNum = 3614;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 3615;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed);
 //BA.debugLineNum = 3617;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1.";
parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed);
 //BA.debugLineNum = 3618;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2.";
parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed);
 //BA.debugLineNum = 3620;BA.debugLine="Printer1.WriteString(\"--------------------PREVENT";
parent._printer1._writestring /*String*/ ("--------------------PREVENTA--------------------"+_elinefeed);
 //BA.debugLineNum = 3622;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '0' order by  PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 3623;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 42:
//if
this.state = 79;
if (parent._s.getRowCount()>0) { 
this.state = 44;
}if (true) break;

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

case 45:
//for
this.state = 78;
step57 = 1;
limit57 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 146;
if (true) break;

case 146:
//C
this.state = 78;
if ((step57 > 0 && _i <= limit57) || (step57 < 0 && _i >= limit57)) this.state = 47;
if (true) break;

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

case 47:
//C
this.state = 48;
 //BA.debugLineNum = 3625;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 3626;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 48:
//if
this.state = 77;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

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

case 52:
//C
this.state = 53;
 //BA.debugLineNum = 3629;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then";
if (true) break;

case 53:
//if
this.state = 76;
if (parent._s.GetInt("PE_RECALCULO")==0) { 
this.state = 55;
}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { 
this.state = 61;
}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { 
this.state = 67;
}if (true) break;

case 55:
//C
this.state = 56;
 //BA.debugLineNum = 3630;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 3631;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 3632;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 3633;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 3635;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 3637;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 56:
//for
this.state = 59;
step67 = 1;
limit67 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 148;
if (true) break;

case 148:
//C
this.state = 59;
if ((step67 > 0 && _e <= limit67) || (step67 < 0 && _e >= limit67)) this.state = 58;
if (true) break;

case 149:
//C
this.state = 148;
_e = ((int)(0 + _e + step67)) ;
if (true) break;

case 58:
//C
this.state = 149;
 //BA.debugLineNum = 3638;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 59:
//C
this.state = 76;
;
 //BA.debugLineNum = 3640;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3641;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3642;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3643;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 61:
//C
this.state = 62;
 //BA.debugLineNum = 3645;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 3646;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 3647;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 3648;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 3650;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 3652;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 62:
//for
this.state = 65;
step80 = 1;
limit80 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 150;
if (true) break;

case 150:
//C
this.state = 65;
if ((step80 > 0 && _e <= limit80) || (step80 < 0 && _e >= limit80)) this.state = 64;
if (true) break;

case 151:
//C
this.state = 150;
_e = ((int)(0 + _e + step80)) ;
if (true) break;

case 64:
//C
this.state = 151;
 //BA.debugLineNum = 3653;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 65:
//C
this.state = 76;
;
 //BA.debugLineNum = 3656;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 3657;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 3659;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3661;BA.debugLine="Log(s.GetString(\"PE_PRONOMBRE\"))";
parent.__c.LogImpl("417629309",parent._s.GetString("PE_PRONOMBRE"),0);
 //BA.debugLineNum = 3662;BA.debugLine="Log(descpro.GetDouble(\"CAT_PD_DESCUENTO\"))";
parent.__c.LogImpl("417629310",BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO")),0);
 //BA.debugLineNum = 3663;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3664;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3665;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3666;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 67:
//C
this.state = 68;
 //BA.debugLineNum = 3668;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))";
parent.__c.LogImpl("417629316",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0);
 //BA.debugLineNum = 3669;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))";
parent.__c.LogImpl("417629317",BA.NumberToString(parent._s.GetInt("PE_CANT")),0);
 //BA.debugLineNum = 3670;BA.debugLine="Log(\"aqui\")";
parent.__c.LogImpl("417629318","aqui",0);
 //BA.debugLineNum = 3671;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\"";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 3672;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 3673;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 3674;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 3676;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 3678;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 68:
//for
this.state = 71;
step101 = 1;
limit101 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 152;
if (true) break;

case 152:
//C
this.state = 71;
if ((step101 > 0 && _e <= limit101) || (step101 < 0 && _e >= limit101)) this.state = 70;
if (true) break;

case 153:
//C
this.state = 152;
_e = ((int)(0 + _e + step101)) ;
if (true) break;

case 70:
//C
this.state = 153;
 //BA.debugLineNum = 3679;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 71:
//C
this.state = 72;
;
 //BA.debugLineNum = 3683;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 3684;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 3686;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3687;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3689;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C";
_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))));
 //BA.debugLineNum = 3690;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 3691;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 3692;BA.debugLine="TAMANO = subTot + TAMANO";
parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano);
 //BA.debugLineNum = 3694;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 3696;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 72:
//for
this.state = 75;
step113 = 1;
limit113 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 154;
if (true) break;

case 154:
//C
this.state = 75;
if ((step113 > 0 && _e <= limit113) || (step113 < 0 && _e >= limit113)) this.state = 74;
if (true) break;

case 155:
//C
this.state = 154;
_e = ((int)(0 + _e + step113)) ;
if (true) break;

case 74:
//C
this.state = 155;
 //BA.debugLineNum = 3697;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 75:
//C
this.state = 76;
;
 //BA.debugLineNum = 3700;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-";
parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 3701;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P";
parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 3704;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3705;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3706;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

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

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

case 79:
//C
this.state = 80;
;
 //BA.debugLineNum = 3711;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 3714;BA.debugLine="totalpromos = 0";
parent._totalpromos = 0;
 //BA.debugLineNum = 3715;BA.debugLine="totalpromostotal = 0";
parent._totalpromostotal = 0;
 //BA.debugLineNum = 3716;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 LENGTH(PE_CEDIS) > 3  AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '0' order by  PE_CEDIS, PE_COSTOU")));
 //BA.debugLineNum = 3717;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 80:
//if
this.state = 110;
if (parent._s.getRowCount()>0) { 
this.state = 82;
}if (true) break;

case 82:
//C
this.state = 83;
 //BA.debugLineNum = 3719;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 83:
//for
this.state = 109;
step130 = 1;
limit130 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 156;
if (true) break;

case 156:
//C
this.state = 109;
if ((step130 > 0 && _i <= limit130) || (step130 < 0 && _i >= limit130)) this.state = 85;
if (true) break;

case 157:
//C
this.state = 156;
_i = ((int)(0 + _i + step130)) ;
if (true) break;

case 85:
//C
this.state = 86;
 //BA.debugLineNum = 3720;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 3721;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 86:
//if
this.state = 108;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 88;
}else {
this.state = 90;
}if (true) break;

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

case 90:
//C
this.state = 91;
 //BA.debugLineNum = 3726;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 3727;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 3728;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 3729;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 3731;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 3733;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 91:
//for
this.state = 94;
step139 = 1;
limit139 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 158;
if (true) break;

case 158:
//C
this.state = 94;
if ((step139 > 0 && _e <= limit139) || (step139 < 0 && _e >= limit139)) this.state = 93;
if (true) break;

case 159:
//C
this.state = 158;
_e = ((int)(0 + _e + step139)) ;
if (true) break;

case 93:
//C
this.state = 159;
 //BA.debugLineNum = 3734;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 94:
//C
this.state = 95;
;
 //BA.debugLineNum = 3736;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 3739;BA.debugLine="Dim coloressaldo As Cursor=B4XPages.MainPage.";
_coloressaldo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coloressaldo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_CLASIFICADOR2,0) AS CAT_CL_CLASIFICADOR2 from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 3740;BA.debugLine="coloressaldo.Position = 0";
_coloressaldo.setPosition((int) (0));
 //BA.debugLineNum = 3742;BA.debugLine="If coloressaldo.GetString(\"CAT_CL_CLASIFICADO";
if (true) break;

case 95:
//if
this.state = 100;
if ((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("LP222_D")) { 
this.state = 97;
}else {
this.state = 99;
}if (true) break;

case 97:
//C
this.state = 100;
 //BA.debugLineNum = 3744;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.Exec";
_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_precioprom = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_LISTAPRECIO AS CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' "))));
 if (true) break;

case 99:
//C
this.state = 100;
 //BA.debugLineNum = 3746;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.Exec";
_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_precioprom = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' "))));
 if (true) break;
;
 //BA.debugLineNum = 3749;BA.debugLine="If precioprom.RowCount > 0 Then";

case 100:
//if
this.state = 107;
if (_precioprom.getRowCount()>0) { 
this.state = 102;
}if (true) break;

case 102:
//C
this.state = 103;
 //BA.debugLineNum = 3750;BA.debugLine="precioprom.Position = 0";
_precioprom.setPosition((int) (0));
 //BA.debugLineNum = 3751;BA.debugLine="Log (precioprom.GETSTRING(\"CAT_GP_PRECIO\"))";
parent.__c.LogImpl("417629399",_precioprom.GetString("CAT_GP_PRECIO"),0);
 //BA.debugLineNum = 3752;BA.debugLine="Log (s.GETSTRING(\"PE_COSTOU\"))";
parent.__c.LogImpl("417629400",parent._s.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 3753;BA.debugLine="If NumberFormat2(precioprom.GETSTRING(\"CAT_G";
if (true) break;

case 103:
//if
this.state = 106;
if ((parent.__c.NumberFormat2((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)) == false) { 
this.state = 105;
}if (true) break;

case 105:
//C
this.state = 106;
 //BA.debugLineNum = 3755;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & prec";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+_precioprom.GetString("CAT_GP_PRECIO")+" Desc.: "+parent.__c.NumberFormat2(((((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))))*100)/(double)(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))),(int) (0.),(int) (2),(int) (2),parent.__c.False)+"%"+_elinefeed+_elinefeed);
 if (true) break;

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

case 107:
//C
this.state = 108;
;
 //BA.debugLineNum = 3759;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3760;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3761;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

case 109:
//C
this.state = 110;
;
 //BA.debugLineNum = 3764;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 if (true) break;

case 110:
//C
this.state = 111;
;
 //BA.debugLineNum = 3766;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 3796;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa:   $\" &";
parent._printer1._writestring /*String*/ ("Subtotal Preventa:   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 //BA.debugLineNum = 3797;BA.debugLine="If NumberFormat2(Subs.calculaTotalConPromoXRango";
if (true) break;

case 111:
//if
this.state = 114;
if ((parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)) == false) { 
this.state = 113;
}if (true) break;

case 113:
//C
this.state = 114;
 //BA.debugLineNum = 3798;BA.debugLine="Printer1.WriteString(\"Descuento:   $\" & NumberF";
parent._printer1._writestring /*String*/ ("Descuento:   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 if (true) break;

case 114:
//C
this.state = 115;
;
 //BA.debugLineNum = 3801;BA.debugLine="Printer1.WriteString(\"Total Preventa:   $\" & Num";
parent._printer1._writestring /*String*/ ("Total Preventa:   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 //BA.debugLineNum = 3802;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 3804;BA.debugLine="Private contadocredito As Cursor = Starter.skmt.";
_contadocredito = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_contadocredito = (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 BANDERA FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA) "))));
 //BA.debugLineNum = 3805;BA.debugLine="If contadocredito.RowCount > 0 Then";
if (true) break;

case 115:
//if
this.state = 124;
if (_contadocredito.getRowCount()>0) { 
this.state = 117;
}if (true) break;

case 117:
//C
this.state = 118;
 //BA.debugLineNum = 3806;BA.debugLine="contadocredito.Position = 0";
_contadocredito.setPosition((int) (0));
 //BA.debugLineNum = 3807;BA.debugLine="If contadocredito.getstring(\"BANDERA\") = \"1\" Th";
if (true) break;

case 118:
//if
this.state = 123;
if ((_contadocredito.GetString("BANDERA")).equals("1")) { 
this.state = 120;
}else {
this.state = 122;
}if (true) break;

case 120:
//C
this.state = 123;
 //BA.debugLineNum = 3808;BA.debugLine="Printer1.WriteString(\"Tipo de entrega:   CREDI";
parent._printer1._writestring /*String*/ ("Tipo de entrega:   CREDITO"+_elinefeed);
 if (true) break;

case 122:
//C
this.state = 123;
 //BA.debugLineNum = 3810;BA.debugLine="Printer1.WriteString(\"Tipo de entrega:   CONTA";
parent._printer1._writestring /*String*/ ("Tipo de entrega:   CONTADO"+_elinefeed);
 if (true) break;

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

case 124:
//C
this.state = 125;
;
 //BA.debugLineNum = 3814;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 3815;BA.debugLine="Printer1.WriteString(\"--------------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 //BA.debugLineNum = 3816;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" &  eLINEFEED";
parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed);
 //BA.debugLineNum = 3817;BA.debugLine="Printer1.WriteString(la_Calle.Text &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 3818;BA.debugLine="Printer1.WriteString(\"--------------ESTE TICKET";
parent._printer1._writestring /*String*/ ("--------------ESTE TICKET NO ES UN--------------"+_elinefeed);
 //BA.debugLineNum = 3819;BA.debugLine="Printer1.WriteString(\"----------COMPROBANTE FISC";
parent._printer1._writestring /*String*/ ("----------COMPROBANTE FISCAL, SOLO ES-----------"+_elinefeed);
 //BA.debugLineNum = 3820;BA.debugLine="Printer1.WriteString(\"------------------INFORMAT";
parent._printer1._writestring /*String*/ ("------------------INFORMATIVO-------------------"+_elinefeed);
 //BA.debugLineNum = 3821;BA.debugLine="Printer1.WriteString(\"--------------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 //BA.debugLineNum = 3822;BA.debugLine="If ALMACEN = 81 Then";
if (true) break;

case 125:
//if
this.state = 136;
if ((parent._almacen).equals(BA.NumberToString(81))) { 
this.state = 127;
}if (true) break;

case 127:
//C
this.state = 128;
 //BA.debugLineNum = 3824;BA.debugLine="Dim creditocod2 As Cursor = Starter.skmt.ExecQu";
_creditocod2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_creditocod2 = (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 BANDERA FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 3825;BA.debugLine="If creditocod2.RowCount > 0 Then";
if (true) break;

case 128:
//if
this.state = 135;
if (_creditocod2.getRowCount()>0) { 
this.state = 130;
}if (true) break;

case 130:
//C
this.state = 131;
 //BA.debugLineNum = 3826;BA.debugLine="creditocod2.Position = 0";
_creditocod2.setPosition((int) (0));
 //BA.debugLineNum = 3827;BA.debugLine="If creditocod2.GetString(\"BANDERA\") = \"1\" Then";
if (true) break;

case 131:
//if
this.state = 134;
if ((_creditocod2.GetString("BANDERA")).equals("1")) { 
this.state = 133;
}if (true) break;

case 133:
//C
this.state = 134;
 //BA.debugLineNum = 3828;BA.debugLine="Dim creditocod As Cursor = Starter.skmt.ExecQ";
_creditocod = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_creditocod = (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 CODIGO FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 3829;BA.debugLine="creditocod.Position = 0";
_creditocod.setPosition((int) (0));
 //BA.debugLineNum = 3830;BA.debugLine="Printer1.WriteString(\"------------------CODIG";
parent._printer1._writestring /*String*/ ("------------------CODIGO: "+_creditocod.GetString("CODIGO")+"------------------"+_elinefeed);
 //BA.debugLineNum = 3831;BA.debugLine="Printer1.WriteString(\"-----------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 if (true) break;

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

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

case 136:
//C
this.state = 137;
;
 //BA.debugLineNum = 3836;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 3838;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 160;
return;
case 160:
//C
this.state = 137;
;
 //BA.debugLineNum = 3839;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 3841;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
 if (true) break;

case 137:
//C
this.state = 138;
;
 //BA.debugLineNum = 3845;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 161;
return;
case 161:
//C
this.state = 138;
;
 //BA.debugLineNum = 3846;BA.debugLine="Dim pedifutu As Cursor = skmt.ExecQuery(\"select *";
_pedifutu = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pedifutu = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FUTURO = '1' ")));
 //BA.debugLineNum = 3847;BA.debugLine="If pedifutu.RowCount > 0 Then";
if (true) break;

case 138:
//if
this.state = 141;
if (_pedifutu.getRowCount()>0) { 
this.state = 140;
}if (true) break;

case 140:
//C
this.state = 141;
 //BA.debugLineNum = 3848;BA.debugLine="Impresion5";
parent._impresion5();
 if (true) break;

case 141:
//C
this.state = -1;
;
 //BA.debugLineNum = 3850;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _impresion5() throws Exception{
ResumableSub_Impresion5 rsub = new ResumableSub_Impresion5(this);
rsub.resume(ba, null);
}
public static class ResumableSub_Impresion5 extends BA.ResumableSub {
public ResumableSub_Impresion5(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _elinefeed = "";
int _cont = 0;
int _i = 0;
int _e = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null;
String _subtot = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod = null;
int step55;
int limit55;
int step66;
int limit66;
int step79;
int limit79;
int step98;
int limit98;
int step110;
int limit110;
int step125;
int limit125;
int step134;
int limit134;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 3930;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa")));
 //BA.debugLineNum = 3931;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 3932;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 3934;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 3935;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 3936;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 3937;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 3942;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a)));
 //BA.debugLineNum = 3943;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
 //BA.debugLineNum = 3944;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 3945;BA.debugLine="If Not(Printer1.IsConnected) Then";
if (true) break;

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

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 3947;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 3948;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 3949;BA.debugLine="Do While Not(impresoraConectada)";
if (true) break;

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

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 3950;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 119;
return;
case 119:
//C
this.state = 7;
;
 //BA.debugLineNum = 3951;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 3952;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 12:
//C
this.state = 13;
;
 //BA.debugLineNum = 3953;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 19:
//C
this.state = 38;
;
 //BA.debugLineNum = 3955;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 120;
return;
case 120:
//C
this.state = 38;
;
 //BA.debugLineNum = 3956;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 3959;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
 //BA.debugLineNum = 3960;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 3961;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
if (true) break;

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

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 3962;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 121;
return;
case 121:
//C
this.state = 25;
;
 //BA.debugLineNum = 3963;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 3964;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;
parent._printer1._connect /*boolean*/ ();
if (true) break;

case 30:
//C
this.state = 31;
;
 //BA.debugLineNum = 3965;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;
parent._impresoraconectada = parent.__c.True;
if (true) break;

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

case 37:
//C
this.state = 38;
;
 //BA.debugLineNum = 3967;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,this,(int) (500));
this.state = 122;
return;
case 122:
//C
this.state = 38;
;
 //BA.debugLineNum = 3968;BA.debugLine="impresoraConectada = False";
parent._impresoraconectada = parent.__c.False;
 if (true) break;

case 38:
//C
this.state = 39;
;
 //BA.debugLineNum = 3971;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 3972;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 3973;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 //BA.debugLineNum = 3989;BA.debugLine="Printer1.WriteString(\"Centro de atencion a Client";
parent._printer1._writestring /*String*/ ("Centro de atencion a Clientes Bat"+_elinefeed);
 //BA.debugLineNum = 3990;BA.debugLine="Printer1.WriteString(\"Telefono: 800 400 5000\" &";
parent._printer1._writestring /*String*/ ("Telefono: 800 400 5000"+_elinefeed);
 //BA.debugLineNum = 3991;BA.debugLine="Printer1.WriteString(eLINEFEED)";
parent._printer1._writestring /*String*/ (_elinefeed);
 //BA.debugLineNum = 3992;BA.debugLine="Printer1.WriteString(eLINEFEED)";
parent._printer1._writestring /*String*/ (_elinefeed);
 //BA.debugLineNum = 3993;BA.debugLine="Printer1.WriteString(\"DISTRIBUIDORA ROCHA TULA PA";
parent._printer1._writestring /*String*/ ("DISTRIBUIDORA ROCHA TULA PACHUCA"+_elinefeed);
 //BA.debugLineNum = 3994;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" &  eLI";
parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed);
 //BA.debugLineNum = 3996;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed);
 //BA.debugLineNum = 3997;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._stime+_elinefeed);
 //BA.debugLineNum = 3998;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eLI";
parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed);
 //BA.debugLineNum = 3999;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed);
 //BA.debugLineNum = 4000;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed);
 //BA.debugLineNum = 4001;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4002;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed);
 //BA.debugLineNum = 4004;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1.";
parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed);
 //BA.debugLineNum = 4005;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2.";
parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed);
 //BA.debugLineNum = 4007;BA.debugLine="Printer1.WriteString(\"--------------PEDIDO PREACO";
parent._printer1._writestring /*String*/ ("--------------PEDIDO PREACORDADO----------------"+_elinefeed);
 //BA.debugLineNum = 4009;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '1' order by  PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 4010;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

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

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

case 42:
//for
this.state = 75;
step55 = 1;
limit55 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 123;
if (true) break;

case 123:
//C
this.state = 75;
if ((step55 > 0 && _i <= limit55) || (step55 < 0 && _i >= limit55)) this.state = 44;
if (true) break;

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

case 44:
//C
this.state = 45;
 //BA.debugLineNum = 4012;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4013;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 45:
//if
this.state = 74;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 47;
}else {
this.state = 49;
}if (true) break;

case 47:
//C
this.state = 74;
 //BA.debugLineNum = 4014;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 if (true) break;

case 49:
//C
this.state = 50;
 //BA.debugLineNum = 4016;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then";
if (true) break;

case 50:
//if
this.state = 73;
if (parent._s.GetInt("PE_RECALCULO")==0) { 
this.state = 52;
}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { 
this.state = 58;
}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { 
this.state = 64;
}if (true) break;

case 52:
//C
this.state = 53;
 //BA.debugLineNum = 4017;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4018;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4019;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4020;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4022;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4024;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 53:
//for
this.state = 56;
step66 = 1;
limit66 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 125;
if (true) break;

case 125:
//C
this.state = 56;
if ((step66 > 0 && _e <= limit66) || (step66 < 0 && _e >= limit66)) this.state = 55;
if (true) break;

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

case 55:
//C
this.state = 126;
 //BA.debugLineNum = 4025;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 56:
//C
this.state = 73;
;
 //BA.debugLineNum = 4027;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4028;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4029;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4030;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 58:
//C
this.state = 59;
 //BA.debugLineNum = 4032;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4033;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4034;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4035;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 4037;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4039;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 59:
//for
this.state = 62;
step79 = 1;
limit79 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 127;
if (true) break;

case 127:
//C
this.state = 62;
if ((step79 > 0 && _e <= limit79) || (step79 < 0 && _e >= limit79)) this.state = 61;
if (true) break;

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

case 61:
//C
this.state = 128;
 //BA.debugLineNum = 4040;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 62:
//C
this.state = 73;
;
 //BA.debugLineNum = 4043;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 4044;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 4046;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4048;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4049;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4050;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4051;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 64:
//C
this.state = 65;
 //BA.debugLineNum = 4053;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))";
parent.__c.LogImpl("417760380",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0);
 //BA.debugLineNum = 4054;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))";
parent.__c.LogImpl("417760381",BA.NumberToString(parent._s.GetInt("PE_CANT")),0);
 //BA.debugLineNum = 4055;BA.debugLine="Log(\"aqui\")";
parent.__c.LogImpl("417760382","aqui",0);
 //BA.debugLineNum = 4056;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\"";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4057;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4058;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4059;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano);
 //BA.debugLineNum = 4061;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4063;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 65:
//for
this.state = 68;
step98 = 1;
limit98 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 129;
if (true) break;

case 129:
//C
this.state = 68;
if ((step98 > 0 && _e <= limit98) || (step98 < 0 && _e >= limit98)) this.state = 67;
if (true) break;

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

case 67:
//C
this.state = 130;
 //BA.debugLineNum = 4064;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 68:
//C
this.state = 69;
;
 //BA.debugLineNum = 4068;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
 //BA.debugLineNum = 4069;BA.debugLine="descpro.Position = 0";
_descpro.setPosition((int) (0));
 //BA.debugLineNum = 4071;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+"   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4072;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4074;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C";
_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))));
 //BA.debugLineNum = 4075;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4076;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano);
 //BA.debugLineNum = 4077;BA.debugLine="TAMANO = subTot + TAMANO";
parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano);
 //BA.debugLineNum = 4079;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4081;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 69:
//for
this.state = 72;
step110 = 1;
limit110 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 131;
if (true) break;

case 131:
//C
this.state = 72;
if ((step110 > 0 && _e <= limit110) || (step110 < 0 && _e >= limit110)) this.state = 71;
if (true) break;

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

case 71:
//C
this.state = 132;
 //BA.debugLineNum = 4082;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 72:
//C
this.state = 73;
;
 //BA.debugLineNum = 4085;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-";
parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4086;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P";
parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed);
 //BA.debugLineNum = 4089;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4090;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4091;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

case 73:
//C
this.state = 74;
;
 if (true) break;

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

case 75:
//C
this.state = 76;
;
 if (true) break;

case 76:
//C
this.state = 77;
;
 //BA.debugLineNum = 4096;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4098;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l";
parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("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 LENGTH(PE_CEDIS) > 3  AND PE_CLIENTE IN (Select CUENTA from cuentaa)  and PE_FUTURO = '1' order by  PE_CEDIS, PE_COSTOU")));
 //BA.debugLineNum = 4099;BA.debugLine="If S.RowCount>0 Then";
if (true) break;

case 77:
//if
this.state = 102;
if (parent._s.getRowCount()>0) { 
this.state = 79;
}if (true) break;

case 79:
//C
this.state = 80;
 //BA.debugLineNum = 4101;BA.debugLine="For i=0 To S.RowCount -1";
if (true) break;

case 80:
//for
this.state = 101;
step125 = 1;
limit125 = (int) (parent._s.getRowCount()-1);
_i = (int) (0) ;
this.state = 133;
if (true) break;

case 133:
//C
this.state = 101;
if ((step125 > 0 && _i <= limit125) || (step125 < 0 && _i >= limit125)) this.state = 82;
if (true) break;

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

case 82:
//C
this.state = 83;
 //BA.debugLineNum = 4102;BA.debugLine="S.Position=i";
parent._s.setPosition(_i);
 //BA.debugLineNum = 4103;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR";
if (true) break;

case 83:
//if
this.state = 100;
if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { 
this.state = 85;
}else {
this.state = 87;
}if (true) break;

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

case 87:
//C
this.state = 88;
 //BA.debugLineNum = 4108;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
 //BA.debugLineNum = 4109;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano);
 //BA.debugLineNum = 4110;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano);
 //BA.debugLineNum = 4111;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano);
 //BA.debugLineNum = 4113;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
parent._espacio = (int) (parent._espacio-parent._tamano);
 //BA.debugLineNum = 4115;BA.debugLine="For E=0 To ESPACIO -1";
if (true) break;

case 88:
//for
this.state = 91;
step134 = 1;
limit134 = (int) (parent._espacio-1);
_e = (int) (0) ;
this.state = 135;
if (true) break;

case 135:
//C
this.state = 91;
if ((step134 > 0 && _e <= limit134) || (step134 < 0 && _e >= limit134)) this.state = 90;
if (true) break;

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

case 90:
//C
this.state = 136;
 //BA.debugLineNum = 4116;BA.debugLine="BLANCO = \" \" & BLANCO";
parent._blanco = " "+parent._blanco;
 if (true) break;
if (true) break;

case 91:
//C
this.state = 92;
;
 //BA.debugLineNum = 4118;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_";
parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+"   $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed);
 //BA.debugLineNum = 4120;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.ExecQu";
_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_precioprom = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' "))));
 //BA.debugLineNum = 4121;BA.debugLine="If precioprom.RowCount > 0 Then";
if (true) break;

case 92:
//if
this.state = 99;
if (_precioprom.getRowCount()>0) { 
this.state = 94;
}if (true) break;

case 94:
//C
this.state = 95;
 //BA.debugLineNum = 4122;BA.debugLine="precioprom.Position = 0";
_precioprom.setPosition((int) (0));
 //BA.debugLineNum = 4123;BA.debugLine="Log (precioprom.GETSTRING(\"CAT_GP_PRECIO\"))";
parent.__c.LogImpl("417760450",_precioprom.GetString("CAT_GP_PRECIO"),0);
 //BA.debugLineNum = 4124;BA.debugLine="Log (s.GETSTRING(\"PE_COSTOU\"))";
parent.__c.LogImpl("417760451",parent._s.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 4125;BA.debugLine="If NumberFormat2(precioprom.GETSTRING(\"CAT_GP";
if (true) break;

case 95:
//if
this.state = 98;
if ((parent.__c.NumberFormat2((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)) == false) { 
this.state = 97;
}if (true) break;

case 97:
//C
this.state = 98;
 //BA.debugLineNum = 4127;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & preci";
parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+_precioprom.GetString("CAT_GP_PRECIO")+" Desc.: "+parent.__c.NumberFormat2(((((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))))*100)/(double)(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))),(int) (0.),(int) (2),(int) (2),parent.__c.False)+"%"+_elinefeed+_elinefeed);
 if (true) break;

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

case 99:
//C
this.state = 100;
;
 //BA.debugLineNum = 4131;BA.debugLine="TAMANO = 0";
parent._tamano = (int) (0);
 //BA.debugLineNum = 4132;BA.debugLine="ESPACIO = 21";
parent._espacio = (int) (21);
 //BA.debugLineNum = 4133;BA.debugLine="BLANCO = \" \"";
parent._blanco = " ";
 if (true) break;

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

case 101:
//C
this.state = 102;
;
 //BA.debugLineNum = 4136;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 if (true) break;

case 102:
//C
this.state = 103;
;
 //BA.debugLineNum = 4138;BA.debugLine="s.Close";
parent._s.Close();
 //BA.debugLineNum = 4169;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa:   $\" & N";
parent._printer1._writestring /*String*/ ("Subtotal Preventa:   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 //BA.debugLineNum = 4170;BA.debugLine="If NumberFormat2(Subs.calculaTotalConPromoXRango4";
if (true) break;

case 103:
//if
this.state = 106;
if ((parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)) == false) { 
this.state = 105;
}if (true) break;

case 105:
//C
this.state = 106;
 //BA.debugLineNum = 4171;BA.debugLine="Printer1.WriteString(\"Descuento:   $\" & NumberFo";
parent._printer1._writestring /*String*/ ("Descuento:   $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 if (true) break;

case 106:
//C
this.state = 107;
;
 //BA.debugLineNum = 4174;BA.debugLine="Printer1.WriteString(\"Total Preventa:   $\" & Numb";
parent._printer1._writestring /*String*/ ("Total Preventa:   $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed);
 //BA.debugLineNum = 4176;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4177;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 //BA.debugLineNum = 4178;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" &  eLINEFEED)";
parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed);
 //BA.debugLineNum = 4179;BA.debugLine="Printer1.WriteString(la_Calle.Text &  eLINEFEED)";
parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed);
 //BA.debugLineNum = 4180;BA.debugLine="Printer1.WriteString(\"--------------ESTE TICKET N";
parent._printer1._writestring /*String*/ ("--------------ESTE TICKET NO ES UN--------------"+_elinefeed);
 //BA.debugLineNum = 4181;BA.debugLine="Printer1.WriteString(\"----------COMPROBANTE FISCA";
parent._printer1._writestring /*String*/ ("----------COMPROBANTE FISCAL, SOLO ES-----------"+_elinefeed);
 //BA.debugLineNum = 4182;BA.debugLine="Printer1.WriteString(\"------------------INFORMATI";
parent._printer1._writestring /*String*/ ("------------------INFORMATIVO-------------------"+_elinefeed);
 //BA.debugLineNum = 4183;BA.debugLine="Printer1.WriteString(\"---------------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 //BA.debugLineNum = 4185;BA.debugLine="If ALMACEN = 81 Then";
if (true) break;

case 107:
//if
this.state = 118;
if ((parent._almacen).equals(BA.NumberToString(81))) { 
this.state = 109;
}if (true) break;

case 109:
//C
this.state = 110;
 //BA.debugLineNum = 4187;BA.debugLine="Dim creditocod2 As Cursor = Starter.skmt.ExecQue";
_creditocod2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_creditocod2 = (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 BANDERA FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 4188;BA.debugLine="If creditocod2.RowCount > 0 Then";
if (true) break;

case 110:
//if
this.state = 117;
if (_creditocod2.getRowCount()>0) { 
this.state = 112;
}if (true) break;

case 112:
//C
this.state = 113;
 //BA.debugLineNum = 4189;BA.debugLine="creditocod2.Position = 0";
_creditocod2.setPosition((int) (0));
 //BA.debugLineNum = 4190;BA.debugLine="If creditocod2.GetString(\"BANDERA\") = \"1\" Then";
if (true) break;

case 113:
//if
this.state = 116;
if ((_creditocod2.GetString("BANDERA")).equals("1")) { 
this.state = 115;
}if (true) break;

case 115:
//C
this.state = 116;
 //BA.debugLineNum = 4191;BA.debugLine="Dim creditocod As Cursor = Starter.skmt.ExecQu";
_creditocod = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_creditocod = (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 CODIGO FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 4192;BA.debugLine="creditocod.Position = 0";
_creditocod.setPosition((int) (0));
 //BA.debugLineNum = 4193;BA.debugLine="Printer1.WriteString(\"------------------CODIGO";
parent._printer1._writestring /*String*/ ("------------------CODIGO: "+_creditocod.GetString("CODIGO")+"------------------"+_elinefeed);
 //BA.debugLineNum = 4194;BA.debugLine="Printer1.WriteString(\"------------------------";
parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed);
 if (true) break;

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

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

case 118:
//C
this.state = -1;
;
 //BA.debugLineNum = 4198;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
parent._printer1._writestring /*String*/ (" "+_elinefeed);
 //BA.debugLineNum = 4201;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 137;
return;
case 137:
//C
this.state = -1;
;
 //BA.debugLineNum = 4202;BA.debugLine="Printer1.DisConnect";
parent._printer1._disconnect /*String*/ ();
 //BA.debugLineNum = 4204;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
 //BA.debugLineNum = 4207;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _inicializarlocalizacionmejorada() throws Exception{
anywheresoftware.b4j.object.JavaObject _locationmanager = null;
 //BA.debugLineNum = 1538;BA.debugLine="Sub InicializarLocalizacionMejorada";
 //BA.debugLineNum = 1540;BA.debugLine="Dim LocationManager As JavaObject";
_locationmanager = new anywheresoftware.b4j.object.JavaObject();
 //BA.debugLineNum = 1541;BA.debugLine="LocationManager.InitializeStatic(\"android.locatio";
_locationmanager.InitializeStatic("android.location.LocationManager");
 //BA.debugLineNum = 1543;BA.debugLine="g.Start(0, 0) ' GPS";
_g.Start(ba,(long) (0),(float) (0));
 //BA.debugLineNum = 1545;BA.debugLine="End Sub";
return "";
}
public String  _iniciofin() throws Exception{
 //BA.debugLineNum = 1928;BA.debugLine="Private Sub iniciofin";
 //BA.debugLineNum = 1940;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 503;BA.debugLine="Public Sub Initialize As Object";
 //BA.debugLineNum = 504;BA.debugLine="Return Me";
if (true) return this;
 //BA.debugLineNum = 505;BA.debugLine="End Sub";
return null;
}
public void  _initializecamera2() throws Exception{
ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(this);
rsub.resume(ba, null);
}
public static class ResumableSub_InitializeCamera2 extends BA.ResumableSub {
public ResumableSub_InitializeCamera2(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
String _permission = "";
boolean _resultc = false;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 8060;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);
 //BA.debugLineNum = 8061;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 7;
return;
case 7:
//C
this.state = 1;
_permission = (String) result[0];
_resultc = (Boolean) result[1];
;
 //BA.debugLineNum = 8062;BA.debugLine="If resultC Then";
if (true) break;

case 1:
//if
this.state = 6;
if (_resultc) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 8063;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera";
parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,parent,"Camera1");
 //BA.debugLineNum = 8064;BA.debugLine="frontCamera = camEx.Front";
parent._frontcamera = parent._camex._front /*boolean*/ ;
 //BA.debugLineNum = 8065;BA.debugLine="Log(\"inicializamos Camara\")";
parent.__c.LogImpl("427525126","inicializamos Camara",0);
 if (true) break;

case 5:
//C
this.state = 6;
 //BA.debugLineNum = 8067;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True);
 if (true) break;

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

            }
        }
    }
}
public String  _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null;
Object[] _records = null;
String _k = "";
String _permiso_geopass = "";
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
byte[] _cat_cl_foto = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null;
byte[] _fotomostrarfinal = null;
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _inputstream1 = null;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bitmap1 = null;
 //BA.debugLineNum = 1974;BA.debugLine="Sub JobDone(Job As HttpJob)";
 //BA.debugLineNum = 1975;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 //BA.debugLineNum = 1977;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Subs.pars";
__c.LogImpl("415007747","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red);
 }else {
 //BA.debugLineNum = 1980;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("415007750","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
 //BA.debugLineNum = 1981;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1982;BA.debugLine="Dim result1 As DBResult = reqManager.HandleJob(";
_result1 = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 1983;BA.debugLine="If result1.Tag = \"traeGeoPass\" Then 'query tag";
if ((_result1.Tag /*Object*/ ).equals((Object)("traeGeoPass"))) { 
 //BA.debugLineNum = 1984;BA.debugLine="Log(\"SIN REGISTROS \" & result1.Rows.Size)";
__c.LogImpl("415007754","SIN REGISTROS "+BA.NumberToString(_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
 //BA.debugLineNum = 1985;BA.debugLine="If result1.Rows.Size = 0 Then MsgboxAsync(\"Con";
if (_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { 
__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña equivocada, por favor intente de nuevo."),BA.ObjectToCharSequence("ATENCION"),ba);};
 //BA.debugLineNum = 1986;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group10 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen10 = group10.getSize()
;int index10 = 0;
;
for (; index10 < groupLen10;index10++){
_records = (Object[])(group10.Get(index10));
 //BA.debugLineNum = 1987;BA.debugLine="For Each k As String In result1.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group11 = _result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen11 = group11.getSize()
;int index11 = 0;
;
for (; index11 < groupLen11;index11++){
_k = BA.ObjectToString(group11.Get(index11));
 //BA.debugLineNum = 1988;BA.debugLine="Log(k & \": \" & records(result1.Columns.Get(k";
__c.LogImpl("415007758",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 //BA.debugLineNum = 1990;BA.debugLine="Private permiso_geoPass As String = \"KO\"";
_permiso_geopass = "KO";
 //BA.debugLineNum = 1991;BA.debugLine="Log($\"|${result1.Columns.Get(\"'OK'\")}|\"$)";
__c.LogImpl("415007761",("|"+__c.SmartStringFormatter("",_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("'OK'")))+"|"),0);
 //BA.debugLineNum = 1994;BA.debugLine="permiso_geoPass = result1.Columns.Get(\"'OK'\"";
_permiso_geopass = BA.ObjectToString(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("'OK'")));
 //BA.debugLineNum = 1996;BA.debugLine="If permiso_geoPass = \"OK\" Then";
if ((_permiso_geopass).equals("OK")) { 
 //BA.debugLineNum = 1997;BA.debugLine="m_lat = B4XPages.MainPage.lat_gps";
_m_lat = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ;
 //BA.debugLineNum = 1998;BA.debugLine="m_lon = B4XPages.MainPage.lon_gps";
_m_lon = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ;
 //BA.debugLineNum = 1999;BA.debugLine="GPS_LocationChanged(Starter.ubicacionActual)";
_gps_locationchanged(_starter._ubicacionactual /*anywheresoftware.b4a.gps.LocationWrapper*/ );
 //BA.debugLineNum = 2000;BA.debugLine="skmt.ExecNonQuery($\"update kmt_info3 set CAT";
_skmt.ExecNonQuery(("update kmt_info3 set CAT_CL_LAT = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ))+"', CAT_CL_LONG = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ))+"' where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"'"));
 //BA.debugLineNum = 2001;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2002;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 2003;BA.debugLine="cmd.Name = \"delete_geoPass_GUNA\"";
_cmd.Name /*String*/  = "delete_geoPass_GUNA";
 //BA.debugLineNum = 2004;BA.debugLine="cmd.Parameters = Array As Object( Subs.traeA";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
 //BA.debugLineNum = 2005;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeGeoPas";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("traeGeoPass"));
 }else {
 //BA.debugLineNum = 2007;BA.debugLine="MsgboxAsync(\"Contraseña equivocada, por favo";
__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña equivocada, por favor intente de nuevo."),BA.ObjectToCharSequence("ATENCION"),ba);
 };
 }
};
 };
 //BA.debugLineNum = 2012;BA.debugLine="If result1.Tag = \"codigoAutorizacion\" Then";
if ((_result1.Tag /*Object*/ ).equals((Object)("codigoAutorizacion"))) { 
 //BA.debugLineNum = 2013;BA.debugLine="If result1.Rows.Size > 0 Then";
if (_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>0) { 
 //BA.debugLineNum = 2014;BA.debugLine="Log(\"Si  hay codigo de autorizaion\")";
__c.LogImpl("415007784","Si  hay codigo de autorizaion",0);
 //BA.debugLineNum = 2015;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group35 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen35 = group35.getSize()
;int index35 = 0;
;
for (; index35 < groupLen35;index35++){
_records = (Object[])(group35.Get(index35));
 //BA.debugLineNum = 2016;BA.debugLine="For Each k As String In result1.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group36 = _result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen36 = group36.getSize()
;int index36 = 0;
;
for (; index36 < groupLen36;index36++){
_k = BA.ObjectToString(group36.Get(index36));
 //BA.debugLineNum = 2017;BA.debugLine="Log(k & \": \" & records(result1.Columns.Get(";
__c.LogImpl("415007787",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 //BA.debugLineNum = 2020;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2021;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 2022;BA.debugLine="cmd.Name = \"delete_codigoAutorizacion\"";
_cmd.Name /*String*/  = "delete_codigoAutorizacion";
 //BA.debugLineNum = 2023;BA.debugLine="cmd.Parameters = Array As Object(et_codigoAut";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))};
 //BA.debugLineNum = 2024;BA.debugLine="reqManager.ExecuteCommand(cmd , \"deleteCodigo";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("deleteCodigoAutorizacion"));
 //BA.debugLineNum = 2025;BA.debugLine="DateTime.DateFormat = \"YYYY/MM/dd HH:mm:ss\"";
__c.DateTime.setDateFormat("YYYY/MM/dd HH:mm:ss");
 //BA.debugLineNum = 2026;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 2027;BA.debugLine="cmd.Name = \"update_codigoAutorizacion\"";
_cmd.Name /*String*/  = "update_codigoAutorizacion";
 //BA.debugLineNum = 2029;BA.debugLine="cmd.Parameters = Array As Object(DateTime.Dat";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(__c.DateTime.Date(__c.DateTime.getNow())),(Object)(_subs._traeusuariodebd /*String*/ (ba)),(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))};
 //BA.debugLineNum = 2030;BA.debugLine="reqManager.ExecuteCommand(cmd , \"updateCodigo";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("updateCodigoAutorizacion"));
 //BA.debugLineNum = 2031;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from ticket";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ticket_impreso where idCliente in (select cuenta from cuentaa)");
 //BA.debugLineNum = 2032;BA.debugLine="p_transparenteTicketImpreso.Visible = False";
_p_transparenteticketimpreso.setVisible(__c.False);
 //BA.debugLineNum = 2033;BA.debugLine="et_codigoAutorizacion.Text = \"\"";
_et_codigoautorizacion.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 2034;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 2035;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 2036;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
 //BA.debugLineNum = 2037;BA.debugLine="ToastMessageShow(\"Listo, ya se puede modifica";
__c.ToastMessageShow(BA.ObjectToCharSequence("Listo, ya se puede modificar la venta."),__c.True);
 }else {
 //BA.debugLineNum = 2039;BA.debugLine="ToastMessageShow(\"El codigo es incorrecto, po";
__c.ToastMessageShow(BA.ObjectToCharSequence("El codigo es incorrecto, por favor revise y vuelva a intentar!!"),__c.True);
 };
 };
 //BA.debugLineNum = 2042;BA.debugLine="If result1.Tag = \"delete_codigoAutorizacion\" Th";
if ((_result1.Tag /*Object*/ ).equals((Object)("delete_codigoAutorizacion"))) { 
 //BA.debugLineNum = 2043;BA.debugLine="Log(\"Codigo Borrado!!\")";
__c.LogImpl("415007813","Codigo Borrado!!",0);
 };
 //BA.debugLineNum = 2045;BA.debugLine="If result1.Tag = \"updateCodigoAutorizacion\" The";
if ((_result1.Tag /*Object*/ ).equals((Object)("updateCodigoAutorizacion"))) { 
 //BA.debugLineNum = 2046;BA.debugLine="Log(\"Codigo Actualizado\")";
__c.LogImpl("415007816","Codigo Actualizado",0);
 };
 //BA.debugLineNum = 2048;BA.debugLine="If result1.Tag = \"insertEnvioTicketPDF\" Then";
if ((_result1.Tag /*Object*/ ).equals((Object)("insertEnvioTicketPDF"))) { 
 //BA.debugLineNum = 2049;BA.debugLine="Log(\"Información de ticket enviada a web!!\")";
__c.LogImpl("415007819","Información de ticket enviada a web!!",0);
 };
 };
 //BA.debugLineNum = 2071;BA.debugLine="If result1.Tag = \"kmt_datos_foto\" Then 'query ta";
if ((_result1.Tag /*Object*/ ).equals((Object)("kmt_datos_foto"))) { 
 //BA.debugLineNum = 2072;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group72 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen72 = group72.getSize()
;int index72 = 0;
;
for (; index72 < groupLen72;index72++){
_records = (Object[])(group72.Get(index72));
 //BA.debugLineNum = 2073;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(result1.Co";
_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]);
 }
};
 //BA.debugLineNum = 2075;BA.debugLine="Log(\"si paso\")";
__c.LogImpl("415007845","si paso",0);
 //BA.debugLineNum = 2076;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET foto = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_foto)}));
 //BA.debugLineNum = 2078;BA.debugLine="Dim fotomostrar As Cursor = Starter.skmt.ExecQu";
_fotomostrar = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 2079;BA.debugLine="If fotomostrar.RowCount > 0 Then";
if (_fotomostrar.getRowCount()>0) { 
 //BA.debugLineNum = 2080;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.Exec";
_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NULL")));
 //BA.debugLineNum = 2081;BA.debugLine="If fotomostrar1.RowCount > 0 Then";
if (_fotomostrar1.getRowCount()>0) { 
 //BA.debugLineNum = 2082;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets";
_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"images.png").getObject()));
 //BA.debugLineNum = 2083;BA.debugLine="Log(\"aqui no hay foto\")";
__c.LogImpl("415007853","aqui no hay foto",0);
 }else {
 //BA.debugLineNum = 2085;BA.debugLine="fotomostrar.Position = 0";
_fotomostrar.setPosition((int) (0));
 //BA.debugLineNum = 2086;BA.debugLine="Private fotomostrarfinal() As Byte = fotomost";
_fotomostrarfinal = _fotomostrar.GetBlob("foto");
 //BA.debugLineNum = 2087;BA.debugLine="Dim InputStream1 As InputStream";
_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
 //BA.debugLineNum = 2088;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomos";
_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length);
 //BA.debugLineNum = 2089;BA.debugLine="Dim Bitmap1 As Bitmap";
_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
 //BA.debugLineNum = 2090;BA.debugLine="Bitmap1.Initialize2(InputStream1)";
_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject()));
 //BA.debugLineNum = 2091;BA.debugLine="InputStream1.Close";
_inputstream1.Close();
 //BA.debugLineNum = 2092;BA.debugLine="ImageView4.Bitmap = Bitmap1";
_imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject()));
 //BA.debugLineNum = 2093;BA.debugLine="Log(\"aqui si hay foto\")";
__c.LogImpl("415007863","aqui si hay foto",0);
 };
 };
 };
 };
 //BA.debugLineNum = 2098;BA.debugLine="Job.Release";
_job._release /*String*/ ();
 //BA.debugLineNum = 2099;BA.debugLine="End Sub";
return "";
}
public String  _l_atiende_longclick() throws Exception{
 //BA.debugLineNum = 8288;BA.debugLine="Private Sub l_atiende_LongClick";
 //BA.debugLineNum = 8289;BA.debugLine="p_atiende.Height = Root.Height";
_p_atiende.setHeight(_root.getHeight());
 //BA.debugLineNum = 8290;BA.debugLine="p_atiende.Width = Root.Width";
_p_atiende.setWidth(_root.getWidth());
 //BA.debugLineNum = 8291;BA.debugLine="p_atiende.Visible = True";
_p_atiende.setVisible(__c.True);
 //BA.debugLineNum = 8292;BA.debugLine="End Sub";
return "";
}
public String  _l_chk_e_click() throws Exception{
 //BA.debugLineNum = 6869;BA.debugLine="Private Sub l_chk_e_Click";
 //BA.debugLineNum = 6871;BA.debugLine="End Sub";
return "";
}
public String  _l_limite_click() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
String _fechainicio = "";
long _ticksinicio = 0L;
long _tickshoy = 0L;
int _diferenciadias = 0;
 //BA.debugLineNum = 8189;BA.debugLine="Private Sub l_limite_Click";
 //BA.debugLineNum = 8192;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt.";
_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 8193;BA.debugLine="If pagarepen.RowCount > 0 Then";
if (_pagarepen.getRowCount()>0) { 
 //BA.debugLineNum = 8194;BA.debugLine="Dim cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
 //BA.debugLineNum = 8195;BA.debugLine="cs.Initialize";
_cs.Initialize();
 //BA.debugLineNum = 8196;BA.debugLine="p_deuda.Visible = True";
_p_deuda.setVisible(__c.True);
 //BA.debugLineNum = 8197;BA.debugLine="p_deuda.Width = Root.Width";
_p_deuda.setWidth(_root.getWidth());
 //BA.debugLineNum = 8198;BA.debugLine="p_deuda.Height = Root.Height";
_p_deuda.setHeight(_root.getHeight());
 //BA.debugLineNum = 8200;BA.debugLine="pagarepen.Position = 0";
_pagarepen.setPosition((int) (0));
 //BA.debugLineNum = 8201;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 8202;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString(";
_fechainicio = _pagarepen.GetString("FECHA");
 //BA.debugLineNum = 8204;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))";
__c.LogImpl("428114959",_pagarepen.GetString("FECHA"),0);
 //BA.debugLineNum = 8207;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec";
_ticksinicio = __c.DateTime.DateParse(_fechainicio);
 //BA.debugLineNum = 8208;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi";
_tickshoy = __c.DateTime.DateParse(__c.DateTime.Date(__c.DateTime.getNow()));
 //BA.debugLineNum = 8211;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni";
_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)__c.DateTime.TicksPerDay);
 //BA.debugLineNum = 8214;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)";
__c.LogImpl("428114969",("Días transcurridos: "+__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0);
 //BA.debugLineNum = 8216;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 8217;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 8219;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDIT";
if (_diferenciadias<=_c.GetInt("CAT_CL_DIASCREDITO")+8) { 
 //BA.debugLineNum = 8223;BA.debugLine="l_deuda.Text = cs.Color(Colors.Black).Append(\"M";
_l_deuda.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Monto de la deuda:"+__c.CRLF+__c.CRLF)).Pop().Size((int) (18)).Color(__c.Colors.RGB((int) (48),(int) (109),(int) (0))).Append(BA.ObjectToCharSequence("$ "+_pagarepen.GetString("SALDO_PENDIENTE"))).PopAll().getObject()));
 }else if(_diferenciadias>_c.GetInt("CAT_CL_DIASCREDITO")+8) { 
 //BA.debugLineNum = 8226;BA.debugLine="l_deuda.Text = cs.Color(Colors.Black).Append(\"M";
_l_deuda.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Monto de la deuda:"+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("$ "+_pagarepen.GetString("SALDO_PENDIENTE")+__c.CRLF+__c.CRLF)).Pop().Size((int) (14)).Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Dias de atraso:"+__c.CRLF+__c.CRLF)).Pop().Size((int) (18)).Color(__c.Colors.Red).Append(BA.ObjectToCharSequence((_diferenciadias-(_c.GetInt("CAT_CL_DIASCREDITO")+1)))).PopAll().getObject()));
 };
 }else {
 //BA.debugLineNum = 8229;BA.debugLine="p_deuda.Visible = True";
_p_deuda.setVisible(__c.True);
 //BA.debugLineNum = 8231;BA.debugLine="p_deuda.Width = Root.Width";
_p_deuda.setWidth(_root.getWidth());
 //BA.debugLineNum = 8232;BA.debugLine="p_deuda.Height = Root.Height";
_p_deuda.setHeight(_root.getHeight());
 //BA.debugLineNum = 8234;BA.debugLine="l_deuda.Text = \"No tiene adeudo\"";
_l_deuda.setText(BA.ObjectToCharSequence("No tiene adeudo"));
 };
 //BA.debugLineNum = 8237;BA.debugLine="End Sub";
return "";
}
public String  _la_geo_click() throws Exception{
 //BA.debugLineNum = 7082;BA.debugLine="Private Sub LA_GEO_Click";
 //BA.debugLineNum = 7083;BA.debugLine="Log(geoCont)";
__c.LogImpl("425559041",BA.NumberToString(_geocont),0);
 //BA.debugLineNum = 7084;BA.debugLine="If geoCont = 3 Then";
if (_geocont==3) { 
 //BA.debugLineNum = 7085;BA.debugLine="Subs.centraPanel(p_pideGeoPass, Root.Width)";
_subs._centrapanel /*String*/ (ba,_p_pidegeopass,_root.getWidth());
 //BA.debugLineNum = 7086;BA.debugLine="geoCont = 0";
_geocont = (int) (0);
 //BA.debugLineNum = 7087;BA.debugLine="If distance > 99 Then";
if (_distance>99) { 
 //BA.debugLineNum = 7088;BA.debugLine="p_pideGeoPass.BringToFront";
_p_pidegeopass.BringToFront();
 //BA.debugLineNum = 7089;BA.debugLine="et_geopass.RequestFocus";
_et_geopass.RequestFocus();
 //BA.debugLineNum = 7090;BA.debugLine="p_pideGeoPass.Visible = True";
_p_pidegeopass.setVisible(__c.True);
 };
 };
 //BA.debugLineNum = 7093;BA.debugLine="geoCont = geoCont + 1";
_geocont = (int) (_geocont+1);
 //BA.debugLineNum = 7094;BA.debugLine="End Sub";
return "";
}
public String  _la_geo_longclick() throws Exception{
 //BA.debugLineNum = 1967;BA.debugLine="Private Sub LA_GEO_LongClick";
 //BA.debugLineNum = 1972;BA.debugLine="End Sub";
return "";
}
public String  _la_gps_click() throws Exception{
 //BA.debugLineNum = 1480;BA.debugLine="Private Sub LA_GPS_Click";
 //BA.debugLineNum = 1482;BA.debugLine="MejorarPrecisionGPS";
_mejorarprecisiongps();
 //BA.debugLineNum = 1484;BA.debugLine="ToastMessageShow(\"Mejorando precisión GPS...\", Fa";
__c.ToastMessageShow(BA.ObjectToCharSequence("Mejorando precisión GPS..."),__c.False);
 //BA.debugLineNum = 1485;BA.debugLine="End Sub";
return "";
}
public String  _label19_click() throws Exception{
String _numerotel = "";
anywheresoftware.b4a.objects.IntentWrapper _intent1 = null;
 //BA.debugLineNum = 8032;BA.debugLine="Private Sub Label19_Click";
 //BA.debugLineNum = 8033;BA.debugLine="Dim numeroTel As String = Label19.Text";
_numerotel = _label19.getText();
 //BA.debugLineNum = 8035;BA.debugLine="numeroTel = numeroTel.Replace(\" \", \"\").Replace(\"-";
_numerotel = _numerotel.replace(" ","").replace("-","").replace("(","").replace(")","");
 //BA.debugLineNum = 8037;BA.debugLine="If numeroTel.Length > 0 Then";
if (_numerotel.length()>0) { 
 //BA.debugLineNum = 8038;BA.debugLine="Dim Intent1 As Intent";
_intent1 = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 8039;BA.debugLine="Intent1.Initialize(\"android.intent.action.DIAL\",";
_intent1.Initialize("android.intent.action.DIAL","tel:"+_numerotel);
 //BA.debugLineNum = 8040;BA.debugLine="StartActivity(Intent1)";
__c.StartActivity(ba,(Object)(_intent1.getObject()));
 }else {
 //BA.debugLineNum = 8042;BA.debugLine="ToastMessageShow(\"Número no válido\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Número no válido"),__c.False);
 };
 //BA.debugLineNum = 8045;BA.debugLine="Return True";
if (true) return BA.ObjectToString(__c.True);
 //BA.debugLineNum = 8046;BA.debugLine="End Sub";
return "";
}
public String  _label19_longclick() throws Exception{
 //BA.debugLineNum = 8333;BA.debugLine="Private Sub Label19_LongClick";
 //BA.debugLineNum = 8334;BA.debugLine="p_telefono.Height = Root.Height";
_p_telefono.setHeight(_root.getHeight());
 //BA.debugLineNum = 8335;BA.debugLine="p_telefono.Width = Root.Width";
_p_telefono.setWidth(_root.getWidth());
 //BA.debugLineNum = 8336;BA.debugLine="p_telefono.Visible = True";
_p_telefono.setVisible(__c.True);
 //BA.debugLineNum = 8339;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemlongclick(int _position,Object _value) throws Exception{
 //BA.debugLineNum = 2101;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
 //BA.debugLineNum = 2103;BA.debugLine="End Sub";
return "";
}
public String  _mandapedido() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
int _i = 0;
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 3852;BA.debugLine="Sub Mandapedido";
 //BA.debugLineNum = 3854;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_CE";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT 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 FROM PEDIDO WHERE (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"})));
 //BA.debugLineNum = 3855;BA.debugLine="Dim d As Cursor=B4XPages.MainPage.skmt.ExecQuery(";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO")));
 //BA.debugLineNum = 3856;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 3857;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step4 = 1;
final int limit4 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
 //BA.debugLineNum = 3858;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 3859;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3860;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3861;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 3862;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"P";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_COSTO_TOT")),(Object)(_c.GetString("PE_COSTOU")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 3863;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }
};
 };
 //BA.debugLineNum = 3866;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3867;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3870;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3874;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select * from";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1")));
 //BA.debugLineNum = 3875;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 3876;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step18 = 1;
final int limit18 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit18 ;_i = _i + step18 ) {
 //BA.debugLineNum = 3877;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 3878;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3879;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3880;BA.debugLine="cmd.Name = \"update_ventacredito_guna\"";
_cmd.Name /*String*/  = "update_ventacredito_guna";
 //BA.debugLineNum = 3881;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"B";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("BANDERA")),(Object)(_c.GetString("CLIENTE")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CLIENTE")))};
 //BA.debugLineNum = 3882;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas"));
 }
};
 };
 //BA.debugLineNum = 3885;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3888;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_RE";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_RECALCULO,PE_RECALCULOTOT,ifnull(PE_RECCEDIS,'') as PE_RECCEDIS,PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,ifnull(PE_CANT,0) as PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, IFNULL(PE_RECCANT,0) AS PE_RECCANT FROM PEDIDO WHERE PE_RECALCULO <> ? or PE_RECALCULO <> ? or PE_RECALCULO IS NOT NULL",new String[]{"","null"})));
 //BA.debugLineNum = 3889;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery($\"SELECT COUNT";
_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO where PE_RUTA = '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"'"))));
 //BA.debugLineNum = 3890;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 3891;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step31 = 1;
final int limit31 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit31 ;_i = _i + step31 ) {
 //BA.debugLineNum = 3892;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 3893;BA.debugLine="If c.GetString(\"PE_RECCEDIS\") = \"\" Then";
if ((_c.GetString("PE_RECCEDIS")).equals("")) { 
 //BA.debugLineNum = 3894;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3895;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3896;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 3897;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 3898;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }else {
 //BA.debugLineNum = 3900;BA.debugLine="If c.GetString(\"PE_RECCANT\") = c.GetString(\"PE";
if ((_c.GetString("PE_RECCANT")).equals(_c.GetString("PE_CANT"))) { 
 //BA.debugLineNum = 3901;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3902;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3903;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 3904;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 3905;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }else {
 //BA.debugLineNum = 3908;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3909;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3910;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 3911;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_RECCANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 3912;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 //BA.debugLineNum = 3914;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 3915;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3916;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 3917;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU"))),(int) (1),(int) (2),(int) (2),__c.False)),(Object)(_c.GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 3918;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 };
 };
 }
};
 };
 //BA.debugLineNum = 3923;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3924;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3926;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3927;BA.debugLine="End Sub";
return "";
}
public void  _mandawamsgcredito(String _numtel,String _monto) throws Exception{
ResumableSub_mandaWAMsgCredito rsub = new ResumableSub_mandaWAMsgCredito(this,_numtel,_monto);
rsub.resume(ba, null);
}
public static class ResumableSub_mandaWAMsgCredito extends BA.ResumableSub {
public ResumableSub_mandaWAMsgCredito(gunav2.keymon.com.mx.c_cliente parent,String _numtel,String _monto) {
this.parent = parent;
this._numtel = _numtel;
this._monto = _monto;
}
gunav2.keymon.com.mx.c_cliente parent;
String _numtel;
String _monto;
String _fecha = "";
String _idcliente = "";
String _link = "";
String _eljson = "";
gunav2.keymon.com.mx.httpjob _job = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = -1;
 //BA.debugLineNum = 7897;BA.debugLine="DateTime.DateFormat=\"MM/dd/yyyy HH:mm:ss\"";
parent.__c.DateTime.setDateFormat("MM/dd/yyyy HH:mm:ss");
 //BA.debugLineNum = 7898;BA.debugLine="Private Fecha As String=DateTime.Date(DateTime.no";
_fecha = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 7899;BA.debugLine="numTel = \"521\" & numTel";
_numtel = "521"+_numtel;
 //BA.debugLineNum = 7900;BA.debugLine="Private numTel As String = \"5215554192439\"";
_numtel = "5215554192439";
 //BA.debugLineNum = 7902;BA.debugLine="Private idCliente As String = Subs.traeCliente '\"";
_idcliente = parent._subs._traecliente /*String*/ (ba);
 //BA.debugLineNum = 7903;BA.debugLine="Private ruta As String = Subs.traeRuta '\"333\"";
parent._ruta = parent._subs._traeruta /*String*/ (ba);
 //BA.debugLineNum = 7904;BA.debugLine="Private ALMACEN As String = Subs.traeAlmacen '\"1\"";
parent._almacen = parent._subs._traealmacen /*String*/ (ba);
 //BA.debugLineNum = 7907;BA.debugLine="Private link As String = \"http://keymon.net:9000/";
_link = "http://keymon.net:9000/v1/messages";
 //BA.debugLineNum = 7908;BA.debugLine="Private elJSON As String = $\"{ 		\"number\":\"${numT";
_eljson = ("{\n"+"		\"number\":\""+parent.__c.SmartStringFormatter("",(Object)(_numtel))+"\",\n"+"		\"message\":\"Tu compra de Guna va ser a *crédito* por el monto de $"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.NumberFormat2((double)(Double.parseDouble(_monto)),(int) (1),(int) (2),(int) (2),parent.__c.True)))+"\\n\\nManda *1* para confirmar\\nManda *0* para rechazar\\n\\n*Nota:* Si este mensaje no se contesta, se considerará que el pago es en *EFECTIVO*.\\n\\n(Solo el *número* por favor)\",\n"+"		\"monto\":\""+parent.__c.SmartStringFormatter("",(Object)(_monto))+"\",\n"+"		\"idcliente\":\""+parent.__c.SmartStringFormatter("",(Object)(_idcliente))+"\",\n"+"		\"almacen\":\""+parent.__c.SmartStringFormatter("",(Object)(parent._almacen))+"\",\n"+"		\"ruta\": \""+parent.__c.SmartStringFormatter("",(Object)(parent._ruta))+"\",\n"+"		\"fecha\":\""+parent.__c.SmartStringFormatter("",(Object)(_fecha))+"\"\n"+"		}");
 //BA.debugLineNum = 7917;BA.debugLine="Private job As HttpJob";
_job = new gunav2.keymon.com.mx.httpjob();
 //BA.debugLineNum = 7918;BA.debugLine="job.Initialize(\"\", Me)";
_job._initialize /*String*/ (ba,"",parent);
 //BA.debugLineNum = 7919;BA.debugLine="job.PostString(link, elJSON)";
_job._poststring /*String*/ (_link,_eljson);
 //BA.debugLineNum = 7920;BA.debugLine="job.GetRequest.SetContentType(\"application/json\")";
_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().SetContentType("application/json");
 //BA.debugLineNum = 7921;BA.debugLine="Wait For (job) JobDone(job As HttpJob)";
parent.__c.WaitFor("jobdone", ba, this, (Object)(_job));
this.state = 1;
return;
case 1:
//C
this.state = -1;
_job = (gunav2.keymon.com.mx.httpjob) result[0];
;
 //BA.debugLineNum = 7933;BA.debugLine="Log(\"Whatsapp enviado con exito: \" & job.Success)";
parent.__c.LogImpl("427000869","Whatsapp enviado con exito: "+BA.ObjectToString(_job._success /*boolean*/ ),0);
 //BA.debugLineNum = 7934;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _mejorarprecisiongps() throws Exception{
ResumableSub_MejorarPrecisionGPS rsub = new ResumableSub_MejorarPrecisionGPS(this);
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_MejorarPrecisionGPS extends BA.ResumableSub {
public ResumableSub_MejorarPrecisionGPS(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
int _i = 0;
anywheresoftware.b4a.gps.LocationWrapper _loc = null;
int step2;
int limit2;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = 1;
 //BA.debugLineNum = 1406;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP2\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"StartFLP2");
 //BA.debugLineNum = 1408;BA.debugLine="For i = 1 To 10";
if (true) break;

case 1:
//for
this.state = 12;
step2 = 1;
limit2 = (int) (10);
_i = (int) (1) ;
this.state = 13;
if (true) break;

case 13:
//C
this.state = 12;
if ((step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2)) this.state = 3;
if (true) break;

case 14:
//C
this.state = 13;
_i = ((int)(0 + _i + step2)) ;
if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 1409;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 15;
return;
case 15:
//C
this.state = 4;
;
 //BA.debugLineNum = 1410;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialize";
if (true) break;

case 4:
//if
this.state = 11;
if (parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { 
this.state = 6;
}if (true) break;

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 1411;BA.debugLine="Dim loc As Location = Tracker.FLP.GetLastKnownL";
_loc = new anywheresoftware.b4a.gps.LocationWrapper();
_loc = parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation();
 //BA.debugLineNum = 1412;BA.debugLine="If loc.Accuracy < 25 Then ' Buena precisión";
if (true) break;

case 7:
//if
this.state = 10;
if (_loc.getAccuracy()<25) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 //BA.debugLineNum = 1413;BA.debugLine="Return True";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;};
 if (true) break;

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

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

case 12:
//C
this.state = -1;
;
 //BA.debugLineNum = 1417;BA.debugLine="Return False ' No se logró buena precisión";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 //BA.debugLineNum = 1418;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _muestraboton(anywheresoftware.b4a.objects.ButtonWrapper _thisbutton,String _thetext,String _thetag,int _left,int _top,int _width,int _height) throws Exception{
 //BA.debugLineNum = 6846;BA.debugLine="Sub muestraBoton (thisButton As Button, theText As";
 //BA.debugLineNum = 6847;BA.debugLine="thisButton.Text = theText";
_thisbutton.setText(BA.ObjectToCharSequence(_thetext));
 //BA.debugLineNum = 6848;BA.debugLine="thisButton.Tag = theTag";
_thisbutton.setTag((Object)(_thetag));
 //BA.debugLineNum = 6849;BA.debugLine="thisButton.Left = Left";
_thisbutton.setLeft(_left);
 //BA.debugLineNum = 6850;BA.debugLine="thisButton.Top = Top";
_thisbutton.setTop(_top);
 //BA.debugLineNum = 6851;BA.debugLine="thisButton.Width = width";
_thisbutton.setWidth(_width);
 //BA.debugLineNum = 6852;BA.debugLine="thisButton.Height = height";
_thisbutton.setHeight(_height);
 //BA.debugLineNum = 6853;BA.debugLine="thisButton.Visible = True";
_thisbutton.setVisible(__c.True);
 //BA.debugLineNum = 6854;BA.debugLine="End Sub";
return "";
}
public String  _muestrabotoncentrado(anywheresoftware.b4a.objects.ButtonWrapper _thisbutton,String _thetext,String _thetag,int _top,int _width,int _height) throws Exception{
int _anchopantalla = 0;
 //BA.debugLineNum = 6857;BA.debugLine="Sub muestraBotonCentrado (thisButton As Button, th";
 //BA.debugLineNum = 6858;BA.debugLine="Private anchoPantalla As Int";
_anchopantalla = 0;
 //BA.debugLineNum = 6859;BA.debugLine="thisButton.Text = theText";
_thisbutton.setText(BA.ObjectToCharSequence(_thetext));
 //BA.debugLineNum = 6860;BA.debugLine="thisButton.Tag = theTag";
_thisbutton.setTag((Object)(_thetag));
 //BA.debugLineNum = 6861;BA.debugLine="anchoPantalla = GetDeviceLayoutValues.Width";
_anchopantalla = __c.GetDeviceLayoutValues(ba).Width;
 //BA.debugLineNum = 6862;BA.debugLine="thisButton.Left = (anchoPantalla/2) - (width/2)";
_thisbutton.setLeft((int) ((_anchopantalla/(double)2)-(_width/(double)2)));
 //BA.debugLineNum = 6863;BA.debugLine="thisButton.Top = Top";
_thisbutton.setTop(_top);
 //BA.debugLineNum = 6864;BA.debugLine="thisButton.Width = width";
_thisbutton.setWidth(_width);
 //BA.debugLineNum = 6865;BA.debugLine="thisButton.Height = height";
_thisbutton.setHeight(_height);
 //BA.debugLineNum = 6866;BA.debugLine="thisButton.Visible = True";
_thisbutton.setVisible(__c.True);
 //BA.debugLineNum = 6867;BA.debugLine="End Sub";
return "";
}
public String  _muestraencuesta() throws Exception{
 //BA.debugLineNum = 6766;BA.debugLine="Sub muestraEncuesta";
 //BA.debugLineNum = 6767;BA.debugLine="Log(\"Muestra Encuesta\")";
__c.LogImpl("424510465","Muestra Encuesta",0);
 //BA.debugLineNum = 6768;BA.debugLine="p_encuesta.Top = 0";
_p_encuesta.setTop((int) (0));
 //BA.debugLineNum = 6769;BA.debugLine="p_encuesta.left = 0";
_p_encuesta.setLeft((int) (0));
 //BA.debugLineNum = 6770;BA.debugLine="p_encuesta.Height = GetDeviceLayoutValues.Height";
_p_encuesta.setHeight(__c.GetDeviceLayoutValues(ba).Height);
 //BA.debugLineNum = 6771;BA.debugLine="p_encuesta.Width = GetDeviceLayoutValues.Width";
_p_encuesta.setWidth(__c.GetDeviceLayoutValues(ba).Width);
 //BA.debugLineNum = 6772;BA.debugLine="p_encuesta.SetVisibleAnimated(200, True)";
_p_encuesta.SetVisibleAnimated((int) (200),__c.True);
 //BA.debugLineNum = 6773;BA.debugLine="p_encuesta.Elevation = 90 'ignore";
_p_encuesta.setElevation((float) (90));
 //BA.debugLineNum = 6774;BA.debugLine="p_encuesta.BringToFront";
_p_encuesta.BringToFront();
 //BA.debugLineNum = 6777;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click() throws Exception{
 //BA.debugLineNum = 3379;BA.debugLine="Sub NUEVO_Click";
 //BA.debugLineNum = 3380;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
 //BA.debugLineNum = 3381;BA.debugLine="End Sub";
return "";
}
public String  _ocultapanelencuesta() throws Exception{
 //BA.debugLineNum = 6780;BA.debugLine="Sub ocultaPanelEncuesta";
 //BA.debugLineNum = 6782;BA.debugLine="b_encuesta_1.Visible = False";
_b_encuesta_1.setVisible(__c.False);
 //BA.debugLineNum = 6783;BA.debugLine="b_encuesta_2.Visible = False";
_b_encuesta_2.setVisible(__c.False);
 //BA.debugLineNum = 6784;BA.debugLine="b_encuesta_3.Visible = False";
_b_encuesta_3.setVisible(__c.False);
 //BA.debugLineNum = 6785;BA.debugLine="p_encuesta.Visible = False";
_p_encuesta.setVisible(__c.False);
 //BA.debugLineNum = 6788;BA.debugLine="End Sub";
return "";
}
public String  _openpdf(String _afile) throws Exception{
anywheresoftware.b4a.objects.IntentWrapper _in = null;
 //BA.debugLineNum = 7662;BA.debugLine="private Sub openPDF(afile As String)";
 //BA.debugLineNum = 7667;BA.debugLine="Dim in As Intent";
_in = new anywheresoftware.b4a.objects.IntentWrapper();
 //BA.debugLineNum = 7668;BA.debugLine="in.Initialize(in.ACTION_VIEW, \"\")";
_in.Initialize(_in.ACTION_VIEW,"");
 //BA.debugLineNum = 7669;BA.debugLine="Starter.ffileProvider.SetFileUriAsIntentData(in,";
_starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._setfileuriasintentdata /*String*/ (_in,_afile);
 //BA.debugLineNum = 7670;BA.debugLine="in.SetComponent(\"android/com.android.internal.app";
_in.SetComponent("android/com.android.internal.app.ResolverActivity");
 //BA.debugLineNum = 7671;BA.debugLine="in.SetType(\"application/pdf\")";
_in.SetType("application/pdf");
 //BA.debugLineNum = 7672;BA.debugLine="StartActivity(in)";
__c.StartActivity(ba,(Object)(_in.getObject()));
 //BA.debugLineNum = 7677;BA.debugLine="End Sub";
return "";
}
public String  _p_atiende_click() throws Exception{
 //BA.debugLineNum = 8329;BA.debugLine="Private Sub p_atiende_Click";
 //BA.debugLineNum = 8331;BA.debugLine="End Sub";
return "";
}
public String  _p_camara_click() throws Exception{
 //BA.debugLineNum = 8137;BA.debugLine="Private Sub p_camara_Click";
 //BA.debugLineNum = 8139;BA.debugLine="End Sub";
return "";
}
public String  _p_cliente__click() throws Exception{
 //BA.debugLineNum = 8177;BA.debugLine="Private Sub p_cliente__Click";
 //BA.debugLineNum = 8179;BA.debugLine="End Sub";
return "";
}
public String  _p_cliente_click() throws Exception{
 //BA.debugLineNum = 5066;BA.debugLine="Private Sub p_cliente_Click";
 //BA.debugLineNum = 5068;BA.debugLine="End Sub";
return "";
}
public String  _p_comentario_click() throws Exception{
 //BA.debugLineNum = 7940;BA.debugLine="Private Sub p_comentario_Click";
 //BA.debugLineNum = 7942;BA.debugLine="End Sub";
return "";
}
public String  _p_comentarios_click() throws Exception{
 //BA.debugLineNum = 7944;BA.debugLine="Private Sub p_comentarios_Click";
 //BA.debugLineNum = 7946;BA.debugLine="End Sub";
return "";
}
public String  _p_deuda_click() throws Exception{
 //BA.debugLineNum = 8243;BA.debugLine="Private Sub p_deuda_Click";
 //BA.debugLineNum = 8244;BA.debugLine="p_deuda.Visible = False";
_p_deuda.setVisible(__c.False);
 //BA.debugLineNum = 8245;BA.debugLine="End Sub";
return "";
}
public String  _p_encuesta_click() throws Exception{
 //BA.debugLineNum = 6881;BA.debugLine="Private Sub p_encuesta_Click";
 //BA.debugLineNum = 6883;BA.debugLine="End Sub";
return "";
}
public String  _p_imagengrande_click() throws Exception{
 //BA.debugLineNum = 8388;BA.debugLine="Sub P_Imagengrande_click";
 //BA.debugLineNum = 8389;BA.debugLine="P_Imagengrande.Visible = False";
_p_imagengrande.setVisible(__c.False);
 //BA.debugLineNum = 8390;BA.debugLine="End Sub";
return "";
}
public String  _p_modulo5_click() throws Exception{
 //BA.debugLineNum = 6055;BA.debugLine="Private Sub p_modulo5_Click";
 //BA.debugLineNum = 6057;BA.debugLine="End Sub";
return "";
}
public String  _p_pidegeopass_click() throws Exception{
 //BA.debugLineNum = 1923;BA.debugLine="Private Sub p_pideGeoPass_Click";
 //BA.debugLineNum = 1925;BA.debugLine="End Sub";
return "";
}
public String  _p_telefono_click() throws Exception{
 //BA.debugLineNum = 8380;BA.debugLine="Private Sub p_telefono_Click";
 //BA.debugLineNum = 8382;BA.debugLine="End Sub";
return "";
}
public String  _p_transparenteiniciofin_click() throws Exception{
 //BA.debugLineNum = 7096;BA.debugLine="Private Sub p_transparenteInicioFin_Click";
 //BA.debugLineNum = 7098;BA.debugLine="End Sub";
return "";
}
public String  _p_transparentepdf_click() throws Exception{
 //BA.debugLineNum = 7860;BA.debugLine="Private Sub p_transparentePDF_Click";
 //BA.debugLineNum = 7862;BA.debugLine="End Sub";
return "";
}
public String  _p_transparenteticketimpreso_click() throws Exception{
 //BA.debugLineNum = 7104;BA.debugLine="Private Sub p_transparenteTicketImpreso_Click";
 //BA.debugLineNum = 7106;BA.debugLine="End Sub";
return "";
}
public String  _p6_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5876;BA.debugLine="Private Sub p6_TextChanged (Old As String, New As";
 //BA.debugLineNum = 5877;BA.debugLine="If p6.Text.Length  > 2 Then";
if (_p6.getText().length()>2) { 
 //BA.debugLineNum = 5878;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido1\",\"A";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido1"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5879;BA.debugLine="p6.Text = \"\"";
_p6.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5881;BA.debugLine="End Sub";
return "";
}
public String  _p7_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5885;BA.debugLine="Private Sub p7_TextChanged (Old As String, New As";
 //BA.debugLineNum = 5886;BA.debugLine="If p7.Text.Length  > 2 Then";
if (_p7.getText().length()>2) { 
 //BA.debugLineNum = 5887;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido2\",\"A";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido2"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5888;BA.debugLine="p7.Text = \"\"";
_p7.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5890;BA.debugLine="End Sub";
return "";
}
public String  _p8_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 5894;BA.debugLine="Private Sub p8_TextChanged (Old As String, New As";
 //BA.debugLineNum = 5895;BA.debugLine="If p8.Text.Length  > 2 Then";
if (_p8.getText().length()>2) { 
 //BA.debugLineNum = 5897;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido3\",\"A";
__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido3"),BA.ObjectToCharSequence("Aviso"),ba);
 //BA.debugLineNum = 5898;BA.debugLine="p8.Text = \"\"";
_p8.setText(BA.ObjectToCharSequence(""));
 };
 //BA.debugLineNum = 5900;BA.debugLine="End Sub";
return "";
}
public String  _panel10_click() throws Exception{
 //BA.debugLineNum = 6877;BA.debugLine="Private Sub Panel10_Click";
 //BA.debugLineNum = 6879;BA.debugLine="End Sub";
return "";
}
public String  _panel4_click() throws Exception{
 //BA.debugLineNum = 6059;BA.debugLine="Private Sub Panel4_Click";
 //BA.debugLineNum = 6061;BA.debugLine="End Sub";
return "";
}
public String  _panel5_click() throws Exception{
 //BA.debugLineNum = 5070;BA.debugLine="Private Sub Panel5_Click";
 //BA.debugLineNum = 5072;BA.debugLine="End Sub";
return "";
}
public String  _pdfgenerar() throws Exception{
gunav2.keymon.com.mx.cpdf _pdf = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s56 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s57 = null;
double _pagina = 0;
int _multiplicador = 0;
int _i = 0;
int _e = 0;
String _subtot = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
 //BA.debugLineNum = 7130;BA.debugLine="Private Sub PDFGENERAR";
 //BA.debugLineNum = 7131;BA.debugLine="ESPACIO = 0";
_espacio = (int) (0);
 //BA.debugLineNum = 7133;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 7134;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 7135;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 7136;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 7137;BA.debugLine="Dim PDF As cPDF";
_pdf = new gunav2.keymon.com.mx.cpdf();
 //BA.debugLineNum = 7139;BA.debugLine="PDF.Initialize(\"mm\")";
_pdf._initialize /*gunav2.keymon.com.mx.cpdf*/ (ba,"mm");
 //BA.debugLineNum = 7141;BA.debugLine="PDF.sProperty(PDF.PropertyAuthor,\"Keymonsoft\"). _";
_pdf._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertyauthor /*String*/ ,"Keymonsoft")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertytitle /*String*/ ,"Ticket")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertykeywords /*String*/ ,"B4X,PDF,Cross platform");
 //BA.debugLineNum = 7148;BA.debugLine="Dim s56 As Cursor=skmt.ExecQuery2(\"select PE_PRON";
_s56 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s56 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS  PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,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[]{"PREVENTA"})));
 //BA.debugLineNum = 7149;BA.debugLine="Dim s57 As Cursor = skmt.ExecQuery2(\"select PE_PR";
_s57 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s57 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS  PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,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[]{"PREVENTA"})));
 //BA.debugLineNum = 7151;BA.debugLine="Dim pagina As Double = ((18 + (s56.RowCount*2) +";
_pagina = ((18+(_s56.getRowCount()*2)+(_s57.getRowCount()*2))*(6))+25;
 //BA.debugLineNum = 7153;BA.debugLine="Dim multiplicador As Int = 0";
_multiplicador = (int) (0);
 //BA.debugLineNum = 7154;BA.debugLine="PDF.pageAdd(-300,pagina)";
_pdf._pageadd /*gunav2.keymon.com.mx.cpdf*/ (-300,_pagina);
 //BA.debugLineNum = 7157;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBlack)";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7159;BA.debugLine="PDF.outImage(xui.DefaultFolder,\"guna-fondo.jpg\",1";
_pdf._outimage /*gunav2.keymon.com.mx.cpdf*/ (_xui.getDefaultFolder(),"guna-fondo.jpg",1,_pagina-45,45,0);
 //BA.debugLineNum = 7160;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7161;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"GUNA\")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"GUNA");
 //BA.debugLineNum = 7162;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7163;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,sDate& \" \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_sdate+" "+_stime);
 //BA.debugLineNum = 7164;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7165;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Vendedor:\"";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Vendedor:"+_subs._traeusuariodebd /*String*/ (ba));
 //BA.debugLineNum = 7166;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7167;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Tienda: \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Tienda: "+_la_nombre.getText());
 //BA.debugLineNum = 7168;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7169;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"ID.Cliente:";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"ID.Cliente: "+_la_cuenta.getText());
 //BA.debugLineNum = 7170;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7171;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Calle: \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Calle: "+_la_calle.getText());
 //BA.debugLineNum = 7172;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7173;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Colonia: \"";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Colonia: "+_la_col.getText());
 //BA.debugLineNum = 7174;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7175;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7176;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7177;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7178;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7179;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 7182;BA.debugLine="If ALMACEN = 88 Then";
if ((_almacen).equals(BA.NumberToString(88))) { 
 //BA.debugLineNum = 7184;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS  PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS  PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7185;BA.debugLine="If S.RowCount>0 Then";
if (_s.getRowCount()>0) { 
 //BA.debugLineNum = 7186;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7187;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------");
 //BA.debugLineNum = 7188;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7189;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant.";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant.                                    Precio                                    Importe");
 //BA.debugLineNum = 7190;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7191;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7192;BA.debugLine="For i=0 To S.RowCount -1";
{
final int step45 = 1;
final int limit45 = (int) (_s.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit45 ;_i = _i + step45 ) {
 //BA.debugLineNum = 7193;BA.debugLine="S.Position=i";
_s.setPosition(_i);
 //BA.debugLineNum = 7195;BA.debugLine="If s.GetDouble(\"PE_RECALCULO\") = 0 Then";
if (_s.GetDouble("PE_RECALCULO")==0) { 
 //BA.debugLineNum = 7196;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7197;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7198;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7200;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7201;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7202;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7206;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT"));
 //BA.debugLineNum = 7207;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7208;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7209;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7210;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7211;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step60 = 1;
final int limit60 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit60 ;_e = _e + step60 ) {
 //BA.debugLineNum = 7212;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7214;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7215;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7216;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT"));
 };
 }else if(_s.GetDouble("PE_CANT")==_s.GetDouble("PE_RECCANT")) { 
 //BA.debugLineNum = 7222;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7223;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7224;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7226;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7227;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7228;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7232;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOREC")+_s.GetLong("L_COSTO_TOTREC"));
 //BA.debugLineNum = 7233;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7234;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7235;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7236;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7237;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step80 = 1;
final int limit80 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit80 ;_e = _e + step80 ) {
 //BA.debugLineNum = 7238;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7240;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7241;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7242;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_RECALCULO")+_blanco+_s.GetString("PE_COSTO_TOTREC"));
 };
 }else if(_s.GetDouble("PE_CANT")!=_s.GetDouble("PE_RECCANT")) { 
 //BA.debugLineNum = 7250;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7251;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7252;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7254;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7255;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7256;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7257;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOREC")+_s.GetLong("L_COSTO_TOTREC"));
 //BA.debugLineNum = 7258;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7259;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7260;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7261;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7262;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step100 = 1;
final int limit100 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit100 ;_e = _e + step100 ) {
 //BA.debugLineNum = 7263;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7265;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7266;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7267;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_RECCANT")+_blanco+_s.GetString("PE_RECALCULO")+_blanco+__c.NumberFormat2(((double)(Double.parseDouble(_s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(_s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),__c.False));
 };
 //BA.debugLineNum = 7271;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7272;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7273;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7275;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE";
_subtot = BA.NumberToString(((double)(Double.parseDouble(_s.GetString("PE_CANT")))-(double)(Double.parseDouble(_s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_s.GetString("PE_COSTOU"))));
 //BA.debugLineNum = 7276;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7277;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7278;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7279;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOTREC"));
 //BA.debugLineNum = 7280;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7281;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7282;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7283;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7284;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step120 = 1;
final int limit120 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit120 ;_e = _e + step120 ) {
 //BA.debugLineNum = 7285;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7287;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7288;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7289;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, (s.GE";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,BA.NumberToString(((double)(Double.parseDouble(_s.GetString("PE_CANT")))-(double)(Double.parseDouble(_s.GetString("PE_RECCANT")))))+_blanco+_s.GetString("PE_COSTOU")+_blanco+__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),__c.False));
 };
 };
 }
};
 //BA.debugLineNum = 7295;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," ");
 };
 //BA.debugLineNum = 7297;BA.debugLine="s.Close";
_s.Close();
 }else {
 //BA.debugLineNum = 7300;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7301;BA.debugLine="If S.RowCount>0 Then";
if (_s.getRowCount()>0) { 
 //BA.debugLineNum = 7302;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7303;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------");
 //BA.debugLineNum = 7304;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7305;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant.";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant.                                    Precio                                    Importe");
 //BA.debugLineNum = 7306;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7307;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7308;BA.debugLine="For i=0 To S.RowCount -1";
{
final int step141 = 1;
final int limit141 = (int) (_s.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit141 ;_i = _i + step141 ) {
 //BA.debugLineNum = 7309;BA.debugLine="S.Position=i";
_s.setPosition(_i);
 //BA.debugLineNum = 7310;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7311;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7312;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7314;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBla";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7315;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7316;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7320;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT"));
 //BA.debugLineNum = 7321;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7322;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7323;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7324;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7325;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step155 = 1;
final int limit155 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit155 ;_e = _e + step155 ) {
 //BA.debugLineNum = 7326;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7328;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7329;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7330;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT"));
 };
 }
};
 //BA.debugLineNum = 7336;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," ");
 };
 //BA.debugLineNum = 7338;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 7339;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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[]{"PREVENTA"})));
 //BA.debugLineNum = 7340;BA.debugLine="If S.RowCount>0 Then";
if (_s.getRowCount()>0) { 
 //BA.debugLineNum = 7341;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7342;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------PROMOS PREVENTA-------------------------------------");
 //BA.debugLineNum = 7343;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7344;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant.";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant.                                   Precio                                    Importe");
 //BA.debugLineNum = 7345;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7346;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7347;BA.debugLine="For i=0 To S.RowCount -1";
{
final int step174 = 1;
final int limit174 = (int) (_s.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit174 ;_i = _i + step174 ) {
 //BA.debugLineNum = 7348;BA.debugLine="S.Position=i";
_s.setPosition(_i);
 //BA.debugLineNum = 7349;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7350;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7351;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7353;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBla";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7354;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7355;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7356;BA.debugLine="LogColor(s.GetLong(\"L_CANT\"),Colors.Magenta)";
__c.LogImpl("425952482",BA.NumberToString(_s.GetLong("L_CANT")),__c.Colors.Magenta);
 //BA.debugLineNum = 7357;BA.debugLine="LogColor(s.GetLong(\"L_COSTOU\"),Colors.Magent";
__c.LogImpl("425952483",BA.NumberToString(_s.GetLong("L_COSTOU")),__c.Colors.Magenta);
 //BA.debugLineNum = 7358;BA.debugLine="LogColor(s.GetLong(\"L_COSTO_TOT\"),Colors.Mag";
__c.LogImpl("425952484",BA.NumberToString(_s.GetLong("L_COSTO_TOT")),__c.Colors.Magenta);
 //BA.debugLineNum = 7359;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT"));
 //BA.debugLineNum = 7360;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7361;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7362;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7363;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7364;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step191 = 1;
final int limit191 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit191 ;_e = _e + step191 ) {
 //BA.debugLineNum = 7365;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7367;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBl";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7368;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7369;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETS";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT"));
 };
 }
};
 };
 };
 //BA.debugLineNum = 7375;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 7378;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7379;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7380;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7381;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7390;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TO";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
 //BA.debugLineNum = 7391;BA.debugLine="s.Position =0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 7392;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7393;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Subtotal p";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Subtotal preventa:   $"+_s.GetString("TOTAL"));
 //BA.debugLineNum = 7395;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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"})));
 //BA.debugLineNum = 7396;BA.debugLine="C.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 7397;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7398;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total arti";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total articulos preventa:   "+_c.GetString("PC_NOART"));
 //BA.debugLineNum = 7401;BA.debugLine="Dim s3 As Cursor =skmt.ExecQuery(\"select IFNULL(";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select IFNULL(SUM(PE_COSTO_TOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) = 0")));
 //BA.debugLineNum = 7402;BA.debugLine="s3.Position =0";
_s3.setPosition((int) (0));
 //BA.debugLineNum = 7403;BA.debugLine="S2=skmt.ExecQuery(\"select IFNULL(SUM(PE_RECALCUL";
_s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select IFNULL(SUM(PE_RECALCULOTOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) <> 0")));
 //BA.debugLineNum = 7404;BA.debugLine="S2.Position =0";
_s2.setPosition((int) (0));
 //BA.debugLineNum = 7406;BA.debugLine="If NumberFormat2((s3.GetString(\"TOTAL\") + S2.Get";
if ((__c.NumberFormat2(((double)(Double.parseDouble(_s3.GetString("TOTAL")))+(double)(Double.parseDouble(_s2.GetString("TOTAL")))),(int) (0),(int) (2),(int) (2),__c.False)).equals(_s.GetString("TOTAL")) == false) { 
 //BA.debugLineNum = 7407;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7408;BA.debugLine="Log(s.GetString(\"TOTAL\") & \"|\" & Subs.calculaTo";
__c.LogImpl("425952534",_s.GetString("TOTAL")+"|"+_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)),0);
 //BA.debugLineNum = 7409;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Descuento";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Descuento:   $"+__c.NumberFormat2((double)(Double.parseDouble(_s.GetString("TOTAL")))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False));
 };
 //BA.debugLineNum = 7412;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7414;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total Prev";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total Preventa:   $"+__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False));
 };
 //BA.debugLineNum = 7422;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7423;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7424;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7425;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------ESTE TICKET NO ES UN ---------------------------");
 //BA.debugLineNum = 7426;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7427;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-------------------COMPROBANTE FISCAL, SOLO ES--------------------");
 //BA.debugLineNum = 7428;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7429;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"---------------------------------INFORMATIVO-----------------------------------");
 //BA.debugLineNum = 7430;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7431;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7432;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7433;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7434;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7435;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7436;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7437;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7438;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7439;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7440;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7441;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7442;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7443;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7453;BA.debugLine="DateTime.DateFormat = \"ddmmyyyy\"";
__c.DateTime.setDateFormat("ddmmyyyy");
 //BA.debugLineNum = 7454;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
 //BA.debugLineNum = 7455;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 7456;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 7457;BA.debugLine="archivoTicketPDF = sDate&sTime&\".pdf\"";
_archivoticketpdf = _sdate+_stime+".pdf";
 //BA.debugLineNum = 7459;BA.debugLine="savePDF(PDF, archivoTicketPDF, PDF.CompressAlways";
_savepdf(_pdf,_archivoticketpdf,_pdf._compressalways /*int*/ );
 //BA.debugLineNum = 7462;BA.debugLine="End Sub";
return "";
}
public String  _pdfgenerar2() throws Exception{
gunav2.keymon.com.mx.cpdf _pdf = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s56 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s57 = null;
double _pagina = 0;
int _multiplicador = 0;
int _i = 0;
int _e = 0;
 //BA.debugLineNum = 7464;BA.debugLine="Private Sub PDFGENERAR2";
 //BA.debugLineNum = 7465;BA.debugLine="ESPACIO = 0";
_espacio = (int) (0);
 //BA.debugLineNum = 7466;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 7467;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 7468;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 7469;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 7470;BA.debugLine="Dim PDF As cPDF";
_pdf = new gunav2.keymon.com.mx.cpdf();
 //BA.debugLineNum = 7472;BA.debugLine="PDF.Initialize(\"mm\")";
_pdf._initialize /*gunav2.keymon.com.mx.cpdf*/ (ba,"mm");
 //BA.debugLineNum = 7474;BA.debugLine="PDF.sProperty(PDF.PropertyAuthor,\"Keymonsoft\"). _";
_pdf._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertyauthor /*String*/ ,"Keymonsoft")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertytitle /*String*/ ,"Ticket")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertykeywords /*String*/ ,"B4X,PDF,Cross platform");
 //BA.debugLineNum = 7479;BA.debugLine="Dim s56 As Cursor=skmt.ExecQuery2(\"select PE_PRON";
_s56 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s56 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7480;BA.debugLine="Dim s57 As Cursor = skmt.ExecQuery2(\"select PE_PR";
_s57 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s57 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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[]{"PREVENTA"})));
 //BA.debugLineNum = 7482;BA.debugLine="Dim pagina As Double = ((18 + (s56.RowCount*2) +";
_pagina = ((18+(_s56.getRowCount()*2)+(_s57.getRowCount()*2))*(6))+12;
 //BA.debugLineNum = 7484;BA.debugLine="Dim multiplicador As Int = 0";
_multiplicador = (int) (0);
 //BA.debugLineNum = 7485;BA.debugLine="PDF.pageAdd(-300,pagina)";
_pdf._pageadd /*gunav2.keymon.com.mx.cpdf*/ (-300,_pagina);
 //BA.debugLineNum = 7488;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBlack)";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7490;BA.debugLine="PDF.outImage(xui.DefaultFolder,\"guna-fondo.jpg\",1";
_pdf._outimage /*gunav2.keymon.com.mx.cpdf*/ (_xui.getDefaultFolder(),"guna-fondo.jpg",1,_pagina-45,45,0);
 //BA.debugLineNum = 7491;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7492;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"GUNA\")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"GUNA");
 //BA.debugLineNum = 7493;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7494;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,sDate& \" \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_sdate+" "+_stime);
 //BA.debugLineNum = 7495;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7496;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Vendedor:\"";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Vendedor:"+_subs._traeusuariodebd /*String*/ (ba));
 //BA.debugLineNum = 7497;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7498;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Tienda: \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Tienda: "+_la_nombre.getText());
 //BA.debugLineNum = 7499;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7500;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"ID.Cliente:";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"ID.Cliente: "+_la_cuenta.getText());
 //BA.debugLineNum = 7501;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7502;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Calle: \" &";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Calle: "+_la_calle.getText());
 //BA.debugLineNum = 7503;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7504;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Colonia: \"";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Colonia: "+_la_col.getText());
 //BA.debugLineNum = 7505;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7506;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7507;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7508;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7509;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7510;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 7511;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7512;BA.debugLine="If S.RowCount>0 Then";
if (_s.getRowCount()>0) { 
 //BA.debugLineNum = 7513;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7514;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------");
 //BA.debugLineNum = 7515;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7516;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant.";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant.                                    Precio                                    Importe");
 //BA.debugLineNum = 7517;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7518;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7519;BA.debugLine="For i=0 To S.RowCount -1";
{
final int step44 = 1;
final int limit44 = (int) (_s.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit44 ;_i = _i + step44 ) {
 //BA.debugLineNum = 7520;BA.debugLine="S.Position=i";
_s.setPosition(_i);
 //BA.debugLineNum = 7521;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7522;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7523;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7525;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBlac";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7526;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7527;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7531;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_C";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT"));
 //BA.debugLineNum = 7532;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7533;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7534;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7535;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7536;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step58 = 1;
final int limit58 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit58 ;_e = _e + step58 ) {
 //BA.debugLineNum = 7537;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7539;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBla";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7540;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7541;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETST";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT"));
 };
 }
};
 //BA.debugLineNum = 7547;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," ");
 };
 //BA.debugLineNum = 7549;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 7550;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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[]{"PREVENTA"})));
 //BA.debugLineNum = 7551;BA.debugLine="If S.RowCount>0 Then";
if (_s.getRowCount()>0) { 
 //BA.debugLineNum = 7552;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7553;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------PROMOS PREVENTA-------------------------------------");
 //BA.debugLineNum = 7554;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7555;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant.";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant.                                   Precio                                    Importe");
 //BA.debugLineNum = 7556;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7557;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7558;BA.debugLine="For i=0 To S.RowCount -1";
{
final int step77 = 1;
final int limit77 = (int) (_s.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit77 ;_i = _i + step77 ) {
 //BA.debugLineNum = 7559;BA.debugLine="S.Position=i";
_s.setPosition(_i);
 //BA.debugLineNum = 7560;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { 
 //BA.debugLineNum = 7561;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7562;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 }else {
 //BA.debugLineNum = 7564;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBlac";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7565;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7566;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE"));
 //BA.debugLineNum = 7567;BA.debugLine="LogColor(s.GetLong(\"L_CANT\"),Colors.Magenta)";
__c.LogImpl("426017895",BA.NumberToString(_s.GetLong("L_CANT")),__c.Colors.Magenta);
 //BA.debugLineNum = 7568;BA.debugLine="LogColor(s.GetLong(\"L_COSTOU\"),Colors.Magenta";
__c.LogImpl("426017896",BA.NumberToString(_s.GetLong("L_COSTOU")),__c.Colors.Magenta);
 //BA.debugLineNum = 7569;BA.debugLine="LogColor(s.GetLong(\"L_COSTO_TOT\"),Colors.Mage";
__c.LogImpl("426017897",BA.NumberToString(_s.GetLong("L_COSTO_TOT")),__c.Colors.Magenta);
 //BA.debugLineNum = 7570;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_C";
_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT"));
 //BA.debugLineNum = 7571;BA.debugLine="ESPACIO = 92";
_espacio = (int) (92);
 //BA.debugLineNum = 7572;BA.debugLine="BLANCO = \" \"";
_blanco = " ";
 //BA.debugLineNum = 7573;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
_espacio = (int) (_espacio-_tamano);
 //BA.debugLineNum = 7574;BA.debugLine="ESPACIO = ESPACIO / 2";
_espacio = (int) (_espacio/(double)2);
 //BA.debugLineNum = 7575;BA.debugLine="For E=0 To ESPACIO -1";
{
final int step94 = 1;
final int limit94 = (int) (_espacio-1);
_e = (int) (0) ;
for (;_e <= limit94 ;_e = _e + step94 ) {
 //BA.debugLineNum = 7576;BA.debugLine="BLANCO = \" \" & BLANCO";
_blanco = " "+_blanco;
 }
};
 //BA.debugLineNum = 7578;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBla";
_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ );
 //BA.debugLineNum = 7579;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7580;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETST";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT"));
 };
 }
};
 };
 //BA.debugLineNum = 7584;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 7587;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7588;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7589;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7590;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7591;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) AS T";
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?",new String[]{"PREVENTA"})));
 //BA.debugLineNum = 7592;BA.debugLine="s.Position =0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 7595;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7596;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Descuento:";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Descuento:   $"+BA.NumberToString(150));
 //BA.debugLineNum = 7597;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7598;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total prev";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total preventa:   $"+BA.NumberToString(((double)(Double.parseDouble(_s.GetString("TOTAL")))-150)));
 //BA.debugLineNum = 7599;BA.debugLine="s.Close";
_s.Close();
 //BA.debugLineNum = 7600;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.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"})));
 //BA.debugLineNum = 7601;BA.debugLine="C.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 7602;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7603;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total arti";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total articulos preventa:   "+_c.GetString("PC_NOART"));
 //BA.debugLineNum = 7604;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 7608;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7609;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7610;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7611;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------ESTE TICKET NO ES UN ---------------------------");
 //BA.debugLineNum = 7612;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7613;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-------------------COMPROBANTE FISCAL, SOLO ES--------------------");
 //BA.debugLineNum = 7614;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7615;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"---------------------------------INFORMATIVO-----------------------------------");
 //BA.debugLineNum = 7616;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7617;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7618;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7619;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7620;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7621;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7622;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7623;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7624;BA.debugLine="multiplicador = multiplicador +1";
_multiplicador = (int) (_multiplicador+1);
 //BA.debugLineNum = 7625;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," ");
 //BA.debugLineNum = 7627;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------";
_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------");
 //BA.debugLineNum = 7635;BA.debugLine="DateTime.DateFormat = \"ddmmyyyy\"";
__c.DateTime.setDateFormat("ddmmyyyy");
 //BA.debugLineNum = 7636;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
 //BA.debugLineNum = 7637;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 7638;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 7639;BA.debugLine="archivoTicketPDF = sDate&sTime&\".pdf\"";
_archivoticketpdf = _sdate+_stime+".pdf";
 //BA.debugLineNum = 7641;BA.debugLine="savePDF(PDF, archivoTicketPDF, PDF.CompressAlways";
_savepdf(_pdf,_archivoticketpdf,_pdf._compressalways /*int*/ );
 //BA.debugLineNum = 7644;BA.debugLine="End Sub";
return "";
}
public String  _pnlplanlealtad_click() throws Exception{
 //BA.debugLineNum = 8181;BA.debugLine="Private Sub pnlPlanLealtad_Click";
 //BA.debugLineNum = 8183;BA.debugLine="End Sub";
return "";
}
public String  _printer_connected(boolean _success) throws Exception{
 //BA.debugLineNum = 4897;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
 //BA.debugLineNum = 4898;BA.debugLine="If Success Then";
if (_success) { 
 }else {
 //BA.debugLineNum = 4903;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) { 
 //BA.debugLineNum = 4904;BA.debugLine="StartPrinter";
_startprinter();
 };
 };
 //BA.debugLineNum = 4907;BA.debugLine="End Sub";
return "";
}
public String  _printer1_connected(boolean _success) throws Exception{
 //BA.debugLineNum = 4872;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
 //BA.debugLineNum = 4874;BA.debugLine="If Success Then";
if (_success) { 
 //BA.debugLineNum = 4875;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
 //BA.debugLineNum = 4876;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")}));
 //BA.debugLineNum = 4877;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*/ )}));
 //BA.debugLineNum = 4880;BA.debugLine="impresoraConectada = True";
_impresoraconectada = __c.True;
 }else {
 //BA.debugLineNum = 4884;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("418087948","Error conectando la impresora",__c.Colors.Red);
 //BA.debugLineNum = 4885;BA.debugLine="errorImpresora = errorImpresora + 1";
_errorimpresora = (int) (_errorimpresora+1);
 //BA.debugLineNum = 4886;BA.debugLine="If errorImpresora > 1 Then";
if (_errorimpresora>1) { 
 //BA.debugLineNum = 4887;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
_starter._mac_impresora /*String*/  = "0";
 //BA.debugLineNum = 4888;BA.debugLine="errorImpresora = 0";
_errorimpresora = (int) (0);
 };
 };
 //BA.debugLineNum = 4891;BA.debugLine="End Sub";
return "";
}
public String  _printer1_error() throws Exception{
 //BA.debugLineNum = 4893;BA.debugLine="Sub Printer1_Error";
 //BA.debugLineNum = 4894;BA.debugLine="Log(\"error printer\")";
__c.LogImpl("418153473","error printer",0);
 //BA.debugLineNum = 4895;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5130;BA.debugLine="Private Sub RadioButton1_CheckedChange(Checked As";
 //BA.debugLineNum = 5131;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5132;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419464194",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5133;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton10_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5182;BA.debugLine="Private Sub RadioButton10_CheckedChange(Checked As";
 //BA.debugLineNum = 5183;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5184;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420054018",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5185;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton11_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5187;BA.debugLine="Private Sub RadioButton11_CheckedChange(Checked As";
 //BA.debugLineNum = 5188;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5189;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420119554",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5190;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton12_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5192;BA.debugLine="Private Sub RadioButton12_CheckedChange(Checked As";
 //BA.debugLineNum = 5193;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5194;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420185090",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5195;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton13_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5197;BA.debugLine="Private Sub RadioButton13_CheckedChange(Checked As";
 //BA.debugLineNum = 5198;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5199;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420250626",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5200;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton14_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5202;BA.debugLine="Private Sub RadioButton14_CheckedChange(Checked As";
 //BA.debugLineNum = 5203;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5204;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("420316162",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5205;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton15_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5122;BA.debugLine="Private Sub RadioButton15_CheckedChange(Checked As";
 //BA.debugLineNum = 5123;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5124;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419398658",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5125;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton16_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5117;BA.debugLine="Private Sub RadioButton16_CheckedChange(Checked As";
 //BA.debugLineNum = 5118;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5119;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419333122",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5120;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton17_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5112;BA.debugLine="Private Sub RadioButton17_CheckedChange(Checked As";
 //BA.debugLineNum = 5113;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5114;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419267586",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5115;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5135;BA.debugLine="Private Sub RadioButton2_CheckedChange(Checked As";
 //BA.debugLineNum = 5136;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5137;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419529730",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5138;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5140;BA.debugLine="Private Sub RadioButton3_CheckedChange(Checked As";
 //BA.debugLineNum = 5141;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5142;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419595266",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5143;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton4_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5145;BA.debugLine="Private Sub RadioButton4_CheckedChange(Checked As";
 //BA.debugLineNum = 5146;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5147;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419660802",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5148;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton5_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5153;BA.debugLine="Private Sub RadioButton5_CheckedChange(Checked As";
 //BA.debugLineNum = 5154;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5155;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419726338",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5156;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton6_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5158;BA.debugLine="Private Sub RadioButton6_CheckedChange(Checked As";
 //BA.debugLineNum = 5159;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5160;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419791874",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5161;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton7_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5163;BA.debugLine="Private Sub RadioButton7_CheckedChange(Checked As";
 //BA.debugLineNum = 5164;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5165;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419857410",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5166;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton8_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5168;BA.debugLine="Private Sub RadioButton8_CheckedChange(Checked As";
 //BA.debugLineNum = 5169;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5170;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419922946",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5171;BA.debugLine="End Sub";
return "";
}
public String  _radiobutton9_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5173;BA.debugLine="Private Sub RadioButton9_CheckedChange(Checked As";
 //BA.debugLineNum = 5174;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5175;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419988482",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5176;BA.debugLine="End Sub";
return "";
}
public String  _rb1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5023;BA.debugLine="Sub RB1_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 5024;BA.debugLine="If RB1.Checked = True Then";
if (_rb1.getChecked()==__c.True) { 
 //BA.debugLineNum = 5025;BA.debugLine="E_RES_E.Text = \"CENTRAL DE ABASTOS\"";
_e_res_e.setText(BA.ObjectToCharSequence("CENTRAL DE ABASTOS"));
 };
 //BA.debugLineNum = 5027;BA.debugLine="End Sub";
return "";
}
public String  _rb1_e1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5076;BA.debugLine="Private Sub RB1_E1_CheckedChange(Checked As Boolea";
 //BA.debugLineNum = 5077;BA.debugLine="Log($\"RB1 Clicked - chk:${Sender.As(RadioButton).";
__c.LogImpl("419070977",("RB1 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0);
 //BA.debugLineNum = 5078;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5079;BA.debugLine="encuentasmapa.Remove(\"P2\")";
_encuentasmapa.Remove((Object)("P2"));
 //BA.debugLineNum = 5080;BA.debugLine="Panel7.Visible = False";
_panel7.setVisible(__c.False);
 //BA.debugLineNum = 5081;BA.debugLine="RadioButton17.Checked = False";
_radiobutton17.setChecked(__c.False);
 //BA.debugLineNum = 5082;BA.debugLine="RadioButton16.Checked = False";
_radiobutton16.setChecked(__c.False);
 //BA.debugLineNum = 5083;BA.debugLine="RadioButton15.Checked = False";
_radiobutton15.setChecked(__c.False);
 //BA.debugLineNum = 5084;BA.debugLine="encuentasmapa.Remove(\"P2\")";
_encuentasmapa.Remove((Object)("P2"));
 //BA.debugLineNum = 5085;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419070985",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5086;BA.debugLine="End Sub";
return "";
}
public String  _rb1_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5956;BA.debugLine="Private Sub RB1_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5957;BA.debugLine="If RB1_P4_M2.Checked = True Then";
if (_rb1_p4_m2.getChecked()==__c.True) { 
 //BA.debugLineNum = 5958;BA.debugLine="Panel7_M2.Visible = True";
_panel7_m2.setVisible(__c.True);
 //BA.debugLineNum = 5959;BA.debugLine="panel7_p4_m2.Visible = True";
_panel7_p4_m2.setVisible(__c.True);
 }else {
 //BA.debugLineNum = 5961;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 //BA.debugLineNum = 5962;BA.debugLine="panel7_p4_m2.Visible = False";
_panel7_p4_m2.setVisible(__c.False);
 };
 //BA.debugLineNum = 5965;BA.debugLine="End Sub";
return "";
}
public String  _rb2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5029;BA.debugLine="Sub RB2_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 5030;BA.debugLine="If RB2.Checked = True Then";
if (_rb2.getChecked()==__c.True) { 
 //BA.debugLineNum = 5031;BA.debugLine="E_RES_E.Text = \"AUTOSERVICIO\"";
_e_res_e.setText(BA.ObjectToCharSequence("AUTOSERVICIO"));
 };
 //BA.debugLineNum = 5033;BA.debugLine="End Sub";
return "";
}
public String  _rb2_e1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5088;BA.debugLine="Private Sub RB2_E1_CheckedChange(Checked As Boolea";
 //BA.debugLineNum = 5089;BA.debugLine="Log($\"RB2 Clicked - chk:${Sender.As(RadioButton).";
__c.LogImpl("419136513",("RB2 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0);
 //BA.debugLineNum = 5090;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5091;BA.debugLine="RadioButton17.Checked = False";
_radiobutton17.setChecked(__c.False);
 //BA.debugLineNum = 5092;BA.debugLine="encuentasmapa.Remove(\"P2\")";
_encuentasmapa.Remove((Object)("P2"));
 //BA.debugLineNum = 5093;BA.debugLine="RadioButton17.Checked = False";
_radiobutton17.setChecked(__c.False);
 //BA.debugLineNum = 5094;BA.debugLine="RadioButton16.Checked = False";
_radiobutton16.setChecked(__c.False);
 //BA.debugLineNum = 5095;BA.debugLine="RadioButton15.Checked = False";
_radiobutton15.setChecked(__c.False);
 //BA.debugLineNum = 5096;BA.debugLine="Panel7.Visible = False";
_panel7.setVisible(__c.False);
 //BA.debugLineNum = 5097;BA.debugLine="encuentasmapa.Remove(\"P2\")";
_encuentasmapa.Remove((Object)("P2"));
 //BA.debugLineNum = 5098;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419136522",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5099;BA.debugLine="End Sub";
return "";
}
public String  _rb2_p4_m2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5967;BA.debugLine="Private Sub RB2_P4_M2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 5968;BA.debugLine="If RB2_P4_M2.Checked = True Then";
if (_rb2_p4_m2.getChecked()==__c.True) { 
 //BA.debugLineNum = 5969;BA.debugLine="Panel7_M2.Visible = False";
_panel7_m2.setVisible(__c.False);
 //BA.debugLineNum = 5970;BA.debugLine="panel7_p4_m2.Visible = False";
_panel7_p4_m2.setVisible(__c.False);
 //BA.debugLineNum = 5971;BA.debugLine="RB1_P3_M2.Checked = False";
_rb1_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5972;BA.debugLine="RB2_P3_M2.Checked = False";
_rb2_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5973;BA.debugLine="RB3_P3_M2.Checked = False";
_rb3_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5974;BA.debugLine="RB4_P3_M2.Checked = False";
_rb4_p3_m2.setChecked(__c.False);
 //BA.debugLineNum = 5975;BA.debugLine="ET_P3_M2.Text = \"\"";
_et_p3_m2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 5976;BA.debugLine="CB1_P4_M2.Checked = False";
_cb1_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5977;BA.debugLine="CB2_P4_M2.Checked = False";
_cb2_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5978;BA.debugLine="CB3_P4_M2.Checked = False";
_cb3_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5979;BA.debugLine="CB4_P4_M2.Checked = False";
_cb4_p4_m2.setChecked(__c.False);
 //BA.debugLineNum = 5980;BA.debugLine="textemp3 = \"\"";
_textemp3 = "";
 }else {
 //BA.debugLineNum = 5982;BA.debugLine="Panel7_M2.Visible = True";
_panel7_m2.setVisible(__c.True);
 //BA.debugLineNum = 5983;BA.debugLine="panel7_p4_m2.Visible = True";
_panel7_p4_m2.setVisible(__c.True);
 };
 //BA.debugLineNum = 5986;BA.debugLine="End Sub";
return "";
}
public String  _rb3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5035;BA.debugLine="Sub RB3_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 5036;BA.debugLine="If RB3.Checked = True Then";
if (_rb3.getChecked()==__c.True) { 
 //BA.debugLineNum = 5037;BA.debugLine="E_RES_E.Text = \"CLUB DE PRECIO\"";
_e_res_e.setText(BA.ObjectToCharSequence("CLUB DE PRECIO"));
 };
 //BA.debugLineNum = 5039;BA.debugLine="End Sub";
return "";
}
public String  _rb3_e1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5101;BA.debugLine="Private Sub RB3_E1_CheckedChange(Checked As Boolea";
 //BA.debugLineNum = 5102;BA.debugLine="Log($\"RB3 Clicked - chk:${Sender.As(RadioButton).";
__c.LogImpl("419202049",("RB3 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0);
 //BA.debugLineNum = 5103;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te";
_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()));
 //BA.debugLineNum = 5105;BA.debugLine="Panel7.Visible = True";
_panel7.setVisible(__c.True);
 //BA.debugLineNum = 5106;BA.debugLine="Log(encuentasmapa)";
__c.LogImpl("419202053",BA.ObjectToString(_encuentasmapa),0);
 //BA.debugLineNum = 5107;BA.debugLine="End Sub";
return "";
}
public String  _rb4_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 5041;BA.debugLine="Sub RB4_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 5042;BA.debugLine="If RB4.Checked = True Then";
if (_rb4.getChecked()==__c.True) { 
 //BA.debugLineNum = 5043;BA.debugLine="E_RES_E.Text = \"DIRECTO PEDEGREE\"";
_e_res_e.setText(BA.ObjectToCharSequence("DIRECTO PEDEGREE"));
 };
 //BA.debugLineNum = 5045;BA.debugLine="End Sub";
return "";
}
public String  _recalculoxcant() throws Exception{
int _promespdes = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel = null;
int _hjh = 0;
float _recalculo = 0f;
float _recalculototal = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel2 = null;
 //BA.debugLineNum = 1421;BA.debugLine="Sub recalculoXcant";
 //BA.debugLineNum = 1423;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_DESC = '0' ",new String[]{_subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 1424;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1425;BA.debugLine="For promespdes = 0 To c.RowCount -1";
{
final int step3 = 1;
final int limit3 = (int) (_c.getRowCount()-1);
_promespdes = (int) (0) ;
for (;_promespdes <= limit3 ;_promespdes = _promespdes + step3 ) {
 //BA.debugLineNum = 1426;BA.debugLine="c.Position = promespdes";
_c.setPosition(_promespdes);
 //BA.debugLineNum = 1427;BA.debugLine="Dim rangosel As Cursor= B4XPages.MainPage.skmt.";
_rangosel = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rangosel = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? AND CAT_PD_RANGO <= ? AND CAT_PD_RANGO2 >= ?",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT")),BA.NumberToString(_c.GetInt("PE_CANT"))})));
 //BA.debugLineNum = 1428;BA.debugLine="If rangosel.RowCount > 0 Then";
if (_rangosel.getRowCount()>0) { 
 //BA.debugLineNum = 1429;BA.debugLine="For hjh = 0 To rangosel.RowCount-1";
{
final int step7 = 1;
final int limit7 = (int) (_rangosel.getRowCount()-1);
_hjh = (int) (0) ;
for (;_hjh <= limit7 ;_hjh = _hjh + step7 ) {
 //BA.debugLineNum = 1430;BA.debugLine="rangosel.Position = hjh";
_rangosel.setPosition(_hjh);
 //BA.debugLineNum = 1431;BA.debugLine="If rangosel.GetString(\"CAT_PD_TIER\").Contains";
if (_rangosel.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
 //BA.debugLineNum = 1432;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("414352395",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 1433;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("414352396",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 1434;BA.debugLine="Private recalculo As Float = c.GetString(\"PE";
_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
 //BA.debugLineNum = 1435;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("414352398",BA.NumberToString(_recalculo),__c.Colors.Blue);
 //BA.debugLineNum = 1436;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("414352399",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 1437;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\")";
__c.LogImpl("414352400",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 1438;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("414352401",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 1439;BA.debugLine="Private recalculototal As Float =c.GetString";
_recalculototal = (float) ((double)(Double.parseDouble(_c.GetString("PE_CANT")))*_recalculo);
 //BA.debugLineNum = 1440;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_REC";
_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = PE_CANT WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? and PE_FOLIO = ? AND IFNULL(PE_DESC,0) = 0",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel.GetString("CAT_PD_COD_PROMO"),_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 }
};
 }else {
 //BA.debugLineNum = 1444;BA.debugLine="Dim rangosel2 As Cursor= B4XPages.MainPage.skm";
_rangosel2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rangosel2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? and ? > cat_pd_rango2",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT"))})));
 //BA.debugLineNum = 1446;BA.debugLine="If rangosel2.RowCount > 0 Then";
if (_rangosel2.getRowCount()>0) { 
 //BA.debugLineNum = 1448;BA.debugLine="For hjh = 0 To rangosel2.RowCount-1";
{
final int step24 = 1;
final int limit24 = (int) (_rangosel2.getRowCount()-1);
_hjh = (int) (0) ;
for (;_hjh <= limit24 ;_hjh = _hjh + step24 ) {
 //BA.debugLineNum = 1449;BA.debugLine="rangosel2.Position = hjh";
_rangosel2.setPosition(_hjh);
 //BA.debugLineNum = 1450;BA.debugLine="If rangosel2.GetString(\"CAT_PD_TIER\").Contai";
if (_rangosel2.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
 //BA.debugLineNum = 1451;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("414352414",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 1452;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("414352415",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 1453;BA.debugLine="Private recalculo As Float = c.GetString(\"P";
_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
 //BA.debugLineNum = 1454;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("414352417",BA.NumberToString(_recalculo),__c.Colors.Blue);
 //BA.debugLineNum = 1455;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("414352418",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 1456;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\"";
__c.LogImpl("414352419",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 1457;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("414352420",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 1458;BA.debugLine="Private recalculototal As Float = rangosel2";
_recalculototal = (float) ((double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_RANGO2")))*_recalculo);
 //BA.debugLineNum = 1461;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RE";
_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel2.GetString("CAT_PD_COD_PROMO"),_rangosel2.GetString("CAT_PD_RANGO2"),_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 }
};
 }else {
 //BA.debugLineNum = 1465;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RECA";
_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_FOLIO = ? AND IFNULL(PE_DESC,0) = 0",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 //BA.debugLineNum = 1467;BA.debugLine="rangosel2.Close";
_rangosel2.Close();
 };
 //BA.debugLineNum = 1469;BA.debugLine="rangosel.Close";
_rangosel.Close();
 }
};
 };
 //BA.debugLineNum = 1473;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_DESC = '1' ",new String[]{_subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 1474;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1475;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RECALCU";
_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_DESC = '1'",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_subs._traealmacen /*String*/ (ba)}));
 };
 //BA.debugLineNum = 1477;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RECALCUL";
_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_subs._traealmacen /*String*/ (ba)}));
 //BA.debugLineNum = 1478;BA.debugLine="End Sub";
return "";
}
public String  _revisargeocerca() throws Exception{
 //BA.debugLineNum = 1493;BA.debugLine="Private Sub RevisarGeocerca";
 //BA.debugLineNum = 1496;BA.debugLine="Log(distancealm)";
__c.LogImpl("414483459",BA.NumberToString(_distancealm),0);
 //BA.debugLineNum = 1497;BA.debugLine="Log(distance)";
__c.LogImpl("414483460",BA.NumberToString(_distance),0);
 //BA.debugLineNum = 1499;BA.debugLine="If distancealm > 0  Or distance > 50 Then";
if (_distancealm>0 || _distance>50) { 
 //BA.debugLineNum = 1500;BA.debugLine="If distancealm < 100 Or distance < 50 Then";
if (_distancealm<100 || _distance<50) { 
 //BA.debugLineNum = 1501;BA.debugLine="HabilitarBotones(True)";
_habilitarbotones(__c.True);
 }else {
 //BA.debugLineNum = 1503;BA.debugLine="HabilitarBotones(True)";
_habilitarbotones(__c.True);
 };
 };
 //BA.debugLineNum = 1506;BA.debugLine="End Sub";
return "";
}
public String  _savepdf(gunav2.keymon.com.mx.cpdf _apdf,String _afile,int _acompress) throws Exception{
String _folder = "";
 //BA.debugLineNum = 7646;BA.debugLine="private Sub savePDF(apdf As cPDF,afile As String,a";
 //BA.debugLineNum = 7647;BA.debugLine="Dim folder As String";
_folder = "";
 //BA.debugLineNum = 7652;BA.debugLine="folder = Starter.fFileProvider.SharedFolder";
_folder = _starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ;
 //BA.debugLineNum = 7659;BA.debugLine="apdf.saveToFile(folder, afile, acompress)";
_apdf._savetofile /*gunav2.keymon.com.mx.cpdf*/ (_folder,_afile,_acompress);
 //BA.debugLineNum = 7660;BA.debugLine="End Sub";
return "";
}
public void  _sc_result(String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{
ResumableSub_sc_result rsub = new ResumableSub_sc_result(this,_atype,_values,_image);
rsub.resume(ba, null);
}
public static class ResumableSub_sc_result extends BA.ResumableSub {
public ResumableSub_sc_result(gunav2.keymon.com.mx.c_cliente parent,String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) {
this.parent = parent;
this._atype = _atype;
this._values = _values;
this._image = _image;
}
gunav2.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{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 3400;BA.debugLine="CODIGO = Values";
parent._codigo = _values;
 //BA.debugLineNum = 3401;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM kmt_info3 WHERE CAT_CL_NUM_SERIEFISICO = ?",new String[]{parent._codigo})));
 //BA.debugLineNum = 3402;BA.debugLine="DD.Position =0";
parent._dd.setPosition((int) (0));
 //BA.debugLineNum = 3403;BA.debugLine="If DD.GetString(\"CUANTOS\") > 0 Then";
if (true) break;

case 1:
//if
this.state = 16;
if ((double)(Double.parseDouble(parent._dd.GetString("CUANTOS")))>0) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 16;
 //BA.debugLineNum = 3404;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;
 //BA.debugLineNum = 3406;BA.debugLine="If CODIGO.Length = 7 Then";
if (true) break;

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

case 8:
//C
this.state = 9;
 //BA.debugLineNum = 3407;BA.debugLine="Msgbox2Async(\"El código \"& CODIGO & \" es correc";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El código "+parent._codigo+" 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);
 //BA.debugLineNum = 3408;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 17;
return;
case 17:
//C
this.state = 9;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 3409;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;
 //BA.debugLineNum = 3410;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE k";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 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)(parent._codigo),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )}));
 //BA.debugLineNum = 3411;BA.debugLine="L_QR.TEXT =CODIGO";
parent._l_qr.setText(BA.ObjectToCharSequence(parent._codigo));
 //BA.debugLineNum = 3412;BA.debugLine="L_QR.TextColor = Colors.Blue";
parent._l_qr.setTextColor(parent.__c.Colors.Blue);
 //BA.debugLineNum = 3413;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i";
parent._b4xpages._mainpage /*gunav2.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)(parent._la_cuenta.getText()),(Object)(parent._codigo),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.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;
 //BA.debugLineNum = 3416;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;
;
 //BA.debugLineNum = 3419;BA.debugLine="DD.Close";
parent._dd.Close();
 //BA.debugLineNum = 3420;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _sc_timedout(boolean _timedout) throws Exception{
 //BA.debugLineNum = 3422;BA.debugLine="Sub sc_timedout(timedOut As Boolean)";
 //BA.debugLineNum = 3423;BA.debugLine="Log(\"timedOut \" & timedOut)";
__c.LogImpl("417301505","timedOut "+BA.ObjectToString(_timedout),0);
 //BA.debugLineNum = 3424;BA.debugLine="End Sub";
return "";
}
public String  _sc_usercancelled(boolean _usercancelled) throws Exception{
 //BA.debugLineNum = 3426;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)";
 //BA.debugLineNum = 3427;BA.debugLine="Log(\"userCancelled \" & userCancelled)";
__c.LogImpl("417367041","userCancelled "+BA.ObjectToString(_usercancelled),0);
 //BA.debugLineNum = 3428;BA.debugLine="End Sub";
return "";
}
public String  _startprinter() throws Exception{
anywheresoftware.b4a.objects.collections.List _l1 = null;
int _resimp = 0;
int _i = 0;
 //BA.debugLineNum = 4909;BA.debugLine="Sub StartPrinter";
 //BA.debugLineNum = 4910;BA.debugLine="Dim PairedDevices As Map";
_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
 //BA.debugLineNum = 4911;BA.debugLine="Dim L1 As List";
_l1 = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 4912;BA.debugLine="Dim resimp As Int";
_resimp = 0;
 //BA.debugLineNum = 4913;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
 //BA.debugLineNum = 4914;BA.debugLine="PairedDevices.Initialize";
_paireddevices.Initialize();
 //BA.debugLineNum = 4915;BA.debugLine="Try";
try { //BA.debugLineNum = 4916;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
_paireddevices = _cmp20.GetPairedDevices();
 } 
       catch (Exception e9) {
			ba.setLastException(e9); //BA.debugLineNum = 4918;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
 //BA.debugLineNum = 4919;BA.debugLine="printer.Close";
_printer.Close();
 //BA.debugLineNum = 4920;BA.debugLine="cmp20.Disconnect";
_cmp20.Disconnect();
 };
 //BA.debugLineNum = 4923;BA.debugLine="If PairedDevices.Size = 0 Then";
if (_paireddevices.getSize()==0) { 
 //BA.debugLineNum = 4924;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
__c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba);
 //BA.debugLineNum = 4925;BA.debugLine="Return";
if (true) return "";
 };
 //BA.debugLineNum = 4928;BA.debugLine="If PairedDevices.Size = 1 Then";
if (_paireddevices.getSize()==1) { 
 //BA.debugLineNum = 4929;BA.debugLine="Try";
try { //BA.debugLineNum = 4930;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0)))));
 } 
       catch (Exception e21) {
			ba.setLastException(e21); //BA.debugLineNum = 4932;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
 //BA.debugLineNum = 4933;BA.debugLine="printer.Close";
_printer.Close();
 //BA.debugLineNum = 4934;BA.debugLine="cmp20.Disconnect";
_cmp20.Disconnect();
 };
 }else {
 //BA.debugLineNum = 4937;BA.debugLine="L1.Initialize";
_l1.Initialize();
 //BA.debugLineNum = 4938;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
{
final int step27 = 1;
final int limit27 = (int) (_paireddevices.getSize()-1);
_i = (int) (0) ;
for (;_i <= limit27 ;_i = _i + step27 ) {
 //BA.debugLineNum = 4939;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
_l1.Add(_paireddevices.GetKeyAt(_i));
 }
};
 //BA.debugLineNum = 4941;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
 //BA.debugLineNum = 4942;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
if (_resimp!=__c.DialogResponse.CANCEL) { 
 //BA.debugLineNum = 4943;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp))));
 };
 };
 //BA.debugLineNum = 4946;BA.debugLine="End Sub";
return "";
}
public String  _stopcamera2() throws Exception{
 //BA.debugLineNum = 8170;BA.debugLine="Private Sub StopCamera2";
 //BA.debugLineNum = 8172;BA.debugLine="If camEx.IsInitialized Then";
if (_camex.IsInitialized /*boolean*/ ()) { 
 //BA.debugLineNum = 8173;BA.debugLine="camEx.Release";
_camex._release /*String*/ ();
 };
 //BA.debugLineNum = 8175;BA.debugLine="End Sub";
return "";
}
public String  _tar_click() throws Exception{
 //BA.debugLineNum = 3275;BA.debugLine="Sub Tar_Click";
 //BA.debugLineNum = 3276;BA.debugLine="B4XPages.ShowPage(\"Nota\")";
_b4xpages._showpage /*String*/ (ba,"Nota");
 //BA.debugLineNum = 3277;BA.debugLine="End Sub";
return "";
}
public String  _tels_click() throws Exception{
 //BA.debugLineNum = 3238;BA.debugLine="Sub Tels_Click";
 //BA.debugLineNum = 3239;BA.debugLine="B4XPages.ShowPage(\"NoVenta\")";
_b4xpages._showpage /*String*/ (ba,"NoVenta");
 //BA.debugLineNum = 3240;BA.debugLine="End Sub";
return "";
}
public void  _vent() throws Exception{
ResumableSub_vent rsub = new ResumableSub_vent(this);
rsub.resume(ba, null);
}
public static class ResumableSub_vent extends BA.ResumableSub {
public ResumableSub_vent(gunav2.keymon.com.mx.c_cliente parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_cliente parent;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null;
String _fechainicio = "";
long _ticksinicio = 0L;
long _tickshoy = 0L;
int _diferenciadias = 0;
int _resultado = 0;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 2388;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt.";
_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 //BA.debugLineNum = 2389;BA.debugLine="If pagarepen.RowCount > 0 Then";
if (true) break;

case 1:
//if
this.state = 32;
if (_pagarepen.getRowCount()>0) { 
this.state = 3;
}else {
this.state = 31;
}if (true) break;

case 3:
//C
this.state = 4;
 //BA.debugLineNum = 2390;BA.debugLine="pagarepen.Position = 0";
_pagarepen.setPosition((int) (0));
 //BA.debugLineNum = 2391;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 2392;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString(";
_fechainicio = _pagarepen.GetString("FECHA");
 //BA.debugLineNum = 2394;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))";
parent.__c.LogImpl("415204360",_pagarepen.GetString("FECHA"),0);
 //BA.debugLineNum = 2397;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec";
_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio);
 //BA.debugLineNum = 2398;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi";
_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()));
 //BA.debugLineNum = 2401;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni";
_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay);
 //BA.debugLineNum = 2404;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)";
parent.__c.LogImpl("415204370",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0);
 //BA.debugLineNum = 2406;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
 //BA.debugLineNum = 2407;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 2409;BA.debugLine="If ALMACEN = 81 Or ALMACEN = 94 Then";
if (true) break;

case 4:
//if
this.state = 29;
if ((parent._almacen).equals(BA.NumberToString(81)) || (parent._almacen).equals(BA.NumberToString(94))) { 
this.state = 6;
}else {
this.state = 18;
}if (true) break;

case 6:
//C
this.state = 7;
 //BA.debugLineNum = 2410;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDI";
if (true) break;

case 7:
//if
this.state = 16;
if (_diferenciadias<=parent._c.GetInt("CAT_CL_DIASCREDITO")+8) { 
this.state = 9;
}else if(_diferenciadias>parent._c.GetInt("CAT_CL_DIASCREDITO")+8) { 
this.state = 15;
}if (true) break;

case 9:
//C
this.state = 10;
 //BA.debugLineNum = 2412;BA.debugLine="Msgbox2Async($\"Favor de pagar su credito el dí";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Favor de pagar su credito el día de mañana por un monto  de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Recordatorio"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 2413;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 33;
return;
case 33:
//C
this.state = 10;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 2414;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

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

case 12:
//C
this.state = 13;
 //BA.debugLineNum = 2415;BA.debugLine="gestionar";
parent._gestionar();
 if (true) break;

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

case 15:
//C
this.state = 16;
 //BA.debugLineNum = 2418;BA.debugLine="MsgboxAsync($\"No se puede realizar venta por q";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("No se puede realizar venta por que presenta "+parent.__c.SmartStringFormatter("",(Object)((_diferenciadias-(parent._c.GetInt("CAT_CL_DIASCREDITO")+1))))+" días de atraso en el credito, por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

case 18:
//C
this.state = 19;
 //BA.debugLineNum = 2421;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDI";
if (true) break;

case 19:
//if
this.state = 28;
if (_diferenciadias<=parent._c.GetInt("CAT_CL_DIASCREDITO")+1) { 
this.state = 21;
}else if(_diferenciadias>parent._c.GetInt("CAT_CL_DIASCREDITO")+8) { 
this.state = 27;
}if (true) break;

case 21:
//C
this.state = 22;
 //BA.debugLineNum = 2423;BA.debugLine="Msgbox2Async($\"Favor de pagar su credito el dí";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Favor de pagar su credito el día de mañana por un monto  de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Recordatorio"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
 //BA.debugLineNum = 2424;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 34;
return;
case 34:
//C
this.state = 22;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 2425;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

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

case 24:
//C
this.state = 25;
 //BA.debugLineNum = 2426;BA.debugLine="gestionar";
parent._gestionar();
 if (true) break;

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

case 27:
//C
this.state = 28;
 //BA.debugLineNum = 2429;BA.debugLine="MsgboxAsync($\"No se puede realizar venta por q";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("No se puede realizar venta por que presenta "+parent.__c.SmartStringFormatter("",(Object)((_diferenciadias-(parent._c.GetInt("CAT_CL_DIASCREDITO")+1))))+" días de atraso en el credito, por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Atención"),ba);
 if (true) break;

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

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

case 31:
//C
this.state = 32;
 //BA.debugLineNum = 2434;BA.debugLine="gestionar";
parent._gestionar();
 if (true) break;

case 32:
//C
this.state = -1;
;
 //BA.debugLineNum = 2436;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
	return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
	return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
if (BA.fastSubCompare(sub, "JOBDONE"))
	return _jobdone((gunav2.keymon.com.mx.httpjob) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
