package SHARK2.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, "SHARK2.keymon.com.mx.c_promos");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", SHARK2.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 SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(SHARK2.keymon.com.mx.c_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=20905984;
 //BA.debugLineNum = 20905984;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=20905985;
 //BA.debugLineNum = 20905985;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=20905986;
 //BA.debugLineNum = 20905986;BA.debugLine="End Sub";
return null;
}
public String  _agregafijosalista(SHARK2.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=21168128;
 //BA.debugLineNum = 21168128;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo";
RDebugUtils.currentLine=21168129;
 //BA.debugLineNum = 21168129;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=21168130;
 //BA.debugLineNum = 21168130;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=21168131;
 //BA.debugLineNum = 21168131;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=21168132;
 //BA.debugLineNum = 21168132;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=21168133;
 //BA.debugLineNum = 21168133;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\"";
if (_pf.getSize()<1) { 
_pf.Add((Object)("Sin productos fijos."));};
RDebugUtils.currentLine=21168137;
 //BA.debugLineNum = 21168137;BA.debugLine="prodsIds.clear";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21168138;
 //BA.debugLineNum = 21168138;BA.debugLine="prodsCants.clear";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21168139;
 //BA.debugLineNum = 21168139;BA.debugLine="prodsPrecios.clear";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21168140;
 //BA.debugLineNum = 21168140;BA.debugLine="prodsIds.Add(estaPromo)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(__ref._estapromo /*String*/ ));
RDebugUtils.currentLine=21168141;
 //BA.debugLineNum = 21168141;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=21168142;
 //BA.debugLineNum = 21168142;BA.debugLine="prodsPrecios.Add(0)";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(0));
RDebugUtils.currentLine=21168143;
 //BA.debugLineNum = 21168143;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=21168145;
 //BA.debugLineNum = 21168145;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=21168146;
 //BA.debugLineNum = 21168146;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=21168148;
 //BA.debugLineNum = 21168148;BA.debugLine="Private tpi As String = 0";
_tpi = BA.NumberToString(0);
 };
RDebugUtils.currentLine=21168150;
 //BA.debugLineNum = 21168150;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=21168151;
 //BA.debugLineNum = 21168151;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=21168153;
 //BA.debugLineNum = 21168153;BA.debugLine="Private tpr As String = 0";
_tpr = BA.NumberToString(0);
 };
RDebugUtils.currentLine=21168155;
 //BA.debugLineNum = 21168155;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)";
__ref._prodsfijostot /*float*/  = (float) (__ref._prodsfijostot /*float*/ +((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
RDebugUtils.currentLine=21168156;
 //BA.debugLineNum = 21168156;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) { 
__c.LogImpl("521168156","|"+_tpi+"|"+_p,0);};
RDebugUtils.currentLine=21168157;
 //BA.debugLineNum = 21168157;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=21168158;
 //BA.debugLineNum = 21168158;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=21168159;
 //BA.debugLineNum = 21168159;BA.debugLine="cont = cont+1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=21168162;
 //BA.debugLineNum = 21168162;BA.debugLine="prodsIds.Add(p)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_p));
RDebugUtils.currentLine=21168163;
 //BA.debugLineNum = 21168163;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=21168164;
 //BA.debugLineNum = 21168164;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_tpr));
 }
};
RDebugUtils.currentLine=21168166;
 //BA.debugLineNum = 21168166;BA.debugLine="End Sub";
return "";
}
public String  _b_continuar_click(SHARK2.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 = "";
SHARK2.keymon.com.mx.c_productos _prodspage = null;
RDebugUtils.currentLine=22020096;
 //BA.debugLineNum = 22020096;BA.debugLine="Private Sub b_continuar_Click";
RDebugUtils.currentLine=22020097;
 //BA.debugLineNum = 22020097;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=22020098;
 //BA.debugLineNum = 22020098;BA.debugLine="Log(\"============================================";
__c.LogImpl("522020098","====================================================================",0);
RDebugUtils.currentLine=22020099;
 //BA.debugLineNum = 22020099;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=22020100;
 //BA.debugLineNum = 22020100;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=22020101;
 //BA.debugLineNum = 22020101;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
_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,_subs._traecliente /*String*/ (ba)),BA.NumberToString(0),_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 }
};
RDebugUtils.currentLine=22020103;
 //BA.debugLineNum = 22020103;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
{
final int step7 = 1;
final int limit7 = (int) (__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit7 ;_t = _t + step7 ) {
RDebugUtils.currentLine=22020104;
 //BA.debugLineNum = 22020104;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=22020105;
 //BA.debugLineNum = 22020105;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
_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,_subs._traecliente /*String*/ (ba)),BA.NumberToString(0),_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 }
};
RDebugUtils.currentLine=22020119;
 //BA.debugLineNum = 22020119;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=22020122;
 //BA.debugLineNum = 22020122;BA.debugLine="Private prodspage As C_Productos";
_prodspage = new SHARK2.keymon.com.mx.c_productos();
RDebugUtils.currentLine=22020123;
 //BA.debugLineNum = 22020123;BA.debugLine="If prodspage.IsInitialized Then";
if (_prodspage.IsInitialized /*boolean*/ ()) { 
RDebugUtils.currentLine=22020124;
 //BA.debugLineNum = 22020124;BA.debugLine="prodspage.lv_catalogos.Visible = True";
_prodspage._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=22020125;
 //BA.debugLineNum = 22020125;BA.debugLine="prodspage.lv_promos.Visible = False";
_prodspage._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=22020126;
 //BA.debugLineNum = 22020126;BA.debugLine="prodspage.clv_productos.AsView.Visible = False";
_prodspage._clv_productos /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
 };
RDebugUtils.currentLine=22020128;
 //BA.debugLineNum = 22020128;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=22020129;
 //BA.debugLineNum = 22020129;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=22020130;
 //BA.debugLineNum = 22020130;BA.debugLine="End Sub";
return "";
}
public String  _cuentaprods(SHARK2.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=21692416;
 //BA.debugLineNum = 21692416;BA.debugLine="Sub cuentaProds";
RDebugUtils.currentLine=21692419;
 //BA.debugLineNum = 21692419;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=21692421;
 //BA.debugLineNum = 21692421;BA.debugLine="prodsIds2.Clear";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21692422;
 //BA.debugLineNum = 21692422;BA.debugLine="prodsCants2.Clear";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21692423;
 //BA.debugLineNum = 21692423;BA.debugLine="prodsPrecios2.Clear";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=21692424;
 //BA.debugLineNum = 21692424;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=21692425;
 //BA.debugLineNum = 21692425;BA.debugLine="prodsVar1 = 0";
__ref._prodsvar1 /*int*/  = (int) (0);
RDebugUtils.currentLine=21692426;
 //BA.debugLineNum = 21692426;BA.debugLine="prodsVar2 = 0";
__ref._prodsvar2 /*int*/  = (int) (0);
RDebugUtils.currentLine=21692427;
 //BA.debugLineNum = 21692427;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=21692429;
 //BA.debugLineNum = 21692429;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro";
_tcpf = (float) (0);
RDebugUtils.currentLine=21692430;
 //BA.debugLineNum = 21692430;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=21692431;
 //BA.debugLineNum = 21692431;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) { 
__c.LogImpl("521692431",(""+__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=21692432;
 //BA.debugLineNum = 21692432;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=21692435;
 //BA.debugLineNum = 21692435;BA.debugLine="totalCompra = tcpf";
__ref._totalcompra /*float*/  = _tcpf;
RDebugUtils.currentLine=21692436;
 //BA.debugLineNum = 21692436;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij";
__ref._totalprods /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=21692438;
 //BA.debugLineNum = 21692438;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=21692439;
 //BA.debugLineNum = 21692439;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=21692440;
 //BA.debugLineNum = 21692440;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=21692441;
 //BA.debugLineNum = 21692441;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=21692442;
 //BA.debugLineNum = 21692442;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
if ((_cant1.getText()).equals("")) { 
_cant1.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=21692443;
 //BA.debugLineNum = 21692443;BA.debugLine="totalProds = totalProds + cant1.Text";
__ref._totalprods /*int*/  = (int) (__ref._totalprods /*int*/ +(double)(Double.parseDouble(_cant1.getText())));
RDebugUtils.currentLine=21692444;
 //BA.debugLineNum = 21692444;BA.debugLine="prodsVar1 = prodsVar1 + cant1.Text";
__ref._prodsvar1 /*int*/  = (int) (__ref._prodsvar1 /*int*/ +(double)(Double.parseDouble(_cant1.getText())));
RDebugUtils.currentLine=21692445;
 //BA.debugLineNum = 21692445;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=21692446;
 //BA.debugLineNum = 21692446;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=21692447;
 //BA.debugLineNum = 21692447;BA.debugLine="If cant1.Text > 0 Then";
if ((double)(Double.parseDouble(_cant1.getText()))>0) { 
RDebugUtils.currentLine=21692449;
 //BA.debugLineNum = 21692449;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=21692450;
 //BA.debugLineNum = 21692450;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) { 
__c.LogImpl("521692450",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=21692451;
 //BA.debugLineNum = 21692451;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (2)));
RDebugUtils.currentLine=21692452;
 //BA.debugLineNum = 21692452;BA.debugLine="prodsCants2.Add(cant1.Text)";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_cant1.getText()));
RDebugUtils.currentLine=21692453;
 //BA.debugLineNum = 21692453;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (0)));
 };
RDebugUtils.currentLine=21692455;
 //BA.debugLineNum = 21692455;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=21692456;
 //BA.debugLineNum = 21692456;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=21692459;
 //BA.debugLineNum = 21692459;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=21692460;
 //BA.debugLineNum = 21692460;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=21692461;
 //BA.debugLineNum = 21692461;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=21692462;
 //BA.debugLineNum = 21692462;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=21692463;
 //BA.debugLineNum = 21692463;BA.debugLine="totalProds = totalProds + cant2.Text";
__ref._totalprods /*int*/  = (int) (__ref._totalprods /*int*/ +(double)(Double.parseDouble(_cant2.getText())));
RDebugUtils.currentLine=21692464;
 //BA.debugLineNum = 21692464;BA.debugLine="prodsVar2 = prodsVar2 + cant2.Text";
__ref._prodsvar2 /*int*/  = (int) (__ref._prodsvar2 /*int*/ +(double)(Double.parseDouble(_cant2.getText())));
RDebugUtils.currentLine=21692465;
 //BA.debugLineNum = 21692465;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=21692466;
 //BA.debugLineNum = 21692466;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=21692467;
 //BA.debugLineNum = 21692467;BA.debugLine="If cant2.Text > 0 Then";
if ((double)(Double.parseDouble(_cant2.getText()))>0) { 
RDebugUtils.currentLine=21692469;
 //BA.debugLineNum = 21692469;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=21692470;
 //BA.debugLineNum = 21692470;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
if (_thislog) { 
__c.LogImpl("521692470",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=21692471;
 //BA.debugLineNum = 21692471;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (2)));
RDebugUtils.currentLine=21692472;
 //BA.debugLineNum = 21692472;BA.debugLine="prodsCants2.Add(cant2.Text)";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_cant2.getText()));
RDebugUtils.currentLine=21692473;
 //BA.debugLineNum = 21692473;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (0)));
 };
RDebugUtils.currentLine=21692475;
 //BA.debugLineNum = 21692475;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=21692476;
 //BA.debugLineNum = 21692476;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=21692479;
 //BA.debugLineNum = 21692479;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) { 
__c.LogImpl("521692479",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=21692480;
 //BA.debugLineNum = 21692480;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=21692481;
 //BA.debugLineNum = 21692481;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=21692482;
 //BA.debugLineNum = 21692482;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=21692484;
 //BA.debugLineNum = 21692484;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=21692485;
 //BA.debugLineNum = 21692485;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=21692488;
 //BA.debugLineNum = 21692488;BA.debugLine="b_terminar1.Visible = True";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=21692489;
 //BA.debugLineNum = 21692489;BA.debugLine="b_continuar.Visible = True";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=21692491;
 //BA.debugLineNum = 21692491;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) { 
__c.LogImpl("521692491",(""+__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=21692492;
 //BA.debugLineNum = 21692492;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) { 
__c.LogImpl("521692492",(""+__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=21692494;
 //BA.debugLineNum = 21692494;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas_click(SHARK2.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=21430272;
 //BA.debugLineNum = 21430272;BA.debugLine="Sub b_prodMas_Click";
RDebugUtils.currentLine=21430273;
 //BA.debugLineNum = 21430273;BA.debugLine="If prodsVar1 < prodsVarReq Then";
if (__ref._prodsvar1 /*int*/ <__ref._prodsvarreq /*int*/ ) { 
RDebugUtils.currentLine=21430274;
 //BA.debugLineNum = 21430274;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=21430275;
 //BA.debugLineNum = 21430275;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=21430276;
 //BA.debugLineNum = 21430276;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=21430278;
 //BA.debugLineNum = 21430278;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=21430281;
 //BA.debugLineNum = 21430281;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=21430283;
 //BA.debugLineNum = 21430283;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=21430284;
 //BA.debugLineNum = 21430284;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=21430285;
 //BA.debugLineNum = 21430285;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=21430289;
 //BA.debugLineNum = 21430289;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=21430291;
 //BA.debugLineNum = 21430291;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=21430292;
 //BA.debugLineNum = 21430292;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=21430294;
 //BA.debugLineNum = 21430294;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
 };
RDebugUtils.currentLine=21430300;
 //BA.debugLineNum = 21430300;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas2_click(SHARK2.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=21561344;
 //BA.debugLineNum = 21561344;BA.debugLine="Sub b_prodMas2_Click";
RDebugUtils.currentLine=21561346;
 //BA.debugLineNum = 21561346;BA.debugLine="If prodsVar2 < prodsVarReq2 Then";
if (__ref._prodsvar2 /*int*/ <__ref._prodsvarreq2 /*int*/ ) { 
RDebugUtils.currentLine=21561347;
 //BA.debugLineNum = 21561347;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=21561348;
 //BA.debugLineNum = 21561348;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=21561349;
 //BA.debugLineNum = 21561349;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=21561351;
 //BA.debugLineNum = 21561351;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=21561354;
 //BA.debugLineNum = 21561354;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=21561356;
 //BA.debugLineNum = 21561356;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=21561357;
 //BA.debugLineNum = 21561357;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=21561358;
 //BA.debugLineNum = 21561358;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=21561362;
 //BA.debugLineNum = 21561362;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=21561364;
 //BA.debugLineNum = 21561364;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=21561365;
 //BA.debugLineNum = 21561365;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=21561367;
 //BA.debugLineNum = 21561367;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
 };
RDebugUtils.currentLine=21561373;
 //BA.debugLineNum = 21561373;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos_click(SHARK2.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=21364736;
 //BA.debugLineNum = 21364736;BA.debugLine="Sub b_prodMenos_Click";
RDebugUtils.currentLine=21364737;
 //BA.debugLineNum = 21364737;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=21364738;
 //BA.debugLineNum = 21364738;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=21364739;
 //BA.debugLineNum = 21364739;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=21364741;
 //BA.debugLineNum = 21364741;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=21364743;
 //BA.debugLineNum = 21364743;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=21364744;
 //BA.debugLineNum = 21364744;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=21364747;
 //BA.debugLineNum = 21364747;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=21364749;
 //BA.debugLineNum = 21364749;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=21364750;
 //BA.debugLineNum = 21364750;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=21364752;
 //BA.debugLineNum = 21364752;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=21364753;
 //BA.debugLineNum = 21364753;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=21364755;
 //BA.debugLineNum = 21364755;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21364758;
 //BA.debugLineNum = 21364758;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos2_click(SHARK2.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=21495808;
 //BA.debugLineNum = 21495808;BA.debugLine="Sub b_prodMenos2_Click";
RDebugUtils.currentLine=21495809;
 //BA.debugLineNum = 21495809;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=21495810;
 //BA.debugLineNum = 21495810;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=21495811;
 //BA.debugLineNum = 21495811;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=21495813;
 //BA.debugLineNum = 21495813;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=21495815;
 //BA.debugLineNum = 21495815;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=21495816;
 //BA.debugLineNum = 21495816;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=21495819;
 //BA.debugLineNum = 21495819;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=21495821;
 //BA.debugLineNum = 21495821;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=21495822;
 //BA.debugLineNum = 21495822;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=21495824;
 //BA.debugLineNum = 21495824;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=21495825;
 //BA.debugLineNum = 21495825;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=21495827;
 //BA.debugLineNum = 21495827;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21495830;
 //BA.debugLineNum = 21495830;BA.debugLine="End Sub";
return "";
}
public String  _b_promomas_click(SHARK2.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));}
RDebugUtils.currentLine=21889024;
 //BA.debugLineNum = 21889024;BA.debugLine="Private Sub b_promoMas_Click";
RDebugUtils.currentLine=21889025;
 //BA.debugLineNum = 21889025;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=21889026;
 //BA.debugLineNum = 21889026;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=21889027;
 //BA.debugLineNum = 21889027;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=21889028;
 //BA.debugLineNum = 21889028;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=21889029;
 //BA.debugLineNum = 21889029;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=21889030;
 //BA.debugLineNum = 21889030;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=21889031;
 //BA.debugLineNum = 21889031;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=21889032;
 //BA.debugLineNum = 21889032;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=21889033;
 //BA.debugLineNum = 21889033;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("521889033",("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=21889035;
 //BA.debugLineNum = 21889035;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=21889036;
 //BA.debugLineNum = 21889036;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21889037;
 //BA.debugLineNum = 21889037;BA.debugLine="End Sub";
return "";
}
public String  _b_promomenos_click(SHARK2.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=21823488;
 //BA.debugLineNum = 21823488;BA.debugLine="Private Sub b_promoMenos_Click";
RDebugUtils.currentLine=21823489;
 //BA.debugLineNum = 21823489;BA.debugLine="If et_promoCant.Text > 1 Then";
if ((double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>1) { 
RDebugUtils.currentLine=21823490;
 //BA.debugLineNum = 21823490;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=21823492;
 //BA.debugLineNum = 21823492;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=21823493;
 //BA.debugLineNum = 21823493;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=21823494;
 //BA.debugLineNum = 21823494;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=21823495;
 //BA.debugLineNum = 21823495;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=21823496;
 //BA.debugLineNum = 21823496;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=21823497;
 //BA.debugLineNum = 21823497;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=21823498;
 //BA.debugLineNum = 21823498;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("521823498",("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=21823499;
 //BA.debugLineNum = 21823499;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21823500;
 //BA.debugLineNum = 21823500;BA.debugLine="End Sub";
return "";
}
public String  _b_terminar1_click(SHARK2.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=21954560;
 //BA.debugLineNum = 21954560;BA.debugLine="Private Sub b_terminar1_Click";
RDebugUtils.currentLine=21954561;
 //BA.debugLineNum = 21954561;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21954562;
 //BA.debugLineNum = 21954562;BA.debugLine="Log(\"============================================";
__c.LogImpl("521954562","====================================================================",0);
RDebugUtils.currentLine=21954563;
 //BA.debugLineNum = 21954563;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=21954564;
 //BA.debugLineNum = 21954564;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=21954565;
 //BA.debugLineNum = 21954565;BA.debugLine="If prodsCants.Get(t) > 0 Then Subs.guardaProduct";
if ((double)(BA.ObjectToNumber(__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Get(_t)))>0) { 
_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,_subs._traecliente /*String*/ (ba)),BA.NumberToString(0),_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));};
 }
};
RDebugUtils.currentLine=21954567;
 //BA.debugLineNum = 21954567;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
{
final int step7 = 1;
final int limit7 = (int) (__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_t = (int) (0) ;
for (;_t <= limit7 ;_t = _t + step7 ) {
RDebugUtils.currentLine=21954568;
 //BA.debugLineNum = 21954568;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=21954569;
 //BA.debugLineNum = 21954569;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
_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,_subs._traecliente /*String*/ (ba)),BA.NumberToString(0),_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
 }
};
RDebugUtils.currentLine=21954583;
 //BA.debugLineNum = 21954583;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=21954584;
 //BA.debugLineNum = 21954584;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=21954585;
 //BA.debugLineNum = 21954585;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=21954586;
 //BA.debugLineNum = 21954586;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*SHARK2.keymon.com.mx.c_productos*/ ._b_terminar1_click /*String*/ (null);
RDebugUtils.currentLine=21954587;
 //BA.debugLineNum = 21954587;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(SHARK2.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=21037056;
 //BA.debugLineNum = 21037056;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=21037058;
 //BA.debugLineNum = 21037058;BA.debugLine="prodsIds.Initialize";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037059;
 //BA.debugLineNum = 21037059;BA.debugLine="prodsCants.Initialize";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037060;
 //BA.debugLineNum = 21037060;BA.debugLine="prodsPrecios.Initialize";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037061;
 //BA.debugLineNum = 21037061;BA.debugLine="prodsIds2.Initialize";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037062;
 //BA.debugLineNum = 21037062;BA.debugLine="prodsCants2.Initialize";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037063;
 //BA.debugLineNum = 21037063;BA.debugLine="prodsPrecios2.Initialize";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=21037064;
 //BA.debugLineNum = 21037064;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=21037065;
 //BA.debugLineNum = 21037065;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
__ref._prodspedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("productos")));
RDebugUtils.currentLine=21037066;
 //BA.debugLineNum = 21037066;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
__ref._montopedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("monto")));
RDebugUtils.currentLine=21037068;
 //BA.debugLineNum = 21037068;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=21037069;
 //BA.debugLineNum = 21037069;BA.debugLine="End Sub";
return "";
}
public String  _muestrapromo(SHARK2.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.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=21102592;
 //BA.debugLineNum = 21102592;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin";
RDebugUtils.currentLine=21102593;
 //BA.debugLineNum = 21102593;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=21102595;
 //BA.debugLineNum = 21102595;BA.debugLine="estaPromo = promo";
__ref._estapromo /*String*/  = _promo;
RDebugUtils.currentLine=21102596;
 //BA.debugLineNum = 21102596;BA.debugLine="esteCliente = cliente";
__ref._estecliente /*String*/  = _cliente;
RDebugUtils.currentLine=21102597;
 //BA.debugLineNum = 21102597;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=21102598;
 //BA.debugLineNum = 21102598;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=21102599;
 //BA.debugLineNum = 21102599;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=21102601;
 //BA.debugLineNum = 21102601;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("521102601","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=21102602;
 //BA.debugLineNum = 21102602;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("521102602","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=21102603;
 //BA.debugLineNum = 21102603;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
__ref._maxcantpromos /*int*/  = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
RDebugUtils.currentLine=21102604;
 //BA.debugLineNum = 21102604;BA.debugLine="et_promoCant.Text = 1";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(1));
RDebugUtils.currentLine=21102605;
 //BA.debugLineNum = 21102605;BA.debugLine="l_promosCant.text = \"Max promos: \" & maxCantPromo";
__ref._l_promoscant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(__ref._maxcantpromos /*int*/ )));
RDebugUtils.currentLine=21102606;
 //BA.debugLineNum = 21102606;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=21102607;
 //BA.debugLineNum = 21102607;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=21102608;
 //BA.debugLineNum = 21102608;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("521102608",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=21102609;
 //BA.debugLineNum = 21102609;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) { 
__c.LogImpl("521102609",BA.ObjectToString(_prodspromo),0);};
RDebugUtils.currentLine=21102610;
 //BA.debugLineNum = 21102610;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=21102611;
 //BA.debugLineNum = 21102611;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=21102612;
 //BA.debugLineNum = 21102612;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=21102613;
 //BA.debugLineNum = 21102613;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=21102618;
 //BA.debugLineNum = 21102618;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=21102619;
 //BA.debugLineNum = 21102619;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=21102622;
 //BA.debugLineNum = 21102622;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=21102623;
 //BA.debugLineNum = 21102623;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=21102624;
 //BA.debugLineNum = 21102624;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("521102624",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=21102625;
 //BA.debugLineNum = 21102625;BA.debugLine="tpf = 0";
__ref._tpf /*int*/  = (int) (0);
RDebugUtils.currentLine=21102626;
 //BA.debugLineNum = 21102626;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
{
final anywheresoftware.b4a.BA.IterableList group26 = ((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas")))));
final int groupLen26 = group26.getSize()
;int index26 = 0;
;
for (; index26 < groupLen26;index26++){
_pfp = (int)(BA.ObjectToNumber(group26.Get(index26)));
RDebugUtils.currentLine=21102627;
 //BA.debugLineNum = 21102627;BA.debugLine="tpf = tpf + pfp";
__ref._tpf /*int*/  = (int) (__ref._tpf /*int*/ +_pfp);
 }
};
RDebugUtils.currentLine=21102629;
 //BA.debugLineNum = 21102629;BA.debugLine="tpf2 = tpf";
__ref._tpf2 /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=21102631;
 //BA.debugLineNum = 21102631;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=21102632;
 //BA.debugLineNum = 21102632;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")";
__ref._prodsvarreq /*int*/  = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariablesRequeridos"))));
RDebugUtils.currentLine=21102633;
 //BA.debugLineNum = 21102633;BA.debugLine="prodsVarReq_ = prodsVarReq";
__ref._prodsvarreq_ /*int*/  = __ref._prodsvarreq /*int*/ ;
RDebugUtils.currentLine=21102634;
 //BA.debugLineNum = 21102634;BA.debugLine="prodsVarReq2 = mp.Get(\"prodsVariables2Requeridos\"";
__ref._prodsvarreq2 /*int*/  = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariables2Requeridos"))));
RDebugUtils.currentLine=21102635;
 //BA.debugLineNum = 21102635;BA.debugLine="prodsVarReq2_ = prodsVarReq2";
__ref._prodsvarreq2_ /*int*/  = __ref._prodsvarreq2 /*int*/ ;
RDebugUtils.currentLine=21102637;
 //BA.debugLineNum = 21102637;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=21102638;
 //BA.debugLineNum = 21102638;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=21102639;
 //BA.debugLineNum = 21102639;BA.debugLine="If prodsVarReq = 0 Then";
if (__ref._prodsvarreq /*int*/ ==0) { 
RDebugUtils.currentLine=21102640;
 //BA.debugLineNum = 21102640;BA.debugLine="p_prodsVariables.Visible = False";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=21102642;
 //BA.debugLineNum = 21102642;BA.debugLine="p_prodsVariables.Visible = True";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=21102645;
 //BA.debugLineNum = 21102645;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=21102646;
 //BA.debugLineNum = 21102646;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label";
_label1 = __ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=21102647;
 //BA.debugLineNum = 21102647;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=21102648;
 //BA.debugLineNum = 21102648;BA.debugLine="label1.TextColor = Colors.black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=21102649;
 //BA.debugLineNum = 21102649;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (30)));
RDebugUtils.currentLine=21102650;
 //BA.debugLineNum = 21102650;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=21102652;
 //BA.debugLineNum = 21102652;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=21102653;
 //BA.debugLineNum = 21102653;BA.debugLine="agregaFijosALista(mp, True)";
__ref._agregafijosalista /*String*/ (null,_mp,__c.True);
RDebugUtils.currentLine=21102654;
 //BA.debugLineNum = 21102654;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) { 
__c.LogImpl("521102654","Total prods fijos = "+BA.NumberToString(__ref._prodsfijostot /*float*/ ),0);};
RDebugUtils.currentLine=21102656;
 //BA.debugLineNum = 21102656;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=21102657;
 //BA.debugLineNum = 21102657;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=21102663;
 //BA.debugLineNum = 21102663;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
if (_thislog) { 
__c.LogImpl("521102663",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
RDebugUtils.currentLine=21102664;
 //BA.debugLineNum = 21102664;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
if (_thislog) { 
__c.LogImpl("521102664",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
RDebugUtils.currentLine=21102665;
 //BA.debugLineNum = 21102665;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) { 
__c.LogImpl("521102665","invDisp="+BA.ObjectToString(_invdisppromo),0);};
RDebugUtils.currentLine=21102666;
 //BA.debugLineNum = 21102666;BA.debugLine="clv_prodsVariabes.Clear";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=21102667;
 //BA.debugLineNum = 21102667;BA.debugLine="clv_prodsVariabes2.Clear";
__ref._clv_prodsvariabes2 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=21102668;
 //BA.debugLineNum = 21102668;BA.debugLine="For Each p As String In pv";
{
final anywheresoftware.b4a.BA.IterableList group58 = _pv;
final int groupLen58 = group58.getSize()
;int index58 = 0;
;
for (; index58 < groupLen58;index58++){
_p = BA.ObjectToString(group58.Get(index58));
RDebugUtils.currentLine=21102669;
 //BA.debugLineNum = 21102669;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
if (_invdisppromo.ContainsKey((Object)(_p))) { 
RDebugUtils.currentLine=21102670;
 //BA.debugLineNum = 21102670;BA.debugLine="Private indicePV = listaPV.IndexOf(p)";
_indicepv = BA.NumberToString(_listapv.IndexOf((Object)(_p)));
RDebugUtils.currentLine=21102672;
 //BA.debugLineNum = 21102672;BA.debugLine="Private estePrecio = listaPreciosPV.Get(indiceP";
_esteprecio = BA.ObjectToString(_listapreciospv.Get((int)(Double.parseDouble(_indicepv))));
RDebugUtils.currentLine=21102677;
 //BA.debugLineNum = 21102677;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=21102678;
 //BA.debugLineNum = 21102678;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) { 
__c.LogImpl("521102678",BA.ObjectToString(_thisprod),0);};
RDebugUtils.currentLine=21102679;
 //BA.debugLineNum = 21102679;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=21102682;
 //BA.debugLineNum = 21102682;BA.debugLine="For Each p As String In pv2";
{
final anywheresoftware.b4a.BA.IterableList group67 = _pv2;
final int groupLen67 = group67.getSize()
;int index67 = 0;
;
for (; index67 < groupLen67;index67++){
_p = BA.ObjectToString(group67.Get(index67));
RDebugUtils.currentLine=21102683;
 //BA.debugLineNum = 21102683;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
if (_invdisppromo.ContainsKey((Object)(_p))) { 
RDebugUtils.currentLine=21102688;
 //BA.debugLineNum = 21102688;BA.debugLine="Private indicePV2 = listaPV2.IndexOf(p)";
_indicepv2 = BA.NumberToString(_listapv2.IndexOf((Object)(_p)));
RDebugUtils.currentLine=21102691;
 //BA.debugLineNum = 21102691;BA.debugLine="Private estePrecio = listaPreciosPV2.Get(indice";
_esteprecio = BA.ObjectToString(_listapreciospv2.Get((int)(Double.parseDouble(_indicepv2))));
RDebugUtils.currentLine=21102696;
 //BA.debugLineNum = 21102696;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=21102697;
 //BA.debugLineNum = 21102697;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) { 
__c.LogImpl("521102697",BA.ObjectToString(_thisprod),0);};
RDebugUtils.currentLine=21102698;
 //BA.debugLineNum = 21102698;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=21102701;
 //BA.debugLineNum = 21102701;BA.debugLine="If pv2.Size = 0 Then";
if (_pv2.getSize()==0) { 
RDebugUtils.currentLine=21102703;
 //BA.debugLineNum = 21102703;BA.debugLine="l_prodsVariables2.Visible = False";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=21102704;
 //BA.debugLineNum = 21102704;BA.debugLine="p_prodsVariables2.Visible = False";
__ref._p_prodsvariables2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=21102706;
 //BA.debugLineNum = 21102706;BA.debugLine="p_prodsVariables.Height = 410dip";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__c.DipToCurrent((int) (410)));
RDebugUtils.currentLine=21102707;
 //BA.debugLineNum = 21102707;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=21102711;
 //BA.debugLineNum = 21102711;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=21102713;
 //BA.debugLineNum = 21102713;BA.debugLine="l_prodsVariables2.Visible = True";
__ref._l_prodsvariables2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=21102714;
 //BA.debugLineNum = 21102714;BA.debugLine="p_prodsVariables2.Visible = True";
__ref._p_prodsvariables2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=21102715;
 //BA.debugLineNum = 21102715;BA.debugLine="p_prodsVariables.Height = 210dip";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__c.DipToCurrent((int) (210)));
RDebugUtils.currentLine=21102716;
 //BA.debugLineNum = 21102716;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=21102718;
 //BA.debugLineNum = 21102718;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=21102719;
 //BA.debugLineNum = 21102719;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=21102720;
 //BA.debugLineNum = 21102720;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21102721;
 //BA.debugLineNum = 21102721;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(SHARK2.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=20971520;
 //BA.debugLineNum = 20971520;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=20971521;
 //BA.debugLineNum = 20971521;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=20971523;
 //BA.debugLineNum = 20971523;BA.debugLine="Root.LoadLayout(\"promociones\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("promociones",ba);
RDebugUtils.currentLine=20971525;
 //BA.debugLineNum = 20971525;BA.debugLine="p_promociones.Height= Root.Height";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=20971526;
 //BA.debugLineNum = 20971526;BA.debugLine="p_promociones.Width= Root.Width";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=20971528;
 //BA.debugLineNum = 20971528;BA.debugLine="promosMap.Initialize";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=20971529;
 //BA.debugLineNum = 20971529;BA.debugLine="p_promociones.Top=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (0));
RDebugUtils.currentLine=20971530;
 //BA.debugLineNum = 20971530;BA.debugLine="p_promociones.Left=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0));
RDebugUtils.currentLine=20971531;
 //BA.debugLineNum = 20971531;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=20971532;
 //BA.debugLineNum = 20971532;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=20971533;
 //BA.debugLineNum = 20971533;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(SHARK2.keymon.com.mx.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
RDebugUtils.currentLine=20840448;
 //BA.debugLineNum = 20840448;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=20840449;
 //BA.debugLineNum = 20840449;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=20840450;
 //BA.debugLineNum = 20840450;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=20840451;
 //BA.debugLineNum = 20840451;BA.debugLine="Private l_promoDesc As Label";
_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840452;
 //BA.debugLineNum = 20840452;BA.debugLine="Private lv_prodsFijos As ListView";
_lv_prodsfijos = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=20840453;
 //BA.debugLineNum = 20840453;BA.debugLine="Private clv_prodsVariabes, clv_prodsVariabes2 As";
_clv_prodsvariabes = new b4a.example3.customlistview();
_clv_prodsvariabes2 = new b4a.example3.customlistview();
RDebugUtils.currentLine=20840454;
 //BA.debugLineNum = 20840454;BA.debugLine="Private l_prodsFijos As Label";
_l_prodsfijos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840455;
 //BA.debugLineNum = 20840455;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=20840456;
 //BA.debugLineNum = 20840456;BA.debugLine="Private i_prod As ImageView";
_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=20840457;
 //BA.debugLineNum = 20840457;BA.debugLine="Private l_prodX As Label";
_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840458;
 //BA.debugLineNum = 20840458;BA.debugLine="Private p_prods As Panel";
_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=20840459;
 //BA.debugLineNum = 20840459;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=20840460;
 //BA.debugLineNum = 20840460;BA.debugLine="Private et_pCant As EditText";
_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=20840461;
 //BA.debugLineNum = 20840461;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=20840462;
 //BA.debugLineNum = 20840462;BA.debugLine="Private l_pCant As Label";
_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840463;
 //BA.debugLineNum = 20840463;BA.debugLine="Dim totalProds As Int = 0";
_totalprods = (int) (0);
RDebugUtils.currentLine=20840464;
 //BA.debugLineNum = 20840464;BA.debugLine="Dim prodsVar1 As Int = 0";
_prodsvar1 = (int) (0);
RDebugUtils.currentLine=20840465;
 //BA.debugLineNum = 20840465;BA.debugLine="Dim prodsVar2 As Int = 0";
_prodsvar2 = (int) (0);
RDebugUtils.currentLine=20840466;
 //BA.debugLineNum = 20840466;BA.debugLine="Dim prodsVarReq As Int = 0";
_prodsvarreq = (int) (0);
RDebugUtils.currentLine=20840467;
 //BA.debugLineNum = 20840467;BA.debugLine="Dim prodsVarReq_ As Int = 0";
_prodsvarreq_ = (int) (0);
RDebugUtils.currentLine=20840468;
 //BA.debugLineNum = 20840468;BA.debugLine="Dim prodsVarReq2 As Int = 0";
_prodsvarreq2 = (int) (0);
RDebugUtils.currentLine=20840469;
 //BA.debugLineNum = 20840469;BA.debugLine="Dim prodsVarReq2_ As Int = 0";
_prodsvarreq2_ = (int) (0);
RDebugUtils.currentLine=20840470;
 //BA.debugLineNum = 20840470;BA.debugLine="Dim totalCompra As Float = 0";
_totalcompra = (float) (0);
RDebugUtils.currentLine=20840471;
 //BA.debugLineNum = 20840471;BA.debugLine="Dim prodsFijosTot As Float = 0";
_prodsfijostot = (float) (0);
RDebugUtils.currentLine=20840472;
 //BA.debugLineNum = 20840472;BA.debugLine="Dim tpf As Int = 0";
_tpf = (int) (0);
RDebugUtils.currentLine=20840473;
 //BA.debugLineNum = 20840473;BA.debugLine="Dim tpf2 As Int = 0";
_tpf2 = (int) (0);
RDebugUtils.currentLine=20840474;
 //BA.debugLineNum = 20840474;BA.debugLine="Dim maxCantPromos As Int = 1";
_maxcantpromos = (int) (1);
RDebugUtils.currentLine=20840475;
 //BA.debugLineNum = 20840475;BA.debugLine="Private l_totProds As Label";
_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840476;
 //BA.debugLineNum = 20840476;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840477;
 //BA.debugLineNum = 20840477;BA.debugLine="Private b_terminar1 As Button";
_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=20840478;
 //BA.debugLineNum = 20840478;BA.debugLine="Private p_promociones As Panel";
_p_promociones = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=20840479;
 //BA.debugLineNum = 20840479;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=20840480;
 //BA.debugLineNum = 20840480;BA.debugLine="Dim estaPromo, esteCliente As String";
_estapromo = "";
_estecliente = "";
RDebugUtils.currentLine=20840481;
 //BA.debugLineNum = 20840481;BA.debugLine="Private b_promoMas As Button";
_b_promomas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=20840482;
 //BA.debugLineNum = 20840482;BA.debugLine="Private b_promoMenos As Button";
_b_promomenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=20840483;
 //BA.debugLineNum = 20840483;BA.debugLine="Private et_promoCant As EditText";
_et_promocant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=20840484;
 //BA.debugLineNum = 20840484;BA.debugLine="Private l_promosCant As Label";
_l_promoscant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=20840485;
 //BA.debugLineNum = 20840485;BA.debugLine="Private b_continuar As Button";
_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=20840486;
 //BA.debugLineNum = 20840486;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=20840487;
 //BA.debugLineNum = 20840487;BA.debugLine="Dim laPromo = \"\", elCliente = \"\" As String";
_lapromo = "";
_elcliente = "";
RDebugUtils.currentLine=20840488;
 //BA.debugLineNum = 20840488;BA.debugLine="Dim prodsPedidoActual As String";
_prodspedidoactual = "";
RDebugUtils.currentLine=20840489;
 //BA.debugLineNum = 20840489;BA.debugLine="Dim montoPedidoActual As String";
_montopedidoactual = "";
RDebugUtils.currentLine=20840490;
 //BA.debugLineNum = 20840490;BA.debugLine="Dim promosMap As Map";
_promosmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=20840491;
 //BA.debugLineNum = 20840491;BA.debugLine="Dim su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=20840492;
 //BA.debugLineNum = 20840492;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(SHARK2.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=21233664;
 //BA.debugLineNum = 21233664;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
RDebugUtils.currentLine=21233665;
 //BA.debugLineNum = 21233665;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=21233666;
 //BA.debugLineNum = 21233666;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=21233667;
 //BA.debugLineNum = 21233667;BA.debugLine="p.LoadLayout(\"prodItem1\")";
_p.LoadLayout("prodItem1",ba);
RDebugUtils.currentLine=21233668;
 //BA.debugLineNum = 21233668;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=21233669;
 //BA.debugLineNum = 21233669;BA.debugLine="l_prodX.Text = Text";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text));
RDebugUtils.currentLine=21233670;
 //BA.debugLineNum = 21233670;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=21233673;
 //BA.debugLineNum = 21233673;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=21233674;
 //BA.debugLineNum = 21233674;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=21233675;
 //BA.debugLineNum = 21233675;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=21233676;
 //BA.debugLineNum = 21233676;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=21233677;
 //BA.debugLineNum = 21233677;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=21233678;
 //BA.debugLineNum = 21233678;BA.debugLine="et_pCant.BringToFront";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .BringToFront();
RDebugUtils.currentLine=21233680;
 //BA.debugLineNum = 21233680;BA.debugLine="p.Height = p_prods.Height";
_p.setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=21233681;
 //BA.debugLineNum = 21233681;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=21233682;
 //BA.debugLineNum = 21233682;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(SHARK2.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=21299200;
 //BA.debugLineNum = 21299200;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
RDebugUtils.currentLine=21299201;
 //BA.debugLineNum = 21299201;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=21299202;
 //BA.debugLineNum = 21299202;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=21299203;
 //BA.debugLineNum = 21299203;BA.debugLine="p.LoadLayout(\"prodItem2\")";
_p.LoadLayout("prodItem2",ba);
RDebugUtils.currentLine=21299204;
 //BA.debugLineNum = 21299204;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=21299205;
 //BA.debugLineNum = 21299205;BA.debugLine="l_prodX.Text = Text";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text));
RDebugUtils.currentLine=21299206;
 //BA.debugLineNum = 21299206;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=21299209;
 //BA.debugLineNum = 21299209;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=21299210;
 //BA.debugLineNum = 21299210;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=21299211;
 //BA.debugLineNum = 21299211;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=21299213;
 //BA.debugLineNum = 21299213;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=21299214;
 //BA.debugLineNum = 21299214;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=21299215;
 //BA.debugLineNum = 21299215;BA.debugLine="et_pCant.BringToFront";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .BringToFront();
RDebugUtils.currentLine=21299217;
 //BA.debugLineNum = 21299217;BA.debugLine="p.Height = p_prods.Height";
_p.setHeight(__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=21299218;
 //BA.debugLineNum = 21299218;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=21299219;
 //BA.debugLineNum = 21299219;BA.debugLine="End Sub";
return null;
}
public String  _et_pcant_focuschanged(SHARK2.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=21757952;
 //BA.debugLineNum = 21757952;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
RDebugUtils.currentLine=21757953;
 //BA.debugLineNum = 21757953;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("521757953","focus changed",__c.Colors.Magenta);
RDebugUtils.currentLine=21757954;
 //BA.debugLineNum = 21757954;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21757955;
 //BA.debugLineNum = 21757955;BA.debugLine="End Sub";
return "";
}
public String  _et_pcant_textchanged(SHARK2.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=21626880;
 //BA.debugLineNum = 21626880;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
RDebugUtils.currentLine=21626882;
 //BA.debugLineNum = 21626882;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=21626883;
 //BA.debugLineNum = 21626883;BA.debugLine="End Sub";
return "";
}
public String  _et_promocant_textchanged(SHARK2.keymon.com.mx.c_promos __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "et_promocant_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_promocant_textchanged", new Object[] {_old,_new}));}
RDebugUtils.currentLine=22085632;
 //BA.debugLineNum = 22085632;BA.debugLine="Private Sub et_promoCant_TextChanged (Old As Strin";
RDebugUtils.currentLine=22085634;
 //BA.debugLineNum = 22085634;BA.debugLine="If et_promoCant.Text = \"\" Then";
if ((__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { 
RDebugUtils.currentLine=22085635;
 //BA.debugLineNum = 22085635;BA.debugLine="et_promoCant.Text = 1";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(1));
 };
RDebugUtils.currentLine=22085639;
 //BA.debugLineNum = 22085639;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=22085641;
 //BA.debugLineNum = 22085641;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=22085642;
 //BA.debugLineNum = 22085642;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=22085643;
 //BA.debugLineNum = 22085643;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=22085644;
 //BA.debugLineNum = 22085644;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=22085645;
 //BA.debugLineNum = 22085645;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=22085646;
 //BA.debugLineNum = 22085646;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=22085647;
 //BA.debugLineNum = 22085647;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("522085647",("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=22085649;
 //BA.debugLineNum = 22085649;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=22085650;
 //BA.debugLineNum = 22085650;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=22085651;
 //BA.debugLineNum = 22085651;BA.debugLine="End Sub";
return "";
}
}