package gunav2.keymon.com.mx;


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

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

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_promodesc = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_prodsfijos = null;
public b4a.example3.customlistview _clv_prodsvariabes = null;
public b4a.example3.customlistview _clv_prodsvariabes2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodsfijos = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodsvariables = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodsvariables2 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_prod = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
public int _totalprods = 0;
public int _prodsvar1 = 0;
public int _prodsvar2 = 0;
public int _prodsvarreq = 0;
public int _prodsvarreq_ = 0;
public int _prodsvarreq2 = 0;
public int _prodsvarreq2_ = 0;
public float _totalcompra = 0f;
public float _prodsfijostot = 0f;
public int _tpf = 0;
public int _tpf2 = 0;
public int _maxcantpromos = 0;
public anywheresoftware.b4a.objects.LabelWrapper _l_totprods = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_terminar1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_promociones = null;
public anywheresoftware.b4a.objects.collections.List _prodsids = null;
public anywheresoftware.b4a.objects.collections.List _prodscants = null;
public anywheresoftware.b4a.objects.collections.List _prodsprecios = null;
public anywheresoftware.b4a.objects.collections.List _prodsids2 = null;
public anywheresoftware.b4a.objects.collections.List _prodscants2 = null;
public anywheresoftware.b4a.objects.collections.List _prodsprecios2 = null;
public String _estapromo = "";
public String _estecliente = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_promomas = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_promomenos = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_promocant = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_promoscant = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_continuar = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prodsvariables = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prodsvariables2 = null;
public String _lapromo = "";
public String _elcliente = "";
public String _prodspedidoactual = "";
public String _montopedidoactual = "";
public anywheresoftware.b4a.objects.collections.Map _promosmap = null;
public anywheresoftware.b4a.objects.StringUtils _su = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.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_promos __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=78970880;
 //BA.debugLineNum = 78970880;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=78970881;
 //BA.debugLineNum = 78970881;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=78970882;
 //BA.debugLineNum = 78970882;BA.debugLine="End Sub";
return null;
}
public String  _agregafijosalista(gunav2.keymon.com.mx.c_promos __ref,anywheresoftware.b4a.objects.collections.Map _mp,boolean _addlistitem) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "agregafijosalista", false))
	 {return ((String) Debug.delegate(ba, "agregafijosalista", new Object[] {_mp,_addlistitem}));}
boolean _thislog = false;
int _cont = 0;
anywheresoftware.b4a.objects.collections.List _pf = null;
String _p = "";
String _tpi = "";
String _tpr = "";
int _ntpi = 0;
RDebugUtils.currentLine=79233024;
 //BA.debugLineNum = 79233024;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo";
RDebugUtils.currentLine=79233025;
 //BA.debugLineNum = 79233025;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=79233026;
 //BA.debugLineNum = 79233026;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=79233027;
 //BA.debugLineNum = 79233027;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=79233028;
 //BA.debugLineNum = 79233028;BA.debugLine="Dim pf As List = mp.Get(\"prodsFijos\")";
_pf = new anywheresoftware.b4a.objects.collections.List();
_pf = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijos"))));
RDebugUtils.currentLine=79233029;
 //BA.debugLineNum = 79233029;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\"";
if (_pf.getSize()<1) { 
_pf.Add((Object)("Sin productos fijos."));};
RDebugUtils.currentLine=79233033;
 //BA.debugLineNum = 79233033;BA.debugLine="prodsIds.clear";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79233034;
 //BA.debugLineNum = 79233034;BA.debugLine="prodsCants.clear";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79233035;
 //BA.debugLineNum = 79233035;BA.debugLine="prodsPrecios.clear";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79233036;
 //BA.debugLineNum = 79233036;BA.debugLine="prodsIds.Add(estaPromo)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(__ref._estapromo /*String*/ ));
RDebugUtils.currentLine=79233037;
 //BA.debugLineNum = 79233037;BA.debugLine="prodsCants.Add(et_promoCant.text.As(Int))";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))));
RDebugUtils.currentLine=79233038;
 //BA.debugLineNum = 79233038;BA.debugLine="prodsPrecios.Add(0)";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(0));
RDebugUtils.currentLine=79233039;
 //BA.debugLineNum = 79233039;BA.debugLine="For Each p As String In pf";
{
final anywheresoftware.b4a.BA.IterableList group12 = _pf;
final int groupLen12 = group12.getSize()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_p = BA.ObjectToString(group12.Get(index12));
RDebugUtils.currentLine=79233041;
 //BA.debugLineNum = 79233041;BA.debugLine="If mp.Get(\"prodsFijosPiezas\").As(List).Size > 0";
if (((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas"))))).getSize()>0) { 
RDebugUtils.currentLine=79233042;
 //BA.debugLineNum = 79233042;BA.debugLine="Private tpi As String = mp.Get(\"prodsFijosPieza";
_tpi = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas"))))).Get(_cont));
 }else {
RDebugUtils.currentLine=79233044;
 //BA.debugLineNum = 79233044;BA.debugLine="Private tpi As String = 0";
_tpi = BA.NumberToString(0);
 };
RDebugUtils.currentLine=79233046;
 //BA.debugLineNum = 79233046;BA.debugLine="If mp.Get(\"prodsFijosPrecios\").As(List).Size > 0";
if (((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPrecios"))))).getSize()>0) { 
RDebugUtils.currentLine=79233047;
 //BA.debugLineNum = 79233047;BA.debugLine="Private tpr As String = mp.Get(\"prodsFijosPreci";
_tpr = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPrecios"))))).Get(_cont));
 }else {
RDebugUtils.currentLine=79233049;
 //BA.debugLineNum = 79233049;BA.debugLine="Private tpr As String = 0";
_tpr = BA.NumberToString(0);
 };
RDebugUtils.currentLine=79233051;
 //BA.debugLineNum = 79233051;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)";
__ref._prodsfijostot /*float*/  = (float) (__ref._prodsfijostot /*float*/ +((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
RDebugUtils.currentLine=79233052;
 //BA.debugLineNum = 79233052;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) { 
__c.LogImpl("079233052","|"+_tpi+"|"+_p,0);};
RDebugUtils.currentLine=79233053;
 //BA.debugLineNum = 79233053;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
_ntpi = (int) ((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())));
RDebugUtils.currentLine=79233054;
 //BA.debugLineNum = 79233054;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
if (_addlistitem && (double)(Double.parseDouble(_tpi))>0) { 
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(BA.NumberToString(_ntpi)+" "+_subs._traeprodnombre /*String*/ (ba,_p)+" - $"+_tpr));};
RDebugUtils.currentLine=79233055;
 //BA.debugLineNum = 79233055;BA.debugLine="cont = cont+1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=79233058;
 //BA.debugLineNum = 79233058;BA.debugLine="prodsIds.Add(p)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_p));
RDebugUtils.currentLine=79233059;
 //BA.debugLineNum = 79233059;BA.debugLine="prodsCants.Add(tpi.As(Int)*et_promoCant.text.As(";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(((int)(Double.parseDouble(_tpi)))*((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))));
RDebugUtils.currentLine=79233060;
 //BA.debugLineNum = 79233060;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_tpr));
 }
};
RDebugUtils.currentLine=79233062;
 //BA.debugLineNum = 79233062;BA.debugLine="End Sub";
return "";
}
public String  _b_continuar_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_continuar_click", false))
	 {return ((String) Debug.delegate(ba, "b_continuar_click", null));}
int _t = 0;
String _pn = "";
gunav2.keymon.com.mx.c_productos _prodspage = null;
RDebugUtils.currentLine=80084992;
 //BA.debugLineNum = 80084992;BA.debugLine="Private Sub b_continuar_Click";
RDebugUtils.currentLine=80084993;
 //BA.debugLineNum = 80084993;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=80084994;
 //BA.debugLineNum = 80084994;BA.debugLine="Log(\"============================================";
__c.LogImpl("080084994","====================================================================",0);
RDebugUtils.currentLine=80084995;
 //BA.debugLineNum = 80084995;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
final int limit3 = (int) (__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit3 ;_t = _t + step3 ) {
RDebugUtils.currentLine=80084996;
 //BA.debugLineNum = 80084996;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)));
RDebugUtils.currentLine=80084997;
 //BA.debugLineNum = 80084997;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=80084998;
 //BA.debugLineNum = 80084998;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=80085000;
 //BA.debugLineNum = 80085000;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0));
 };
 }
};
RDebugUtils.currentLine=80085003;
 //BA.debugLineNum = 80085003;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
{
final int step11 = 1;
final int limit11 = (int) (__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit11 ;_t = _t + step11 ) {
RDebugUtils.currentLine=80085004;
 //BA.debugLineNum = 80085004;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)));
RDebugUtils.currentLine=80085005;
 //BA.debugLineNum = 80085005;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=80085006;
 //BA.debugLineNum = 80085006;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=80085008;
 //BA.debugLineNum = 80085008;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0));
 };
 }
};
RDebugUtils.currentLine=80085023;
 //BA.debugLineNum = 80085023;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=80085026;
 //BA.debugLineNum = 80085026;BA.debugLine="Private prodspage As C_Productos";
_prodspage = new gunav2.keymon.com.mx.c_productos();
RDebugUtils.currentLine=80085027;
 //BA.debugLineNum = 80085027;BA.debugLine="If prodspage.IsInitialized Then";
if (_prodspage.IsInitialized /*boolean*/ ()) { 
RDebugUtils.currentLine=80085028;
 //BA.debugLineNum = 80085028;BA.debugLine="prodspage.lv_catalogos.Visible = True";
_prodspage._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=80085029;
 //BA.debugLineNum = 80085029;BA.debugLine="prodspage.lv_promos.Visible = False";
_prodspage._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=80085030;
 //BA.debugLineNum = 80085030;BA.debugLine="prodspage.clv_productos.AsView.Visible = False";
_prodspage._clv_productos /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
 };
RDebugUtils.currentLine=80085032;
 //BA.debugLineNum = 80085032;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=80085033;
 //BA.debugLineNum = 80085033;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=80085034;
 //BA.debugLineNum = 80085034;BA.debugLine="End Sub";
return "";
}
public String  _cuentaprods(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "cuentaprods", false))
	 {return ((String) Debug.delegate(ba, "cuentaprods", null));}
boolean _thislog = false;
float _tcpf = 0f;
int _pf = 0;
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null;
anywheresoftware.b4a.objects.collections.List _estetag = null;
anywheresoftware.b4a.objects.B4XViewWrapper _cant2 = null;
RDebugUtils.currentLine=79757312;
 //BA.debugLineNum = 79757312;BA.debugLine="Sub cuentaProds";
RDebugUtils.currentLine=79757315;
 //BA.debugLineNum = 79757315;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=79757317;
 //BA.debugLineNum = 79757317;BA.debugLine="prodsIds2.Clear";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79757318;
 //BA.debugLineNum = 79757318;BA.debugLine="prodsCants2.Clear";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79757319;
 //BA.debugLineNum = 79757319;BA.debugLine="prodsPrecios2.Clear";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=79757320;
 //BA.debugLineNum = 79757320;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=79757321;
 //BA.debugLineNum = 79757321;BA.debugLine="prodsVar1 = 0";
__ref._prodsvar1 /*int*/  = (int) (0);
RDebugUtils.currentLine=79757322;
 //BA.debugLineNum = 79757322;BA.debugLine="prodsVar2 = 0";
__ref._prodsvar2 /*int*/  = (int) (0);
RDebugUtils.currentLine=79757323;
 //BA.debugLineNum = 79757323;BA.debugLine="agregaFijosALista(Subs.traePromo(estaPromo, esteC";
__ref._agregafijosalista /*String*/ (null,_subs._traepromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._estapromo /*String*/ ,__ref._estecliente /*String*/ ),__c.True);
RDebugUtils.currentLine=79757325;
 //BA.debugLineNum = 79757325;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro";
_tcpf = (float) (0);
RDebugUtils.currentLine=79757326;
 //BA.debugLineNum = 79757326;BA.debugLine="For pf = 0 To prodsIds.Size - 1";
{
final int step10 = 1;
final int limit10 = (int) (__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_pf = (int) (0) ;
for (;_pf <= limit10 ;_pf = _pf + step10 ) {
RDebugUtils.currentLine=79757327;
 //BA.debugLineNum = 79757327;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) { 
__c.LogImpl("079757327",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf))+" * "+__c.SmartStringFormatter("",__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf)))*(double)(BA.ObjectToNumber(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf))))))+""),0);};
RDebugUtils.currentLine=79757328;
 //BA.debugLineNum = 79757328;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
_tcpf = (float) (_tcpf+((double)(BA.ObjectToNumber(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf)))*(double)(BA.ObjectToNumber(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pf)))));
 }
};
RDebugUtils.currentLine=79757331;
 //BA.debugLineNum = 79757331;BA.debugLine="totalCompra = tcpf";
__ref._totalcompra /*float*/  = _tcpf;
RDebugUtils.currentLine=79757332;
 //BA.debugLineNum = 79757332;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij";
__ref._totalprods /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=79757334;
 //BA.debugLineNum = 79757334;BA.debugLine="For i = 0 To clv_prodsVariabes.GetSize - 1";
{
final int step16 = 1;
final int limit16 = (int) (__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit16 ;_i = _i + step16 ) {
RDebugUtils.currentLine=79757335;
 //BA.debugLineNum = 79757335;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes.GetPan";
_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p0 = __ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=79757336;
 //BA.debugLineNum = 79757336;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=79757337;
 //BA.debugLineNum = 79757337;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_cant1 = _p.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79757338;
 //BA.debugLineNum = 79757338;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
if ((_cant1.getText()).equals("")) { 
_cant1.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=79757339;
 //BA.debugLineNum = 79757339;BA.debugLine="totalProds = totalProds + cant1.Text";
__ref._totalprods /*int*/  = (int) (__ref._totalprods /*int*/ +(double)(Double.parseDouble(_cant1.getText())));
RDebugUtils.currentLine=79757340;
 //BA.debugLineNum = 79757340;BA.debugLine="prodsVar1 = prodsVar1 + cant1.Text";
__ref._prodsvar1 /*int*/  = (int) (__ref._prodsvar1 /*int*/ +(double)(Double.parseDouble(_cant1.getText())));
RDebugUtils.currentLine=79757341;
 //BA.debugLineNum = 79757341;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag())));
RDebugUtils.currentLine=79757342;
 //BA.debugLineNum = 79757342;BA.debugLine="If cant1.Text > esteTag.Get(1) Then cant1.Text =";
if ((double)(Double.parseDouble(_cant1.getText()))>(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { 
_cant1.setText(BA.ObjectToCharSequence(_estetag.Get((int) (1))));};
RDebugUtils.currentLine=79757343;
 //BA.debugLineNum = 79757343;BA.debugLine="If cant1.Text > 0 Then";
if ((double)(Double.parseDouble(_cant1.getText()))>0) { 
RDebugUtils.currentLine=79757345;
 //BA.debugLineNum = 79757345;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c";
__ref._totalcompra /*float*/  = (float) (__ref._totalcompra /*float*/ +((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText()))));
RDebugUtils.currentLine=79757346;
 //BA.debugLineNum = 79757346;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) { 
__c.LogImpl("079757346",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=79757347;
 //BA.debugLineNum = 79757347;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (2)));
RDebugUtils.currentLine=79757348;
 //BA.debugLineNum = 79757348;BA.debugLine="prodsCants2.Add(cant1.Text)";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_cant1.getText()));
RDebugUtils.currentLine=79757349;
 //BA.debugLineNum = 79757349;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (0)));
 };
RDebugUtils.currentLine=79757351;
 //BA.debugLineNum = 79757351;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+"")));
RDebugUtils.currentLine=79757352;
 //BA.debugLineNum = 79757352;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+"")));
 }
};
RDebugUtils.currentLine=79757355;
 //BA.debugLineNum = 79757355;BA.debugLine="For i = 0 To clv_prodsVariabes2.GetSize - 1";
{
final int step35 = 1;
final int limit35 = (int) (__ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit35 ;_i = _i + step35 ) {
RDebugUtils.currentLine=79757356;
 //BA.debugLineNum = 79757356;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes2.GetPa";
_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p0 = __ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=79757357;
 //BA.debugLineNum = 79757357;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=79757358;
 //BA.debugLineNum = 79757358;BA.debugLine="Private cant2 As B4XView = p.GetView(2).GetView(";
_cant2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_cant2 = _p.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79757359;
 //BA.debugLineNum = 79757359;BA.debugLine="totalProds = totalProds + cant2.Text";
__ref._totalprods /*int*/  = (int) (__ref._totalprods /*int*/ +(double)(Double.parseDouble(_cant2.getText())));
RDebugUtils.currentLine=79757360;
 //BA.debugLineNum = 79757360;BA.debugLine="prodsVar2 = prodsVar2 + cant2.Text";
__ref._prodsvar2 /*int*/  = (int) (__ref._prodsvar2 /*int*/ +(double)(Double.parseDouble(_cant2.getText())));
RDebugUtils.currentLine=79757361;
 //BA.debugLineNum = 79757361;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant2.getTag())));
RDebugUtils.currentLine=79757362;
 //BA.debugLineNum = 79757362;BA.debugLine="If cant2.Text > esteTag.Get(1) Then cant2.Text =";
if ((double)(Double.parseDouble(_cant2.getText()))>(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { 
_cant2.setText(BA.ObjectToCharSequence(_estetag.Get((int) (1))));};
RDebugUtils.currentLine=79757363;
 //BA.debugLineNum = 79757363;BA.debugLine="If cant2.Text > 0 Then";
if ((double)(Double.parseDouble(_cant2.getText()))>0) { 
RDebugUtils.currentLine=79757365;
 //BA.debugLineNum = 79757365;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c";
__ref._totalcompra /*float*/  = (float) (__ref._totalcompra /*float*/ +((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText()))));
RDebugUtils.currentLine=79757366;
 //BA.debugLineNum = 79757366;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
if (_thislog) { 
__c.LogImpl("079757366",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=79757367;
 //BA.debugLineNum = 79757367;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (2)));
RDebugUtils.currentLine=79757368;
 //BA.debugLineNum = 79757368;BA.debugLine="prodsCants2.Add(cant2.Text)";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_cant2.getText()));
RDebugUtils.currentLine=79757369;
 //BA.debugLineNum = 79757369;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (0)));
 };
RDebugUtils.currentLine=79757371;
 //BA.debugLineNum = 79757371;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+"")));
RDebugUtils.currentLine=79757372;
 //BA.debugLineNum = 79757372;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+"")));
 }
};
RDebugUtils.currentLine=79757375;
 //BA.debugLineNum = 79757375;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) { 
__c.LogImpl("079757375",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=79757376;
 //BA.debugLineNum = 79757376;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+"")));
RDebugUtils.currentLine=79757377;
 //BA.debugLineNum = 79757377;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+"")));
RDebugUtils.currentLine=79757378;
 //BA.debugLineNum = 79757378;BA.debugLine="If totalProds < prodsVarReq + prodsVarReq2 + tpf";
if (__ref._totalprods /*int*/ <__ref._prodsvarreq /*int*/ +__ref._prodsvarreq2 /*int*/ +__ref._tpf /*int*/  || __ref._totalprods /*int*/ >__ref._prodsvarreq /*int*/ +__ref._prodsvarreq2 /*int*/ +__ref._tpf /*int*/ ) { 
RDebugUtils.currentLine=79757380;
 //BA.debugLineNum = 79757380;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=79757381;
 //BA.debugLineNum = 79757381;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=79757384;
 //BA.debugLineNum = 79757384;BA.debugLine="b_terminar1.Visible = True";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=79757385;
 //BA.debugLineNum = 79757385;BA.debugLine="b_continuar.Visible = True";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=79757387;
 //BA.debugLineNum = 79757387;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) { 
__c.LogImpl("079757387",(""+__c.SmartStringFormatter("",(Object)(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""),__c.Colors.Blue);};
RDebugUtils.currentLine=79757388;
 //BA.debugLineNum = 79757388;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) { 
__c.LogImpl("079757388",(""+__c.SmartStringFormatter("",(Object)(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .getObject()))+""),__c.Colors.Magenta);};
RDebugUtils.currentLine=79757390;
 //BA.debugLineNum = 79757390;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
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.collections.List _estetag = null;
String _precio = "";
String _prodid = "";
anywheresoftware.b4a.objects.collections.Map _tmpmap = null;
RDebugUtils.currentLine=79495168;
 //BA.debugLineNum = 79495168;BA.debugLine="Sub b_prodMas_Click";
RDebugUtils.currentLine=79495169;
 //BA.debugLineNum = 79495169;BA.debugLine="If prodsVar1 < prodsVarReq Then";
if (__ref._prodsvar1 /*int*/ <__ref._prodsvarreq /*int*/ ) { 
RDebugUtils.currentLine=79495170;
 //BA.debugLineNum = 79495170;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFrom";
_index = __ref._clv_prodsvariabes /*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=79495171;
 //BA.debugLineNum = 79495171;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=79495172;
 //BA.debugLineNum = 79495172;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=79495174;
 //BA.debugLineNum = 79495174;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79495177;
 //BA.debugLineNum = 79495177;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
RDebugUtils.currentLine=79495180;
 //BA.debugLineNum = 79495180;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { 
RDebugUtils.currentLine=79495181;
 //BA.debugLineNum = 79495181;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
RDebugUtils.currentLine=79495182;
 //BA.debugLineNum = 79495182;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=79495186;
 //BA.debugLineNum = 79495186;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=79495188;
 //BA.debugLineNum = 79495188;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=79495189;
 //BA.debugLineNum = 79495189;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci";
_tmpmap = new anywheresoftware.b4a.objects.collections.Map();
_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(__ref._estapromo /*String*/ )});
RDebugUtils.currentLine=79495191;
 //BA.debugLineNum = 79495191;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
 };
RDebugUtils.currentLine=79495197;
 //BA.debugLineNum = 79495197;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas2_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_prodmas2_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmas2_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.collections.List _estetag = null;
String _precio = "";
String _prodid = "";
anywheresoftware.b4a.objects.collections.Map _tmpmap = null;
RDebugUtils.currentLine=79626240;
 //BA.debugLineNum = 79626240;BA.debugLine="Sub b_prodMas2_Click";
RDebugUtils.currentLine=79626242;
 //BA.debugLineNum = 79626242;BA.debugLine="If prodsVar2 < prodsVarReq2 Then";
if (__ref._prodsvar2 /*int*/ <__ref._prodsvarreq2 /*int*/ ) { 
RDebugUtils.currentLine=79626243;
 //BA.debugLineNum = 79626243;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFro";
_index = __ref._clv_prodsvariabes2 /*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=79626244;
 //BA.debugLineNum = 79626244;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPane";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=79626245;
 //BA.debugLineNum = 79626245;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=79626247;
 //BA.debugLineNum = 79626247;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79626250;
 //BA.debugLineNum = 79626250;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
RDebugUtils.currentLine=79626252;
 //BA.debugLineNum = 79626252;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { 
RDebugUtils.currentLine=79626253;
 //BA.debugLineNum = 79626253;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
RDebugUtils.currentLine=79626254;
 //BA.debugLineNum = 79626254;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=79626258;
 //BA.debugLineNum = 79626258;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=79626260;
 //BA.debugLineNum = 79626260;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=79626261;
 //BA.debugLineNum = 79626261;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci";
_tmpmap = new anywheresoftware.b4a.objects.collections.Map();
_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(__ref._estapromo /*String*/ )});
RDebugUtils.currentLine=79626263;
 //BA.debugLineNum = 79626263;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
 };
RDebugUtils.currentLine=79626269;
 //BA.debugLineNum = 79626269;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
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;
String _precio = "";
String _prodid = "";
anywheresoftware.b4a.objects.collections.Map _tmpmap = null;
RDebugUtils.currentLine=79429632;
 //BA.debugLineNum = 79429632;BA.debugLine="Sub b_prodMenos_Click";
RDebugUtils.currentLine=79429633;
 //BA.debugLineNum = 79429633;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFromV";
_index = __ref._clv_prodsvariabes /*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=79429634;
 //BA.debugLineNum = 79429634;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel(";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=79429635;
 //BA.debugLineNum = 79429635;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=79429637;
 //BA.debugLineNum = 79429637;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79429639;
 //BA.debugLineNum = 79429639;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
RDebugUtils.currentLine=79429640;
 //BA.debugLineNum = 79429640;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=79429643;
 //BA.debugLineNum = 79429643;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=79429645;
 //BA.debugLineNum = 79429645;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=79429646;
 //BA.debugLineNum = 79429646;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)(__ref._estapromo /*String*/ )});
RDebugUtils.currentLine=79429648;
 //BA.debugLineNum = 79429648;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=79429649;
 //BA.debugLineNum = 79429649;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)";
if ((_lacant.getText()).equals(BA.NumberToString(0))) { 
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Remove((Object)(_prodid));};
RDebugUtils.currentLine=79429651;
 //BA.debugLineNum = 79429651;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79429654;
 //BA.debugLineNum = 79429654;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos2_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_prodmenos2_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmenos2_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
String _precio = "";
String _prodid = "";
anywheresoftware.b4a.objects.collections.Map _tmpmap = null;
RDebugUtils.currentLine=79560704;
 //BA.debugLineNum = 79560704;BA.debugLine="Sub b_prodMenos2_Click";
RDebugUtils.currentLine=79560705;
 //BA.debugLineNum = 79560705;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFrom";
_index = __ref._clv_prodsvariabes2 /*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=79560706;
 //BA.debugLineNum = 79560706;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPanel";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=79560707;
 //BA.debugLineNum = 79560707;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=79560709;
 //BA.debugLineNum = 79560709;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (4));
RDebugUtils.currentLine=79560711;
 //BA.debugLineNum = 79560711;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
RDebugUtils.currentLine=79560712;
 //BA.debugLineNum = 79560712;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=79560715;
 //BA.debugLineNum = 79560715;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=79560717;
 //BA.debugLineNum = 79560717;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=79560718;
 //BA.debugLineNum = 79560718;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)(__ref._estapromo /*String*/ )});
RDebugUtils.currentLine=79560720;
 //BA.debugLineNum = 79560720;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=79560721;
 //BA.debugLineNum = 79560721;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)";
if ((_lacant.getText()).equals(BA.NumberToString(0))) { 
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Remove((Object)(_prodid));};
RDebugUtils.currentLine=79560723;
 //BA.debugLineNum = 79560723;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79560726;
 //BA.debugLineNum = 79560726;BA.debugLine="End Sub";
return "";
}
public String  _b_promomas_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_promomas_click", false))
	 {return ((String) Debug.delegate(ba, "b_promomas_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
RDebugUtils.currentLine=79953920;
 //BA.debugLineNum = 79953920;BA.debugLine="Private Sub b_promoMas_Click";
RDebugUtils.currentLine=79953922;
 //BA.debugLineNum = 79953922;BA.debugLine="If laPromo = \"MYKONOS_01\" Then";
if ((__ref._lapromo /*String*/ ).equals("MYKONOS_01")) { 
RDebugUtils.currentLine=79953923;
 //BA.debugLineNum = 79953923;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe";
_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 ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=79953924;
 //BA.debugLineNum = 79953924;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
RDebugUtils.currentLine=79953925;
 //BA.debugLineNum = 79953925;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=79953926;
 //BA.debugLineNum = 79953926;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.E";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP")));
RDebugUtils.currentLine=79953927;
 //BA.debugLineNum = 79953927;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=79953928;
 //BA.debugLineNum = 79953928;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=79953930;
 //BA.debugLineNum = 79953930;BA.debugLine="If c.GetString(\"suma\") >= 300 And c.GetString(";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=300 && (double)(Double.parseDouble(_c.GetString("suma")))<600) { 
RDebugUtils.currentLine=79953931;
 //BA.debugLineNum = 79953931;BA.debugLine="maxCantPromos = 1";
__ref._maxcantpromos /*int*/  = (int) (1);
 }else 
{RDebugUtils.currentLine=79953932;
 //BA.debugLineNum = 79953932;BA.debugLine="Else If c.GetString(\"suma\") >= 600 And c.GetSt";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=600 && (double)(Double.parseDouble(_c.GetString("suma")))<900) { 
RDebugUtils.currentLine=79953933;
 //BA.debugLineNum = 79953933;BA.debugLine="maxCantPromos = 2";
__ref._maxcantpromos /*int*/  = (int) (2);
 }else 
{RDebugUtils.currentLine=79953934;
 //BA.debugLineNum = 79953934;BA.debugLine="Else If c.GetString(\"suma\") >= 900  Then";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=900) { 
RDebugUtils.currentLine=79953935;
 //BA.debugLineNum = 79953935;BA.debugLine="maxCantPromos = 3";
__ref._maxcantpromos /*int*/  = (int) (3);
 }}}
;
 };
 };
 };
RDebugUtils.currentLine=79953943;
 //BA.debugLineNum = 79953943;BA.debugLine="If et_promoCant.Text < maxCantPromos Then";
if ((double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))<__ref._maxcantpromos /*int*/ ) { 
RDebugUtils.currentLine=79953944;
 //BA.debugLineNum = 79953944;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) +";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))+1));
RDebugUtils.currentLine=79953945;
 //BA.debugLineNum = 79953945;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 *";
__ref._l_prodsfijos /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(__ref._tpf2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+")")));
RDebugUtils.currentLine=79953946;
 //BA.debugLineNum = 79953946;BA.debugLine="l_prodsVariables.Text = $\"Productos variables re";
__ref._l_prodsvariables /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=79953947;
 //BA.debugLineNum = 79953947;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq2_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=79953948;
 //BA.debugLineNum = 79953948;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
__ref._tpf /*int*/  = (int) (__ref._tpf2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79953949;
 //BA.debugLineNum = 79953949;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.A";
__ref._prodsvarreq /*int*/  = (int) (__ref._prodsvarreq_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79953950;
 //BA.debugLineNum = 79953950;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
__ref._prodsvarreq2 /*int*/  = (int) (__ref._prodsvarreq2_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79953951;
 //BA.debugLineNum = 79953951;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("079953951",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(__ref._tpf /*int*/ ))+",  "),0);
 };
RDebugUtils.currentLine=79953953;
 //BA.debugLineNum = 79953953;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
if ((double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>__ref._maxcantpromos /*int*/ ) { 
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._maxcantpromos /*int*/ ));};
RDebugUtils.currentLine=79953954;
 //BA.debugLineNum = 79953954;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79953955;
 //BA.debugLineNum = 79953955;BA.debugLine="End Sub";
return "";
}
public String  _b_promomenos_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_promomenos_click", false))
	 {return ((String) Debug.delegate(ba, "b_promomenos_click", null));}
RDebugUtils.currentLine=79888384;
 //BA.debugLineNum = 79888384;BA.debugLine="Private Sub b_promoMenos_Click";
RDebugUtils.currentLine=79888385;
 //BA.debugLineNum = 79888385;BA.debugLine="If et_promoCant.Text > 1 Then";
if ((double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>1) { 
RDebugUtils.currentLine=79888386;
 //BA.debugLineNum = 79888386;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) -";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))-1));
 };
RDebugUtils.currentLine=79888388;
 //BA.debugLineNum = 79888388;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 * e";
__ref._l_prodsfijos /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(__ref._tpf2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+")")));
RDebugUtils.currentLine=79888389;
 //BA.debugLineNum = 79888389;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
__ref._l_prodsvariables /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=79888390;
 //BA.debugLineNum = 79888390;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq2_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=79888391;
 //BA.debugLineNum = 79888391;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
__ref._tpf /*int*/  = (int) (__ref._tpf2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79888392;
 //BA.debugLineNum = 79888392;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.As";
__ref._prodsvarreq /*int*/  = (int) (__ref._prodsvarreq_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79888393;
 //BA.debugLineNum = 79888393;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text.";
__ref._prodsvarreq2 /*int*/  = (int) (__ref._prodsvarreq2_ /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=79888394;
 //BA.debugLineNum = 79888394;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("079888394",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(__ref._tpf /*int*/ ))+",  "),0);
RDebugUtils.currentLine=79888395;
 //BA.debugLineNum = 79888395;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79888396;
 //BA.debugLineNum = 79888396;BA.debugLine="End Sub";
return "";
}
public String  _b_terminar1_click(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b_terminar1_click", false))
	 {return ((String) Debug.delegate(ba, "b_terminar1_click", null));}
int _t = 0;
String _pn = "";
RDebugUtils.currentLine=80019456;
 //BA.debugLineNum = 80019456;BA.debugLine="Private Sub b_terminar1_Click";
RDebugUtils.currentLine=80019457;
 //BA.debugLineNum = 80019457;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=80019458;
 //BA.debugLineNum = 80019458;BA.debugLine="Log(\"============================================";
__c.LogImpl("080019458","====================================================================",0);
RDebugUtils.currentLine=80019459;
 //BA.debugLineNum = 80019459;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
final int limit3 = (int) (__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit3 ;_t = _t + step3 ) {
RDebugUtils.currentLine=80019460;
 //BA.debugLineNum = 80019460;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)));
RDebugUtils.currentLine=80019461;
 //BA.debugLineNum = 80019461;BA.debugLine="If prodsCants.Get(t) > 0 Then";
if ((double)(BA.ObjectToNumber(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)))>0) { 
RDebugUtils.currentLine=80019462;
 //BA.debugLineNum = 80019462;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=80019463;
 //BA.debugLineNum = 80019463;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prods";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=80019465;
 //BA.debugLineNum = 80019465;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prods";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0));
 };
 };
 }
};
RDebugUtils.currentLine=80019469;
 //BA.debugLineNum = 80019469;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
{
final int step13 = 1;
final int limit13 = (int) (__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit13 ;_t = _t + step13 ) {
RDebugUtils.currentLine=80019470;
 //BA.debugLineNum = 80019470;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)));
RDebugUtils.currentLine=80019471;
 //BA.debugLineNum = 80019471;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=80019472;
 //BA.debugLineNum = 80019472;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1));
 }else {
RDebugUtils.currentLine=80019474;
 //BA.debugLineNum = 80019474;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP";
_subs._guardaproductosingestion /*String*/ (ba,__ref._estapromo /*String*/ ,BA.ObjectToString(__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),BA.ObjectToString(__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_pn,BA.ObjectToString(__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0));
 };
 }
};
RDebugUtils.currentLine=80019489;
 //BA.debugLineNum = 80019489;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=80019490;
 //BA.debugLineNum = 80019490;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=80019491;
 //BA.debugLineNum = 80019491;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=80019492;
 //BA.debugLineNum = 80019492;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._b_terminar1_click /*String*/ (null);
RDebugUtils.currentLine=80019493;
 //BA.debugLineNum = 80019493;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
anywheresoftware.b4a.objects.collections.Map _m = null;
RDebugUtils.currentLine=79101952;
 //BA.debugLineNum = 79101952;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=79101954;
 //BA.debugLineNum = 79101954;BA.debugLine="prodsIds.Initialize";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101955;
 //BA.debugLineNum = 79101955;BA.debugLine="prodsCants.Initialize";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101956;
 //BA.debugLineNum = 79101956;BA.debugLine="prodsPrecios.Initialize";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101957;
 //BA.debugLineNum = 79101957;BA.debugLine="prodsIds2.Initialize";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101958;
 //BA.debugLineNum = 79101958;BA.debugLine="prodsCants2.Initialize";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101959;
 //BA.debugLineNum = 79101959;BA.debugLine="prodsPrecios2.Initialize";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=79101960;
 //BA.debugLineNum = 79101960;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=79101961;
 //BA.debugLineNum = 79101961;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
__ref._prodspedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("productos")));
RDebugUtils.currentLine=79101962;
 //BA.debugLineNum = 79101962;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
__ref._montopedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("monto")));
RDebugUtils.currentLine=79101964;
 //BA.debugLineNum = 79101964;BA.debugLine="If laPromo <> \"\" Then muestraPromo(laPromo, elCli";
if ((__ref._lapromo /*String*/ ).equals("") == false) { 
__ref._muestrapromo /*String*/ (null,__ref._lapromo /*String*/ ,__ref._elcliente /*String*/ );};
RDebugUtils.currentLine=79101965;
 //BA.debugLineNum = 79101965;BA.debugLine="Log(laPromo)";
__c.LogImpl("079101965",__ref._lapromo /*String*/ ,0);
RDebugUtils.currentLine=79101966;
 //BA.debugLineNum = 79101966;BA.debugLine="End Sub";
return "";
}
public String  _muestrapromo(gunav2.keymon.com.mx.c_promos __ref,String _promo,String _cliente) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "muestrapromo", false))
	 {return ((String) Debug.delegate(ba, "muestrapromo", new Object[] {_promo,_cliente}));}
boolean _thislog = false;
anywheresoftware.b4a.objects.collections.Map _mp = null;
anywheresoftware.b4a.objects.collections.Map _prodspromo = null;
anywheresoftware.b4a.objects.collections.Map _invdisppromo = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
anywheresoftware.b4a.objects.collections.List _listapv = null;
anywheresoftware.b4a.objects.collections.List _listapreciospv = null;
anywheresoftware.b4a.objects.collections.List _listapv2 = null;
anywheresoftware.b4a.objects.collections.List _listapreciospv2 = null;
anywheresoftware.b4a.objects.collections.List _pv = null;
anywheresoftware.b4a.objects.collections.List _pv2 = null;
int _pfp = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
String _p = "";
String _indicepv = "";
String _esteprecio = "";
anywheresoftware.b4a.objects.collections.Map _thisprod = null;
String _indicepv2 = "";
RDebugUtils.currentLine=79167488;
 //BA.debugLineNum = 79167488;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin";
RDebugUtils.currentLine=79167489;
 //BA.debugLineNum = 79167489;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=79167491;
 //BA.debugLineNum = 79167491;BA.debugLine="estaPromo = promo";
__ref._estapromo /*String*/  = _promo;
RDebugUtils.currentLine=79167492;
 //BA.debugLineNum = 79167492;BA.debugLine="esteCliente = cliente";
__ref._estecliente /*String*/  = _cliente;
RDebugUtils.currentLine=79167493;
 //BA.debugLineNum = 79167493;BA.debugLine="Private mp As Map = Subs.traePromo(promo, cliente";
_mp = new anywheresoftware.b4a.objects.collections.Map();
_mp = _subs._traepromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo,_cliente);
RDebugUtils.currentLine=79167494;
 //BA.debugLineNum = 79167494;BA.debugLine="Private prodsPromo As Map = mp.Get(\"productos\") '";
_prodspromo = new anywheresoftware.b4a.objects.collections.Map();
_prodspromo = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_mp.Get((Object)("productos"))));
RDebugUtils.currentLine=79167495;
 //BA.debugLineNum = 79167495;BA.debugLine="Private invDispPromo As Map = Subs.traemosInventa";
_invdisppromo = new anywheresoftware.b4a.objects.collections.Map();
_invdisppromo = _subs._traemosinventariodisponibleparapromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo);
RDebugUtils.currentLine=79167497;
 //BA.debugLineNum = 79167497;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("079167497","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=79167498;
 //BA.debugLineNum = 79167498;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("079167498","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=79167499;
 //BA.debugLineNum = 79167499;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
__ref._maxcantpromos /*int*/  = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
RDebugUtils.currentLine=79167500;
 //BA.debugLineNum = 79167500;BA.debugLine="et_promoCant.Text = 1";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(1));
RDebugUtils.currentLine=79167502;
 //BA.debugLineNum = 79167502;BA.debugLine="If laPromo = \"MYKONOS_01\" Then";
if ((__ref._lapromo /*String*/ ).equals("MYKONOS_01")) { 
RDebugUtils.currentLine=79167503;
 //BA.debugLineNum = 79167503;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe";
_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 ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=79167504;
 //BA.debugLineNum = 79167504;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
RDebugUtils.currentLine=79167505;
 //BA.debugLineNum = 79167505;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=79167506;
 //BA.debugLineNum = 79167506;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.E";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP")));
RDebugUtils.currentLine=79167507;
 //BA.debugLineNum = 79167507;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=79167508;
 //BA.debugLineNum = 79167508;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=79167510;
 //BA.debugLineNum = 79167510;BA.debugLine="If c.GetString(\"suma\") >= 300 And c.GetString(";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=300 && (double)(Double.parseDouble(_c.GetString("suma")))<600) { 
RDebugUtils.currentLine=79167511;
 //BA.debugLineNum = 79167511;BA.debugLine="l_promosCant.text = \"Max promos: \" & 1";
__ref._l_promoscant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(1)));
 }else 
{RDebugUtils.currentLine=79167512;
 //BA.debugLineNum = 79167512;BA.debugLine="Else If c.GetString(\"suma\") >= 600 And c.GetSt";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=600 && (double)(Double.parseDouble(_c.GetString("suma")))<900) { 
RDebugUtils.currentLine=79167513;
 //BA.debugLineNum = 79167513;BA.debugLine="l_promosCant.text = \"Max promos: \" & 2";
__ref._l_promoscant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(2)));
 }else 
{RDebugUtils.currentLine=79167514;
 //BA.debugLineNum = 79167514;BA.debugLine="Else If c.GetString(\"suma\") >= 900  Then";
if ((double)(Double.parseDouble(_c.GetString("suma")))>=900) { 
RDebugUtils.currentLine=79167515;
 //BA.debugLineNum = 79167515;BA.debugLine="l_promosCant.text = \"Max promos: \" & 3";
__ref._l_promoscant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(3)));
 }}}
;
 };
 };
 }else {
RDebugUtils.currentLine=79167521;
 //BA.debugLineNum = 79167521;BA.debugLine="l_promosCant.text = \"Max promos: \" & maxCantProm";
__ref._l_promoscant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(__ref._maxcantpromos /*int*/ )));
 };
RDebugUtils.currentLine=79167525;
 //BA.debugLineNum = 79167525;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=79167526;
 //BA.debugLineNum = 79167526;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=79167527;
 //BA.debugLineNum = 79167527;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("079167527",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=79167528;
 //BA.debugLineNum = 79167528;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) { 
__c.LogImpl("079167528",BA.ObjectToString(_prodspromo),0);};
RDebugUtils.currentLine=79167529;
 //BA.debugLineNum = 79167529;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\"";
_listapv = new anywheresoftware.b4a.objects.collections.List();
_listapv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables"))));
RDebugUtils.currentLine=79167530;
 //BA.debugLineNum = 79167530;BA.debugLine="Private listaPreciosPV As List = mp.Get(\"prodsVar";
_listapreciospv = new anywheresoftware.b4a.objects.collections.List();
_listapreciospv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariablesPrecios"))));
RDebugUtils.currentLine=79167531;
 //BA.debugLineNum = 79167531;BA.debugLine="Private listaPV2 As List = mp.Get(\"prodsVariables";
_listapv2 = new anywheresoftware.b4a.objects.collections.List();
_listapv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2"))));
RDebugUtils.currentLine=79167532;
 //BA.debugLineNum = 79167532;BA.debugLine="Private listaPreciosPV2 As List = mp.Get(\"prodsVa";
_listapreciospv2 = new anywheresoftware.b4a.objects.collections.List();
_listapreciospv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariablesPrecios2"))));
RDebugUtils.currentLine=79167537;
 //BA.debugLineNum = 79167537;BA.debugLine="l_promoDesc.Text = cs.Color(Colors.RGB(100,149,23";
__ref._l_promodesc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence("Promocion: ")).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence(_promo)).Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence(_mp.Get((Object)("descripcion")))).PopAll().getObject()));
RDebugUtils.currentLine=79167538;
 //BA.debugLineNum = 79167538;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=79167541;
 //BA.debugLineNum = 79167541;BA.debugLine="Dim pv As List = mp.Get(\"prodsVariables\")";
_pv = new anywheresoftware.b4a.objects.collections.List();
_pv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables"))));
RDebugUtils.currentLine=79167542;
 //BA.debugLineNum = 79167542;BA.debugLine="Dim pv2 As List = mp.Get(\"prodsVariables2\")";
_pv2 = new anywheresoftware.b4a.objects.collections.List();
_pv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2"))));
RDebugUtils.currentLine=79167543;
 //BA.debugLineNum = 79167543;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("079167543",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=79167544;
 //BA.debugLineNum = 79167544;BA.debugLine="tpf = 0";
__ref._tpf /*int*/  = (int) (0);
RDebugUtils.currentLine=79167545;
 //BA.debugLineNum = 79167545;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
{
final anywheresoftware.b4a.BA.IterableList group44 = ((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas")))));
final int groupLen44 = group44.getSize()
;int index44 = 0;
;
for (; index44 < groupLen44;index44++){
_pfp = (int)(BA.ObjectToNumber(group44.Get(index44)));
RDebugUtils.currentLine=79167546;
 //BA.debugLineNum = 79167546;BA.debugLine="tpf = tpf + pfp";
__ref._tpf /*int*/  = (int) (__ref._tpf /*int*/ +_pfp);
 }
};
RDebugUtils.currentLine=79167548;
 //BA.debugLineNum = 79167548;BA.debugLine="tpf2 = tpf";
__ref._tpf2 /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=79167550;
 //BA.debugLineNum = 79167550;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf})\"$";
__ref._l_prodsfijos /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(__ref._tpf /*int*/ ))+")")));
RDebugUtils.currentLine=79167551;
 //BA.debugLineNum = 79167551;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")";
__ref._prodsvarreq /*int*/  = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariablesRequeridos"))));
RDebugUtils.currentLine=79167552;
 //BA.debugLineNum = 79167552;BA.debugLine="prodsVarReq_ = prodsVarReq";
__ref._prodsvarreq_ /*int*/  = __ref._prodsvarreq /*int*/ ;
RDebugUtils.currentLine=79167553;
 //BA.debugLineNum = 79167553;BA.debugLine="prodsVarReq2 = mp.Get(\"prodsVariables2Requeridos\"";
__ref._prodsvarreq2 /*int*/  = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariables2Requeridos"))));
RDebugUtils.currentLine=79167554;
 //BA.debugLineNum = 79167554;BA.debugLine="prodsVarReq2_ = prodsVarReq2";
__ref._prodsvarreq2_ /*int*/  = __ref._prodsvarreq2 /*int*/ ;
RDebugUtils.currentLine=79167556;
 //BA.debugLineNum = 79167556;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
__ref._l_prodsvariables /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq /*int*/ ))+"")));
RDebugUtils.currentLine=79167557;
 //BA.debugLineNum = 79167557;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(__ref._prodsvarreq2 /*int*/ ))+"")));
RDebugUtils.currentLine=79167558;
 //BA.debugLineNum = 79167558;BA.debugLine="If prodsVarReq = 0 Then";
if (__ref._prodsvarreq /*int*/ ==0) { 
RDebugUtils.currentLine=79167559;
 //BA.debugLineNum = 79167559;BA.debugLine="p_prodsVariables.Visible = False";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=79167561;
 //BA.debugLineNum = 79167561;BA.debugLine="p_prodsVariables.Visible = True";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=79167564;
 //BA.debugLineNum = 79167564;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=79167565;
 //BA.debugLineNum = 79167565;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label";
_label1 = __ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=79167566;
 //BA.debugLineNum = 79167566;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=79167567;
 //BA.debugLineNum = 79167567;BA.debugLine="label1.TextColor = Colors.black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=79167568;
 //BA.debugLineNum = 79167568;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (30)));
RDebugUtils.currentLine=79167569;
 //BA.debugLineNum = 79167569;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=79167571;
 //BA.debugLineNum = 79167571;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=79167572;
 //BA.debugLineNum = 79167572;BA.debugLine="agregaFijosALista(mp, True)";
__ref._agregafijosalista /*String*/ (null,_mp,__c.True);
RDebugUtils.currentLine=79167573;
 //BA.debugLineNum = 79167573;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) { 
__c.LogImpl("079167573","Total prods fijos = "+BA.NumberToString(__ref._prodsfijostot /*float*/ ),0);};
RDebugUtils.currentLine=79167575;
 //BA.debugLineNum = 79167575;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
__ref._l_totprods /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(__ref._tpf /*int*/ ))+"")));
RDebugUtils.currentLine=79167576;
 //BA.debugLineNum = 79167576;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._prodsfijostot /*float*/ ))+"")));
RDebugUtils.currentLine=79167582;
 //BA.debugLineNum = 79167582;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
if (_thislog) { 
__c.LogImpl("079167582",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
RDebugUtils.currentLine=79167583;
 //BA.debugLineNum = 79167583;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
if (_thislog) { 
__c.LogImpl("079167583",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
RDebugUtils.currentLine=79167584;
 //BA.debugLineNum = 79167584;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) { 
__c.LogImpl("079167584","invDisp="+BA.ObjectToString(_invdisppromo),0);};
RDebugUtils.currentLine=79167585;
 //BA.debugLineNum = 79167585;BA.debugLine="clv_prodsVariabes.Clear";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=79167586;
 //BA.debugLineNum = 79167586;BA.debugLine="clv_prodsVariabes2.Clear";
__ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=79167587;
 //BA.debugLineNum = 79167587;BA.debugLine="For Each p As String In pv";
{
final anywheresoftware.b4a.BA.IterableList group76 = _pv;
final int groupLen76 = group76.getSize()
;int index76 = 0;
;
for (; index76 < groupLen76;index76++){
_p = BA.ObjectToString(group76.Get(index76));
RDebugUtils.currentLine=79167588;
 //BA.debugLineNum = 79167588;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
if (_invdisppromo.ContainsKey((Object)(_p))) { 
RDebugUtils.currentLine=79167589;
 //BA.debugLineNum = 79167589;BA.debugLine="Private indicePV = listaPV.IndexOf(p)";
_indicepv = BA.NumberToString(_listapv.IndexOf((Object)(_p)));
RDebugUtils.currentLine=79167591;
 //BA.debugLineNum = 79167591;BA.debugLine="Private estePrecio = listaPreciosPV.Get(indiceP";
_esteprecio = BA.ObjectToString(_listapreciospv.Get((int)(Double.parseDouble(_indicepv))));
RDebugUtils.currentLine=79167596;
 //BA.debugLineNum = 79167596;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)";
_thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
RDebugUtils.currentLine=79167597;
 //BA.debugLineNum = 79167597;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) { 
__c.LogImpl("079167597",BA.ObjectToString(_thisprod),0);};
RDebugUtils.currentLine=79167598;
 //BA.debugLineNum = 79167598;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
 };
 }
};
RDebugUtils.currentLine=79167602;
 //BA.debugLineNum = 79167602;BA.debugLine="For Each p As String In pv2";
{
final anywheresoftware.b4a.BA.IterableList group85 = _pv2;
final int groupLen85 = group85.getSize()
;int index85 = 0;
;
for (; index85 < groupLen85;index85++){
_p = BA.ObjectToString(group85.Get(index85));
RDebugUtils.currentLine=79167603;
 //BA.debugLineNum = 79167603;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
if (_invdisppromo.ContainsKey((Object)(_p))) { 
RDebugUtils.currentLine=79167608;
 //BA.debugLineNum = 79167608;BA.debugLine="Private indicePV2 = listaPV2.IndexOf(p)";
_indicepv2 = BA.NumberToString(_listapv2.IndexOf((Object)(_p)));
RDebugUtils.currentLine=79167611;
 //BA.debugLineNum = 79167611;BA.debugLine="Private estePrecio = listaPreciosPV2.Get(indice";
_esteprecio = BA.ObjectToString(_listapreciospv2.Get((int)(Double.parseDouble(_indicepv2))));
RDebugUtils.currentLine=79167616;
 //BA.debugLineNum = 79167616;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)";
_thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
RDebugUtils.currentLine=79167617;
 //BA.debugLineNum = 79167617;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) { 
__c.LogImpl("079167617",BA.ObjectToString(_thisprod),0);};
RDebugUtils.currentLine=79167618;
 //BA.debugLineNum = 79167618;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra";
__ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),__ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
 };
 }
};
RDebugUtils.currentLine=79167621;
 //BA.debugLineNum = 79167621;BA.debugLine="If pv2.Size = 0 Then";
if (_pv2.getSize()==0) { 
RDebugUtils.currentLine=79167623;
 //BA.debugLineNum = 79167623;BA.debugLine="l_prodsVariables2.Visible = False";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=79167624;
 //BA.debugLineNum = 79167624;BA.debugLine="p_prodsVariables2.Visible = False";
__ref._p_prodsvariables2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=79167626;
 //BA.debugLineNum = 79167626;BA.debugLine="p_prodsVariables.Height = 410dip";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__c.DipToCurrent((int) (410)));
RDebugUtils.currentLine=79167627;
 //BA.debugLineNum = 79167627;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getbase().setHeight((int) (__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-20));
RDebugUtils.currentLine=79167631;
 //BA.debugLineNum = 79167631;BA.debugLine="clv_prodsVariabes.Base_Resize(clv_prodsVariabes.";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-20);
 }else {
RDebugUtils.currentLine=79167633;
 //BA.debugLineNum = 79167633;BA.debugLine="l_prodsVariables2.Visible = True";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=79167634;
 //BA.debugLineNum = 79167634;BA.debugLine="p_prodsVariables2.Visible = True";
__ref._p_prodsvariables2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=79167635;
 //BA.debugLineNum = 79167635;BA.debugLine="p_prodsVariables.Height = 210dip";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__c.DipToCurrent((int) (210)));
RDebugUtils.currentLine=79167636;
 //BA.debugLineNum = 79167636;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getbase().setHeight((int) (__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-20));
 };
RDebugUtils.currentLine=79167638;
 //BA.debugLineNum = 79167638;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=79167639;
 //BA.debugLineNum = 79167639;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=79167640;
 //BA.debugLineNum = 79167640;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79167641;
 //BA.debugLineNum = 79167641;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_promos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=79036416;
 //BA.debugLineNum = 79036416;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=79036417;
 //BA.debugLineNum = 79036417;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=79036419;
 //BA.debugLineNum = 79036419;BA.debugLine="Root.LoadLayout(\"promociones\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("promociones",ba);
RDebugUtils.currentLine=79036421;
 //BA.debugLineNum = 79036421;BA.debugLine="p_promociones.Height= Root.Height";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=79036422;
 //BA.debugLineNum = 79036422;BA.debugLine="p_promociones.Width= Root.Width";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=79036423;
 //BA.debugLineNum = 79036423;BA.debugLine="promosMap.Initialize";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=79036424;
 //BA.debugLineNum = 79036424;BA.debugLine="p_promociones.Top=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (0));
RDebugUtils.currentLine=79036425;
 //BA.debugLineNum = 79036425;BA.debugLine="p_promociones.Left=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0));
RDebugUtils.currentLine=79036426;
 //BA.debugLineNum = 79036426;BA.debugLine="b_terminar1.Left = Root.Width - (b_terminar1.Widt";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-(__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()+10)));
RDebugUtils.currentLine=79036427;
 //BA.debugLineNum = 79036427;BA.debugLine="b_continuar.Left = Root.Width - b_terminar1.Width";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()-(__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()+20)));
RDebugUtils.currentLine=79036428;
 //BA.debugLineNum = 79036428;BA.debugLine="Subs.centraPanel(p_promociones,Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=79036429;
 //BA.debugLineNum = 79036429;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
RDebugUtils.currentLine=78905344;
 //BA.debugLineNum = 78905344;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=78905345;
 //BA.debugLineNum = 78905345;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=78905346;
 //BA.debugLineNum = 78905346;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=78905347;
 //BA.debugLineNum = 78905347;BA.debugLine="Private l_promoDesc As Label";
_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905348;
 //BA.debugLineNum = 78905348;BA.debugLine="Private lv_prodsFijos As ListView";
_lv_prodsfijos = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=78905349;
 //BA.debugLineNum = 78905349;BA.debugLine="Private clv_prodsVariabes, clv_prodsVariabes2 As";
_clv_prodsvariabes = new b4a.example3.customlistview();
_clv_prodsvariabes2 = new b4a.example3.customlistview();
RDebugUtils.currentLine=78905350;
 //BA.debugLineNum = 78905350;BA.debugLine="Private l_prodsFijos As Label";
_l_prodsfijos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905351;
 //BA.debugLineNum = 78905351;BA.debugLine="Private l_prodsVariables, l_prodsVariables2 As La";
_l_prodsvariables = new anywheresoftware.b4a.objects.LabelWrapper();
_l_prodsvariables2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905352;
 //BA.debugLineNum = 78905352;BA.debugLine="Private i_prod As ImageView";
_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=78905353;
 //BA.debugLineNum = 78905353;BA.debugLine="Private l_prodX As Label";
_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905354;
 //BA.debugLineNum = 78905354;BA.debugLine="Private p_prods As Panel";
_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=78905355;
 //BA.debugLineNum = 78905355;BA.debugLine="Private b_prodMenos, b_prodMenos2 As Button";
_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
_b_prodmenos2 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905356;
 //BA.debugLineNum = 78905356;BA.debugLine="Private et_pCant As EditText";
_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=78905357;
 //BA.debugLineNum = 78905357;BA.debugLine="Private b_prodMas, b_prodMas2 As Button";
_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
_b_prodmas2 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905358;
 //BA.debugLineNum = 78905358;BA.debugLine="Private l_pCant As Label";
_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905359;
 //BA.debugLineNum = 78905359;BA.debugLine="Dim totalProds As Int = 0";
_totalprods = (int) (0);
RDebugUtils.currentLine=78905360;
 //BA.debugLineNum = 78905360;BA.debugLine="Dim prodsVar1 As Int = 0";
_prodsvar1 = (int) (0);
RDebugUtils.currentLine=78905361;
 //BA.debugLineNum = 78905361;BA.debugLine="Dim prodsVar2 As Int = 0";
_prodsvar2 = (int) (0);
RDebugUtils.currentLine=78905362;
 //BA.debugLineNum = 78905362;BA.debugLine="Dim prodsVarReq As Int = 0";
_prodsvarreq = (int) (0);
RDebugUtils.currentLine=78905363;
 //BA.debugLineNum = 78905363;BA.debugLine="Dim prodsVarReq_ As Int = 0";
_prodsvarreq_ = (int) (0);
RDebugUtils.currentLine=78905364;
 //BA.debugLineNum = 78905364;BA.debugLine="Dim prodsVarReq2 As Int = 0";
_prodsvarreq2 = (int) (0);
RDebugUtils.currentLine=78905365;
 //BA.debugLineNum = 78905365;BA.debugLine="Dim prodsVarReq2_ As Int = 0";
_prodsvarreq2_ = (int) (0);
RDebugUtils.currentLine=78905366;
 //BA.debugLineNum = 78905366;BA.debugLine="Dim totalCompra As Float = 0";
_totalcompra = (float) (0);
RDebugUtils.currentLine=78905367;
 //BA.debugLineNum = 78905367;BA.debugLine="Dim prodsFijosTot As Float = 0";
_prodsfijostot = (float) (0);
RDebugUtils.currentLine=78905368;
 //BA.debugLineNum = 78905368;BA.debugLine="Dim tpf As Int = 0";
_tpf = (int) (0);
RDebugUtils.currentLine=78905369;
 //BA.debugLineNum = 78905369;BA.debugLine="Dim tpf2 As Int = 0";
_tpf2 = (int) (0);
RDebugUtils.currentLine=78905370;
 //BA.debugLineNum = 78905370;BA.debugLine="Dim maxCantPromos As Int = 1";
_maxcantpromos = (int) (1);
RDebugUtils.currentLine=78905371;
 //BA.debugLineNum = 78905371;BA.debugLine="Private l_totProds As Label";
_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905372;
 //BA.debugLineNum = 78905372;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905373;
 //BA.debugLineNum = 78905373;BA.debugLine="Private b_terminar1 As Button";
_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905374;
 //BA.debugLineNum = 78905374;BA.debugLine="Private p_promociones As Panel";
_p_promociones = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=78905375;
 //BA.debugLineNum = 78905375;BA.debugLine="Dim prodsIds, prodsCants, prodsPrecios, prodsIds2";
_prodsids = new anywheresoftware.b4a.objects.collections.List();
_prodscants = new anywheresoftware.b4a.objects.collections.List();
_prodsprecios = new anywheresoftware.b4a.objects.collections.List();
_prodsids2 = new anywheresoftware.b4a.objects.collections.List();
_prodscants2 = new anywheresoftware.b4a.objects.collections.List();
_prodsprecios2 = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=78905376;
 //BA.debugLineNum = 78905376;BA.debugLine="Dim estaPromo, esteCliente As String";
_estapromo = "";
_estecliente = "";
RDebugUtils.currentLine=78905377;
 //BA.debugLineNum = 78905377;BA.debugLine="Private b_promoMas As Button";
_b_promomas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905378;
 //BA.debugLineNum = 78905378;BA.debugLine="Private b_promoMenos As Button";
_b_promomenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905379;
 //BA.debugLineNum = 78905379;BA.debugLine="Private et_promoCant As EditText";
_et_promocant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=78905380;
 //BA.debugLineNum = 78905380;BA.debugLine="Private l_promosCant As Label";
_l_promoscant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=78905381;
 //BA.debugLineNum = 78905381;BA.debugLine="Private b_continuar As Button";
_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=78905382;
 //BA.debugLineNum = 78905382;BA.debugLine="Private p_prodsVariables, p_prodsVariables2 As Pa";
_p_prodsvariables = new anywheresoftware.b4a.objects.PanelWrapper();
_p_prodsvariables2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=78905383;
 //BA.debugLineNum = 78905383;BA.debugLine="Dim laPromo = \"\", elCliente = \"\" As String";
_lapromo = "";
_elcliente = "";
RDebugUtils.currentLine=78905384;
 //BA.debugLineNum = 78905384;BA.debugLine="Dim prodsPedidoActual As String";
_prodspedidoactual = "";
RDebugUtils.currentLine=78905385;
 //BA.debugLineNum = 78905385;BA.debugLine="Dim montoPedidoActual As String";
_montopedidoactual = "";
RDebugUtils.currentLine=78905386;
 //BA.debugLineNum = 78905386;BA.debugLine="Dim promosMap As Map";
_promosmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=78905387;
 //BA.debugLineNum = 78905387;BA.debugLine="Dim su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=78905388;
 //BA.debugLineNum = 78905388;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(gunav2.keymon.com.mx.c_promos __ref,String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_width,_height,_img,_prodid}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
RDebugUtils.currentLine=79298560;
 //BA.debugLineNum = 79298560;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
RDebugUtils.currentLine=79298561;
 //BA.debugLineNum = 79298561;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=79298562;
 //BA.debugLineNum = 79298562;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=79298563;
 //BA.debugLineNum = 79298563;BA.debugLine="p.LoadLayout(\"prodItem1\")";
_p.LoadLayout("prodItem1",ba);
RDebugUtils.currentLine=79298564;
 //BA.debugLineNum = 79298564;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=79298565;
 //BA.debugLineNum = 79298565;BA.debugLine="l_prodX.Text = Text";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text));
RDebugUtils.currentLine=79298566;
 //BA.debugLineNum = 79298566;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=79298569;
 //BA.debugLineNum = 79298569;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight((int) (__ref._su /*anywheresoftware.b4a.objects.StringUtils*/ .MeasureMultilineTextHeight((android.widget.TextView)(__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .getObject()),BA.ObjectToCharSequence(__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+20));
RDebugUtils.currentLine=79298570;
 //BA.debugLineNum = 79298570;BA.debugLine="If p_prods.Height < Height Then p_prods.Height =";
if (__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()<_height) { 
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(_height);};
RDebugUtils.currentLine=79298571;
 //BA.debugLineNum = 79298571;BA.debugLine="l_prodX.Height = p_prods.Height";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=79298572;
 //BA.debugLineNum = 79298572;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=79298573;
 //BA.debugLineNum = 79298573;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=79298574;
 //BA.debugLineNum = 79298574;BA.debugLine="et_pCant.BringToFront";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .BringToFront();
RDebugUtils.currentLine=79298576;
 //BA.debugLineNum = 79298576;BA.debugLine="p.Height = p_prods.Height";
_p.setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=79298577;
 //BA.debugLineNum = 79298577;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=79298578;
 //BA.debugLineNum = 79298578;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(gunav2.keymon.com.mx.c_promos __ref,String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "createlistitem2", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_text,_preciou,_inv,_width,_height,_img,_prodid}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
RDebugUtils.currentLine=79364096;
 //BA.debugLineNum = 79364096;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
RDebugUtils.currentLine=79364097;
 //BA.debugLineNum = 79364097;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=79364098;
 //BA.debugLineNum = 79364098;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=79364099;
 //BA.debugLineNum = 79364099;BA.debugLine="p.LoadLayout(\"prodItem2\")";
_p.LoadLayout("prodItem2",ba);
RDebugUtils.currentLine=79364100;
 //BA.debugLineNum = 79364100;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=79364101;
 //BA.debugLineNum = 79364101;BA.debugLine="l_prodX.Text = Text";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text));
RDebugUtils.currentLine=79364102;
 //BA.debugLineNum = 79364102;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=79364105;
 //BA.debugLineNum = 79364105;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight((int) (__ref._su /*anywheresoftware.b4a.objects.StringUtils*/ .MeasureMultilineTextHeight((android.widget.TextView)(__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .getObject()),BA.ObjectToCharSequence(__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+20));
RDebugUtils.currentLine=79364106;
 //BA.debugLineNum = 79364106;BA.debugLine="If p_prods.Height < Height Then p_prods.Height =";
if (__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()<_height) { 
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(_height);};
RDebugUtils.currentLine=79364107;
 //BA.debugLineNum = 79364107;BA.debugLine="l_prodX.Height = p_prods.Height";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=79364109;
 //BA.debugLineNum = 79364109;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=79364110;
 //BA.debugLineNum = 79364110;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=79364111;
 //BA.debugLineNum = 79364111;BA.debugLine="et_pCant.BringToFront";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .BringToFront();
RDebugUtils.currentLine=79364113;
 //BA.debugLineNum = 79364113;BA.debugLine="p.Height = p_prods.Height";
_p.setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=79364114;
 //BA.debugLineNum = 79364114;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=79364115;
 //BA.debugLineNum = 79364115;BA.debugLine="End Sub";
return null;
}
public String  _et_pcant_focuschanged(gunav2.keymon.com.mx.c_promos __ref,boolean _hasfocus) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "et_pcant_focuschanged", false))
	 {return ((String) Debug.delegate(ba, "et_pcant_focuschanged", new Object[] {_hasfocus}));}
RDebugUtils.currentLine=79822848;
 //BA.debugLineNum = 79822848;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
RDebugUtils.currentLine=79822849;
 //BA.debugLineNum = 79822849;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("079822849","focus changed",__c.Colors.Magenta);
RDebugUtils.currentLine=79822850;
 //BA.debugLineNum = 79822850;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79822851;
 //BA.debugLineNum = 79822851;BA.debugLine="End Sub";
return "";
}
public String  _et_pcant_textchanged(gunav2.keymon.com.mx.c_promos __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "et_pcant_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_pcant_textchanged", new Object[] {_old,_new}));}
RDebugUtils.currentLine=79691776;
 //BA.debugLineNum = 79691776;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
RDebugUtils.currentLine=79691778;
 //BA.debugLineNum = 79691778;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=79691779;
 //BA.debugLineNum = 79691779;BA.debugLine="End Sub";
return "";
}
}