package gunav2.keymon.com.mx;


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

public class c_productos extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "gunav2.keymon.com.mx.c_productos");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_productos.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public String _ruta = "";
public String _q_buscar = "";
public boolean _forzarbusqueda = false;
public anywheresoftware.b4a.sql.SQL _skmt = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_catalogos = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_promos = null;
public String _entro = "";
public anywheresoftware.b4a.objects.ButtonWrapper _gest = null;
public anywheresoftware.b4a.objects.LabelWrapper _lfila = null;
public String _marca = "";
public String _tipo = "";
public String _subtipo = "";
public anywheresoftware.b4a.objects.EditTextWrapper _busca = null;
public String _ya_entro = "";
public String _tiene_promos = "";
public String _res = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s1 = null;
public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
public String _ciclo = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_qr = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_productos = null;
public b4a.example3.customlistview _clv_productos = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel3 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_prod = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_terminar1 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_continuar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_totprods = null;
public int _totalprods = 0;
public float _totalcompra = 0f;
public boolean _etcanthasfocus = false;
public anywheresoftware.b4a.objects.collections.Map _prodsmap = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cargando = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_info = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_buscar = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botonesventa = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_tipo = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_subtipo = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_vistapreviatrans = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_prodspedido = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_rechazar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_vistaprevia = null;
public String _folio = "";
public String _result = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total2 = null;
public String _prodspedidoactual = "";
public String _montopedidoactual = "";
public String _tipo_venta = "";
public b4a.example3.customlistview _clv_prods_ll = null;
public gunav2.keymon.com.mx.preoptimizedclv _pclv = null;
public anywheresoftware.b4a.objects.collections.List _listaprods = null;
public anywheresoftware.b4a.objects.collections.Map _pedidomap = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmen = null;
public boolean _reiniciarlistaprods = false;
public anywheresoftware.b4a.objects.collections.List _listatiempos = null;
public String _clienteid = "";
public String _rutausuario = "";
public boolean _haypedido = false;
public anywheresoftware.b4a.objects.collections.List _listahints = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null;
public anywheresoftware.b4a.objects.collections.List _vamoaver = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _j3 = null;
public int _invtotal = 0;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pcantc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenosc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmasc = null;
public int _totalcajasmaspiezas = 0;
public int _cajas = 0;
public int _piezas = 0;
public anywheresoftware.b4a.objects.PanelWrapper _p_calatolos = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmenc = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_promodesc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_promodesc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_okpromodesc = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_devo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_proddev = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_devmas = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cantdev = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_devmenos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_acep_dev = null;
public double _preciodev = 0;
public String _nombredev = "";
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.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = 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 Object  _initialize(gunav2.keymon.com.mx.c_productos __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=65667072;
 //BA.debugLineNum = 65667072;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=65667073;
 //BA.debugLineNum = 65667073;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=65667074;
 //BA.debugLineNum = 65667074;BA.debugLine="End Sub";
return null;
}
public String  _terminarpromoesp(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "terminarpromoesp", false))
	 {return ((String) Debug.delegate(ba, "terminarpromoesp", null));}
int _i = 0;
String _pn = "";
RDebugUtils.currentLine=67764224;
 //BA.debugLineNum = 67764224;BA.debugLine="Sub terminarpromoesp";
RDebugUtils.currentLine=67764225;
 //BA.debugLineNum = 67764225;BA.debugLine="c2 = B4XPages.MainPage.skmt.ExecQuery($\"select *";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" WHERE CAT_GP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)"))));
RDebugUtils.currentLine=67764226;
 //BA.debugLineNum = 67764226;BA.debugLine="If c2.RowCount > 0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=67764227;
 //BA.debugLineNum = 67764227;BA.debugLine="c2.Position = 0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67764228;
 //BA.debugLineNum = 67764228;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"), \"";
_subs._guardaproducto /*String*/ (ba,__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),"0",BA.NumberToString(1),__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE"),__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ );
RDebugUtils.currentLine=67764229;
 //BA.debugLineNum = 67764229;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select * f";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)")));
RDebugUtils.currentLine=67764230;
 //BA.debugLineNum = 67764230;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=67764231;
 //BA.debugLineNum = 67764231;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step7 = 1;
final int limit7 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=67764232;
 //BA.debugLineNum = 67764232;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=67764233;
 //BA.debugLineNum = 67764233;BA.debugLine="Private pn As String = Subs.traeProdNombre(c.G";
_pn = _subs._traeprodnombre /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_IDPROD"));
RDebugUtils.currentLine=67764234;
 //BA.debugLineNum = 67764234;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"),";
_subs._guardaproducto /*String*/ (ba,__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PRECIO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PZAS"),_pn,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_IDPROD"),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ );
 }
};
 };
RDebugUtils.currentLine=67764237;
 //BA.debugLineNum = 67764237;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=67764239;
 //BA.debugLineNum = 67764239;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=67764240;
 //BA.debugLineNum = 67764240;BA.debugLine="End Sub";
return "";
}
public String  _b_acep_dev_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_acep_dev_click", false))
	 {return ((String) Debug.delegate(ba, "b_acep_dev_click", null));}
RDebugUtils.currentLine=68026368;
 //BA.debugLineNum = 68026368;BA.debugLine="Private Sub b_acep_dev_Click";
RDebugUtils.currentLine=68026369;
 //BA.debugLineNum = 68026369;BA.debugLine="p_devo.Visible = False";
__ref._p_devo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=68026370;
 //BA.debugLineNum = 68026370;BA.debugLine="End Sub";
return "";
}
public String  _b_aceptar_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_aceptar_click", false))
	 {return ((String) Debug.delegate(ba, "b_aceptar_click", null));}
RDebugUtils.currentLine=67239936;
 //BA.debugLineNum = 67239936;BA.debugLine="Private Sub b_aceptar_Click";
RDebugUtils.currentLine=67239937;
 //BA.debugLineNum = 67239937;BA.debugLine="p_vistaPreviaTrans.Visible=False";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=67239938;
 //BA.debugLineNum = 67239938;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=67239939;
 //BA.debugLineNum = 67239939;BA.debugLine="End Sub";
return "";
}
public String  _b_continuar_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_continuar_click", false))
	 {return ((String) Debug.delegate(ba, "b_continuar_click", null));}
anywheresoftware.b4a.objects.collections.Map _m = null;
RDebugUtils.currentLine=66781184;
 //BA.debugLineNum = 66781184;BA.debugLine="Private Sub b_continuar_Click";
RDebugUtils.currentLine=66781185;
 //BA.debugLineNum = 66781185;BA.debugLine="Log(\"b_continuar_Click\")";
__c.LogImpl("066781185","b_continuar_Click",0);
RDebugUtils.currentLine=66781186;
 //BA.debugLineNum = 66781186;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=66781188;
 //BA.debugLineNum = 66781188;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)";
__c.LogImpl("066781188",("prodsMap="+__c.SmartStringFormatter("",(Object)(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .getObject()))+""),0);
RDebugUtils.currentLine=66781196;
 //BA.debugLineNum = 66781196;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
__c.LogImpl("066781196","promos-inv, prods-inv, cat-vis",0);
RDebugUtils.currentLine=66781197;
 //BA.debugLineNum = 66781197;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=66781198;
 //BA.debugLineNum = 66781198;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
RDebugUtils.currentLine=66781199;
 //BA.debugLineNum = 66781199;BA.debugLine="lv_subtipo.Visible = False";
__ref._lv_subtipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=66781200;
 //BA.debugLineNum = 66781200;BA.debugLine="lv_tipo.Visible = False";
__ref._lv_tipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=66781201;
 //BA.debugLineNum = 66781201;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66781202;
 //BA.debugLineNum = 66781202;BA.debugLine="Log(\"Continuar\")";
__c.LogImpl("066781202","Continuar",0);
RDebugUtils.currentLine=66781203;
 //BA.debugLineNum = 66781203;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = _subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=66781204;
 //BA.debugLineNum = 66781204;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
__ref._prodspedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("productos")));
RDebugUtils.currentLine=66781205;
 //BA.debugLineNum = 66781205;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
__ref._montopedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("monto")));
RDebugUtils.currentLine=66781206;
 //BA.debugLineNum = 66781206;BA.debugLine="End Sub";
return "";
}
public String  _cuentaprods(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "cuentaprods", false))
	 {return ((String) Debug.delegate(ba, "cuentaprods", null));}
RDebugUtils.currentLine=66650112;
 //BA.debugLineNum = 66650112;BA.debugLine="Sub cuentaProds";
RDebugUtils.currentLine=66650114;
 //BA.debugLineNum = 66650114;BA.debugLine="Log(\"===========================\")";
__c.LogImpl("066650114","===========================",0);
RDebugUtils.currentLine=66650115;
 //BA.debugLineNum = 66650115;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*/ .ExecQuery(("select sum(PE_COSTO_TOT) as total, sum(PE_CANT) as cant from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._clienteid /*String*/ ))+"'"))));
RDebugUtils.currentLine=66650118;
 //BA.debugLineNum = 66650118;BA.debugLine="p_botonesVenta.Visible = True";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66650119;
 //BA.debugLineNum = 66650119;BA.debugLine="p_botonesVenta.BringToFront";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=66650120;
 //BA.debugLineNum = 66650120;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66650122;
 //BA.debugLineNum = 66650122;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=66650124;
 //BA.debugLineNum = 66650124;BA.debugLine="End Sub";
return "";
}
public String  _b_devmas_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_devmas_click", false))
	 {return ((String) Debug.delegate(ba, "b_devmas_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _dev2 = null;
RDebugUtils.currentLine=68157440;
 //BA.debugLineNum = 68157440;BA.debugLine="Private Sub b_devmas_Click";
RDebugUtils.currentLine=68157442;
 //BA.debugLineNum = 68157442;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue";
_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' ")));
RDebugUtils.currentLine=68157443;
 //BA.debugLineNum = 68157443;BA.debugLine="If c6.RowCount > 0 Then";
if (_c6.getRowCount()>0) { 
RDebugUtils.currentLine=68157444;
 //BA.debugLineNum = 68157444;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
RDebugUtils.currentLine=68157448;
 //BA.debugLineNum = 68157448;BA.debugLine="Log(((l_cantdev.Text + 1)* preciodev))";
__c.LogImpl("068157448",BA.NumberToString((((double)(Double.parseDouble(__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+1)*__ref._preciodev /*double*/ )),0);
RDebugUtils.currentLine=68157449;
 //BA.debugLineNum = 68157449;BA.debugLine="If c6.GetString(\"PC_MONTO\")- ((l_cantdev.Text +";
if ((double)(Double.parseDouble(_c6.GetString("PC_MONTO")))-(((double)(Double.parseDouble(__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+1)*__ref._preciodev /*double*/ )>=0) { 
RDebugUtils.currentLine=68157450;
 //BA.debugLineNum = 68157450;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exe";
_dev2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_dev2 = (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_GP_ID from CAT_GUNAPROD where CAT_GP_NOMBRE  = '"+__c.SmartStringFormatter("",(Object)(__ref._nombredev /*String*/ ))+"'"))));
RDebugUtils.currentLine=68157451;
 //BA.debugLineNum = 68157451;BA.debugLine="dev2.Position = 0";
_dev2.setPosition((int) (0));
RDebugUtils.currentLine=68157452;
 //BA.debugLineNum = 68157452;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text";
__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+1),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=68157454;
 //BA.debugLineNum = 68157454;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=68157456;
 //BA.debugLineNum = 68157456;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1";
_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((__ref._preciodev /*double*/ *-1)),__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._nombredev /*String*/ ,_dev2.GetString("CAT_GP_ID"),__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=68157458;
 //BA.debugLineNum = 68157458;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1";
_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((__ref._preciodev /*double*/ *-1)),__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._nombredev /*String*/ ,_dev2.GetString("CAT_GP_ID"),__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(0));
 };
 }else {
RDebugUtils.currentLine=68157464;
 //BA.debugLineNum = 68157464;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al prec";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto"),BA.ObjectToCharSequence("Atención"),ba);
 };
 };
RDebugUtils.currentLine=68157475;
 //BA.debugLineNum = 68157475;BA.debugLine="End Sub";
return "";
}
public String  _b_devmenos_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_devmenos_click", false))
	 {return ((String) Debug.delegate(ba, "b_devmenos_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _dev2 = null;
RDebugUtils.currentLine=68091904;
 //BA.debugLineNum = 68091904;BA.debugLine="Private Sub b_devmenos_Click";
RDebugUtils.currentLine=68091905;
 //BA.debugLineNum = 68091905;BA.debugLine="If NumberFormat2((l_cantdev.Text - 1),0,0,0, Fals";
if ((double)(Double.parseDouble(__c.NumberFormat2(((double)(Double.parseDouble(__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))-1),(int) (0),(int) (0),(int) (0),__c.False)))>=0) { 
RDebugUtils.currentLine=68091907;
 //BA.debugLineNum = 68091907;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exec";
_dev2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_dev2 = (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_GP_ID from CAT_GUNAPROD where CAT_GP_NOMBRE  = '"+__c.SmartStringFormatter("",(Object)(__ref._nombredev /*String*/ ))+"'"))));
RDebugUtils.currentLine=68091908;
 //BA.debugLineNum = 68091908;BA.debugLine="dev2.Position = 0";
_dev2.setPosition((int) (0));
RDebugUtils.currentLine=68091909;
 //BA.debugLineNum = 68091909;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text -";
__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))-1),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=68091910;
 //BA.debugLineNum = 68091910;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=68091912;
 //BA.debugLineNum = 68091912;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)";
_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((__ref._preciodev /*double*/ *-1)),__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._nombredev /*String*/ ,_dev2.GetString("CAT_GP_ID"),__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=68091914;
 //BA.debugLineNum = 68091914;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)";
_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((__ref._preciodev /*double*/ *-1)),__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._nombredev /*String*/ ,_dev2.GetString("CAT_GP_ID"),__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(0));
 };
 };
RDebugUtils.currentLine=68091919;
 //BA.debugLineNum = 68091919;BA.debugLine="End Sub";
return "";
}
public String  _b_okpromodesc_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_okpromodesc_click", false))
	 {return ((String) Debug.delegate(ba, "b_okpromodesc_click", null));}
RDebugUtils.currentLine=67829760;
 //BA.debugLineNum = 67829760;BA.debugLine="Private Sub b_okpromodesc_Click";
RDebugUtils.currentLine=67829761;
 //BA.debugLineNum = 67829761;BA.debugLine="p_promodesc.Visible = False";
__ref._p_promodesc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=67829762;
 //BA.debugLineNum = 67829762;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmas_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmas_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.B4XViewWrapper _panelpiezas = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lprodx = null;
String _precio = "";
String _inv = "";
String _existencias = "";
String _id = "";
String _nombrex = "";
anywheresoftware.b4a.objects.CSBuilder _cs = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
String _invactualizado = "";
RDebugUtils.currentLine=66453504;
 //BA.debugLineNum = 66453504;BA.debugLine="Sub b_prodMas_Click";
RDebugUtils.currentLine=66453505;
 //BA.debugLineNum = 66453505;BA.debugLine="totalcajasmaspiezas = 0";
__ref._totalcajasmaspiezas /*int*/  = (int) (0);
RDebugUtils.currentLine=66453506;
 //BA.debugLineNum = 66453506;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=66453507;
 //BA.debugLineNum = 66453507;BA.debugLine="Root.RequestFocus";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus();
RDebugUtils.currentLine=66453510;
 //BA.debugLineNum = 66453510;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=66453511;
 //BA.debugLineNum = 66453511;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=66453512;
 //BA.debugLineNum = 66453512;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=66453513;
 //BA.debugLineNum = 66453513;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=66453515;
 //BA.debugLineNum = 66453515;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_panelpiezas = _pnl.GetView((int) (2));
RDebugUtils.currentLine=66453517;
 //BA.debugLineNum = 66453517;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lprodx = _pnl.GetView((int) (1));
RDebugUtils.currentLine=66453520;
 //BA.debugLineNum = 66453520;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("precio")));
RDebugUtils.currentLine=66453521;
 //BA.debugLineNum = 66453521;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index";
_inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("almacen")));
RDebugUtils.currentLine=66453522;
 //BA.debugLineNum = 66453522;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
_existencias = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("almacen")));
RDebugUtils.currentLine=66453523;
 //BA.debugLineNum = 66453523;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
__c.LogImpl("066453523",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0);
RDebugUtils.currentLine=66453524;
 //BA.debugLineNum = 66453524;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=66453525;
 //BA.debugLineNum = 66453525;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("id")));
RDebugUtils.currentLine=66453542;
 //BA.debugLineNum = 66453542;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("066453542",_lacant.getText(),__c.Colors.Red);
RDebugUtils.currentLine=66453544;
 //BA.debugLineNum = 66453544;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text <";
if ((double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))>0 && ((double)(Double.parseDouble(_lacant.getText()))<=((double)(Double.parseDouble(_lacant.getText()))+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))))) { 
RDebugUtils.currentLine=66453546;
 //BA.debugLineNum = 66453546;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almace";
((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Put((Object)("almacen"),(Object)(((double)(Double.parseDouble(_inv))-1)));
RDebugUtils.currentLine=66453547;
 //BA.debugLineNum = 66453547;BA.debugLine="inv = inv - 1";
_inv = BA.NumberToString((double)(Double.parseDouble(_inv))-1);
RDebugUtils.currentLine=66453549;
 //BA.debugLineNum = 66453549;BA.debugLine="laCant.Text = NumberFormat2((laCant.Text + 1), 1";
_lacant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_lacant.getText()))+1),(int) (1),(int) (0),(int) (0),__c.False)));
 };
RDebugUtils.currentLine=66453552;
 //BA.debugLineNum = 66453552;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
RDebugUtils.currentLine=66453561;
 //BA.debugLineNum = 66453561;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("066453561",_lacant.getText(),__c.Colors.Red);
RDebugUtils.currentLine=66453567;
 //BA.debugLineNum = 66453567;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
__c.LogImpl("066453567",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,0);
RDebugUtils.currentLine=66453568;
 //BA.debugLineNum = 66453568;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=66453569;
 //BA.debugLineNum = 66453569;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=66453571;
 //BA.debugLineNum = 66453571;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 };
RDebugUtils.currentLine=66453574;
 //BA.debugLineNum = 66453574;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=66453577;
 //BA.debugLineNum = 66453577;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=66453578;
 //BA.debugLineNum = 66453578;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=66453579;
 //BA.debugLineNum = 66453579;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"se";
_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'"))));
RDebugUtils.currentLine=66453580;
 //BA.debugLineNum = 66453580;BA.debugLine="Private invActualizado As String = \"0\"";
_invactualizado = "0";
RDebugUtils.currentLine=66453581;
 //BA.debugLineNum = 66453581;BA.debugLine="If o.RowCount > 0 Then";
if (_o.getRowCount()>0) { 
RDebugUtils.currentLine=66453582;
 //BA.debugLineNum = 66453582;BA.debugLine="o.Position = 0";
_o.setPosition((int) (0));
RDebugUtils.currentLine=66453583;
 //BA.debugLineNum = 66453583;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
_invactualizado = _o.GetString("CAT_GP_ALMACEN");
 };
RDebugUtils.currentLine=66453592;
 //BA.debugLineNum = 66453592;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red).";
if (2==2) { 
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+_invactualizado)).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence(("   $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));};
RDebugUtils.currentLine=66453595;
 //BA.debugLineNum = 66453595;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
__ref._invtotal /*int*/  = (int) (__ref._totalcajasmaspiezas /*int*/ +(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id))));
RDebugUtils.currentLine=66453597;
 //BA.debugLineNum = 66453597;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
RDebugUtils.currentLine=66453598;
 //BA.debugLineNum = 66453598;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=66453599;
 //BA.debugLineNum = 66453599;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66453600;
 //BA.debugLineNum = 66453600;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
__c.LogImpl("066453600",("registros: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))+""),0);
RDebugUtils.currentLine=66453601;
 //BA.debugLineNum = 66453601;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=66453602;
 //BA.debugLineNum = 66453602;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=66453603;
 //BA.debugLineNum = 66453603;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("Total: $null")) { 
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $0.0"));};
RDebugUtils.currentLine=66453604;
 //BA.debugLineNum = 66453604;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \"";
if (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("Prods: null")) { 
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: 0"));};
 };
RDebugUtils.currentLine=66453607;
 //BA.debugLineNum = 66453607;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmenos_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmenos_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.B4XViewWrapper _panelbotonesc = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lprodx = null;
anywheresoftware.b4a.objects.B4XViewWrapper _panelpiezas = null;
anywheresoftware.b4a.objects.collections.Map _tmpmap1 = null;
String _precio = "";
String _id = "";
anywheresoftware.b4a.objects.collections.Map _tmpmap = null;
String _nombrex = "";
anywheresoftware.b4a.objects.CSBuilder _cs = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
String _invactualizado = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null;
double _totaldev = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null;
double _totalprod = 0;
RDebugUtils.currentLine=66387968;
 //BA.debugLineNum = 66387968;BA.debugLine="Sub b_prodMenos_Click";
RDebugUtils.currentLine=66387969;
 //BA.debugLineNum = 66387969;BA.debugLine="totalcajasmaspiezas = 0";
__ref._totalcajasmaspiezas /*int*/  = (int) (0);
RDebugUtils.currentLine=66387970;
 //BA.debugLineNum = 66387970;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=66387971;
 //BA.debugLineNum = 66387971;BA.debugLine="Root.RequestFocus";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus();
RDebugUtils.currentLine=66387973;
 //BA.debugLineNum = 66387973;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=66387974;
 //BA.debugLineNum = 66387974;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=66387975;
 //BA.debugLineNum = 66387975;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=66387976;
 //BA.debugLineNum = 66387976;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=66387978;
 //BA.debugLineNum = 66387978;BA.debugLine="Dim panelbotonesc As B4XView = pnl.GetView(3)";
_panelbotonesc = new anywheresoftware.b4a.objects.B4XViewWrapper();
_panelbotonesc = _pnl.GetView((int) (3));
RDebugUtils.currentLine=66387979;
 //BA.debugLineNum = 66387979;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lprodx = _pnl.GetView((int) (1));
RDebugUtils.currentLine=66387981;
 //BA.debugLineNum = 66387981;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_panelpiezas = _pnl.GetView((int) (2));
RDebugUtils.currentLine=66387983;
 //BA.debugLineNum = 66387983;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=66387985;
 //BA.debugLineNum = 66387985;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text-1,0,0";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_lacant.getText()))-1,(int) (0),(int) (0),(int) (0),__c.False)))+"")));
RDebugUtils.currentLine=66387986;
 //BA.debugLineNum = 66387986;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=66387987;
 //BA.debugLineNum = 66387987;BA.debugLine="Private tmpMap1 As Map = clv_prods_ll.GetValue(in";
_tmpmap1 = new anywheresoftware.b4a.objects.collections.Map();
_tmpmap1 = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index))));
RDebugUtils.currentLine=66387988;
 //BA.debugLineNum = 66387988;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("precio")));
RDebugUtils.currentLine=66387989;
 //BA.debugLineNum = 66387989;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("id")));
RDebugUtils.currentLine=66387990;
 //BA.debugLineNum = 66387990;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
_tmpmap = new anywheresoftware.b4a.objects.collections.Map();
_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_subs._traealmacen /*String*/ (ba))});
RDebugUtils.currentLine=66387991;
 //BA.debugLineNum = 66387991;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
RDebugUtils.currentLine=66387992;
 //BA.debugLineNum = 66387992;BA.debugLine="LogColor(tmpMap1,Colors.Magenta)";
__c.LogImpl("066387992",BA.ObjectToString(_tmpmap1),__c.Colors.Magenta);
RDebugUtils.currentLine=66387993;
 //BA.debugLineNum = 66387993;BA.debugLine="prodsMap.Put(id, tmpMap)";
__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_id),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=66387994;
 //BA.debugLineNum = 66387994;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)";
if ((_lacant.getText()).equals(BA.NumberToString(0))) { 
__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Remove((Object)(_id));};
RDebugUtils.currentLine=66388006;
 //BA.debugLineNum = 66388006;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
__c.LogImpl("066388006","prodsMap="+BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Blue);
RDebugUtils.currentLine=66388008;
 //BA.debugLineNum = 66388008;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant.te";
__c.LogImpl("066388008",(""+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_precio))+", "+__c.SmartStringFormatter("",(Object)(_lacant.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeprodnombre /*String*/ (ba,_id)))+", "+__c.SmartStringFormatter("",(Object)(_id))+", "+__c.SmartStringFormatter("",(Object)(__ref._clienteid /*String*/ ))+""),0);
RDebugUtils.currentLine=66388009;
 //BA.debugLineNum = 66388009;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=66388010;
 //BA.debugLineNum = 66388010;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=66388012;
 //BA.debugLineNum = 66388012;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 };
RDebugUtils.currentLine=66388014;
 //BA.debugLineNum = 66388014;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=66388015;
 //BA.debugLineNum = 66388015;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
__c.LogImpl("066388015","prodsMap="+BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Blue);
RDebugUtils.currentLine=66388016;
 //BA.debugLineNum = 66388016;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
__c.LogImpl("066388016",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+""),0);
RDebugUtils.currentLine=66388017;
 //BA.debugLineNum = 66388017;BA.debugLine="If 1 = 1 Then";
if (1==1) { 
RDebugUtils.currentLine=66388018;
 //BA.debugLineNum = 66388018;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=66388019;
 //BA.debugLineNum = 66388019;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=66388020;
 //BA.debugLineNum = 66388020;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"s";
_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'"))));
RDebugUtils.currentLine=66388021;
 //BA.debugLineNum = 66388021;BA.debugLine="Private invActualizado As String = \"0\"";
_invactualizado = "0";
RDebugUtils.currentLine=66388022;
 //BA.debugLineNum = 66388022;BA.debugLine="If o.RowCount > 0 Then";
if (_o.getRowCount()>0) { 
RDebugUtils.currentLine=66388023;
 //BA.debugLineNum = 66388023;BA.debugLine="o.Position = 0";
_o.setPosition((int) (0));
RDebugUtils.currentLine=66388024;
 //BA.debugLineNum = 66388024;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
_invactualizado = _o.GetString("CAT_GP_ALMACEN");
 };
RDebugUtils.currentLine=66388034;
 //BA.debugLineNum = 66388034;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)";
if (2==2) { 
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+_invactualizado)).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence(("   $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));};
 };
RDebugUtils.currentLine=66388048;
 //BA.debugLineNum = 66388048;BA.debugLine="If Subs.totalPedido < 1 Then laCant.Text = \"0\"";
if ((double)(Double.parseDouble(_subs._totalpedido /*String*/ (ba)))<1) { 
_lacant.setText(BA.ObjectToCharSequence("0"));};
RDebugUtils.currentLine=66388049;
 //BA.debugLineNum = 66388049;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
__ref._invtotal /*int*/  = (int) (__ref._totalcajasmaspiezas /*int*/ +(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id))));
RDebugUtils.currentLine=66388068;
 //BA.debugLineNum = 66388068;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
RDebugUtils.currentLine=66388071;
 //BA.debugLineNum = 66388071;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=66388072;
 //BA.debugLineNum = 66388072;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66388073;
 //BA.debugLineNum = 66388073;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
__c.LogImpl("066388073",("registros: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))+""),0);
RDebugUtils.currentLine=66388074;
 //BA.debugLineNum = 66388074;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=66388075;
 //BA.debugLineNum = 66388075;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=66388076;
 //BA.debugLineNum = 66388076;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $0.0"));};
RDebugUtils.currentLine=66388077;
 //BA.debugLineNum = 66388077;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \"";
if (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: 0"));};
 };
RDebugUtils.currentLine=66388083;
 //BA.debugLineNum = 66388083;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQue";
_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS = 'DUR'")));
RDebugUtils.currentLine=66388084;
 //BA.debugLineNum = 66388084;BA.debugLine="If c7.RowCount > 0 Then";
if (_c7.getRowCount()>0) { 
RDebugUtils.currentLine=66388085;
 //BA.debugLineNum = 66388085;BA.debugLine="c7.Position = 0";
_c7.setPosition((int) (0));
RDebugUtils.currentLine=66388087;
 //BA.debugLineNum = 66388087;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO\"";
_totaldev = (double)(Double.parseDouble(_c7.GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=66388091;
 //BA.debugLineNum = 66388091;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue";
_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' ")));
RDebugUtils.currentLine=66388092;
 //BA.debugLineNum = 66388092;BA.debugLine="If c6.RowCount > 0 Then";
if (_c6.getRowCount()>0) { 
RDebugUtils.currentLine=66388093;
 //BA.debugLineNum = 66388093;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
RDebugUtils.currentLine=66388095;
 //BA.debugLineNum = 66388095;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONTO";
_totalprod = (double)(Double.parseDouble(_c6.GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=66388099;
 //BA.debugLineNum = 66388099;BA.debugLine="Log(totaldev &\"       \" & totalprod)";
__c.LogImpl("066388099",BA.NumberToString(_totaldev)+"       "+BA.NumberToString(_totalprod),0);
RDebugUtils.currentLine=66388100;
 //BA.debugLineNum = 66388100;BA.debugLine="If totalprod = 0 Then";
if (_totalprod==0) { 
RDebugUtils.currentLine=66388101;
 //BA.debugLineNum = 66388101;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 where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'");
RDebugUtils.currentLine=66388102;
 //BA.debugLineNum = 66388102;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta."),BA.ObjectToCharSequence("Atención"),ba);
 }else 
{RDebugUtils.currentLine=66388103;
 //BA.debugLineNum = 66388103;BA.debugLine="Else If totalprod < (totaldev * -1) Then";
if (_totalprod<(_totaldev*-1)) { 
RDebugUtils.currentLine=66388104;
 //BA.debugLineNum = 66388104;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 where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'");
RDebugUtils.currentLine=66388105;
 //BA.debugLineNum = 66388105;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta."),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
RDebugUtils.currentLine=66388110;
 //BA.debugLineNum = 66388110;BA.debugLine="End Sub";
return "";
}
public String  _b_qr_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_qr_click", false))
	 {return ((String) Debug.delegate(ba, "b_qr_click", null));}
RDebugUtils.currentLine=66256896;
 //BA.debugLineNum = 66256896;BA.debugLine="Sub b_QR_Click";
RDebugUtils.currentLine=66256897;
 //BA.debugLineNum = 66256897;BA.debugLine="If ciclo = 1 Then";
if ((__ref._ciclo /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=66256898;
 //BA.debugLineNum = 66256898;BA.debugLine="ciclo = 2";
__ref._ciclo /*String*/  = BA.NumberToString(2);
RDebugUtils.currentLine=66256899;
 //BA.debugLineNum = 66256899;BA.debugLine="ya_entro  = \"0\"";
__ref._ya_entro /*String*/  = "0";
RDebugUtils.currentLine=66256900;
 //BA.debugLineNum = 66256900;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }else 
{RDebugUtils.currentLine=66256901;
 //BA.debugLineNum = 66256901;BA.debugLine="else if ciclo = 2 Then";
if ((__ref._ciclo /*String*/ ).equals(BA.NumberToString(2))) { 
RDebugUtils.currentLine=66256902;
 //BA.debugLineNum = 66256902;BA.debugLine="ciclo = 3";
__ref._ciclo /*String*/  = BA.NumberToString(3);
RDebugUtils.currentLine=66256903;
 //BA.debugLineNum = 66256903;BA.debugLine="ya_entro  = \"0\"";
__ref._ya_entro /*String*/  = "0";
RDebugUtils.currentLine=66256904;
 //BA.debugLineNum = 66256904;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }else 
{RDebugUtils.currentLine=66256905;
 //BA.debugLineNum = 66256905;BA.debugLine="else if ciclo = 3 Then";
if ((__ref._ciclo /*String*/ ).equals(BA.NumberToString(3))) { 
RDebugUtils.currentLine=66256906;
 //BA.debugLineNum = 66256906;BA.debugLine="ciclo = 4";
__ref._ciclo /*String*/  = BA.NumberToString(4);
RDebugUtils.currentLine=66256907;
 //BA.debugLineNum = 66256907;BA.debugLine="ya_entro  = \"0\"";
__ref._ya_entro /*String*/  = "0";
RDebugUtils.currentLine=66256908;
 //BA.debugLineNum = 66256908;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }else 
{RDebugUtils.currentLine=66256909;
 //BA.debugLineNum = 66256909;BA.debugLine="else if ciclo = 4 Then";
if ((__ref._ciclo /*String*/ ).equals(BA.NumberToString(4))) { 
RDebugUtils.currentLine=66256910;
 //BA.debugLineNum = 66256910;BA.debugLine="ciclo = 5";
__ref._ciclo /*String*/  = BA.NumberToString(5);
RDebugUtils.currentLine=66256911;
 //BA.debugLineNum = 66256911;BA.debugLine="ya_entro  = \"0\"";
__ref._ya_entro /*String*/  = "0";
RDebugUtils.currentLine=66256912;
 //BA.debugLineNum = 66256912;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }else 
{RDebugUtils.currentLine=66256913;
 //BA.debugLineNum = 66256913;BA.debugLine="else if ciclo = 5 Then";
if ((__ref._ciclo /*String*/ ).equals(BA.NumberToString(5))) { 
RDebugUtils.currentLine=66256914;
 //BA.debugLineNum = 66256914;BA.debugLine="ciclo = 1";
__ref._ciclo /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=66256915;
 //BA.debugLineNum = 66256915;BA.debugLine="ya_entro  = \"0\"";
__ref._ya_entro /*String*/  = "0";
RDebugUtils.currentLine=66256916;
 //BA.debugLineNum = 66256916;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 }}}}}
;
RDebugUtils.currentLine=66256918;
 //BA.debugLineNum = 66256918;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {Debug.delegate(ba, "b4xpage_appear", null); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(gunav2.keymon.com.mx.c_productos parent,gunav2.keymon.com.mx.c_productos __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_productos __ref;
gunav2.keymon.com.mx.c_productos parent;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
boolean _haypromos = false;
int _i = 0;
anywheresoftware.b4a.objects.collections.Map _tm = null;
anywheresoftware.b4a.objects.collections.Map _m = null;
int step59;
int limit59;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=65798145;
 //BA.debugLineNum = 65798145;BA.debugLine="tipo_venta = Subs.traeTipoVentaDeBD";
__ref._tipo_venta /*String*/  = parent._subs._traetipoventadebd /*String*/ (ba);
RDebugUtils.currentLine=65798146;
 //BA.debugLineNum = 65798146;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA\" Or B";
if (true) break;

case 1:
//if
this.state = 8;
if ((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA") || (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("ABORDO") || (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=65798148;
 //BA.debugLineNum = 65798148;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"VENTA\" Th";
if ((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("VENTA")) { 
this.state = 5;
}else 
{RDebugUtils.currentLine=65798150;
 //BA.debugLineNum = 65798150;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"RECARGA\"";
if ((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("RECARGA")) { 
this.state = 7;
}}}
if (true) break;

case 3:
//C
this.state = 8;
RDebugUtils.currentLine=65798147;
 //BA.debugLineNum = 65798147;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
parent._starter._tabla /*String*/  = "CAT_GUNAPROD";
 if (true) break;

case 5:
//C
this.state = 8;
RDebugUtils.currentLine=65798149;
 //BA.debugLineNum = 65798149;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
parent._starter._tabla /*String*/  = "CAT_GUNAPROD2";
 if (true) break;

case 7:
//C
this.state = 8;
RDebugUtils.currentLine=65798151;
 //BA.debugLineNum = 65798151;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD3\"";
parent._starter._tabla /*String*/  = "CAT_GUNAPROD3";
 if (true) break;

case 8:
//C
this.state = 9;
;
RDebugUtils.currentLine=65798153;
 //BA.debugLineNum = 65798153;BA.debugLine="Log(Starter.tabla)";
parent.__c.LogImpl("065798153",parent._starter._tabla /*String*/ ,0);
RDebugUtils.currentLine=65798154;
 //BA.debugLineNum = 65798154;BA.debugLine="clienteId = Subs.traeCliente";
__ref._clienteid /*String*/  = parent._subs._traecliente /*String*/ (ba);
RDebugUtils.currentLine=65798155;
 //BA.debugLineNum = 65798155;BA.debugLine="rutaUsuario = Subs.traeRuta";
__ref._rutausuario /*String*/  = parent._subs._traeruta /*String*/ (ba);
RDebugUtils.currentLine=65798156;
 //BA.debugLineNum = 65798156;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRIORITARIO"),(Object)("1")}));
RDebugUtils.currentLine=65798157;
 //BA.debugLineNum = 65798157;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ESTRATEGICO"),(Object)("2")}));
RDebugUtils.currentLine=65798158;
 //BA.debugLineNum = 65798158;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COMPLEMENTARIO"),(Object)("3")}));
RDebugUtils.currentLine=65798159;
 //BA.debugLineNum = 65798159;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CATALOGO REGULAR"),(Object)("0")}));
RDebugUtils.currentLine=65798160;
 //BA.debugLineNum = 65798160;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_CLASIF = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PROMOS"),(Object)("PROMOS")}));
RDebugUtils.currentLine=65798161;
 //BA.debugLineNum = 65798161;BA.debugLine="clv_prods_ll.GetBase.SetLayoutAnimated(0, 5dip, 1";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getbase().SetLayoutAnimated((int) (0),parent.__c.DipToCurrent((int) (5)),parent.__c.DipToCurrent((int) (130)),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()+10),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.74));
RDebugUtils.currentLine=65798162;
 //BA.debugLineNum = 65798162;BA.debugLine="clv_prods_ll.Base_Resize(clv_prods_ll.GetBase.Wid";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getbase().getHeight());
RDebugUtils.currentLine=65798163;
 //BA.debugLineNum = 65798163;BA.debugLine="If B4XPages.MainPage.bTerminarClicked Then";
if (true) break;

case 9:
//if
this.state = 12;
if (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/ ) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
RDebugUtils.currentLine=65798164;
 //BA.debugLineNum = 65798164;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=65798165;
 //BA.debugLineNum = 65798165;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798166;
 //BA.debugLineNum = 65798166;BA.debugLine="lv_tipo.Visible = False";
__ref._lv_tipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798167;
 //BA.debugLineNum = 65798167;BA.debugLine="lv_subtipo.Visible = False";
__ref._lv_subtipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798168;
 //BA.debugLineNum = 65798168;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.False);
RDebugUtils.currentLine=65798169;
 //BA.debugLineNum = 65798169;BA.debugLine="B4XPages.MainPage.bTerminarClicked = False";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = parent.__c.False;
 if (true) break;
;
RDebugUtils.currentLine=65798171;
 //BA.debugLineNum = 65798171;BA.debugLine="If ya_entro <> \"1\" Then";

case 12:
//if
this.state = 21;
if ((__ref._ya_entro /*String*/ ).equals("1") == false) { 
this.state = 14;
}if (true) break;

case 14:
//C
this.state = 15;
RDebugUtils.currentLine=65798172;
 //BA.debugLineNum = 65798172;BA.debugLine="If BUSCA.Text <> \"\" Then BUSCA.Text =\"\"";
if (true) break;

case 15:
//if
this.state = 20;
if ((__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
this.state = 17;
;}if (true) break;

case 17:
//C
this.state = 20;
__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
if (true) break;

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=65798173;
 //BA.debugLineNum = 65798173;BA.debugLine="entro =\"3\"";
__ref._entro /*String*/  = "3";
RDebugUtils.currentLine=65798174;
 //BA.debugLineNum = 65798174;BA.debugLine="lv_catalogos.Clear";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=65798175;
 //BA.debugLineNum = 65798175;BA.debugLine="Sleep(100)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_productos", "b4xpage_appear"),(int) (100));
this.state = 56;
return;
case 56:
//C
this.state = 21;
;
RDebugUtils.currentLine=65798176;
 //BA.debugLineNum = 65798176;BA.debugLine="lfila.Text = \"PORTAFOLIO\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PORTAFOLIO"));
RDebugUtils.currentLine=65798177;
 //BA.debugLineNum = 65798177;BA.debugLine="p_productos.Height = Root.Height";
__ref._p_productos /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=65798178;
 //BA.debugLineNum = 65798178;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.False);
RDebugUtils.currentLine=65798179;
 //BA.debugLineNum = 65798179;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=65798180;
 //BA.debugLineNum = 65798180;BA.debugLine="p_botonesVenta.Visible = False";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798181;
 //BA.debugLineNum = 65798181;BA.debugLine="p_botonesVenta.Top = clv_prods_ll.AsView.top + c";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getTop()+__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getHeight()-10));
RDebugUtils.currentLine=65798182;
 //BA.debugLineNum = 65798182;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 21:
//C
this.state = 22;
;
RDebugUtils.currentLine=65798184;
 //BA.debugLineNum = 65798184;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65798185;
 //BA.debugLineNum = 65798185;BA.debugLine="label1 = lv_catalogos.SingleLineLayout.Label";
_label1 = __ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=65798186;
 //BA.debugLineNum = 65798186;BA.debugLine="label1.TextSize = 20";
_label1.setTextSize((float) (20));
RDebugUtils.currentLine=65798187;
 //BA.debugLineNum = 65798187;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(parent.__c.Colors.White);
RDebugUtils.currentLine=65798188;
 //BA.debugLineNum = 65798188;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)";
_label1.setColor(parent.__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255)));
RDebugUtils.currentLine=65798189;
 //BA.debugLineNum = 65798189;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DEF";
_label1.setTypeface(parent.__c.Typeface.CreateNew(parent.__c.Typeface.DEFAULT_BOLD,parent.__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=65798190;
 //BA.debugLineNum = 65798190;BA.debugLine="lv_catalogos.Width = Root.Width * 0.99";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.99));
RDebugUtils.currentLine=65798191;
 //BA.debugLineNum = 65798191;BA.debugLine="lv_catalogos.Clear";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=65798192;
 //BA.debugLineNum = 65798192;BA.debugLine="lv_catalogos.AddSingleLine(\"PORTAFOLIO\")";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("PORTAFOLIO"));
RDebugUtils.currentLine=65798194;
 //BA.debugLineNum = 65798194;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select cou";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(*) as hayPromos from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_TIPO = 'PROMOS'"))));
RDebugUtils.currentLine=65798195;
 //BA.debugLineNum = 65798195;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=65798197;
 //BA.debugLineNum = 65798197;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"SELECT CUE";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CUENTA FROM CUENTAA"))));
RDebugUtils.currentLine=65798198;
 //BA.debugLineNum = 65798198;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=65798199;
 //BA.debugLineNum = 65798199;BA.debugLine="If c.GetString(\"CUENTA\") <> \"0\" And c.GetString(\"";
if (true) break;

case 22:
//if
this.state = 44;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")).equals("0") == false && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")).equals("1") == false) { 
this.state = 24;
}if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=65798200;
 //BA.debugLineNum = 65798200;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),new String[]{"PROMOS","PROMOS"})));
RDebugUtils.currentLine=65798201;
 //BA.debugLineNum = 65798201;BA.debugLine="LogColor($\"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_";
parent.__c.LogImpl("065798201",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan);
RDebugUtils.currentLine=65798203;
 //BA.debugLineNum = 65798203;BA.debugLine="Private hayPromos As Boolean = False";
_haypromos = parent.__c.False;
RDebugUtils.currentLine=65798204;
 //BA.debugLineNum = 65798204;BA.debugLine="If c2.RowCount > 0 Then";
if (true) break;

case 25:
//if
this.state = 43;
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 27;
}else {
this.state = 42;
}if (true) break;

case 27:
//C
this.state = 28;
RDebugUtils.currentLine=65798205;
 //BA.debugLineNum = 65798205;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa";
parent.__c.LogImpl("065798205","Esto es un conteo --->"+BA.NumberToString(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=65798206;
 //BA.debugLineNum = 65798206;BA.debugLine="For i=0 To c2.RowCount -1";
if (true) break;

case 28:
//for
this.state = 35;
step59 = 1;
limit59 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 57;
if (true) break;

case 57:
//C
this.state = 35;
if ((step59 > 0 && _i <= limit59) || (step59 < 0 && _i >= limit59)) this.state = 30;
if (true) break;

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

case 30:
//C
this.state = 31;
RDebugUtils.currentLine=65798207;
 //BA.debugLineNum = 65798207;BA.debugLine="c2.Position = i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=65798208;
 //BA.debugLineNum = 65798208;BA.debugLine="Log(\"Esto es i----->\"& i)'Isaac";
parent.__c.LogImpl("065798208","Esto es i----->"+BA.NumberToString(_i),0);
RDebugUtils.currentLine=65798209;
 //BA.debugLineNum = 65798209;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._clienteid /*String*/ );
RDebugUtils.currentLine=65798210;
 //BA.debugLineNum = 65798210;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
if (true) break;

case 31:
//if
this.state = 34;
if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { 
this.state = 33;
}if (true) break;

case 33:
//C
this.state = 34;
RDebugUtils.currentLine=65798211;
 //BA.debugLineNum = 65798211;BA.debugLine="hayPromos = True";
_haypromos = parent.__c.True;
 if (true) break;

case 34:
//C
this.state = 58;
;
 if (true) break;
if (true) break;
;
RDebugUtils.currentLine=65798214;
 //BA.debugLineNum = 65798214;BA.debugLine="If hayPromos Then lv_catalogos.AddSingleLine(\"P";

case 35:
//if
this.state = 40;
if (_haypromos) { 
this.state = 37;
;}if (true) break;

case 37:
//C
this.state = 40;
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("PROMOCIONES"));
if (true) break;

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

case 42:
//C
this.state = 43;
RDebugUtils.currentLine=65798216;
 //BA.debugLineNum = 65798216;BA.debugLine="Log(\"NO HAY PROMOS\")";
parent.__c.LogImpl("065798216","NO HAY PROMOS",0);
 if (true) break;

case 43:
//C
this.state = 44;
;
RDebugUtils.currentLine=65798218;
 //BA.debugLineNum = 65798218;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 44:
//C
this.state = 45;
;
RDebugUtils.currentLine=65798221;
 //BA.debugLineNum = 65798221;BA.debugLine="Sleep(100)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_productos", "b4xpage_appear"),(int) (100));
this.state = 59;
return;
case 59:
//C
this.state = 45;
;
RDebugUtils.currentLine=65798222;
 //BA.debugLineNum = 65798222;BA.debugLine="l_total.Visible =False";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798223;
 //BA.debugLineNum = 65798223;BA.debugLine="l_totProds.Visible = False";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65798224;
 //BA.debugLineNum = 65798224;BA.debugLine="l_total.Left = 5dip";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setLeft(parent.__c.DipToCurrent((int) (5)));
RDebugUtils.currentLine=65798225;
 //BA.debugLineNum = 65798225;BA.debugLine="l_totProds.Width = Root.Width * 0.19";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.19));
RDebugUtils.currentLine=65798226;
 //BA.debugLineNum = 65798226;BA.debugLine="l_total.Left = l_totProds.Width + 20";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setLeft((int) (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getWidth()+20));
RDebugUtils.currentLine=65798227;
 //BA.debugLineNum = 65798227;BA.debugLine="l_total.Width = Root.Width * 0.25";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.25));
RDebugUtils.currentLine=65798229;
 //BA.debugLineNum = 65798229;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = parent._subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=65798230;
 //BA.debugLineNum = 65798230;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
__ref._prodspedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("productos")));
RDebugUtils.currentLine=65798231;
 //BA.debugLineNum = 65798231;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
__ref._montopedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("monto")));
RDebugUtils.currentLine=65798232;
 //BA.debugLineNum = 65798232;BA.debugLine="hayPedido = Subs.hayPedido";
__ref._haypedido /*boolean*/  = parent._subs._haypedido /*boolean*/ (ba);
RDebugUtils.currentLine=65798234;
 //BA.debugLineNum = 65798234;BA.debugLine="B4XPages.MainPage.productos.clv_prods_ll.Clear";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=65798235;
 //BA.debugLineNum = 65798235;BA.debugLine="If reiniciarlistaProds Then";
if (true) break;

case 45:
//if
this.state = 50;
if (__ref._reiniciarlistaprods /*boolean*/ ) { 
this.state = 47;
}else 
{RDebugUtils.currentLine=65798239;
 //BA.debugLineNum = 65798239;BA.debugLine="else If hayPedido Then";
if (__ref._haypedido /*boolean*/ ) { 
this.state = 49;
}}
if (true) break;

case 47:
//C
this.state = 50;
RDebugUtils.currentLine=65798238;
 //BA.debugLineNum = 65798238;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
 if (true) break;

case 49:
//C
this.state = 50;
RDebugUtils.currentLine=65798243;
 //BA.debugLineNum = 65798243;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
 if (true) break;
;
RDebugUtils.currentLine=65798245;
 //BA.debugLineNum = 65798245;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)";

case 50:
//if
this.state = 55;
if (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize()==0) { 
this.state = 52;
;}if (true) break;

case 52:
//C
this.state = 55;
__ref._llenaprodsll /*String*/ (null,(anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent.__c.Null)));
if (true) break;

case 55:
//C
this.state = -1;
;
RDebugUtils.currentLine=65798246;
 //BA.debugLineNum = 65798246;BA.debugLine="clv_prods_ll.JumpToItem(0) 'Vamos al primer artíc";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._jumptoitem((int) (0));
RDebugUtils.currentLine=65798247;
 //BA.debugLineNum = 65798247;BA.debugLine="PCLV.lblHint.SetTextSizeAnimated(0,13)";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._lblhint /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextSizeAnimated((int) (0),(float) (13));
RDebugUtils.currentLine=65798248;
 //BA.debugLineNum = 65798248;BA.debugLine="PCLV.B4XSeekBar1.Color1=Colors.DarkGray";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._color1 /*int*/  = parent.__c.Colors.DarkGray;
RDebugUtils.currentLine=65798249;
 //BA.debugLineNum = 65798249;BA.debugLine="PCLV.B4XSeekBar1.Color2=Colors.DarkGray";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._color2 /*int*/  = parent.__c.Colors.DarkGray;
RDebugUtils.currentLine=65798250;
 //BA.debugLineNum = 65798250;BA.debugLine="PCLV.B4XSeekBar1.ThumbColor=Colors.red";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._thumbcolor /*int*/  = parent.__c.Colors.Red;
RDebugUtils.currentLine=65798251;
 //BA.debugLineNum = 65798251;BA.debugLine="PCLV.B4XSeekBar1.mBase.Left=Root.Width *0.91";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setLeft((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.91));
RDebugUtils.currentLine=65798253;
 //BA.debugLineNum = 65798253;BA.debugLine="PCLV.B4XSeekBar1.mBase.Height=clv_prods_ll.AsView";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setHeight(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getHeight());
RDebugUtils.currentLine=65798254;
 //BA.debugLineNum = 65798254;BA.debugLine="PCLV.pnlOverlay.Height = clv_prods_ll.AsView.Heig";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._pnloverlay /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setHeight(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getHeight());
RDebugUtils.currentLine=65798255;
 //BA.debugLineNum = 65798255;BA.debugLine="PCLV.B4XSeekBar1.Update";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._update /*String*/ (null);
RDebugUtils.currentLine=65798259;
 //BA.debugLineNum = 65798259;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_rechazar_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_rechazar_click", false))
	 {return ((String) Debug.delegate(ba, "b_rechazar_click", null));}
RDebugUtils.currentLine=67174400;
 //BA.debugLineNum = 67174400;BA.debugLine="Private Sub b_rechazar_Click";
RDebugUtils.currentLine=67174402;
 //BA.debugLineNum = 67174402;BA.debugLine="result =  Msgbox2($\"Seguro que desea borrar el pe";
__ref._result /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence(("Seguro que desea borrar el pedido completo?"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Haciendo clic largo sobre un producto se pueden borrar articulos independientes.")),BA.ObjectToCharSequence("Rechazar Pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=67174403;
 //BA.debugLineNum = 67174403;BA.debugLine="If result = DialogResponse.POSITIVE Then";
if ((__ref._result /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=67174404;
 //BA.debugLineNum = 67174404;BA.debugLine="Subs.borraPedidoClienteActual";
_subs._borrapedidoclienteactual /*String*/ (ba);
RDebugUtils.currentLine=67174405;
 //BA.debugLineNum = 67174405;BA.debugLine="prodsMap.Initialize";
__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=67174409;
 //BA.debugLineNum = 67174409;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=67174410;
 //BA.debugLineNum = 67174410;BA.debugLine="Log(\"Positivo\")";
__c.LogImpl("067174410","Positivo",0);
RDebugUtils.currentLine=67174411;
 //BA.debugLineNum = 67174411;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
 }else {
RDebugUtils.currentLine=67174413;
 //BA.debugLineNum = 67174413;BA.debugLine="Log(\"NO Positivo\")";
__c.LogImpl("067174413","NO Positivo",0);
RDebugUtils.currentLine=67174414;
 //BA.debugLineNum = 67174414;BA.debugLine="p_vistaPreviaTrans.Visible = False";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=67174419;
 //BA.debugLineNum = 67174419;BA.debugLine="p_vistaPreviaTrans.Visible=False";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=67174420;
 //BA.debugLineNum = 67174420;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=67174421;
 //BA.debugLineNum = 67174421;BA.debugLine="End Sub";
return "";
}
public String  _b_terminar1_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_terminar1_click", false))
	 {return ((String) Debug.delegate(ba, "b_terminar1_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c_prods = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _textcolor = 0;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
RDebugUtils.currentLine=66715648;
 //BA.debugLineNum = 66715648;BA.debugLine="Sub b_terminar1_Click";
RDebugUtils.currentLine=66715651;
 //BA.debugLineNum = 66715651;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from PEDIDO WHERE PE_PRONOMBRE = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("N/A")}));
RDebugUtils.currentLine=66715653;
 //BA.debugLineNum = 66715653;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=66715654;
 //BA.debugLineNum = 66715654;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
RDebugUtils.currentLine=66715655;
 //BA.debugLineNum = 66715655;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66715656;
 //BA.debugLineNum = 66715656;BA.debugLine="lv_prodsPedido.Clear";
__ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=66715657;
 //BA.debugLineNum = 66715657;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Height = 35di";
__ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label.setHeight(__c.DipToCurrent((int) (35)));
RDebugUtils.currentLine=66715658;
 //BA.debugLineNum = 66715658;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.Height";
__ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel.setHeight(__c.DipToCurrent((int) (25)));
RDebugUtils.currentLine=66715659;
 //BA.debugLineNum = 66715659;BA.debugLine="Private c_prods As Cursor=B4XPages.MainPage.skmt.";
_c_prods = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c_prods = (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 PE_PRONOMBRE,PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_PRONOMBRE")));
RDebugUtils.currentLine=66715660;
 //BA.debugLineNum = 66715660;BA.debugLine="If c_prods.RowCount > 0 Then";
if (_c_prods.getRowCount()>0) { 
RDebugUtils.currentLine=66715661;
 //BA.debugLineNum = 66715661;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=66715663;
 //BA.debugLineNum = 66715663;BA.debugLine="vamoaver.Initialize";
__ref._vamoaver /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=66715664;
 //BA.debugLineNum = 66715664;BA.debugLine="For i=0 To c_prods.RowCount -1";
{
final int step12 = 1;
final int limit12 = (int) (_c_prods.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit12 ;_i = _i + step12 ) {
RDebugUtils.currentLine=66715665;
 //BA.debugLineNum = 66715665;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=66715666;
 //BA.debugLineNum = 66715666;BA.debugLine="c_prods.Position=i";
_c_prods.setPosition(_i);
RDebugUtils.currentLine=66715667;
 //BA.debugLineNum = 66715667;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=66715668;
 //BA.debugLineNum = 66715668;BA.debugLine="label1 = lv_prodsPedido.TwoLinesLayout.Label";
_label1 = __ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=66715669;
 //BA.debugLineNum = 66715669;BA.debugLine="label1.TextSize = 15";
_label1.setTextSize((float) (15));
RDebugUtils.currentLine=66715670;
 //BA.debugLineNum = 66715670;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=66715671;
 //BA.debugLineNum = 66715671;BA.debugLine="label1.color = Colors.White";
_label1.setColor(__c.Colors.White);
RDebugUtils.currentLine=66715672;
 //BA.debugLineNum = 66715672;BA.debugLine="Private textColor As Int = Colors.black";
_textcolor = __c.Colors.Black;
RDebugUtils.currentLine=66715674;
 //BA.debugLineNum = 66715674;BA.debugLine="If c_prods.GetString(\"PE_FOLIO\") = \"VENTA\" Then";
if ((_c_prods.GetString("PE_FOLIO")).equals("VENTA")) { 
RDebugUtils.currentLine=66715675;
 //BA.debugLineNum = 66715675;BA.debugLine="textColor = Colors.RGB(48,3,195)";
_textcolor = __c.Colors.RGB((int) (48),(int) (3),(int) (195));
 }else 
{RDebugUtils.currentLine=66715676;
 //BA.debugLineNum = 66715676;BA.debugLine="Else If c_prods.GetString(\"PE_FOLIO\") = \"PREVEN";
if ((_c_prods.GetString("PE_FOLIO")).equals("PREVENTA") || (_c_prods.GetString("PE_FOLIO")).equals("ABORDO") || (_c_prods.GetString("PE_FOLIO")).equals("RECARGA")) { 
RDebugUtils.currentLine=66715677;
 //BA.debugLineNum = 66715677;BA.debugLine="textColor = Colors.RGB(166,0,0)";
_textcolor = __c.Colors.RGB((int) (166),(int) (0),(int) (0));
 }}
;
RDebugUtils.currentLine=66715679;
 //BA.debugLineNum = 66715679;BA.debugLine="If Not(IsNumber(c_prods.GetString(\"PE_CEDIS\")))";
if (__c.Not(__c.IsNumber(_c_prods.GetString("PE_CEDIS"))) && (_c_prods.GetString("PE_FOLIO")).equals("VENTA")) { 
RDebugUtils.currentLine=66715680;
 //BA.debugLineNum = 66715680;BA.debugLine="textColor = Colors.RGB(154,131,231) 'Si es pro";
_textcolor = __c.Colors.RGB((int) (154),(int) (131),(int) (231));
 }else 
{RDebugUtils.currentLine=66715681;
 //BA.debugLineNum = 66715681;BA.debugLine="Else If Not(IsNumber(c_prods.GetString(\"PE_CEDI";
if (__c.Not(__c.IsNumber(_c_prods.GetString("PE_CEDIS"))) && (_c_prods.GetString("PE_FOLIO")).equals("PREVENTA")) { 
RDebugUtils.currentLine=66715682;
 //BA.debugLineNum = 66715682;BA.debugLine="textColor = Colors.RGB(255,111,111) 'Si es pro";
_textcolor = __c.Colors.RGB((int) (255),(int) (111),(int) (111));
 }}
;
RDebugUtils.currentLine=66715684;
 //BA.debugLineNum = 66715684;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=66715685;
 //BA.debugLineNum = 66715685;BA.debugLine="label2 = lv_prodsPedido.TwoLinesLayout.SecondLa";
_label2 = __ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=66715686;
 //BA.debugLineNum = 66715686;BA.debugLine="label2.TextSize = 10";
_label2.setTextSize((float) (10));
RDebugUtils.currentLine=66715687;
 //BA.debugLineNum = 66715687;BA.debugLine="label2.TextColor = Colors.Blue";
_label2.setTextColor(__c.Colors.Blue);
RDebugUtils.currentLine=66715690;
 //BA.debugLineNum = 66715690;BA.debugLine="lv_prodsPedido.AddSingleLine(cs.Color(textColor";
__ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_cs.Color(_textcolor).Size((int) (15)).Append(BA.ObjectToCharSequence(_c_prods.GetString("PE_PRONOMBRE")+" ")).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Size((int) (10)).Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Cantidad #"+_c_prods.GetString("PE_CANT"))).Append(BA.ObjectToCharSequence(" SubTotal $"+_c_prods.GetString("PE_COSTO_TOT"))).Append(BA.ObjectToCharSequence(" "+_c_prods.GetString("PE_FOLIO")+" "+_c_prods.GetString("PE_CEDIS"))).PopAll().getObject()));
RDebugUtils.currentLine=66715691;
 //BA.debugLineNum = 66715691;BA.debugLine="label1.Height = 120dip";
_label1.setHeight(__c.DipToCurrent((int) (120)));
RDebugUtils.currentLine=66715692;
 //BA.debugLineNum = 66715692;BA.debugLine="lv_prodsPedido.SingleLineLayout.ItemHeight = 90";
__ref._lv_prodspedido /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (90)));
RDebugUtils.currentLine=66715693;
 //BA.debugLineNum = 66715693;BA.debugLine="vamoaver.Add(c_prods.GetString(\"PE_FOLIO\"))";
__ref._vamoaver /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_c_prods.GetString("PE_FOLIO")));
RDebugUtils.currentLine=66715694;
 //BA.debugLineNum = 66715694;BA.debugLine="folio = c_prods.GetString(\"PE_FOLIO\")";
__ref._folio /*String*/  = _c_prods.GetString("PE_FOLIO");
 }
};
RDebugUtils.currentLine=66715700;
 //BA.debugLineNum = 66715700;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select sum";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )")));
RDebugUtils.currentLine=66715701;
 //BA.debugLineNum = 66715701;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66715702;
 //BA.debugLineNum = 66715702;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=66715703;
 //BA.debugLineNum = 66715703;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=66715704;
 //BA.debugLineNum = 66715704;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=66715707;
 //BA.debugLineNum = 66715707;BA.debugLine="c_prods.Close";
_c_prods.Close();
RDebugUtils.currentLine=66715709;
 //BA.debugLineNum = 66715709;BA.debugLine="l_total2.Text = Subs.calculaTotalConPromoXRango(S";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba))));
RDebugUtils.currentLine=66715712;
 //BA.debugLineNum = 66715712;BA.debugLine="p_vistaPreviaTrans.Width = Root.Width";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=66715713;
 //BA.debugLineNum = 66715713;BA.debugLine="p_vistaPreviaTrans.Height = Root.Height";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=66715714;
 //BA.debugLineNum = 66715714;BA.debugLine="Subs.centraPanel(p_vistaPrevia, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_vistaprevia /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=66715716;
 //BA.debugLineNum = 66715716;BA.debugLine="p_vistaPrevia.Visible=True";
__ref._p_vistaprevia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66715717;
 //BA.debugLineNum = 66715717;BA.debugLine="p_vistaPreviaTrans.Visible=True";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66715718;
 //BA.debugLineNum = 66715718;BA.debugLine="End Sub";
return "";
}
public String  _llenaprodsll(gunav2.keymon.com.mx.c_productos __ref,anywheresoftware.b4a.sql.SQL.ResultSetWrapper _p) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "llenaprodsll", false))
	 {return ((String) Debug.delegate(ba, "llenaprodsll", new Object[] {_p}));}
anywheresoftware.b4a.objects.collections.Map _cantsmap = null;
anywheresoftware.b4a.sql.SQL.ResultSetWrapper _pe = null;
int _cant = 0;
anywheresoftware.b4a.objects.collections.Map _tempmap = null;
anywheresoftware.b4a.objects.collections.List _listaprodsconcant = null;
anywheresoftware.b4a.objects.collections.List _listaprodsconcantindex = null;
int _q = 0;
int _cont = 0;
int _pr0 = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
int _pr = 0;
RDebugUtils.currentLine=67633152;
 //BA.debugLineNum = 67633152;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
RDebugUtils.currentLine=67633153;
 //BA.debugLineNum = 67633153;BA.debugLine="Log(\"Iniciamos LlenaProdsLL\")";
__c.LogImpl("067633153","Iniciamos LlenaProdsLL",0);
RDebugUtils.currentLine=67633154;
 //BA.debugLineNum = 67633154;BA.debugLine="listaProds.Initialize";
__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=67633155;
 //BA.debugLineNum = 67633155;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca";
if (__ref._haypedido /*boolean*/ ) { 
RDebugUtils.currentLine=67633156;
 //BA.debugLineNum = 67633156;BA.debugLine="Dim cantsMap As Map";
_cantsmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=67633157;
 //BA.debugLineNum = 67633157;BA.debugLine="cantsMap.Initialize";
_cantsmap.Initialize();
RDebugUtils.currentLine=67633158;
 //BA.debugLineNum = 67633158;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=67633159;
 //BA.debugLineNum = 67633159;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex";
_pe = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_pe = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID, PE_CANT from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._clienteid /*String*/ ))+"' and PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ))+"' AND PE_FUTURO = '1' "))));
 }else {
RDebugUtils.currentLine=67633161;
 //BA.debugLineNum = 67633161;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex";
_pe = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_pe = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID, PE_CANT from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._clienteid /*String*/ ))+"' and PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ))+"' AND PE_FUTURO = '0' "))));
 };
RDebugUtils.currentLine=67633164;
 //BA.debugLineNum = 67633164;BA.debugLine="Do While pe.NextRow";
while (_pe.NextRow()) {
RDebugUtils.currentLine=67633165;
 //BA.debugLineNum = 67633165;BA.debugLine="Private cant As Int = 0";
_cant = (int) (0);
RDebugUtils.currentLine=67633167;
 //BA.debugLineNum = 67633167;BA.debugLine="cantsMap.put(pe.GetString(\"PE_PROID\"), pe.GetS";
_cantsmap.Put((Object)(_pe.GetString("PE_PROID")),(Object)(_pe.GetString("PE_CANT")));
RDebugUtils.currentLine=67633171;
 //BA.debugLineNum = 67633171;BA.debugLine="Log(clienteId &\"|||||\"&pe.GetString(\"PE_PROID\")";
__c.LogImpl("067633171",__ref._clienteid /*String*/ +"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0);
 }
;
RDebugUtils.currentLine=67633173;
 //BA.debugLineNum = 67633173;BA.debugLine="pe.Close";
_pe.Close();
 };
RDebugUtils.currentLine=67633176;
 //BA.debugLineNum = 67633176;BA.debugLine="If p.IsInitialized Then";
if (_p.IsInitialized()) { 
 }else {
RDebugUtils.currentLine=67633183;
 //BA.debugLineNum = 67633183;BA.debugLine="LogColor(Starter.tabla,Colors.blue)";
__c.LogImpl("067633183",_starter._tabla /*String*/ ,__c.Colors.Blue);
RDebugUtils.currentLine=67633207;
 //BA.debugLineNum = 67633207;BA.debugLine="If Subs.traeTipoCliente = 5 Then";
if (_subs._traetipocliente /*int*/ (ba)==5) { 
RDebugUtils.currentLine=67633208;
 //BA.debugLineNum = 67633208;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe";
_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_LISTAPRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"+"	order by\n"+"		Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"+"		WHEN 'ESTRATEGICO' THEN 1\n"+"		WHEN 'COMPLEMENTARIO' then 2\n"+"		Else 3\n"+"		End, CAT_GP_NOMBRE"))));
 }else {
RDebugUtils.currentLine=67633216;
 //BA.debugLineNum = 67633216;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe";
_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"+"	order by\n"+"		Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"+"		WHEN 'ESTRATEGICO' THEN 1\n"+"		WHEN 'COMPLEMENTARIO' then 2\n"+"		Else 3\n"+"		End, CAT_GP_NOMBRE"))));
 };
 };
RDebugUtils.currentLine=67633243;
 //BA.debugLineNum = 67633243;BA.debugLine="Do While p.NextRow";
while (_p.NextRow()) {
RDebugUtils.currentLine=67633244;
 //BA.debugLineNum = 67633244;BA.debugLine="Private cant As Int = 0";
_cant = (int) (0);
RDebugUtils.currentLine=67633245;
 //BA.debugLineNum = 67633245;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin";
if (__ref._haypedido /*boolean*/  && _cantsmap.ContainsKey((Object)(_p.GetString("CAT_GP_ID")))) { 
RDebugUtils.currentLine=67633246;
 //BA.debugLineNum = 67633246;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))";
__c.LogImpl("067633246",_p.GetString("CAT_GP_ID"),0);
RDebugUtils.currentLine=67633247;
 //BA.debugLineNum = 67633247;BA.debugLine="cant = cantsMap.Get(p.GetString(\"CAT_GP_ID\"))";
_cant = (int)(BA.ObjectToNumber(_cantsmap.Get((Object)(_p.GetString("CAT_GP_ID")))));
 };
RDebugUtils.currentLine=67633249;
 //BA.debugLineNum = 67633249;BA.debugLine="If Subs.traeTipoCliente = 5 Then";
if (_subs._traetipocliente /*int*/ (ba)==5) { 
RDebugUtils.currentLine=67633250;
 //BA.debugLineNum = 67633250;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G";
if ((_p.GetString("CAT_GP_ID")).equals("GUN141") == false && (_p.GetString("CAT_GP_ID")).equals("GUN142") == false) { 
RDebugUtils.currentLine=67633253;
 //BA.debugLineNum = 67633253;BA.debugLine="Dim tempMap As Map = CreateMap( _";
_tempmap = new anywheresoftware.b4a.objects.collections.Map();
_tempmap = __c.createMap(new Object[] {(Object)("prod"),(Object)(_p.GetString("CAT_GP_NOMBRE")),(Object)("precio"),(Object)(_p.GetString("CAT_LISTAPRECIO")),(Object)("prioridad"),(Object)(_p.GetString("CAT_GP_TIPOPROD")),(Object)("almacen"),(Object)(_p.GetString("CAT_GP_ALMACEN")),(Object)("id"),(Object)(_p.GetString("CAT_GP_ID")),(Object)("cant"),(Object)(_cant),(Object)("conversion"),(Object)(1),(Object)("precio_caja"),(Object)(0),(Object)("b_caja"),(Object)(0)});
RDebugUtils.currentLine=67633264;
 //BA.debugLineNum = 67633264;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map";
__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_tempmap.getObject()));
 };
 }else {
RDebugUtils.currentLine=67633267;
 //BA.debugLineNum = 67633267;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G";
if ((_p.GetString("CAT_GP_ID")).equals("GUN141") == false && (_p.GetString("CAT_GP_ID")).equals("GUN142") == false) { 
RDebugUtils.currentLine=67633270;
 //BA.debugLineNum = 67633270;BA.debugLine="Dim tempMap As Map = CreateMap( _";
_tempmap = new anywheresoftware.b4a.objects.collections.Map();
_tempmap = __c.createMap(new Object[] {(Object)("prod"),(Object)(_p.GetString("CAT_GP_NOMBRE")),(Object)("precio"),(Object)(_p.GetString("CAT_GP_PRECIO")),(Object)("prioridad"),(Object)(_p.GetString("CAT_GP_TIPOPROD")),(Object)("almacen"),(Object)(_p.GetString("CAT_GP_ALMACEN")),(Object)("id"),(Object)(_p.GetString("CAT_GP_ID")),(Object)("cant"),(Object)(_cant),(Object)("conversion"),(Object)(1),(Object)("precio_caja"),(Object)(0),(Object)("b_caja"),(Object)(0)});
RDebugUtils.currentLine=67633281;
 //BA.debugLineNum = 67633281;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map";
__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_tempmap.getObject()));
 };
 };
 }
;
RDebugUtils.currentLine=67633288;
 //BA.debugLineNum = 67633288;BA.debugLine="PCLV.Commit";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._commit /*String*/ (null);
RDebugUtils.currentLine=67633289;
 //BA.debugLineNum = 67633289;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=67633290;
 //BA.debugLineNum = 67633290;BA.debugLine="Private listaProdsConCant, listaProdsConCantIndex";
_listaprodsconcant = new anywheresoftware.b4a.objects.collections.List();
_listaprodsconcantindex = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=67633291;
 //BA.debugLineNum = 67633291;BA.debugLine="listaProdsConCant.Initialize";
_listaprodsconcant.Initialize();
RDebugUtils.currentLine=67633292;
 //BA.debugLineNum = 67633292;BA.debugLine="listaProdsConCantIndex.Initialize";
_listaprodsconcantindex.Initialize();
RDebugUtils.currentLine=67633293;
 //BA.debugLineNum = 67633293;BA.debugLine="listaHints.Initialize";
__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=67633294;
 //BA.debugLineNum = 67633294;BA.debugLine="For q=0 To listaProds.Size-1' quitamos los produc";
{
final int step51 = 1;
final int limit51 = (int) (__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_q = (int) (0) ;
for (;_q <= limit51 ;_q = _q + step51 ) {
RDebugUtils.currentLine=67633295;
 //BA.debugLineNum = 67633295;BA.debugLine="If listaProds.Get(q).As(Map).Get(\"cant\").As(Int)";
if (((int)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Get(_q)))).Get((Object)("cant")))))!=0) { 
RDebugUtils.currentLine=67633297;
 //BA.debugLineNum = 67633297;BA.debugLine="listaProdsConCant.Add(listaProds.Get(q))";
_listaprodsconcant.Add(__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Get(_q));
RDebugUtils.currentLine=67633298;
 //BA.debugLineNum = 67633298;BA.debugLine="listaProdsConCantIndex.Add(q)";
_listaprodsconcantindex.Add((Object)(_q));
 };
 }
};
RDebugUtils.currentLine=67633302;
 //BA.debugLineNum = 67633302;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=67633303;
 //BA.debugLineNum = 67633303;BA.debugLine="For pr0=0 To listaProdsConCant.Size - 1 'Agregamo";
{
final int step58 = 1;
final int limit58 = (int) (_listaprodsconcant.getSize()-1);
_pr0 = (int) (0) ;
for (;_pr0 <= limit58 ;_pr0 = _pr0 + step58 ) {
RDebugUtils.currentLine=67633304;
 //BA.debugLineNum = 67633304;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=67633306;
 //BA.debugLineNum = 67633306;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsVi";
_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (65)));
RDebugUtils.currentLine=67633307;
 //BA.debugLineNum = 67633307;BA.debugLine="clv_prods_ll.Add(Pnl, listaProdsConCant.Get(pr0)";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._add(_pnl,_listaprodsconcant.Get(_pr0));
RDebugUtils.currentLine=67633308;
 //BA.debugLineNum = 67633308;BA.debugLine="listaHints.Add(listaProdsConCant.get(pr0).As(Map";
__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Add(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_listaprodsconcant.Get(_pr0)))).Get((Object)("prod")));
RDebugUtils.currentLine=67633309;
 //BA.debugLineNum = 67633309;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 }
};
RDebugUtils.currentLine=67633313;
 //BA.debugLineNum = 67633313;BA.debugLine="For pr=0 To listaProds.Size-1";
{
final int step65 = 1;
final int limit65 = (int) (__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_pr = (int) (0) ;
for (;_pr <= limit65 ;_pr = _pr + step65 ) {
RDebugUtils.currentLine=67633314;
 //BA.debugLineNum = 67633314;BA.debugLine="If listaProdsConCantIndex.IndexOf(pr) = -1 Then";
if (_listaprodsconcantindex.IndexOf((Object)(_pr))==-1) { 
RDebugUtils.currentLine=67633315;
 //BA.debugLineNum = 67633315;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=67633316;
 //BA.debugLineNum = 67633316;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsV";
_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (65)));
RDebugUtils.currentLine=67633319;
 //BA.debugLineNum = 67633319;BA.debugLine="listaHints.Add(listaProds.get(pr).As(Map).Get(\"";
__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Add(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pr)))).Get((Object)("prod")));
RDebugUtils.currentLine=67633320;
 //BA.debugLineNum = 67633320;BA.debugLine="clv_prods_ll.Add(Pnl, listaProds.Get(pr))";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._add(_pnl,__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pr));
RDebugUtils.currentLine=67633322;
 //BA.debugLineNum = 67633322;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
 };
 }
};
RDebugUtils.currentLine=67633329;
 //BA.debugLineNum = 67633329;BA.debugLine="PCLV.B4XSeekBar1.MaxValue = clv_prods_ll.Size";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._maxvalue /*int*/  = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize();
RDebugUtils.currentLine=67633330;
 //BA.debugLineNum = 67633330;BA.debugLine="PCLV.B4XSeekBar1.MinValue = 0";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._minvalue /*int*/  = (int) (0);
RDebugUtils.currentLine=67633331;
 //BA.debugLineNum = 67633331;BA.debugLine="PCLV.B4XSeekBar1.Interval = clv_prods_ll.Size/20";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._interval /*int*/  = (int) (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize()/(double)20);
RDebugUtils.currentLine=67633332;
 //BA.debugLineNum = 67633332;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._setvalue /*int*/ (null,__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize());
RDebugUtils.currentLine=67633333;
 //BA.debugLineNum = 67633333;BA.debugLine="PCLV.B4XSeekBar1.Update";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._update /*String*/ (null);
RDebugUtils.currentLine=67633335;
 //BA.debugLineNum = 67633335;BA.debugLine="reiniciarlistaProds = False";
__ref._reiniciarlistaprods /*boolean*/  = __c.False;
RDebugUtils.currentLine=67633336;
 //BA.debugLineNum = 67633336;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.c_productos parent,gunav2.keymon.com.mx.c_productos __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_productos __ref;
gunav2.keymon.com.mx.c_productos parent;

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

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

case 1:
//if
this.state = 16;
if (__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=66191367;
 //BA.debugLineNum = 66191367;BA.debugLine="else if p_vistaPreviaTrans.Visible Then";
if (__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else 
{RDebugUtils.currentLine=66191371;
 //BA.debugLineNum = 66191371;BA.debugLine="else if lv_promos.visible Then";
if (__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getVisible()) { 
this.state = 7;
}else 
{RDebugUtils.currentLine=66191379;
 //BA.debugLineNum = 66191379;BA.debugLine="else if clv_prods_ll.AsView.Visible Then";
if (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getVisible()) { 
this.state = 9;
}else 
{RDebugUtils.currentLine=66191399;
 //BA.debugLineNum = 66191399;BA.debugLine="else If entro = \"4\" Then";
if ((__ref._entro /*String*/ ).equals("4")) { 
this.state = 11;
}else 
{RDebugUtils.currentLine=66191405;
 //BA.debugLineNum = 66191405;BA.debugLine="Else If entro = \"3\" Then";
if ((__ref._entro /*String*/ ).equals("3")) { 
this.state = 13;
}else {
this.state = 15;
}}}}}}
if (true) break;

case 3:
//C
this.state = 16;
RDebugUtils.currentLine=66191364;
 //BA.debugLineNum = 66191364;BA.debugLine="l_info.Visible = False";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191365;
 //BA.debugLineNum = 66191365;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191365","AQUI",0);
RDebugUtils.currentLine=66191366;
 //BA.debugLineNum = 66191366;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 5:
//C
this.state = 16;
RDebugUtils.currentLine=66191368;
 //BA.debugLineNum = 66191368;BA.debugLine="p_vistaPreviaTrans.Visible = False";
__ref._p_vistapreviatrans /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191369;
 //BA.debugLineNum = 66191369;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191369","AQUI",0);
RDebugUtils.currentLine=66191370;
 //BA.debugLineNum = 66191370;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 7:
//C
this.state = 16;
RDebugUtils.currentLine=66191372;
 //BA.debugLineNum = 66191372;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191373;
 //BA.debugLineNum = 66191373;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=66191374;
 //BA.debugLineNum = 66191374;BA.debugLine="p_botonesVenta.Visible = False";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191375;
 //BA.debugLineNum = 66191375;BA.debugLine="l_total.Visible = False";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191376;
 //BA.debugLineNum = 66191376;BA.debugLine="l_totProds.Visible = False";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191377;
 //BA.debugLineNum = 66191377;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191377","AQUI",0);
RDebugUtils.currentLine=66191378;
 //BA.debugLineNum = 66191378;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 9:
//C
this.state = 16;
RDebugUtils.currentLine=66191380;
 //BA.debugLineNum = 66191380;BA.debugLine="lfila.text = \"PORTAFOLIO\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PORTAFOLIO"));
RDebugUtils.currentLine=66191381;
 //BA.debugLineNum = 66191381;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.False);
RDebugUtils.currentLine=66191382;
 //BA.debugLineNum = 66191382;BA.debugLine="lv_subtipo.Visible = False";
__ref._lv_subtipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191383;
 //BA.debugLineNum = 66191383;BA.debugLine="p_botonesVenta.Visible = False";
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191384;
 //BA.debugLineNum = 66191384;BA.debugLine="l_total.Visible = False";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191385;
 //BA.debugLineNum = 66191385;BA.debugLine="l_totProds.Visible = False";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=66191386;
 //BA.debugLineNum = 66191386;BA.debugLine="lv_catalogos.Visible = True";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=66191387;
 //BA.debugLineNum = 66191387;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191387","AQUI",0);
RDebugUtils.currentLine=66191388;
 //BA.debugLineNum = 66191388;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 11:
//C
this.state = 16;
RDebugUtils.currentLine=66191401;
 //BA.debugLineNum = 66191401;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191401","AQUI",0);
RDebugUtils.currentLine=66191403;
 //BA.debugLineNum = 66191403;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=66191404;
 //BA.debugLineNum = 66191404;BA.debugLine="Return True";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;};
 if (true) break;

case 13:
//C
this.state = 16;
RDebugUtils.currentLine=66191406;
 //BA.debugLineNum = 66191406;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=66191407;
 //BA.debugLineNum = 66191407;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191407","AQUI",0);
RDebugUtils.currentLine=66191408;
 //BA.debugLineNum = 66191408;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=66191410;
 //BA.debugLineNum = 66191410;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=66191411;
 //BA.debugLineNum = 66191411;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("066191411","AQUI",0);
RDebugUtils.currentLine=66191412;
 //BA.debugLineNum = 66191412;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_productos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
RDebugUtils.currentLine=65732608;
 //BA.debugLineNum = 65732608;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=65732609;
 //BA.debugLineNum = 65732609;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=65732612;
 //BA.debugLineNum = 65732612;BA.debugLine="Root.LoadLayout(\"productos\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("productos",ba);
RDebugUtils.currentLine=65732613;
 //BA.debugLineNum = 65732613;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = __c.File.getDirInternal();
RDebugUtils.currentLine=65732614;
 //BA.debugLineNum = 65732614;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=65732615;
 //BA.debugLineNum = 65732615;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",__ref._ruta /*String*/ ,"kmt.db");
 };
RDebugUtils.currentLine=65732617;
 //BA.debugLineNum = 65732617;BA.debugLine="PCLV.Initialize(Me, \"PCLV\", clv_prods_ll)";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._initialize /*String*/ (null,ba,this,"PCLV",__ref._clv_prods_ll /*b4a.example3.customlistview*/ );
RDebugUtils.currentLine=65732618;
 //BA.debugLineNum = 65732618;BA.debugLine="ciclo = 1";
__ref._ciclo /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=65732619;
 //BA.debugLineNum = 65732619;BA.debugLine="l_info.Width = Root.Width * 0.8";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.8));
RDebugUtils.currentLine=65732620;
 //BA.debugLineNum = 65732620;BA.debugLine="l_info.Left = (Root.Width/2) - (l_info.Width/2)";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setLeft((int) ((__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=65732621;
 //BA.debugLineNum = 65732621;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select dist";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_GP_TIPO from cat_gunaprod where CAT_GP_TIPO <> 'PROMOS' order by CAT_GP_TIPO")));
RDebugUtils.currentLine=65732622;
 //BA.debugLineNum = 65732622;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=65732623;
 //BA.debugLineNum = 65732623;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65732624;
 //BA.debugLineNum = 65732624;BA.debugLine="label1 = lv_tipo.SingleLineLayout.Label";
_label1 = __ref._lv_tipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=65732625;
 //BA.debugLineNum = 65732625;BA.debugLine="label1.TextSize = 17";
_label1.setTextSize((float) (17));
RDebugUtils.currentLine=65732626;
 //BA.debugLineNum = 65732626;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=65732627;
 //BA.debugLineNum = 65732627;BA.debugLine="lv_tipo.Clear";
__ref._lv_tipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=65732628;
 //BA.debugLineNum = 65732628;BA.debugLine="For i=0 To c.RowCount-1";
{
final int step18 = 1;
final int limit18 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit18 ;_i = _i + step18 ) {
RDebugUtils.currentLine=65732629;
 //BA.debugLineNum = 65732629;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=65732630;
 //BA.debugLineNum = 65732630;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")";
__c.LogImpl("065732630","ENTRE AQUI EN PROMOS create",0);
RDebugUtils.currentLine=65732631;
 //BA.debugLineNum = 65732631;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
__ref._lv_tipo /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_TIPO")));
 }
};
 };
RDebugUtils.currentLine=65732634;
 //BA.debugLineNum = 65732634;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=65732637;
 //BA.debugLineNum = 65732637;BA.debugLine="listaTiempos.Initialize";
__ref._listatiempos /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=65732638;
 //BA.debugLineNum = 65732638;BA.debugLine="listaProds.Initialize";
__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=65732639;
 //BA.debugLineNum = 65732639;BA.debugLine="pedidoMap.Initialize";
__ref._pedidomap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=65732640;
 //BA.debugLineNum = 65732640;BA.debugLine="listaHints.Initialize";
__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=65732643;
 //BA.debugLineNum = 65732643;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=65732644;
 //BA.debugLineNum = 65732644;BA.debugLine="prodsMap.Initialize";
__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=65732645;
 //BA.debugLineNum = 65732645;BA.debugLine="End Sub";
return "";
}
public void  _busca_textchanged(gunav2.keymon.com.mx.c_productos __ref,String _old,String _new) throws Exception{
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "busca_textchanged", false))
	 {Debug.delegate(ba, "busca_textchanged", new Object[] {_old,_new}); return;}
ResumableSub_Busca_TextChanged rsub = new ResumableSub_Busca_TextChanged(this,__ref,_old,_new);
rsub.resume(ba, null);
}
public static class ResumableSub_Busca_TextChanged extends BA.ResumableSub {
public ResumableSub_Busca_TextChanged(gunav2.keymon.com.mx.c_productos parent,gunav2.keymon.com.mx.c_productos __ref,String _old,String _new) {
this.parent = parent;
this.__ref = __ref;
this._old = _old;
this._new = _new;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_productos __ref;
gunav2.keymon.com.mx.c_productos parent;
String _old;
String _new;
anywheresoftware.b4a.sql.SQL.ResultSetWrapper _p = null;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=67567618;
 //BA.debugLineNum = 67567618;BA.debugLine="If Not(clv_prods_ll.AsView.Visible) Then clv_prod";
if (true) break;

case 1:
//if
this.state = 6;
if (parent.__c.Not(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().getVisible())) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.True);
if (true) break;

case 6:
//C
this.state = 7;
;
RDebugUtils.currentLine=67567619;
 //BA.debugLineNum = 67567619;BA.debugLine="If (New.Length = 1 Or New.Length = 2) And Not(for";
if (true) break;

case 7:
//if
this.state = 12;
if ((_new.length()==1 || _new.length()==2) && parent.__c.Not(__ref._forzarbusqueda /*boolean*/ )) { 
this.state = 9;
;}if (true) break;

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

case 12:
//C
this.state = -1;
;
RDebugUtils.currentLine=67567620;
 //BA.debugLineNum = 67567620;BA.debugLine="forzarBusqueda = False";
__ref._forzarbusqueda /*boolean*/  = parent.__c.False;
RDebugUtils.currentLine=67567621;
 //BA.debugLineNum = 67567621;BA.debugLine="clv_prods_ll.Clear";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=67567622;
 //BA.debugLineNum = 67567622;BA.debugLine="listaProds.Initialize";
__ref._listaprods /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=67567623;
 //BA.debugLineNum = 67567623;BA.debugLine="listaHints.Initialize";
__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=67567624;
 //BA.debugLineNum = 67567624;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_productos", "busca_textchanged"),(int) (0));
this.state = 13;
return;
case 13:
//C
this.state = -1;
;
RDebugUtils.currentLine=67567629;
 //BA.debugLineNum = 67567629;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exec";
_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%"+parent.__c.SmartStringFormatter("",(Object)(_new))+"%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"))));
RDebugUtils.currentLine=67567631;
 //BA.debugLineNum = 67567631;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
parent.__c.LogImpl("067567631","Llamamos LlenaProdsLL",0);
RDebugUtils.currentLine=67567632;
 //BA.debugLineNum = 67567632;BA.debugLine="LlenaProdsLL(p)";
__ref._llenaprodsll /*String*/ (null,_p);
RDebugUtils.currentLine=67567651;
 //BA.debugLineNum = 67567651;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _class_globals(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
RDebugUtils.currentLine=65601536;
 //BA.debugLineNum = 65601536;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=65601537;
 //BA.debugLineNum = 65601537;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=65601538;
 //BA.debugLineNum = 65601538;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=65601539;
 //BA.debugLineNum = 65601539;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=65601540;
 //BA.debugLineNum = 65601540;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=65601541;
 //BA.debugLineNum = 65601541;BA.debugLine="Dim forzarBusqueda As Boolean = False";
_forzarbusqueda = __c.False;
RDebugUtils.currentLine=65601542;
 //BA.debugLineNum = 65601542;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=65601543;
 //BA.debugLineNum = 65601543;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601544;
 //BA.debugLineNum = 65601544;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601545;
 //BA.debugLineNum = 65601545;BA.debugLine="Dim C3 As Cursor";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601546;
 //BA.debugLineNum = 65601546;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601547;
 //BA.debugLineNum = 65601547;BA.debugLine="Dim lv_catalogos As ListView";
_lv_catalogos = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=65601548;
 //BA.debugLineNum = 65601548;BA.debugLine="Dim lv_promos As ListView";
_lv_promos = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=65601549;
 //BA.debugLineNum = 65601549;BA.debugLine="Dim entro As String";
_entro = "";
RDebugUtils.currentLine=65601550;
 //BA.debugLineNum = 65601550;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601551;
 //BA.debugLineNum = 65601551;BA.debugLine="Dim lfila As Label";
_lfila = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601552;
 //BA.debugLineNum = 65601552;BA.debugLine="Dim marca As String";
_marca = "";
RDebugUtils.currentLine=65601553;
 //BA.debugLineNum = 65601553;BA.debugLine="Dim tipo As String";
_tipo = "";
RDebugUtils.currentLine=65601554;
 //BA.debugLineNum = 65601554;BA.debugLine="Dim subtipo As String";
_subtipo = "";
RDebugUtils.currentLine=65601555;
 //BA.debugLineNum = 65601555;BA.debugLine="Private BUSCA As EditText";
_busca = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=65601556;
 //BA.debugLineNum = 65601556;BA.debugLine="Dim ya_entro As String";
_ya_entro = "";
RDebugUtils.currentLine=65601557;
 //BA.debugLineNum = 65601557;BA.debugLine="Dim TIENE_PROMOS As String";
_tiene_promos = "";
RDebugUtils.currentLine=65601558;
 //BA.debugLineNum = 65601558;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=65601559;
 //BA.debugLineNum = 65601559;BA.debugLine="Dim S1 As Cursor";
_s1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601560;
 //BA.debugLineNum = 65601560;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=65601561;
 //BA.debugLineNum = 65601561;BA.debugLine="Dim ciclo As String";
_ciclo = "";
RDebugUtils.currentLine=65601562;
 //BA.debugLineNum = 65601562;BA.debugLine="Private b_qr As Button";
_b_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601563;
 //BA.debugLineNum = 65601563;BA.debugLine="Private p_productos As Panel";
_p_productos = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601564;
 //BA.debugLineNum = 65601564;BA.debugLine="Dim clv_productos As CustomListView";
_clv_productos = new b4a.example3.customlistview();
RDebugUtils.currentLine=65601565;
 //BA.debugLineNum = 65601565;BA.debugLine="Private ImageView1 As ImageView";
_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=65601566;
 //BA.debugLineNum = 65601566;BA.debugLine="Private Panel3 As Panel";
_panel3 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601567;
 //BA.debugLineNum = 65601567;BA.debugLine="Private p_prods As Panel";
_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601568;
 //BA.debugLineNum = 65601568;BA.debugLine="Private i_prod As ImageView";
_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=65601569;
 //BA.debugLineNum = 65601569;BA.debugLine="Private l_prodX As Label";
_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601570;
 //BA.debugLineNum = 65601570;BA.debugLine="Private b_prodMas As Button";
_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601571;
 //BA.debugLineNum = 65601571;BA.debugLine="Private l_pCant As Label";
_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601572;
 //BA.debugLineNum = 65601572;BA.debugLine="Private et_pCant As EditText";
_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=65601573;
 //BA.debugLineNum = 65601573;BA.debugLine="Private b_prodMenos As Button";
_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601574;
 //BA.debugLineNum = 65601574;BA.debugLine="Dim b_terminar1 As Button";
_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601575;
 //BA.debugLineNum = 65601575;BA.debugLine="Dim b_continuar As Button";
_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601576;
 //BA.debugLineNum = 65601576;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601577;
 //BA.debugLineNum = 65601577;BA.debugLine="Private l_totProds As Label";
_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601578;
 //BA.debugLineNum = 65601578;BA.debugLine="Dim totalProds As Int = 0";
_totalprods = (int) (0);
RDebugUtils.currentLine=65601579;
 //BA.debugLineNum = 65601579;BA.debugLine="Dim totalCompra As Float = 0";
_totalcompra = (float) (0);
RDebugUtils.currentLine=65601580;
 //BA.debugLineNum = 65601580;BA.debugLine="Dim etCantHasFocus As Boolean = False";
_etcanthasfocus = __c.False;
RDebugUtils.currentLine=65601581;
 //BA.debugLineNum = 65601581;BA.debugLine="Dim prodsMap As Map";
_prodsmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=65601582;
 //BA.debugLineNum = 65601582;BA.debugLine="Private l_Cargando As Label";
_l_cargando = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601583;
 //BA.debugLineNum = 65601583;BA.debugLine="Private l_info As Label";
_l_info = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601584;
 //BA.debugLineNum = 65601584;BA.debugLine="Private b_buscar As Button";
_b_buscar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601585;
 //BA.debugLineNum = 65601585;BA.debugLine="Private p_botonesVenta As Panel";
_p_botonesventa = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601586;
 //BA.debugLineNum = 65601586;BA.debugLine="Private lv_tipo As ListView";
_lv_tipo = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=65601587;
 //BA.debugLineNum = 65601587;BA.debugLine="Private lv_subtipo As ListView";
_lv_subtipo = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=65601588;
 //BA.debugLineNum = 65601588;BA.debugLine="Private p_vistaPreviaTrans As Panel";
_p_vistapreviatrans = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601589;
 //BA.debugLineNum = 65601589;BA.debugLine="Private lv_prodsPedido As ListView";
_lv_prodspedido = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=65601590;
 //BA.debugLineNum = 65601590;BA.debugLine="Private b_rechazar As Button";
_b_rechazar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601591;
 //BA.debugLineNum = 65601591;BA.debugLine="Private b_aceptar As Button";
_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601592;
 //BA.debugLineNum = 65601592;BA.debugLine="Private p_vistaPrevia As Panel";
_p_vistaprevia = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601593;
 //BA.debugLineNum = 65601593;BA.debugLine="Dim folio As String";
_folio = "";
RDebugUtils.currentLine=65601594;
 //BA.debugLineNum = 65601594;BA.debugLine="Dim result As String";
_result = "";
RDebugUtils.currentLine=65601595;
 //BA.debugLineNum = 65601595;BA.debugLine="Private l_cant As Label";
_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601596;
 //BA.debugLineNum = 65601596;BA.debugLine="Private l_total2 As Label";
_l_total2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601597;
 //BA.debugLineNum = 65601597;BA.debugLine="Dim prodsPedidoActual As String";
_prodspedidoactual = "";
RDebugUtils.currentLine=65601598;
 //BA.debugLineNum = 65601598;BA.debugLine="Dim montoPedidoActual As String";
_montopedidoactual = "";
RDebugUtils.currentLine=65601599;
 //BA.debugLineNum = 65601599;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
_tipo_venta = _subs._traetipoventadebd /*String*/ (ba);
RDebugUtils.currentLine=65601600;
 //BA.debugLineNum = 65601600;BA.debugLine="Dim clv_prods_ll As CustomListView";
_clv_prods_ll = new b4a.example3.customlistview();
RDebugUtils.currentLine=65601601;
 //BA.debugLineNum = 65601601;BA.debugLine="Private PCLV As PreoptimizedCLV";
_pclv = new gunav2.keymon.com.mx.preoptimizedclv();
RDebugUtils.currentLine=65601602;
 //BA.debugLineNum = 65601602;BA.debugLine="Dim listaProds As List";
_listaprods = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=65601604;
 //BA.debugLineNum = 65601604;BA.debugLine="Dim pedidoMap As Map";
_pedidomap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=65601605;
 //BA.debugLineNum = 65601605;BA.debugLine="Private p_botMasMen As Panel";
_p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601606;
 //BA.debugLineNum = 65601606;BA.debugLine="Dim reiniciarlistaProds As Boolean= False";
_reiniciarlistaprods = __c.False;
RDebugUtils.currentLine=65601608;
 //BA.debugLineNum = 65601608;BA.debugLine="Dim listaTiempos As List";
_listatiempos = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=65601609;
 //BA.debugLineNum = 65601609;BA.debugLine="Dim clienteId As String";
_clienteid = "";
RDebugUtils.currentLine=65601610;
 //BA.debugLineNum = 65601610;BA.debugLine="Dim rutaUsuario As String";
_rutausuario = "";
RDebugUtils.currentLine=65601611;
 //BA.debugLineNum = 65601611;BA.debugLine="Dim hayPedido As Boolean";
_haypedido = false;
RDebugUtils.currentLine=65601612;
 //BA.debugLineNum = 65601612;BA.debugLine="Dim listaHints As List";
_listahints = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=65601613;
 //BA.debugLineNum = 65601613;BA.debugLine="Dim r As Cursor";
_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601614;
 //BA.debugLineNum = 65601614;BA.debugLine="Dim vamoaver As List";
_vamoaver = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=65601615;
 //BA.debugLineNum = 65601615;BA.debugLine="Dim j3 As Cursor";
_j3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=65601616;
 //BA.debugLineNum = 65601616;BA.debugLine="Dim invTotal As Int";
_invtotal = 0;
RDebugUtils.currentLine=65601617;
 //BA.debugLineNum = 65601617;BA.debugLine="Private et_pCantc As EditText";
_et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=65601618;
 //BA.debugLineNum = 65601618;BA.debugLine="Private b_prodMenosc As Button";
_b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601619;
 //BA.debugLineNum = 65601619;BA.debugLine="Private b_prodMasc As Button";
_b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601620;
 //BA.debugLineNum = 65601620;BA.debugLine="Dim totalcajasmaspiezas As Int";
_totalcajasmaspiezas = 0;
RDebugUtils.currentLine=65601621;
 //BA.debugLineNum = 65601621;BA.debugLine="Dim cajas As Int";
_cajas = 0;
RDebugUtils.currentLine=65601622;
 //BA.debugLineNum = 65601622;BA.debugLine="Dim piezas As Int";
_piezas = 0;
RDebugUtils.currentLine=65601623;
 //BA.debugLineNum = 65601623;BA.debugLine="Dim P_CALATOLOS As Panel";
_p_calatolos = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601625;
 //BA.debugLineNum = 65601625;BA.debugLine="Dim Panel2 As Panel";
_panel2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601626;
 //BA.debugLineNum = 65601626;BA.debugLine="Private p_botMasMenc As Panel";
_p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601627;
 //BA.debugLineNum = 65601627;BA.debugLine="Private p_promodesc As Panel";
_p_promodesc = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601628;
 //BA.debugLineNum = 65601628;BA.debugLine="Private l_promodesc As Label";
_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601629;
 //BA.debugLineNum = 65601629;BA.debugLine="Private b_okpromodesc As Button";
_b_okpromodesc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601630;
 //BA.debugLineNum = 65601630;BA.debugLine="Private p_devo As Panel";
_p_devo = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=65601631;
 //BA.debugLineNum = 65601631;BA.debugLine="Private l_proddev As Label";
_l_proddev = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601632;
 //BA.debugLineNum = 65601632;BA.debugLine="Private b_devmas As Button";
_b_devmas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601633;
 //BA.debugLineNum = 65601633;BA.debugLine="Private l_cantdev As Label";
_l_cantdev = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65601634;
 //BA.debugLineNum = 65601634;BA.debugLine="Private b_devmenos As Button";
_b_devmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601635;
 //BA.debugLineNum = 65601635;BA.debugLine="Private b_acep_dev As Button";
_b_acep_dev = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=65601638;
 //BA.debugLineNum = 65601638;BA.debugLine="Dim preciodev As Double";
_preciodev = 0;
RDebugUtils.currentLine=65601639;
 //BA.debugLineNum = 65601639;BA.debugLine="Dim nombredev As String";
_nombredev = "";
RDebugUtils.currentLine=65601640;
 //BA.debugLineNum = 65601640;BA.debugLine="End Sub";
return "";
}
public String  _clv_prods_ll_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _index,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "clv_prods_ll_itemclick", false))
	 {return ((String) Debug.delegate(ba, "clv_prods_ll_itemclick", new Object[] {_index,_value}));}
RDebugUtils.currentLine=67371008;
 //BA.debugLineNum = 67371008;BA.debugLine="Private Sub clv_prods_ll_ItemClick (Index As Int,";
RDebugUtils.currentLine=67371010;
 //BA.debugLineNum = 67371010;BA.debugLine="End Sub";
return "";
}
public String  _clv_prods_ll_visiblerangechanged(gunav2.keymon.com.mx.c_productos __ref,int _firstindex,int _lastindex) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "clv_prods_ll_visiblerangechanged", false))
	 {return ((String) Debug.delegate(ba, "clv_prods_ll_visiblerangechanged", new Object[] {_firstindex,_lastindex}));}
int _extrasize = 0;
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
String _precio = "";
RDebugUtils.currentLine=67502080;
 //BA.debugLineNum = 67502080;BA.debugLine="Private Sub clv_prods_ll_VisibleRangeChanged (Firs";
RDebugUtils.currentLine=67502124;
 //BA.debugLineNum = 67502124;BA.debugLine="Dim ExtraSize As Int = 15 'List size";
_extrasize = (int) (15);
RDebugUtils.currentLine=67502125;
 //BA.debugLineNum = 67502125;BA.debugLine="For i = Max(0, FirstIndex - ExtraSize) To Min(Las";
{
final int step2 = 1;
final int limit2 = (int) (__c.Min(_lastindex+_extrasize,__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize()-1));
_i = (int) (__c.Max(0,_firstindex-_extrasize)) ;
for (;_i <= limit2 ;_i = _i + step2 ) {
RDebugUtils.currentLine=67502126;
 //BA.debugLineNum = 67502126;BA.debugLine="Dim Pnl As B4XView = clv_prods_ll.GetPanel(i)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=67502127;
 //BA.debugLineNum = 67502127;BA.debugLine="If i > FirstIndex - ExtraSize And i < LastIndex";
if (_i>_firstindex-_extrasize && _i<_lastindex+_extrasize) { 
RDebugUtils.currentLine=67502129;
 //BA.debugLineNum = 67502129;BA.debugLine="If Pnl.NumberOfViews = 0 Then 'Add each item/la";
if (_pnl.getNumberOfViews()==0) { 
RDebugUtils.currentLine=67502130;
 //BA.debugLineNum = 67502130;BA.debugLine="Pnl.LoadLayout(\"proditem\")";
_pnl.LoadLayout("proditem",ba);
RDebugUtils.currentLine=67502132;
 //BA.debugLineNum = 67502132;BA.debugLine="p_prods.Width = Root.Width * 0.92";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.92));
RDebugUtils.currentLine=67502133;
 //BA.debugLineNum = 67502133;BA.debugLine="p_botMasMen.Left = p_prods.Width - (p_botMasMe";
__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()-(__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()+5)));
RDebugUtils.currentLine=67502134;
 //BA.debugLineNum = 67502134;BA.debugLine="p_botMasMenc.Left = p_prods.Width - (p_botMasM";
__ref._p_botmasmenc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()-(__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()+5)));
RDebugUtils.currentLine=67502135;
 //BA.debugLineNum = 67502135;BA.debugLine="p_prods.Height = 134dip";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__c.DipToCurrent((int) (134)));
RDebugUtils.currentLine=67502143;
 //BA.debugLineNum = 67502143;BA.debugLine="Pnl.SetLayoutAnimated(0,0,0,Pnl.Width,145dip)";
_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_pnl.getWidth(),__c.DipToCurrent((int) (145)));
RDebugUtils.currentLine=67502144;
 //BA.debugLineNum = 67502144;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=67502145;
 //BA.debugLineNum = 67502145;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=67502146;
 //BA.debugLineNum = 67502146;BA.debugLine="l_prodX.SetTextSizeAnimated(0, 13)";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .SetTextSizeAnimated((int) (0),(float) (13));
RDebugUtils.currentLine=67502147;
 //BA.debugLineNum = 67502147;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant\"";
if (((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("cant"))!= null && (double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("cant"))))>0) { 
RDebugUtils.currentLine=67502148;
 //BA.debugLineNum = 67502148;BA.debugLine="p_prods.Color=0xFFE2EEFF";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(((int)0xffe2eeff));
RDebugUtils.currentLine=67502153;
 //BA.debugLineNum = 67502153;BA.debugLine="et_pCant.TextColor=Colors.Red";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=67502154;
 //BA.debugLineNum = 67502154;BA.debugLine="et_pCantc.TextColor=Colors.Red";
__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=67502155;
 //BA.debugLineNum = 67502155;BA.debugLine="If Subs.pedidoGuardado Then";
if (_subs._pedidoguardado /*boolean*/ (ba)) { 
RDebugUtils.currentLine=67502157;
 //BA.debugLineNum = 67502157;BA.debugLine="et_pCant.Enabled = False";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=67502159;
 //BA.debugLineNum = 67502159;BA.debugLine="b_prodMenos.Enabled = False";
__ref._b_prodmenos /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
 };
 }else {
RDebugUtils.currentLine=67502162;
 //BA.debugLineNum = 67502162;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"prio";
if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("PRIORITARIO"))) { 
RDebugUtils.currentLine=67502163;
 //BA.debugLineNum = 67502163;BA.debugLine="p_prods.Color = Colors.RGB(255, 212, 163) 'n";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.RGB((int) (255),(int) (212),(int) (163)));
 }else 
{RDebugUtils.currentLine=67502165;
 //BA.debugLineNum = 67502165;BA.debugLine="Else If clv_prods_ll.GetValue(i).As(Map).Get(";
if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("COMPLEMENTARIO"))) { 
RDebugUtils.currentLine=67502166;
 //BA.debugLineNum = 67502166;BA.debugLine="p_prods.Color = Colors.RGB(177, 200, 249)'az";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.RGB((int) (177),(int) (200),(int) (249)));
 }else 
{RDebugUtils.currentLine=67502168;
 //BA.debugLineNum = 67502168;BA.debugLine="else If clv_prods_ll.GetValue(i).As(Map).Get(";
if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("CATALOGO REGULAR"))) { 
RDebugUtils.currentLine=67502169;
 //BA.debugLineNum = 67502169;BA.debugLine="p_prods.Color = Colors.White";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.White);
 }else 
{RDebugUtils.currentLine=67502171;
 //BA.debugLineNum = 67502171;BA.debugLine="else If clv_prods_ll.GetValue(i).As(Map).Get(";
if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("ESTRATEGICO"))) { 
RDebugUtils.currentLine=67502172;
 //BA.debugLineNum = 67502172;BA.debugLine="p_prods.Color = Colors.RGB(241, 255, 163) 'a";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(__c.Colors.RGB((int) (241),(int) (255),(int) (163)));
 }}}}
;
 };
RDebugUtils.currentLine=67502176;
 //BA.debugLineNum = 67502176;BA.debugLine="Private precio As String=NumberFormat2(clv_pro";
_precio = __c.NumberFormat2(((double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("precio"))))),(int) (1),(int) (2),(int) (2),__c.False);
RDebugUtils.currentLine=67502187;
 //BA.debugLineNum = 67502187;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant";
if (((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("cant"))!= null) { 
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("cant"))));};
RDebugUtils.currentLine=67502219;
 //BA.debugLineNum = 67502219;BA.debugLine="l_prodX.Text = cs.Color(Colors.red).append(clv";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("prod")))).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_i)))).Get((Object)("almacen"))))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence(("   $"+__c.SmartStringFormatter("",(Object)(_precio))+""))).PopAll().getObject()));
 };
 }else {
 };
RDebugUtils.currentLine=67502244;
 //BA.debugLineNum = 67502244;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size - Fir";
__ref._pclv /*gunav2.keymon.com.mx.preoptimizedclv*/ ._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._setvalue /*int*/ (null,(int) (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize()-_firstindex));
 }
};
RDebugUtils.currentLine=67502247;
 //BA.debugLineNum = 67502247;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(gunav2.keymon.com.mx.c_productos __ref,String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_width,_height,_img,_prodid,_bc,_tc}));}
RDebugUtils.currentLine=66322432;
 //BA.debugLineNum = 66322432;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
RDebugUtils.currentLine=66322447;
 //BA.debugLineNum = 66322447;BA.debugLine="End Sub";
return null;
}
public String  _et_pcant_focuschanged(gunav2.keymon.com.mx.c_productos __ref,boolean _hasfocus) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "et_pcant_focuschanged", false))
	 {return ((String) Debug.delegate(ba, "et_pcant_focuschanged", new Object[] {_hasfocus}));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant2 = null;
String _id = "";
RDebugUtils.currentLine=66519040;
 //BA.debugLineNum = 66519040;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
RDebugUtils.currentLine=66519041;
 //BA.debugLineNum = 66519041;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
__c.LogImpl("066519041",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
RDebugUtils.currentLine=66519042;
 //BA.debugLineNum = 66519042;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\"";
if ((__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { 
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("0"));};
RDebugUtils.currentLine=66519043;
 //BA.debugLineNum = 66519043;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=66519044;
 //BA.debugLineNum = 66519044;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=66519045;
 //BA.debugLineNum = 66519045;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=66519046;
 //BA.debugLineNum = 66519046;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=66519047;
 //BA.debugLineNum = 66519047;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
_lacant2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant2 = _pnl.GetView((int) (3)).GetView((int) (2));
RDebugUtils.currentLine=66519048;
 //BA.debugLineNum = 66519048;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("id")));
RDebugUtils.currentLine=66519049;
 //BA.debugLineNum = 66519049;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\"";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence("0"));};
RDebugUtils.currentLine=66519050;
 //BA.debugLineNum = 66519050;BA.debugLine="etCantHasFocus = HasFocus";
__ref._etcanthasfocus /*boolean*/  = _hasfocus;
RDebugUtils.currentLine=66519051;
 //BA.debugLineNum = 66519051;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("066519051",_lacant.getText(),__c.Colors.Red);
RDebugUtils.currentLine=66519052;
 //BA.debugLineNum = 66519052;BA.debugLine="If laCant2.IsInitialized Then";
if (_lacant2.IsInitialized()) { 
RDebugUtils.currentLine=66519053;
 //BA.debugLineNum = 66519053;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text";
__ref._totalcajasmaspiezas /*int*/  = (int) ((double)(Double.parseDouble(_lacant.getText()))+(double)(Double.parseDouble(_lacant2.getText())));
 }else {
RDebugUtils.currentLine=66519055;
 //BA.debugLineNum = 66519055;BA.debugLine="totalcajasmaspiezas = laCant.Text";
__ref._totalcajasmaspiezas /*int*/  = (int)(Double.parseDouble(_lacant.getText()));
 };
RDebugUtils.currentLine=66519057;
 //BA.debugLineNum = 66519057;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
__ref._invtotal /*int*/  = (int) (__ref._totalcajasmaspiezas /*int*/ +(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id))));
RDebugUtils.currentLine=66519060;
 //BA.debugLineNum = 66519060;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=66519061;
 //BA.debugLineNum = 66519061;BA.debugLine="End Sub";
return "";
}
public String  _et_pcant_textchanged(gunav2.keymon.com.mx.c_productos __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "et_pcant_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_pcant_textchanged", new Object[] {_old,_new}));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lprodx = null;
String _id = "";
String _precio = "";
String _inv = "";
String _nombrex = "";
anywheresoftware.b4a.objects.B4XViewWrapper _panelpiezas = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
String _invactualizado = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null;
double _totaldev = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null;
double _totalprod = 0;
RDebugUtils.currentLine=66584576;
 //BA.debugLineNum = 66584576;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
RDebugUtils.currentLine=66584579;
 //BA.debugLineNum = 66584579;BA.debugLine="If etCantHasFocus = True Then";
if (__ref._etcanthasfocus /*boolean*/ ==__c.True) { 
RDebugUtils.currentLine=66584580;
 //BA.debugLineNum = 66584580;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus=";
__c.LogImpl("066584580",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(__ref._etcanthasfocus /*boolean*/ ))+""),__c.Colors.Magenta);
RDebugUtils.currentLine=66584581;
 //BA.debugLineNum = 66584581;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=66584582;
 //BA.debugLineNum = 66584582;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=66584583;
 //BA.debugLineNum = 66584583;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=66584584;
 //BA.debugLineNum = 66584584;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=66584586;
 //BA.debugLineNum = 66584586;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lprodx = _pnl.GetView((int) (1));
RDebugUtils.currentLine=66584587;
 //BA.debugLineNum = 66584587;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("id")));
RDebugUtils.currentLine=66584588;
 //BA.debugLineNum = 66584588;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i";
_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("precio")));
RDebugUtils.currentLine=66584589;
 //BA.debugLineNum = 66584589;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
_inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getvalue(_index)))).Get((Object)("almacen")));
RDebugUtils.currentLine=66584590;
 //BA.debugLineNum = 66584590;BA.debugLine="Private inv As String=Subs.traeinventario(id)";
_inv = _subs._traeinventario /*String*/ (ba,_id);
RDebugUtils.currentLine=66584591;
 //BA.debugLineNum = 66584591;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
RDebugUtils.currentLine=66584593;
 //BA.debugLineNum = 66584593;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_panelpiezas = _pnl.GetView((int) (2));
RDebugUtils.currentLine=66584596;
 //BA.debugLineNum = 66584596;BA.debugLine="If(New = \"\" Or New = Null Or New = \"-\") Then New";
if (((_new).equals("") || _new== null || (_new).equals("-"))) { 
_new = BA.NumberToString(0);};
RDebugUtils.currentLine=66584598;
 //BA.debugLineNum = 66584598;BA.debugLine="If(New > invTotal) Then";
if (((double)(Double.parseDouble(_new))>__ref._invtotal /*int*/ )) { 
RDebugUtils.currentLine=66584599;
 //BA.debugLineNum = 66584599;BA.debugLine="Sender.As(EditText).text = invTotal";
((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).setText(BA.ObjectToCharSequence(__ref._invtotal /*int*/ ));
 };
RDebugUtils.currentLine=66584603;
 //BA.debugLineNum = 66584603;BA.debugLine="If New = \"\" Then New = 0";
if ((_new).equals("")) { 
_new = BA.NumberToString(0);};
RDebugUtils.currentLine=66584604;
 //BA.debugLineNum = 66584604;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=66584605;
 //BA.debugLineNum = 66584605;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("066584605",_lacant.getText(),__c.Colors.Red);
RDebugUtils.currentLine=66584619;
 //BA.debugLineNum = 66584619;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <";
if (__c.Not((_old).equals("0") && (_new).equals("")) && _lacant.getText()!= null && (_lacant.getText()).equals("") == false && __ref._etcanthasfocus /*boolean*/ ) { 
RDebugUtils.currentLine=66584620;
 //BA.debugLineNum = 66584620;BA.debugLine="Log(\"actualizamos producto\")";
__c.LogImpl("066584620","actualizamos producto",0);
RDebugUtils.currentLine=66584621;
 //BA.debugLineNum = 66584621;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=66584622;
 //BA.debugLineNum = 66584622;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=66584624;
 //BA.debugLineNum = 66584624;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,__ref._clienteid /*String*/ ,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),__ref._rutausuario /*String*/ ,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 };
RDebugUtils.currentLine=66584627;
 //BA.debugLineNum = 66584627;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=66584640;
 //BA.debugLineNum = 66584640;BA.debugLine="If 1 = 1 Then";
if (1==1) { 
RDebugUtils.currentLine=66584641;
 //BA.debugLineNum = 66584641;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=66584642;
 //BA.debugLineNum = 66584642;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=66584643;
 //BA.debugLineNum = 66584643;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"";
_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'"))));
RDebugUtils.currentLine=66584644;
 //BA.debugLineNum = 66584644;BA.debugLine="Private invActualizado As String = \"0\"";
_invactualizado = "0";
RDebugUtils.currentLine=66584646;
 //BA.debugLineNum = 66584646;BA.debugLine="o.Position = 0";
_o.setPosition((int) (0));
RDebugUtils.currentLine=66584647;
 //BA.debugLineNum = 66584647;BA.debugLine="invActualizado = Subs.traeinventario(id)";
_invactualizado = _subs._traeinventario /*String*/ (ba,_id);
RDebugUtils.currentLine=66584648;
 //BA.debugLineNum = 66584648;BA.debugLine="Log(Subs.traeinventario(id))";
__c.LogImpl("066584648",_subs._traeinventario /*String*/ (ba,_id),0);
RDebugUtils.currentLine=66584659;
 //BA.debugLineNum = 66584659;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+(_subs._traeinventario /*String*/ (ba,_id)))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence(("   $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));
 };
RDebugUtils.currentLine=66584673;
 //BA.debugLineNum = 66584673;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
RDebugUtils.currentLine=66584674;
 //BA.debugLineNum = 66584674;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=66584675;
 //BA.debugLineNum = 66584675;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66584676;
 //BA.debugLineNum = 66584676;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("066584676",("registros: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))+""),0);
RDebugUtils.currentLine=66584677;
 //BA.debugLineNum = 66584677;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=66584678;
 //BA.debugLineNum = 66584678;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=66584679;
 //BA.debugLineNum = 66584679;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $0.0"));};
RDebugUtils.currentLine=66584680;
 //BA.debugLineNum = 66584680;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
if (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: 0"));};
 };
RDebugUtils.currentLine=66584683;
 //BA.debugLineNum = 66584683;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
RDebugUtils.currentLine=66584684;
 //BA.debugLineNum = 66584684;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=66584685;
 //BA.debugLineNum = 66584685;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66584686;
 //BA.debugLineNum = 66584686;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("066584686",("registros: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))+""),0);
RDebugUtils.currentLine=66584687;
 //BA.debugLineNum = 66584687;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=66584688;
 //BA.debugLineNum = 66584688;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=66584689;
 //BA.debugLineNum = 66584689;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $0.0"));};
RDebugUtils.currentLine=66584690;
 //BA.debugLineNum = 66584690;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
if (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: 0"));};
 };
RDebugUtils.currentLine=66584696;
 //BA.debugLineNum = 66584696;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQu";
_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS = 'DUR'")));
RDebugUtils.currentLine=66584697;
 //BA.debugLineNum = 66584697;BA.debugLine="If c7.RowCount > 0 Then";
if (_c7.getRowCount()>0) { 
RDebugUtils.currentLine=66584698;
 //BA.debugLineNum = 66584698;BA.debugLine="c7.Position = 0";
_c7.setPosition((int) (0));
RDebugUtils.currentLine=66584700;
 //BA.debugLineNum = 66584700;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO";
_totaldev = (double)(Double.parseDouble(_c7.GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=66584704;
 //BA.debugLineNum = 66584704;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQu";
_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' ")));
RDebugUtils.currentLine=66584705;
 //BA.debugLineNum = 66584705;BA.debugLine="If c6.RowCount > 0 Then";
if (_c6.getRowCount()>0) { 
RDebugUtils.currentLine=66584706;
 //BA.debugLineNum = 66584706;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
RDebugUtils.currentLine=66584708;
 //BA.debugLineNum = 66584708;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONT";
_totalprod = (double)(Double.parseDouble(_c6.GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=66584713;
 //BA.debugLineNum = 66584713;BA.debugLine="If totalprod = 0 Then";
if (_totalprod==0) { 
RDebugUtils.currentLine=66584714;
 //BA.debugLineNum = 66584714;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_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_CEDIS = 'DUR'");
RDebugUtils.currentLine=66584715;
 //BA.debugLineNum = 66584715;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta."),BA.ObjectToCharSequence("Atención"),ba);
 }else 
{RDebugUtils.currentLine=66584716;
 //BA.debugLineNum = 66584716;BA.debugLine="Else If totalprod < totaldev Then";
if (_totalprod<_totaldev) { 
RDebugUtils.currentLine=66584717;
 //BA.debugLineNum = 66584717;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_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_CEDIS = 'DUR'");
RDebugUtils.currentLine=66584718;
 //BA.debugLineNum = 66584718;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta."),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
 };
RDebugUtils.currentLine=66584721;
 //BA.debugLineNum = 66584721;BA.debugLine="End Sub";
return "";
}
public String  _l_info_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "l_info_click", false))
	 {return ((String) Debug.delegate(ba, "l_info_click", null));}
RDebugUtils.currentLine=66846720;
 //BA.debugLineNum = 66846720;BA.debugLine="Private Sub l_info_Click";
RDebugUtils.currentLine=66846721;
 //BA.debugLineNum = 66846721;BA.debugLine="l_info.Visible = False";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=66846722;
 //BA.debugLineNum = 66846722;BA.debugLine="End Sub";
return "";
}
public String  _l_prodx_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "l_prodx_click", false))
	 {return ((String) Debug.delegate(ba, "l_prodx_click", null));}
anywheresoftware.b4a.objects.CSBuilder _cs = null;
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _prdox = null;
String[] _prodx1 = null;
String _textprom = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null;
int _hgfd = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
float _recalculo = 0f;
RDebugUtils.currentLine=67436544;
 //BA.debugLineNum = 67436544;BA.debugLine="Sub l_prodx_click";
RDebugUtils.currentLine=67436546;
 //BA.debugLineNum = 67436546;BA.debugLine="Dim cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=67436547;
 //BA.debugLineNum = 67436547;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=67436548;
 //BA.debugLineNum = 67436548;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=67436549;
 //BA.debugLineNum = 67436549;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(Ind";
_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=67436550;
 //BA.debugLineNum = 67436550;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=67436551;
 //BA.debugLineNum = 67436551;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(2";
_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_cant1 = _p.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=67436552;
 //BA.debugLineNum = 67436552;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)";
_prdox = new anywheresoftware.b4a.objects.B4XViewWrapper();
_prdox = _p.GetView((int) (1));
RDebugUtils.currentLine=67436553;
 //BA.debugLineNum = 67436553;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=67436556;
 //BA.debugLineNum = 67436556;BA.debugLine="Log(cant1.Text)";
__c.LogImpl("067436556",_cant1.getText(),0);
RDebugUtils.currentLine=67436557;
 //BA.debugLineNum = 67436557;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Tex";
_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText());
RDebugUtils.currentLine=67436558;
 //BA.debugLineNum = 67436558;BA.debugLine="Log(prodx1(1))";
__c.LogImpl("067436558",_prodx1[(int) (1)],0);
RDebugUtils.currentLine=67436559;
 //BA.debugLineNum = 67436559;BA.debugLine="p_promodesc.Visible = True";
__ref._p_promodesc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=67436560;
 //BA.debugLineNum = 67436560;BA.debugLine="p_promodesc.Height = Root.Height";
__ref._p_promodesc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=67436561;
 //BA.debugLineNum = 67436561;BA.debugLine="p_promodesc.Width = Root.Width";
__ref._p_promodesc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=67436562;
 //BA.debugLineNum = 67436562;BA.debugLine="Dim textprom As String = \"\"";
_textprom = "";
RDebugUtils.currentLine=67436563;
 //BA.debugLineNum = 67436563;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuery($\"";
_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)(_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 = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
RDebugUtils.currentLine=67436564;
 //BA.debugLineNum = 67436564;BA.debugLine="Log($\"SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_";
__c.LogImpl("067436564",("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 = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_DP_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "),0);
RDebugUtils.currentLine=67436565;
 //BA.debugLineNum = 67436565;BA.debugLine="Log(descpro.RowCount)";
__c.LogImpl("067436565",BA.NumberToString(_descpro.getRowCount()),0);
RDebugUtils.currentLine=67436566;
 //BA.debugLineNum = 67436566;BA.debugLine="If descpro.RowCount > 0 Then";
if (_descpro.getRowCount()>0) { 
RDebugUtils.currentLine=67436567;
 //BA.debugLineNum = 67436567;BA.debugLine="l_promodesc.Text = \"\"";
__ref._l_promodesc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=67436568;
 //BA.debugLineNum = 67436568;BA.debugLine="For hgfd = 0 To descpro.RowCount -1";
{
final int step21 = 1;
final int limit21 = (int) (_descpro.getRowCount()-1);
_hgfd = (int) (0) ;
for (;_hgfd <= limit21 ;_hgfd = _hgfd + step21 ) {
RDebugUtils.currentLine=67436569;
 //BA.debugLineNum = 67436569;BA.debugLine="descpro.Position = hgfd";
_descpro.setPosition(_hgfd);
RDebugUtils.currentLine=67436571;
 //BA.debugLineNum = 67436571;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQuer";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"'"))));
RDebugUtils.currentLine=67436572;
 //BA.debugLineNum = 67436572;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=67436573;
 //BA.debugLineNum = 67436573;BA.debugLine="textprom = \"\"";
_textprom = "";
RDebugUtils.currentLine=67436574;
 //BA.debugLineNum = 67436574;BA.debugLine="Private recalculo As Float = preciocat.GetStrin";
_recalculo = (float) ((double)(Double.parseDouble(_preciocat.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_preciocat.GetString("CAT_GP_PRECIO")))*(double)(Double.parseDouble(_descpro.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
RDebugUtils.currentLine=67436576;
 //BA.debugLineNum = 67436576;BA.debugLine="textprom = cs.Color(Colors.Black).Append(\"Descu";
_textprom = BA.ObjectToString(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Descuento "+BA.NumberToString((_hgfd+1))+__c.CRLF+__c.CRLF+"  Min: "+BA.NumberToString(_descpro.GetInt("CAT_PD_RANGO"))+" Max: "+BA.NumberToString(_descpro.GetInt("CAT_PD_RANGO2"))+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("Descuento: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("Precio: "+__c.NumberFormat2(_recalculo,(int) (0),(int) (0),(int) (2),__c.False)+__c.CRLF+__c.CRLF)).PopAll());
RDebugUtils.currentLine=67436577;
 //BA.debugLineNum = 67436577;BA.debugLine="l_promodesc.Text = \"\"";
__ref._l_promodesc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=67436578;
 //BA.debugLineNum = 67436578;BA.debugLine="l_promodesc.Text = textprom";
__ref._l_promodesc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_textprom));
 }
};
 }else {
RDebugUtils.currentLine=67436584;
 //BA.debugLineNum = 67436584;BA.debugLine="l_promodesc.Text = \"El producto no tiene descuen";
__ref._l_promodesc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("El producto no tiene descuento o el tipo de cliente no es apto para este descuento."));
 };
RDebugUtils.currentLine=67436588;
 //BA.debugLineNum = 67436588;BA.debugLine="End Sub";
return "";
}
public String  _l_prodx_longclick(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "l_prodx_longclick", false))
	 {return ((String) Debug.delegate(ba, "l_prodx_longclick", null));}
anywheresoftware.b4a.objects.CSBuilder _cs = null;
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _prdox = null;
String[] _prodx1 = null;
String[] _prodx3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _dev = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _devo = null;
RDebugUtils.currentLine=67960832;
 //BA.debugLineNum = 67960832;BA.debugLine="Private Sub l_prodX_LongClick";
RDebugUtils.currentLine=67960833;
 //BA.debugLineNum = 67960833;BA.debugLine="If tipo_venta <> \"PREVENTA_FUTURA\" Then";
if ((__ref._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA") == false) { 
RDebugUtils.currentLine=67960836;
 //BA.debugLineNum = 67960836;BA.debugLine="Log(l_total.Text)";
__c.LogImpl("067960836",__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=67960837;
 //BA.debugLineNum = 67960837;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CEDIS <> 'DUR'")));
RDebugUtils.currentLine=67960839;
 //BA.debugLineNum = 67960839;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=67960840;
 //BA.debugLineNum = 67960840;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67960842;
 //BA.debugLineNum = 67960842;BA.debugLine="If c.GetString(\"PC_MONTO\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))>0) { 
RDebugUtils.currentLine=67960845;
 //BA.debugLineNum = 67960845;BA.debugLine="Dim cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=67960846;
 //BA.debugLineNum = 67960846;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=67960847;
 //BA.debugLineNum = 67960847;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=67960848;
 //BA.debugLineNum = 67960848;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(In";
_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p0 = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=67960849;
 //BA.debugLineNum = 67960849;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=67960850;
 //BA.debugLineNum = 67960850;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_cant1 = _p.GetView((int) (2)).GetView((int) (2));
RDebugUtils.currentLine=67960851;
 //BA.debugLineNum = 67960851;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)";
_prdox = new anywheresoftware.b4a.objects.B4XViewWrapper();
_prdox = _p.GetView((int) (1));
RDebugUtils.currentLine=67960852;
 //BA.debugLineNum = 67960852;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(";
_index = __ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=67960855;
 //BA.debugLineNum = 67960855;BA.debugLine="Log(cant1.Text)";
__c.LogImpl("067960855",_cant1.getText(),0);
RDebugUtils.currentLine=67960856;
 //BA.debugLineNum = 67960856;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Te";
_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText());
RDebugUtils.currentLine=67960857;
 //BA.debugLineNum = 67960857;BA.debugLine="Dim prodx3() As String=Regex.Split(\"\\$\",prodx1(1";
_prodx3 = __c.Regex.Split("\\$",_prodx1[(int) (1)]);
RDebugUtils.currentLine=67960858;
 //BA.debugLineNum = 67960858;BA.debugLine="Log(prodx1(1))";
__c.LogImpl("067960858",_prodx1[(int) (1)],0);
RDebugUtils.currentLine=67960860;
 //BA.debugLineNum = 67960860;BA.debugLine="preciodev = prodx3(1)";
__ref._preciodev /*double*/  = (double)(Double.parseDouble(_prodx3[(int) (1)]));
RDebugUtils.currentLine=67960861;
 //BA.debugLineNum = 67960861;BA.debugLine="nombredev = prodx1(0)";
__ref._nombredev /*String*/  = _prodx1[(int) (0)];
RDebugUtils.currentLine=67960863;
 //BA.debugLineNum = 67960863;BA.debugLine="Dim dev As Cursor = B4XPages.MainPage.skmt.ExecQ";
_dev = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_dev = (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_GP_DEV, 0) AS CAT_GP_DEV, CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_NOMBRE  = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"'"))));
RDebugUtils.currentLine=67960864;
 //BA.debugLineNum = 67960864;BA.debugLine="dev.Position = 0";
_dev.setPosition((int) (0));
RDebugUtils.currentLine=67960865;
 //BA.debugLineNum = 67960865;BA.debugLine="If dev.GetInt(\"CAT_GP_DEV\") = 1 Then";
if (_dev.GetInt("CAT_GP_DEV")==1) { 
RDebugUtils.currentLine=67960868;
 //BA.debugLineNum = 67960868;BA.debugLine="c.GetString(\"PC_MONTO\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO");
RDebugUtils.currentLine=67960871;
 //BA.debugLineNum = 67960871;BA.debugLine="If c.GetString(\"PC_MONTO\") < dev.GetInt(\"CAT_G";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))<_dev.GetInt("CAT_GP_PRECIO")) { 
RDebugUtils.currentLine=67960872;
 //BA.debugLineNum = 67960872;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al pr";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=67960873;
 //BA.debugLineNum = 67960873;BA.debugLine="Log(1)";
__c.LogImpl("067960873",BA.NumberToString(1),0);
 }else {
RDebugUtils.currentLine=67960875;
 //BA.debugLineNum = 67960875;BA.debugLine="p_devo.Visible = True";
__ref._p_devo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=67960876;
 //BA.debugLineNum = 67960876;BA.debugLine="p_devo.Height = Root.Height";
__ref._p_devo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=67960877;
 //BA.debugLineNum = 67960877;BA.debugLine="p_devo.Width = Root.Width";
__ref._p_devo /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=67960878;
 //BA.debugLineNum = 67960878;BA.debugLine="l_proddev.Text = prodx1(0)";
__ref._l_proddev /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_prodx1[(int) (0)]));
RDebugUtils.currentLine=67960881;
 //BA.debugLineNum = 67960881;BA.debugLine="Dim devo As Cursor = B4XPages.MainPage.skmt.E";
_devo = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_devo = (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(IFNULL(PE_CANT,0)) as suma from PEDIDO where PE_PRONOMBRE  = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"' AND PE_CEDIS = 'DUR'"))));
RDebugUtils.currentLine=67960882;
 //BA.debugLineNum = 67960882;BA.debugLine="devo.Position = 0";
_devo.setPosition((int) (0));
RDebugUtils.currentLine=67960884;
 //BA.debugLineNum = 67960884;BA.debugLine="l_cantdev.Text = devo.GetInt(\"suma\")";
__ref._l_cantdev /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_devo.GetInt("suma")));
 };
 }else 
{RDebugUtils.currentLine=67960893;
 //BA.debugLineNum = 67960893;BA.debugLine="Else If dev.GetInt(\"CAT_GP_DEV\") = 0 Then";
if (_dev.GetInt("CAT_GP_DEV")==0) { 
RDebugUtils.currentLine=67960894;
 //BA.debugLineNum = 67960894;BA.debugLine="MsgboxAsync(\"El producto no se puede devolver\",";
__c.MsgboxAsync(BA.ObjectToCharSequence("El producto no se puede devolver"),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
 }else {
RDebugUtils.currentLine=67960900;
 //BA.debugLineNum = 67960900;BA.debugLine="MsgboxAsync(\"El Cliente no tiene venta para mete";
__c.MsgboxAsync(BA.ObjectToCharSequence("El Cliente no tiene venta para meter devoluciones"),BA.ObjectToCharSequence("Atención"),ba);
 };
 };
 };
RDebugUtils.currentLine=67960906;
 //BA.debugLineNum = 67960906;BA.debugLine="End Sub";
return "";
}
public String  _llenacatalogo(gunav2.keymon.com.mx.c_productos __ref,String _subtipo1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "llenacatalogo", false))
	 {return ((String) Debug.delegate(ba, "llenacatalogo", new Object[] {_subtipo1}));}
RDebugUtils.currentLine=66125824;
 //BA.debugLineNum = 66125824;BA.debugLine="Sub llenaCatalogo(subtipo1 As String)";
RDebugUtils.currentLine=66125847;
 //BA.debugLineNum = 66125847;BA.debugLine="End Sub";
return "";
}
public String  _lv_catalogos_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_catalogos_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_catalogos_itemclick", new Object[] {_position,_value}));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
anywheresoftware.b4a.objects.LabelWrapper _label13 = null;
anywheresoftware.b4a.objects.LabelWrapper _label14 = null;
boolean _yacompropro2265 = false;
boolean _yacompropro3054 = false;
boolean _yacompropro3055 = false;
int _tipocliente = 0;
int _i = 0;
boolean _muestrapromo = false;
anywheresoftware.b4a.objects.collections.Map _tm = null;
RDebugUtils.currentLine=65929216;
 //BA.debugLineNum = 65929216;BA.debugLine="Sub lv_catalogos_ItemClick (Position As Int, Value";
RDebugUtils.currentLine=65929217;
 //BA.debugLineNum = 65929217;BA.debugLine="If Value = \"PORTAFOLIO\" Then";
if ((_value).equals((Object)("PORTAFOLIO"))) { 
RDebugUtils.currentLine=65929219;
 //BA.debugLineNum = 65929219;BA.debugLine="lfila.text = \"PRODUCTOS\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PRODUCTOS"));
RDebugUtils.currentLine=65929220;
 //BA.debugLineNum = 65929220;BA.debugLine="lv_catalogos.Visible = False";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=65929222;
 //BA.debugLineNum = 65929222;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)";
if (__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._getsize()==0) { 
__ref._llenaprodsll /*String*/ (null,(anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(__c.Null)));};
RDebugUtils.currentLine=65929223;
 //BA.debugLineNum = 65929223;BA.debugLine="clv_prods_ll.AsView.Visible = True";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(__c.True);
RDebugUtils.currentLine=65929224;
 //BA.debugLineNum = 65929224;BA.debugLine="If hayPedido Then p_botonesVenta.Visible = True";
if (__ref._haypedido /*boolean*/ ) { 
__ref._p_botonesventa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);};
RDebugUtils.currentLine=65929227;
 //BA.debugLineNum = 65929227;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
RDebugUtils.currentLine=65929228;
 //BA.debugLineNum = 65929228;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=65929229;
 //BA.debugLineNum = 65929229;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=65929230;
 //BA.debugLineNum = 65929230;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("065929230",("registros: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")))+""),0);
RDebugUtils.currentLine=65929231;
 //BA.debugLineNum = 65929231;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=65929232;
 //BA.debugLineNum = 65929232;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
RDebugUtils.currentLine=65929233;
 //BA.debugLineNum = 65929233;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
if (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Total: $0.0"));};
RDebugUtils.currentLine=65929234;
 //BA.debugLineNum = 65929234;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
if (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()== null || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null") || (__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("")) { 
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Prods: 0"));};
 };
 }else {
RDebugUtils.currentLine=65929237;
 //BA.debugLineNum = 65929237;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
RDebugUtils.currentLine=65929238;
 //BA.debugLineNum = 65929238;BA.debugLine="lv_promos.Visible = True";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=65929239;
 //BA.debugLineNum = 65929239;BA.debugLine="lfila.text = \"PROMOCIONES\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PROMOCIONES"));
RDebugUtils.currentLine=65929240;
 //BA.debugLineNum = 65929240;BA.debugLine="lv_catalogos.Visible = False";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=65929260;
 //BA.debugLineNum = 65929260;BA.debugLine="lv_promos.Clear";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=65929261;
 //BA.debugLineNum = 65929261;BA.debugLine="lv_promos.Height = Root.Height * 0.65";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setHeight((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.65));
RDebugUtils.currentLine=65929262;
 //BA.debugLineNum = 65929262;BA.debugLine="lv_promos.Width = Root.Width *0.96";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.96));
RDebugUtils.currentLine=65929264;
 //BA.debugLineNum = 65929264;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65929265;
 //BA.debugLineNum = 65929265;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
_label1 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=65929266;
 //BA.debugLineNum = 65929266;BA.debugLine="label1.TextSize = 20";
_label1.setTextSize((float) (20));
RDebugUtils.currentLine=65929267;
 //BA.debugLineNum = 65929267;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=65929268;
 //BA.debugLineNum = 65929268;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)";
_label1.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255)));
RDebugUtils.currentLine=65929269;
 //BA.debugLineNum = 65929269;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65929270;
 //BA.debugLineNum = 65929270;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
_label2 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=65929271;
 //BA.debugLineNum = 65929271;BA.debugLine="label2.TextSize = 20";
_label2.setTextSize((float) (20));
RDebugUtils.currentLine=65929272;
 //BA.debugLineNum = 65929272;BA.debugLine="label2.TextColor = Colors.White";
_label2.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=65929273;
 //BA.debugLineNum = 65929273;BA.debugLine="label2.Color = Colors.ARGB(58,255,255,255)";
_label2.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255)));
RDebugUtils.currentLine=65929274;
 //BA.debugLineNum = 65929274;BA.debugLine="Dim label13 As Label";
_label13 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65929275;
 //BA.debugLineNum = 65929275;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
_label13 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesAndBitmap().Label;
RDebugUtils.currentLine=65929276;
 //BA.debugLineNum = 65929276;BA.debugLine="label13.TextSize = 20";
_label13.setTextSize((float) (20));
RDebugUtils.currentLine=65929277;
 //BA.debugLineNum = 65929277;BA.debugLine="label13.TextColor = Colors.White";
_label13.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=65929278;
 //BA.debugLineNum = 65929278;BA.debugLine="label13.Color = Colors.ARGB(58,255,255,255)";
_label13.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255)));
RDebugUtils.currentLine=65929279;
 //BA.debugLineNum = 65929279;BA.debugLine="Dim label14 As Label";
_label14 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65929280;
 //BA.debugLineNum = 65929280;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
_label14 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesAndBitmap().SecondLabel;
RDebugUtils.currentLine=65929281;
 //BA.debugLineNum = 65929281;BA.debugLine="label14.TextSize = 20";
_label14.setTextSize((float) (20));
RDebugUtils.currentLine=65929282;
 //BA.debugLineNum = 65929282;BA.debugLine="label14.TextColor = Colors.White";
_label14.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=65929283;
 //BA.debugLineNum = 65929283;BA.debugLine="label14.Color = Colors.ARGB(58,255,255,255)";
_label14.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255)));
RDebugUtils.currentLine=65929294;
 //BA.debugLineNum = 65929294;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { 
RDebugUtils.currentLine=65929295;
 //BA.debugLineNum = 65929295;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_FUTURO = '1' )"),new String[]{"PROMOS","PROMOS"})));
 }else {
RDebugUtils.currentLine=65929297;
 //BA.debugLineNum = 65929297;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_FUTURO = '0' )"),new String[]{"PROMOS","PROMOS"})));
 };
RDebugUtils.currentLine=65929301;
 //BA.debugLineNum = 65929301;BA.debugLine="Private yaComproPRO2265 As Boolean = Subs.revisa";
_yacompropro2265 = _subs._revisapro2265 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba));
RDebugUtils.currentLine=65929302;
 //BA.debugLineNum = 65929302;BA.debugLine="Private yaComproPRO3054 As Boolean = Subs.revisa";
_yacompropro3054 = _subs._revisapro3054 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba));
RDebugUtils.currentLine=65929303;
 //BA.debugLineNum = 65929303;BA.debugLine="Private yaComproPRO3055 As Boolean = Subs.revisa";
_yacompropro3055 = _subs._revisapro3055 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba));
RDebugUtils.currentLine=65929304;
 //BA.debugLineNum = 65929304;BA.debugLine="Private tipoCliente As Int = Subs.traeTipoClient";
_tipocliente = _subs._traetipocliente /*int*/ (ba);
RDebugUtils.currentLine=65929305;
 //BA.debugLineNum = 65929305;BA.debugLine="Log(c2.RowCount)";
__c.LogImpl("065929305",BA.NumberToString(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=65929306;
 //BA.debugLineNum = 65929306;BA.debugLine="If c2.RowCount > 0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=65929324;
 //BA.debugLineNum = 65929324;BA.debugLine="For i=0 To c2.RowCount - 1";
{
final int step55 = 1;
final int limit55 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit55 ;_i = _i + step55 ) {
RDebugUtils.currentLine=65929325;
 //BA.debugLineNum = 65929325;BA.debugLine="c2.Position = i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=65929326;
 //BA.debugLineNum = 65929326;BA.debugLine="Private muestraPromo As Boolean = True";
_muestrapromo = __c.True;
RDebugUtils.currentLine=65929327;
 //BA.debugLineNum = 65929327;BA.debugLine="Log($\"SEGMENTADA: ${c2.GetString(\"CAT_PA_BSEGM";
__c.LogImpl("065929327",("SEGMENTADA: "+__c.SmartStringFormatter("",(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_PA_BSEGMENTA")))+""),0);
RDebugUtils.currentLine=65929328;
 //BA.debugLineNum = 65929328;BA.debugLine="If c2.GetInt(\"CAT_PA_BSEGMENTA\") = 1 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("CAT_PA_BSEGMENTA")==1) { 
RDebugUtils.currentLine=65929329;
 //BA.debugLineNum = 65929329;BA.debugLine="LogColor(\"#######   PROMO SEGMENTADA ####  \"&";
__c.LogImpl("065929329","#######   PROMO SEGMENTADA ####  "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__c.Colors.Blue);
RDebugUtils.currentLine=65929330;
 //BA.debugLineNum = 65929330;BA.debugLine="LogColor($\"#######   SEGV: ${c2.GetString(\"CA";
__c.LogImpl("065929330",("#######   SEGV: "+__c.SmartStringFormatter("",(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_PA_SEGMENTAV")))+" ####"),__c.Colors.Blue);
RDebugUtils.currentLine=65929331;
 //BA.debugLineNum = 65929331;BA.debugLine="LogColor($\"#######   TIPOCLIE: ${tipoCliente}";
__c.LogImpl("065929331",("#######   TIPOCLIE: "+__c.SmartStringFormatter("",(Object)(_tipocliente))+" ####"),__c.Colors.Blue);
RDebugUtils.currentLine=65929332;
 //BA.debugLineNum = 65929332;BA.debugLine="LogColor($\"#######   ¿ENTRA?: ${c2.GetString(";
__c.LogImpl("065929332",("#######   ¿ENTRA?: "+__c.SmartStringFormatter("",(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente))))+" ####"),__c.Colors.Blue);
RDebugUtils.currentLine=65929333;
 //BA.debugLineNum = 65929333;BA.debugLine="If Not(c2.GetString(\"CAT_PA_SEGMENTAV\").Conta";
if (__c.Not(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente)))) { 
_muestrapromo = __c.False;};
 };
RDebugUtils.currentLine=65929339;
 //BA.debugLineNum = 65929339;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = _subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),_subs._traecliente /*String*/ (ba));
RDebugUtils.currentLine=65929340;
 //BA.debugLineNum = 65929340;BA.debugLine="Log($\"TM=${tm}\"$)";
__c.LogImpl("065929340",("TM="+__c.SmartStringFormatter("",(Object)(_tm.getObject()))+""),0);
RDebugUtils.currentLine=65929341;
 //BA.debugLineNum = 65929341;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { 
RDebugUtils.currentLine=65929342;
 //BA.debugLineNum = 65929342;BA.debugLine="If yaComproPRO2265 And c2.GetString(\"CAT_GP_I";
if (_yacompropro2265 && (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID")).equals("PRO3015")) { 
RDebugUtils.currentLine=65929343;
 //BA.debugLineNum = 65929343;BA.debugLine="LogColor(\"Ya compro la PRO2265, ya no se mue";
__c.LogImpl("065929343","Ya compro la PRO2265, ya no se muestra la PRO3015",__c.Colors.Red);
 }else {
RDebugUtils.currentLine=65929345;
 //BA.debugLineNum = 65929345;BA.debugLine="If (yaComproPRO3054 And c2.GetString(\"CAT_GP";
if ((_yacompropro3054 && (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID")).equals("PRO3054")) || (_yacompropro3055 && (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID")).equals("PRO3055"))) { 
RDebugUtils.currentLine=65929347;
 //BA.debugLineNum = 65929347;BA.debugLine="LogColor(\"Ya compro prods de la PRO3054 o P";
__c.LogImpl("065929347","Ya compro prods de la PRO3054 o PRO3055 o es cliente nuevo, ya no se muestra.",__c.Colors.Red);
 }else {
RDebugUtils.currentLine=65929349;
 //BA.debugLineNum = 65929349;BA.debugLine="If Subs.traeAlmacen = 88 Then";
if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(88))) { 
RDebugUtils.currentLine=65929350;
 //BA.debugLineNum = 65929350;BA.debugLine="Log(\"SI ENTRE1\")";
__c.LogImpl("065929350","SI ENTRE1",0);
RDebugUtils.currentLine=65929351;
 //BA.debugLineNum = 65929351;BA.debugLine="Log(c2.GetString(\"CAT_GP_ID\"))";
__c.LogImpl("065929351",__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),0);
RDebugUtils.currentLine=65929352;
 //BA.debugLineNum = 65929352;BA.debugLine="If c2.GetString(\"CAT_GP_ID\") = \"MYKONOS_01";
if ((__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID")).equals("MYKONOS_01") && _subs._traemontoprod /*boolean*/ (ba)) { 
RDebugUtils.currentLine=65929353;
 //BA.debugLineNum = 65929353;BA.debugLine="Log(\"SI ENTRE\")";
__c.LogImpl("065929353","SI ENTRE",0);
RDebugUtils.currentLine=65929354;
 //BA.debugLineNum = 65929354;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
if (_muestrapromo) { 
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ALMACEN")+"    $ "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO")+"    F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+"     V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
 }else 
{RDebugUtils.currentLine=65929355;
 //BA.debugLineNum = 65929355;BA.debugLine="Else If c2.GetString(\"CAT_GP_ID\") <> \"MYKO";
if ((__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID")).equals("MYKONOS_01") == false) { 
RDebugUtils.currentLine=65929356;
 //BA.debugLineNum = 65929356;BA.debugLine="Log(\"SI ENTRE2\")";
__c.LogImpl("065929356","SI ENTRE2",0);
RDebugUtils.currentLine=65929357;
 //BA.debugLineNum = 65929357;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
if (_muestrapromo) { 
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ALMACEN")+"    $ "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO")+"    F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+"     V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
 }}
;
 }else {
RDebugUtils.currentLine=65929360;
 //BA.debugLineNum = 65929360;BA.debugLine="Log(\"SI ENTRE3\")";
__c.LogImpl("065929360","SI ENTRE3",0);
RDebugUtils.currentLine=65929361;
 //BA.debugLineNum = 65929361;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLines";
if (_muestrapromo) { 
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ALMACEN")+"    $ "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO")+"    F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+"     V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
 };
RDebugUtils.currentLine=65929363;
 //BA.debugLineNum = 65929363;BA.debugLine="Log($\"################################${CRL";
__c.LogImpl("065929363",("################################"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"       "+__c.SmartStringFormatter("",(Object)(_muestrapromo))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"################################"),0);
 };
 };
 };
 }
};
RDebugUtils.currentLine=65929374;
 //BA.debugLineNum = 65929374;BA.debugLine="label1.Height = 50dip";
_label1.setHeight(__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=65929375;
 //BA.debugLineNum = 65929375;BA.debugLine="label2.Height = 45dip";
_label2.setHeight(__c.DipToCurrent((int) (45)));
RDebugUtils.currentLine=65929376;
 //BA.debugLineNum = 65929376;BA.debugLine="label2.Top = label1.Height";
_label2.setTop(_label1.getHeight());
RDebugUtils.currentLine=65929377;
 //BA.debugLineNum = 65929377;BA.debugLine="lv_promos.TwoLinesLayout.ItemHeight = 95dip";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95)));
RDebugUtils.currentLine=65929378;
 //BA.debugLineNum = 65929378;BA.debugLine="Subs.SetDivider(lv_promos, Colors.White, 2)";
_subs._setdivider /*String*/ (ba,__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.White,(int) (2));
 }else {
RDebugUtils.currentLine=65929380;
 //BA.debugLineNum = 65929380;BA.debugLine="ToastMessageShow(\"No hay PROMOS disponibles.\",";
__c.ToastMessageShow(BA.ObjectToCharSequence("No hay PROMOS disponibles."),__c.False);
 };
RDebugUtils.currentLine=65929382;
 //BA.debugLineNum = 65929382;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=65929383;
 //BA.debugLineNum = 65929383;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
 };
RDebugUtils.currentLine=65929385;
 //BA.debugLineNum = 65929385;BA.debugLine="End Sub";
return "";
}
public void  _lv_catalogos2_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_catalogos2_itemclick", false))
	 {Debug.delegate(ba, "lv_catalogos2_itemclick", new Object[] {_position,_value}); return;}
ResumableSub_lv_catalogos2_ItemClick rsub = new ResumableSub_lv_catalogos2_ItemClick(this,__ref,_position,_value);
rsub.resume(ba, null);
}
public static class ResumableSub_lv_catalogos2_ItemClick extends BA.ResumableSub {
public ResumableSub_lv_catalogos2_ItemClick(gunav2.keymon.com.mx.c_productos parent,gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) {
this.parent = parent;
this.__ref = __ref;
this._position = _position;
this._value = _value;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_productos __ref;
gunav2.keymon.com.mx.c_productos parent;
int _position;
Object _value;
gunav2.keymon.com.mx.c_cliente _cliente = null;
String _iniciocontador = "";
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
anywheresoftware.b4a.objects.LabelWrapper _label13 = null;
anywheresoftware.b4a.objects.LabelWrapper _label14 = null;
int _i = 0;
anywheresoftware.b4a.objects.collections.Map _tm = null;
int step58;
int limit58;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=65994753;
 //BA.debugLineNum = 65994753;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.False);
RDebugUtils.currentLine=65994754;
 //BA.debugLineNum = 65994754;BA.debugLine="BUSCA.Text = \"\"";
__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=65994755;
 //BA.debugLineNum = 65994755;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
_cliente = (gunav2.keymon.com.mx.c_cliente)(parent._b4xpages._getpage /*Object*/ (ba,"Cliente"));
RDebugUtils.currentLine=65994756;
 //BA.debugLineNum = 65994756;BA.debugLine="Log($\"value=${Value}\"$)";
parent.__c.LogImpl("065994756",("value="+parent.__c.SmartStringFormatter("",_value)+""),0);
RDebugUtils.currentLine=65994757;
 //BA.debugLineNum = 65994757;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N";
if (true) break;

case 1:
//if
this.state = 6;
if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N") == false) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=65994761;
 //BA.debugLineNum = 65994761;BA.debugLine="Else if Value = \"PROMOCIONES\" And cliente.cuenta";
if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N")) { 
this.state = 5;
}}
if (true) break;

case 3:
//C
this.state = 6;
RDebugUtils.currentLine=65994758;
 //BA.debugLineNum = 65994758;BA.debugLine="entro = \"3\"";
__ref._entro /*String*/  = "3";
RDebugUtils.currentLine=65994759;
 //BA.debugLineNum = 65994759;BA.debugLine="marca = \"PROMOS\"";
__ref._marca /*String*/  = "PROMOS";
RDebugUtils.currentLine=65994760;
 //BA.debugLineNum = 65994760;BA.debugLine="tipo = \"PROMOS\"";
__ref._tipo /*String*/  = "PROMOS";
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=65994762;
 //BA.debugLineNum = 65994762;BA.debugLine="entro = \"5\"";
__ref._entro /*String*/  = "5";
RDebugUtils.currentLine=65994763;
 //BA.debugLineNum = 65994763;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
 if (true) break;
;
RDebugUtils.currentLine=65994765;
 //BA.debugLineNum = 65994765;BA.debugLine="If Value = \"PROMOCIONES\" Then";

case 6:
//if
this.state = 11;
if ((_value).equals((Object)("PROMOCIONES"))) { 
this.state = 8;
}else {
this.state = 10;
}if (true) break;

case 8:
//C
this.state = 11;
RDebugUtils.currentLine=65994766;
 //BA.debugLineNum = 65994766;BA.debugLine="LogColor(\"Promos\", Colors.red)";
parent.__c.LogImpl("065994766","Promos",parent.__c.Colors.Red);
RDebugUtils.currentLine=65994767;
 //BA.debugLineNum = 65994767;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select  C";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) ) ORDER BY 1"),new String[]{"PROMOS",__ref._marca /*String*/ ,__ref._tipo /*String*/ })));
 if (true) break;

case 10:
//C
this.state = 11;
RDebugUtils.currentLine=65994769;
 //BA.debugLineNum = 65994769;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
parent.__c.LogImpl("065994769","Catalogo",parent.__c.Colors.Red);
RDebugUtils.currentLine=65994770;
 //BA.debugLineNum = 65994770;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery($\"select CAT";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))));
 if (true) break;
;
RDebugUtils.currentLine=65994792;
 //BA.debugLineNum = 65994792;BA.debugLine="If Value = \"PORTAFOLIO\" Then";

case 11:
//if
this.state = 28;
if ((_value).equals((Object)("PORTAFOLIO"))) { 
this.state = 13;
}else {
this.state = 15;
}if (true) break;

case 13:
//C
this.state = 28;
RDebugUtils.currentLine=65994793;
 //BA.debugLineNum = 65994793;BA.debugLine="lv_catalogos.Visible = False";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65994794;
 //BA.debugLineNum = 65994794;BA.debugLine="lv_promos.Visible = False";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65994795;
 //BA.debugLineNum = 65994795;BA.debugLine="lfila.text = \"PORTAFOLIO\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PORTAFOLIO"));
RDebugUtils.currentLine=65994796;
 //BA.debugLineNum = 65994796;BA.debugLine="Log(\"PGS\")";
parent.__c.LogImpl("065994796","PGS",0);
RDebugUtils.currentLine=65994797;
 //BA.debugLineNum = 65994797;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Cargando catalogo ..."));
RDebugUtils.currentLine=65994798;
 //BA.debugLineNum = 65994798;BA.debugLine="Sleep(100)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_productos", "lv_catalogos2_itemclick"),(int) (100));
this.state = 29;
return;
case 29:
//C
this.state = 28;
;
RDebugUtils.currentLine=65994799;
 //BA.debugLineNum = 65994799;BA.debugLine="Private inicioContador As String = DateTime.Now";
_iniciocontador = BA.NumberToString(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=65994800;
 //BA.debugLineNum = 65994800;BA.debugLine="llenaCatalogo(False)";
__ref._llenacatalogo /*String*/ (null,BA.ObjectToString(parent.__c.False));
RDebugUtils.currentLine=65994801;
 //BA.debugLineNum = 65994801;BA.debugLine="clv_prods_ll.AsView.Visible = True";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.True);
RDebugUtils.currentLine=65994802;
 //BA.debugLineNum = 65994802;BA.debugLine="Log(\"PGH\")";
parent.__c.LogImpl("065994802","PGH",0);
RDebugUtils.currentLine=65994803;
 //BA.debugLineNum = 65994803;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
parent.__c.LogImpl("065994803","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red);
RDebugUtils.currentLine=65994804;
 //BA.debugLineNum = 65994804;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
RDebugUtils.currentLine=65994805;
 //BA.debugLineNum = 65994805;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=65994807;
 //BA.debugLineNum = 65994807;BA.debugLine="Log(\"ENTRAMOS A PROMOS\")";
parent.__c.LogImpl("065994807","ENTRAMOS A PROMOS",0);
RDebugUtils.currentLine=65994808;
 //BA.debugLineNum = 65994808;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(parent.__c.False);
RDebugUtils.currentLine=65994809;
 //BA.debugLineNum = 65994809;BA.debugLine="lv_promos.Visible = True";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=65994810;
 //BA.debugLineNum = 65994810;BA.debugLine="lv_catalogos.Visible = False";
__ref._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=65994811;
 //BA.debugLineNum = 65994811;BA.debugLine="lv_promos.Clear";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=65994812;
 //BA.debugLineNum = 65994812;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65994813;
 //BA.debugLineNum = 65994813;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
_label1 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=65994814;
 //BA.debugLineNum = 65994814;BA.debugLine="label1.TextSize = 15";
_label1.setTextSize((float) (15));
RDebugUtils.currentLine=65994815;
 //BA.debugLineNum = 65994815;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(parent.__c.Colors.Black);
RDebugUtils.currentLine=65994816;
 //BA.debugLineNum = 65994816;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65994817;
 //BA.debugLineNum = 65994817;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
_label2 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=65994818;
 //BA.debugLineNum = 65994818;BA.debugLine="label2.TextSize = 15";
_label2.setTextSize((float) (15));
RDebugUtils.currentLine=65994819;
 //BA.debugLineNum = 65994819;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(parent.__c.Colors.Black);
RDebugUtils.currentLine=65994820;
 //BA.debugLineNum = 65994820;BA.debugLine="Dim label13 As Label";
_label13 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65994821;
 //BA.debugLineNum = 65994821;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
_label13 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesAndBitmap().Label;
RDebugUtils.currentLine=65994822;
 //BA.debugLineNum = 65994822;BA.debugLine="label13.TextSize = 15";
_label13.setTextSize((float) (15));
RDebugUtils.currentLine=65994823;
 //BA.debugLineNum = 65994823;BA.debugLine="label13.TextColor = Colors.Black";
_label13.setTextColor(parent.__c.Colors.Black);
RDebugUtils.currentLine=65994824;
 //BA.debugLineNum = 65994824;BA.debugLine="Dim label14 As Label";
_label14 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=65994825;
 //BA.debugLineNum = 65994825;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
_label14 = __ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesAndBitmap().SecondLabel;
RDebugUtils.currentLine=65994826;
 //BA.debugLineNum = 65994826;BA.debugLine="label14.TextSize = 15";
_label14.setTextSize((float) (15));
RDebugUtils.currentLine=65994827;
 //BA.debugLineNum = 65994827;BA.debugLine="label14.TextColor = Colors.Black";
_label14.setTextColor(parent.__c.Colors.Black);
RDebugUtils.currentLine=65994828;
 //BA.debugLineNum = 65994828;BA.debugLine="lfila.text = \"PROMOCIONES\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("PROMOCIONES"));
RDebugUtils.currentLine=65994829;
 //BA.debugLineNum = 65994829;BA.debugLine="If c2.RowCount > 0 Then";
if (true) break;

case 16:
//if
this.state = 27;
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 18;
}if (true) break;

case 18:
//C
this.state = 19;
RDebugUtils.currentLine=65994830;
 //BA.debugLineNum = 65994830;BA.debugLine="For i=0 To c2.RowCount -1";
if (true) break;

case 19:
//for
this.state = 26;
step58 = 1;
limit58 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 30;
if (true) break;

case 30:
//C
this.state = 26;
if ((step58 > 0 && _i <= limit58) || (step58 < 0 && _i >= limit58)) this.state = 21;
if (true) break;

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

case 21:
//C
this.state = 22;
RDebugUtils.currentLine=65994831;
 //BA.debugLineNum = 65994831;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=65994832;
 //BA.debugLineNum = 65994832;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._clienteid /*String*/ );
RDebugUtils.currentLine=65994833;
 //BA.debugLineNum = 65994833;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
if (true) break;

case 22:
//if
this.state = 25;
if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { 
this.state = 24;
}if (true) break;

case 24:
//C
this.state = 25;
RDebugUtils.currentLine=65994834;
 //BA.debugLineNum = 65994834;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_NO";
__ref._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ALMACEN")+" $ "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));
 if (true) break;

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

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

case 27:
//C
this.state = 28;
;
RDebugUtils.currentLine=65994882;
 //BA.debugLineNum = 65994882;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 28:
//C
this.state = -1;
;
RDebugUtils.currentLine=65994884;
 //BA.debugLineNum = 65994884;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
RDebugUtils.currentLine=65994885;
 //BA.debugLineNum = 65994885;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _lv_prodspedido_itemlongclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_prodspedido_itemlongclick", false))
	 {return ((String) Debug.delegate(ba, "lv_prodspedido_itemlongclick", new Object[] {_position,_value}));}
String[] _x = null;
String _nom = "";
int _i = 0;
String _cedis = "";
String _sdate = "";
String _stime = "";
String _clie_id = "";
String _usuario = "";
int _j = 0;
RDebugUtils.currentLine=67305472;
 //BA.debugLineNum = 67305472;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position";
RDebugUtils.currentLine=67305473;
 //BA.debugLineNum = 67305473;BA.debugLine="Log(Value)";
__c.LogImpl("067305473",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=67305474;
 //BA.debugLineNum = 67305474;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
RDebugUtils.currentLine=67305475;
 //BA.debugLineNum = 67305475;BA.debugLine="Log(X.Length)";
__c.LogImpl("067305475",BA.NumberToString(_x.length),0);
RDebugUtils.currentLine=67305476;
 //BA.debugLineNum = 67305476;BA.debugLine="Private nom As String = \"\"";
_nom = "";
RDebugUtils.currentLine=67305477;
 //BA.debugLineNum = 67305477;BA.debugLine="For i = 0 To X.Length -1";
{
final int step5 = 1;
final int limit5 = (int) (_x.length-1);
_i = (int) (0) ;
for (;_i <= limit5 ;_i = _i + step5 ) {
RDebugUtils.currentLine=67305478;
 //BA.debugLineNum = 67305478;BA.debugLine="If X(i).Contains(CRLF) Then";
if (_x[_i].contains(__c.CRLF)) { 
 };
RDebugUtils.currentLine=67305480;
 //BA.debugLineNum = 67305480;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
if (__c.Not(_x[_i].contains(__c.CRLF))) { 
RDebugUtils.currentLine=67305481;
 //BA.debugLineNum = 67305481;BA.debugLine="nom = nom & \" \" & X(i)";
_nom = _nom+" "+_x[_i];
 }else {
RDebugUtils.currentLine=67305483;
 //BA.debugLineNum = 67305483;BA.debugLine="Exit";
if (true) break;
 };
 }
};
RDebugUtils.currentLine=67305486;
 //BA.debugLineNum = 67305486;BA.debugLine="nom = nom.Trim";
_nom = _nom.trim();
RDebugUtils.currentLine=67305487;
 //BA.debugLineNum = 67305487;BA.debugLine="Private cedis As String = X(X.Length-1)";
_cedis = _x[(int) (_x.length-1)];
RDebugUtils.currentLine=67305488;
 //BA.debugLineNum = 67305488;BA.debugLine="Log(nom)";
__c.LogImpl("067305488",_nom,0);
RDebugUtils.currentLine=67305489;
 //BA.debugLineNum = 67305489;BA.debugLine="Log(cedis)";
__c.LogImpl("067305489",_cedis,0);
RDebugUtils.currentLine=67305490;
 //BA.debugLineNum = 67305490;BA.debugLine="Private sDate,sTime, clie_id, usuario As String";
_sdate = "";
_stime = "";
_clie_id = "";
_usuario = "";
RDebugUtils.currentLine=67305492;
 //BA.debugLineNum = 67305492;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar este a";
__ref._result /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=67305493;
 //BA.debugLineNum = 67305493;BA.debugLine="If result = DialogResponse.POSITIVE Then";
if ((__ref._result /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=67305494;
 //BA.debugLineNum = 67305494;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select PE_P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_PROID,PE_CANT, PE_FOLIO FROM PEDIDO where pe_pronombre = ? and pe_cliente in (Select CUENTA from cuentaa) ",new String[]{BA.ObjectToString(_value)})));
RDebugUtils.currentLine=67305495;
 //BA.debugLineNum = 67305495;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305496;
 //BA.debugLineNum = 67305496;BA.debugLine="Log(vamoaver.Get(Position))";
__c.LogImpl("067305496",BA.ObjectToString(__ref._vamoaver /*anywheresoftware.b4a.objects.collections.List*/ .Get(_position)),0);
RDebugUtils.currentLine=67305497;
 //BA.debugLineNum = 67305497;BA.debugLine="If vamoaver.Get(Position) = \"VENTA\" Then";
if ((__ref._vamoaver /*anywheresoftware.b4a.objects.collections.List*/ .Get(_position)).equals((Object)("VENTA"))) { 
RDebugUtils.currentLine=67305498;
 //BA.debugLineNum = 67305498;BA.debugLine="Log(\"CAT_GUNAPROD2\")";
__c.LogImpl("067305498","CAT_GUNAPROD2",0);
RDebugUtils.currentLine=67305499;
 //BA.debugLineNum = 67305499;BA.debugLine="Log(Position)";
__c.LogImpl("067305499",BA.NumberToString(_position),0);
RDebugUtils.currentLine=67305500;
 //BA.debugLineNum = 67305500;BA.debugLine="Log(Value)";
__c.LogImpl("067305500",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=67305501;
 //BA.debugLineNum = 67305501;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
_starter._tabla /*String*/  = "CAT_GUNAPROD2";
 }else {
RDebugUtils.currentLine=67305503;
 //BA.debugLineNum = 67305503;BA.debugLine="Log(\"CAT_GUNAPROD\")";
__c.LogImpl("067305503","CAT_GUNAPROD",0);
RDebugUtils.currentLine=67305504;
 //BA.debugLineNum = 67305504;BA.debugLine="Log(Position)";
__c.LogImpl("067305504",BA.NumberToString(_position),0);
RDebugUtils.currentLine=67305505;
 //BA.debugLineNum = 67305505;BA.debugLine="Log(Value)";
__c.LogImpl("067305505",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=67305506;
 //BA.debugLineNum = 67305506;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
_starter._tabla /*String*/  = "CAT_GUNAPROD";
 };
RDebugUtils.currentLine=67305565;
 //BA.debugLineNum = 67305565;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
RDebugUtils.currentLine=67305566;
 //BA.debugLineNum = 67305566;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDI";
__c.LogImpl("067305566",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
RDebugUtils.currentLine=67305567;
 //BA.debugLineNum = 67305567;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("067305567",BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=67305568;
 //BA.debugLineNum = 67305568;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305571;
 //BA.debugLineNum = 67305571;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))*-1)}));
RDebugUtils.currentLine=67305578;
 //BA.debugLineNum = 67305578;BA.debugLine="If Not(IsNumber(cedis)) Then";
if (__c.Not(__c.IsNumber(_cedis))) { 
RDebugUtils.currentLine=67305579;
 //BA.debugLineNum = 67305579;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
RDebugUtils.currentLine=67305581;
 //BA.debugLineNum = 67305581;BA.debugLine="LogColor(j3.RowCount,Colors.Yellow)";
__c.LogImpl("067305581",BA.NumberToString(__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),__c.Colors.Yellow);
RDebugUtils.currentLine=67305582;
 //BA.debugLineNum = 67305582;BA.debugLine="If j3.RowCount > 0 Then";
if (__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=67305583;
 //BA.debugLineNum = 67305583;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("067305583","Soy promo",0);
RDebugUtils.currentLine=67305584;
 //BA.debugLineNum = 67305584;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step45 = 1;
final int limit45 = (int) (__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit45 ;_j = _j + step45 ) {
RDebugUtils.currentLine=67305585;
 //BA.debugLineNum = 67305585;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("067305585","aqui tronare?",0);
RDebugUtils.currentLine=67305586;
 //BA.debugLineNum = 67305586;BA.debugLine="j3.Position = j";
__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_j);
RDebugUtils.currentLine=67305587;
 //BA.debugLineNum = 67305587;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"'"));
RDebugUtils.currentLine=67305588;
 //BA.debugLineNum = 67305588;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"'"));
 }
};
RDebugUtils.currentLine=67305591;
 //BA.debugLineNum = 67305591;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select s";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )")));
RDebugUtils.currentLine=67305592;
 //BA.debugLineNum = 67305592;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305593;
 //BA.debugLineNum = 67305593;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")== null) { 
RDebugUtils.currentLine=67305594;
 //BA.debugLineNum = 67305594;BA.debugLine="l_cant.Text = 0";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=67305595;
 //BA.debugLineNum = 67305595;BA.debugLine="l_total2.Text = 0";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=67305597;
 //BA.debugLineNum = 67305597;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=67305598;
 //BA.debugLineNum = 67305598;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=67305600;
 //BA.debugLineNum = 67305600;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=67305602;
 //BA.debugLineNum = 67305602;BA.debugLine="j3.Close";
__ref._j3 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=67305605;
 //BA.debugLineNum = 67305605;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update ${";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")))+"'"));
RDebugUtils.currentLine=67305606;
 //BA.debugLineNum = 67305606;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fr";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))}));
RDebugUtils.currentLine=67305607;
 //BA.debugLineNum = 67305607;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select su";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )")));
RDebugUtils.currentLine=67305608;
 //BA.debugLineNum = 67305608;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305609;
 //BA.debugLineNum = 67305609;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")== null) { 
RDebugUtils.currentLine=67305610;
 //BA.debugLineNum = 67305610;BA.debugLine="l_cant.Text = 0";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=67305611;
 //BA.debugLineNum = 67305611;BA.debugLine="l_total2.Text = 0";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=67305613;
 //BA.debugLineNum = 67305613;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=67305614;
 //BA.debugLineNum = 67305614;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
__ref._l_total2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=67305616;
 //BA.debugLineNum = 67305616;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=67305618;
 //BA.debugLineNum = 67305618;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=67305620;
 //BA.debugLineNum = 67305620;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=67305621;
 //BA.debugLineNum = 67305621;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=67305622;
 //BA.debugLineNum = 67305622;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=67305623;
 //BA.debugLineNum = 67305623;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
RDebugUtils.currentLine=67305624;
 //BA.debugLineNum = 67305624;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305625;
 //BA.debugLineNum = 67305625;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
_clie_id = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=67305626;
 //BA.debugLineNum = 67305626;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=67305627;
 //BA.debugLineNum = 67305627;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305628;
 //BA.debugLineNum = 67305628;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=67305629;
 //BA.debugLineNum = 67305629;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*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)")));
RDebugUtils.currentLine=67305630;
 //BA.debugLineNum = 67305630;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=67305631;
 //BA.debugLineNum = 67305631;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=67305632;
 //BA.debugLineNum = 67305632;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_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)");
RDebugUtils.currentLine=67305633;
 //BA.debugLineNum = 67305633;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
_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) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANT_CLIE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )}));
RDebugUtils.currentLine=67305634;
 //BA.debugLineNum = 67305634;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)");
 }else {
RDebugUtils.currentLine=67305636;
 //BA.debugLineNum = 67305636;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_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)");
RDebugUtils.currentLine=67305637;
 //BA.debugLineNum = 67305637;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 = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)");
 };
RDebugUtils.currentLine=67305640;
 //BA.debugLineNum = 67305640;BA.debugLine="b_terminar1_Click";
__ref._b_terminar1_click /*String*/ (null);
 };
RDebugUtils.currentLine=67305645;
 //BA.debugLineNum = 67305645;BA.debugLine="End Sub";
return "";
}
public String  _lv_promos_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_promos_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_promos_itemclick", new Object[] {_position,_value}));}
gunav2.keymon.com.mx.c_cliente _cliente = null;
gunav2.keymon.com.mx.c_promos _promos = null;
RDebugUtils.currentLine=66060288;
 //BA.debugLineNum = 66060288;BA.debugLine="Sub lv_promos_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=66060289;
 //BA.debugLineNum = 66060289;BA.debugLine="clv_prods_ll.AsView.Visible = False";
__ref._clv_prods_ll /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
RDebugUtils.currentLine=66060290;
 //BA.debugLineNum = 66060290;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
_cliente = (gunav2.keymon.com.mx.c_cliente)(_b4xpages._getpage /*Object*/ (ba,"Cliente"));
RDebugUtils.currentLine=66060292;
 //BA.debugLineNum = 66060292;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N";
if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N") == false) { 
RDebugUtils.currentLine=66060293;
 //BA.debugLineNum = 66060293;BA.debugLine="entro = \"3\"";
__ref._entro /*String*/  = "3";
RDebugUtils.currentLine=66060294;
 //BA.debugLineNum = 66060294;BA.debugLine="marca = \"PROMOS\"";
__ref._marca /*String*/  = "PROMOS";
RDebugUtils.currentLine=66060295;
 //BA.debugLineNum = 66060295;BA.debugLine="tipo = \"PROMOS\"";
__ref._tipo /*String*/  = "PROMOS";
 }else 
{RDebugUtils.currentLine=66060296;
 //BA.debugLineNum = 66060296;BA.debugLine="Else if Value = \"PROMOCIONES\" And cliente.cuenta";
if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N")) { 
RDebugUtils.currentLine=66060297;
 //BA.debugLineNum = 66060297;BA.debugLine="entro = \"5\"";
__ref._entro /*String*/  = "5";
RDebugUtils.currentLine=66060298;
 //BA.debugLineNum = 66060298;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
 }}
;
RDebugUtils.currentLine=66060300;
 //BA.debugLineNum = 66060300;BA.debugLine="If entro = \"3\" Then";
if ((__ref._entro /*String*/ ).equals("3")) { 
 }else 
{RDebugUtils.currentLine=66060302;
 //BA.debugLineNum = 66060302;BA.debugLine="Else If entro = \"4\" Then";
if ((__ref._entro /*String*/ ).equals("4")) { 
RDebugUtils.currentLine=66060304;
 //BA.debugLineNum = 66060304;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROID");
RDebugUtils.currentLine=66060305;
 //BA.debugLineNum = 66060305;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value}));
RDebugUtils.currentLine=66060306;
 //BA.debugLineNum = 66060306;BA.debugLine="Dim promos As C_Promos = B4XPages.GetPage(\"Promo";
_promos = (gunav2.keymon.com.mx.c_promos)(_b4xpages._getpage /*Object*/ (ba,"Promos"));
RDebugUtils.currentLine=66060307;
 //BA.debugLineNum = 66060307;BA.debugLine="promos.laPromo = Subs.traeProdIdDeBD.Get(\"id\")";
_promos._lapromo /*String*/  = BA.ObjectToString(_subs._traeprodiddebd /*anywheresoftware.b4a.objects.collections.Map*/ (ba).Get((Object)("id")));
RDebugUtils.currentLine=66060308;
 //BA.debugLineNum = 66060308;BA.debugLine="promos.elCliente = Subs.traeUsuarioDeBD";
_promos._elcliente /*String*/  = _subs._traeusuariodebd /*String*/ (ba);
RDebugUtils.currentLine=66060309;
 //BA.debugLineNum = 66060309;BA.debugLine="B4XPages.ShowPage(\"Promos\")";
_b4xpages._showpage /*String*/ (ba,"Promos");
 }}
;
RDebugUtils.currentLine=66060311;
 //BA.debugLineNum = 66060311;BA.debugLine="End Sub";
return "";
}
public String  _lv_promos_itemlongclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_promos_itemlongclick", false))
	 {return ((String) Debug.delegate(ba, "lv_promos_itemlongclick", new Object[] {_position,_value}));}
String _id = "";
RDebugUtils.currentLine=66912256;
 //BA.debugLineNum = 66912256;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
RDebugUtils.currentLine=66912257;
 //BA.debugLineNum = 66912257;BA.debugLine="Log(\"Promo longclic = \"&Value)";
__c.LogImpl("066912257","Promo longclic = "+BA.ObjectToString(_value),0);
RDebugUtils.currentLine=66912258;
 //BA.debugLineNum = 66912258;BA.debugLine="Private id As String = \"\"";
_id = "";
RDebugUtils.currentLine=66912259;
 //BA.debugLineNum = 66912259;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";
_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*/ .ExecQuery(("select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_TIPO = 'PROMOS' and CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",_value)+"'"))));
RDebugUtils.currentLine=66912260;
 //BA.debugLineNum = 66912260;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=66912261;
 //BA.debugLineNum = 66912261;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=66912262;
 //BA.debugLineNum = 66912262;BA.debugLine="id = c.GetString(\"CAT_GP_ID\")";
_id = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID");
 };
RDebugUtils.currentLine=66912264;
 //BA.debugLineNum = 66912264;BA.debugLine="l_info.Text = $\"ID: ${id}${CRLF}${Value}\"$";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("ID: "+__c.SmartStringFormatter("",(Object)(_id))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",_value)+"")));
RDebugUtils.currentLine=66912265;
 //BA.debugLineNum = 66912265;BA.debugLine="l_info.Visible = True";
__ref._l_info /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=66912266;
 //BA.debugLineNum = 66912266;BA.debugLine="End Sub";
return "";
}
public String  _lv_subtipo_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_subtipo_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_subtipo_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=67043328;
 //BA.debugLineNum = 67043328;BA.debugLine="Private Sub lv_subtipo_ItemClick (Position As Int,";
RDebugUtils.currentLine=67043342;
 //BA.debugLineNum = 67043342;BA.debugLine="End Sub";
return "";
}
public String  _lv_tipo_itemclick(gunav2.keymon.com.mx.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv_tipo_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_tipo_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=66977792;
 //BA.debugLineNum = 66977792;BA.debugLine="Private Sub lv_tipo_ItemClick (Position As Int, Va";
RDebugUtils.currentLine=66977810;
 //BA.debugLineNum = 66977810;BA.debugLine="End Sub";
return "";
}
public String  _p_devo_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "p_devo_click", false))
	 {return ((String) Debug.delegate(ba, "p_devo_click", null));}
RDebugUtils.currentLine=68222976;
 //BA.debugLineNum = 68222976;BA.debugLine="Private Sub p_devo_Click";
RDebugUtils.currentLine=68222978;
 //BA.debugLineNum = 68222978;BA.debugLine="End Sub";
return "";
}
public String  _p_promodesc_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "p_promodesc_click", false))
	 {return ((String) Debug.delegate(ba, "p_promodesc_click", null));}
RDebugUtils.currentLine=67895296;
 //BA.debugLineNum = 67895296;BA.debugLine="Private Sub p_promodesc_Click";
RDebugUtils.currentLine=67895297;
 //BA.debugLineNum = 67895297;BA.debugLine="p_promodesc.Visible = False";
__ref._p_promodesc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=67895298;
 //BA.debugLineNum = 67895298;BA.debugLine="End Sub";
return "";
}
public String  _p_vistapreviatrans_click(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "p_vistapreviatrans_click", false))
	 {return ((String) Debug.delegate(ba, "p_vistapreviatrans_click", null));}
RDebugUtils.currentLine=67108864;
 //BA.debugLineNum = 67108864;BA.debugLine="Private Sub p_vistaPreviaTrans_Click";
RDebugUtils.currentLine=67108866;
 //BA.debugLineNum = 67108866;BA.debugLine="End Sub";
return "";
}
public String  _pclv_addprods(gunav2.keymon.com.mx.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "pclv_addprods", false))
	 {return ((String) Debug.delegate(ba, "pclv_addprods", null));}
RDebugUtils.currentLine=65863680;
 //BA.debugLineNum = 65863680;BA.debugLine="Sub PCLV_AddProds";
RDebugUtils.currentLine=65863682;
 //BA.debugLineNum = 65863682;BA.debugLine="End Sub";
return "";
}
public Object  _pclv_hintrequested(gunav2.keymon.com.mx.c_productos __ref,int _index) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "pclv_hintrequested", false))
	 {return ((Object) Debug.delegate(ba, "pclv_hintrequested", new Object[] {_index}));}
String _word = "";
RDebugUtils.currentLine=67698688;
 //BA.debugLineNum = 67698688;BA.debugLine="Sub PCLV_HintRequested(Index As Int) As Object";
RDebugUtils.currentLine=67698689;
 //BA.debugLineNum = 67698689;BA.debugLine="Dim word As String = listaHints.get(Index)";
_word = BA.ObjectToString(__ref._listahints /*anywheresoftware.b4a.objects.collections.List*/ .Get(_index));
RDebugUtils.currentLine=67698690;
 //BA.debugLineNum = 67698690;BA.debugLine="Return word";
if (true) return (Object)(_word);
RDebugUtils.currentLine=67698691;
 //BA.debugLineNum = 67698691;BA.debugLine="End Sub";
return null;
}
}