package keymon.lat.medicomed;


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, "keymon.lat.medicomed.c_promos");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", keymon.lat.medicomed.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 anywheresoftware.b4a.objects.LabelWrapper _l_prodsfijos = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodsvariables = 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.EditTextWrapper _et_pcant = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
public int _totalprods = 0;
public int _prodsvarreq = 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 String _lapromo = "";
public String _elcliente = "";
public String _prodspedidoactual = "";
public String _montopedidoactual = "";
public anywheresoftware.b4a.objects.collections.Map _promosmap = null;
public b4a.example.dateutils _dateutils = null;
public keymon.lat.medicomed.main _main = null;
public keymon.lat.medicomed.starter _starter = null;
public keymon.lat.medicomed.subs _subs = null;
public keymon.lat.medicomed.appupdater _appupdater = null;
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
public keymon.lat.medicomed.tracker _tracker = null;
public keymon.lat.medicomed.newinst2 _newinst2 = null;
public keymon.lat.medicomed.b4xpages _b4xpages = null;
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
public keymon.lat.medicomed.httputils2service _httputils2service = null;
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(keymon.lat.medicomed.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=25624576;
 //BA.debugLineNum = 25624576;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=25624577;
 //BA.debugLineNum = 25624577;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=25624578;
 //BA.debugLineNum = 25624578;BA.debugLine="End Sub";
return null;
}
public String  _agregafijosalista(keymon.lat.medicomed.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=25886720;
 //BA.debugLineNum = 25886720;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo";
RDebugUtils.currentLine=25886721;
 //BA.debugLineNum = 25886721;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=25886722;
 //BA.debugLineNum = 25886722;BA.debugLine="Private cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=25886723;
 //BA.debugLineNum = 25886723;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=25886724;
 //BA.debugLineNum = 25886724;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=25886725;
 //BA.debugLineNum = 25886725;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\"";
if (_pf.getSize()<1) { 
_pf.Add((Object)("Sin productos fijos."));};
RDebugUtils.currentLine=25886729;
 //BA.debugLineNum = 25886729;BA.debugLine="prodsIds.clear";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=25886730;
 //BA.debugLineNum = 25886730;BA.debugLine="prodsCants.clear";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=25886731;
 //BA.debugLineNum = 25886731;BA.debugLine="prodsPrecios.clear";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=25886732;
 //BA.debugLineNum = 25886732;BA.debugLine="prodsIds.Add(estaPromo)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(__ref._estapromo /*String*/ ));
RDebugUtils.currentLine=25886733;
 //BA.debugLineNum = 25886733;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=25886734;
 //BA.debugLineNum = 25886734;BA.debugLine="prodsPrecios.Add(0)";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(0));
RDebugUtils.currentLine=25886735;
 //BA.debugLineNum = 25886735;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=25886737;
 //BA.debugLineNum = 25886737;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=25886738;
 //BA.debugLineNum = 25886738;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=25886740;
 //BA.debugLineNum = 25886740;BA.debugLine="Private tpi As String = 0";
_tpi = BA.NumberToString(0);
 };
RDebugUtils.currentLine=25886742;
 //BA.debugLineNum = 25886742;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=25886743;
 //BA.debugLineNum = 25886743;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=25886745;
 //BA.debugLineNum = 25886745;BA.debugLine="Private tpr As String = 0";
_tpr = BA.NumberToString(0);
 };
RDebugUtils.currentLine=25886747;
 //BA.debugLineNum = 25886747;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)";
__ref._prodsfijostot /*float*/  = (float) (__ref._prodsfijostot /*float*/ +((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
RDebugUtils.currentLine=25886748;
 //BA.debugLineNum = 25886748;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) { 
__c.LogImpl("325886748","|"+_tpi+"|"+_p,0);};
RDebugUtils.currentLine=25886749;
 //BA.debugLineNum = 25886749;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=25886750;
 //BA.debugLineNum = 25886750;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=25886751;
 //BA.debugLineNum = 25886751;BA.debugLine="cont = cont+1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=25886754;
 //BA.debugLineNum = 25886754;BA.debugLine="prodsIds.Add(p)";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_p));
RDebugUtils.currentLine=25886755;
 //BA.debugLineNum = 25886755;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=25886756;
 //BA.debugLineNum = 25886756;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_tpr));
 }
};
RDebugUtils.currentLine=25886758;
 //BA.debugLineNum = 25886758;BA.debugLine="End Sub";
return "";
}
public String  _b_continuar_click(keymon.lat.medicomed.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 = "";
keymon.lat.medicomed.c_productos _prodspage = null;
RDebugUtils.currentLine=26542080;
 //BA.debugLineNum = 26542080;BA.debugLine="Private Sub b_continuar_Click";
RDebugUtils.currentLine=26542081;
 //BA.debugLineNum = 26542081;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26542082;
 //BA.debugLineNum = 26542082;BA.debugLine="Log(\"============================================";
__c.LogImpl("326542082","====================================================================",0);
RDebugUtils.currentLine=26542083;
 //BA.debugLineNum = 26542083;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=26542084;
 //BA.debugLineNum = 26542084;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=26542085;
 //BA.debugLineNum = 26542085;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),BA.NumberToString(0),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._tipo_venta /*String*/ );
 }
};
RDebugUtils.currentLine=26542087;
 //BA.debugLineNum = 26542087;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=26542088;
 //BA.debugLineNum = 26542088;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=26542089;
 //BA.debugLineNum = 26542089;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),BA.NumberToString(0),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._tipo_venta /*String*/ );
 }
};
RDebugUtils.currentLine=26542103;
 //BA.debugLineNum = 26542103;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=26542106;
 //BA.debugLineNum = 26542106;BA.debugLine="Private prodspage As C_Productos";
_prodspage = new keymon.lat.medicomed.c_productos();
RDebugUtils.currentLine=26542107;
 //BA.debugLineNum = 26542107;BA.debugLine="If prodspage.IsInitialized Then";
if (_prodspage.IsInitialized /*boolean*/ ()) { 
RDebugUtils.currentLine=26542108;
 //BA.debugLineNum = 26542108;BA.debugLine="prodspage.lv_catalogos.Visible = True";
_prodspage._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=26542109;
 //BA.debugLineNum = 26542109;BA.debugLine="prodspage.lv_promos.Visible = False";
_prodspage._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=26542110;
 //BA.debugLineNum = 26542110;BA.debugLine="prodspage.clv_productos.AsView.Visible = False";
_prodspage._clv_productos /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False);
 };
RDebugUtils.currentLine=26542112;
 //BA.debugLineNum = 26542112;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=26542113;
 //BA.debugLineNum = 26542113;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=26542114;
 //BA.debugLineNum = 26542114;BA.debugLine="End Sub";
return "";
}
public String  _cuentaprods(keymon.lat.medicomed.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;
RDebugUtils.currentLine=26214400;
 //BA.debugLineNum = 26214400;BA.debugLine="Sub cuentaProds";
RDebugUtils.currentLine=26214403;
 //BA.debugLineNum = 26214403;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=26214404;
 //BA.debugLineNum = 26214404;BA.debugLine="If thisLog Then LogColor($\"ProdsFijos=${tpf}, tot";
if (_thislog) { 
__c.LogImpl("326214404",("ProdsFijos="+__c.SmartStringFormatter("",(Object)(__ref._tpf /*int*/ ))+", totalProds="+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", totalCompra="+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),__c.Colors.Red);};
RDebugUtils.currentLine=26214405;
 //BA.debugLineNum = 26214405;BA.debugLine="prodsIds2.Clear";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=26214406;
 //BA.debugLineNum = 26214406;BA.debugLine="prodsCants2.Clear";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=26214407;
 //BA.debugLineNum = 26214407;BA.debugLine="prodsPrecios2.Clear";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Clear();
RDebugUtils.currentLine=26214408;
 //BA.debugLineNum = 26214408;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=26214409;
 //BA.debugLineNum = 26214409;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=26214411;
 //BA.debugLineNum = 26214411;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro";
_tcpf = (float) (0);
RDebugUtils.currentLine=26214412;
 //BA.debugLineNum = 26214412;BA.debugLine="For pf = 0 To prodsIds.Size - 1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1);
_pf = (int) (0) ;
for (;_pf <= limit9 ;_pf = _pf + step9 ) {
RDebugUtils.currentLine=26214413;
 //BA.debugLineNum = 26214413;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) { 
__c.LogImpl("326214413",(""+__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=26214414;
 //BA.debugLineNum = 26214414;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=26214417;
 //BA.debugLineNum = 26214417;BA.debugLine="totalCompra = tcpf";
__ref._totalcompra /*float*/  = _tcpf;
RDebugUtils.currentLine=26214418;
 //BA.debugLineNum = 26214418;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij";
__ref._totalprods /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=26214419;
 //BA.debugLineNum = 26214419;BA.debugLine="For i = 0 To clv_prodsVariabes.GetSize - 1";
{
final int step15 = 1;
final int limit15 = (int) (__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
RDebugUtils.currentLine=26214420;
 //BA.debugLineNum = 26214420;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=26214421;
 //BA.debugLineNum = 26214421;BA.debugLine="Private p As B4XView = p0.GetView(0)";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = _p0.GetView((int) (0));
RDebugUtils.currentLine=26214422;
 //BA.debugLineNum = 26214422;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=26214424;
 //BA.debugLineNum = 26214424;BA.debugLine="totalProds = totalProds + cant1.Text";
__ref._totalprods /*int*/  = (int) (__ref._totalprods /*int*/ +(double)(Double.parseDouble(_cant1.getText())));
RDebugUtils.currentLine=26214425;
 //BA.debugLineNum = 26214425;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=26214426;
 //BA.debugLineNum = 26214426;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=26214427;
 //BA.debugLineNum = 26214427;BA.debugLine="If cant1.Text > 0 Then";
if ((double)(Double.parseDouble(_cant1.getText()))>0) { 
RDebugUtils.currentLine=26214428;
 //BA.debugLineNum = 26214428;BA.debugLine="Log(esteTag.Get(2) & \"|\" & cant1.Text)";
__c.LogImpl("326214428",BA.ObjectToString(_estetag.Get((int) (2)))+"|"+_cant1.getText(),0);
RDebugUtils.currentLine=26214429;
 //BA.debugLineNum = 26214429;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=26214430;
 //BA.debugLineNum = 26214430;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) { 
__c.LogImpl("326214430",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=26214431;
 //BA.debugLineNum = 26214431;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (2)));
RDebugUtils.currentLine=26214432;
 //BA.debugLineNum = 26214432;BA.debugLine="prodsCants2.Add(cant1.Text)";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_cant1.getText()));
RDebugUtils.currentLine=26214433;
 //BA.debugLineNum = 26214433;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Add(_estetag.Get((int) (0)));
 };
RDebugUtils.currentLine=26214435;
 //BA.debugLineNum = 26214435;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=26214436;
 //BA.debugLineNum = 26214436;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=26214438;
 //BA.debugLineNum = 26214438;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) { 
__c.LogImpl("326214438",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+""),0);};
RDebugUtils.currentLine=26214439;
 //BA.debugLineNum = 26214439;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=26214440;
 //BA.debugLineNum = 26214440;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=26214441;
 //BA.debugLineNum = 26214441;BA.debugLine="If totalProds < prodsVarReq + tpf Or totalProds >";
if (__ref._totalprods /*int*/ <__ref._prodsvarreq /*int*/ +__ref._tpf /*int*/  || __ref._totalprods /*int*/ >__ref._prodsvarreq /*int*/ +__ref._tpf /*int*/ ) { 
RDebugUtils.currentLine=26214443;
 //BA.debugLineNum = 26214443;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=26214444;
 //BA.debugLineNum = 26214444;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=26214447;
 //BA.debugLineNum = 26214447;BA.debugLine="b_terminar1.Visible = True";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=26214448;
 //BA.debugLineNum = 26214448;BA.debugLine="b_continuar.Visible = True";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=26214450;
 //BA.debugLineNum = 26214450;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) { 
__c.LogImpl("326214450",(""+__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=26214451;
 //BA.debugLineNum = 26214451;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) { 
__c.LogImpl("326214451",(""+__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=26214453;
 //BA.debugLineNum = 26214453;BA.debugLine="LogColor($\"Total Prods: ${totalProds}, Total: $$1";
__c.LogImpl("326214453",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*float*/ ))+""),__c.Colors.Blue);
RDebugUtils.currentLine=26214454;
 //BA.debugLineNum = 26214454;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas_click(keymon.lat.medicomed.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=26083328;
 //BA.debugLineNum = 26083328;BA.debugLine="Sub b_prodMas_Click";
RDebugUtils.currentLine=26083329;
 //BA.debugLineNum = 26083329;BA.debugLine="If totalProds < prodsVarReq + tpf Then";
if (__ref._totalprods /*int*/ <__ref._prodsvarreq /*int*/ +__ref._tpf /*int*/ ) { 
RDebugUtils.currentLine=26083330;
 //BA.debugLineNum = 26083330;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=26083331;
 //BA.debugLineNum = 26083331;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=26083332;
 //BA.debugLineNum = 26083332;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=26083334;
 //BA.debugLineNum = 26083334;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=26083337;
 //BA.debugLineNum = 26083337;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=26083339;
 //BA.debugLineNum = 26083339;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=26083340;
 //BA.debugLineNum = 26083340;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=26083341;
 //BA.debugLineNum = 26083341;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
 };
RDebugUtils.currentLine=26083344;
 //BA.debugLineNum = 26083344;BA.debugLine="Log(Regex.Split(\"\\|\", laCant.tag)(0))";
__c.LogImpl("326083344",__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)],0);
RDebugUtils.currentLine=26083345;
 //BA.debugLineNum = 26083345;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=26083347;
 //BA.debugLineNum = 26083347;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=26083348;
 //BA.debugLineNum = 26083348;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=26083349;
 //BA.debugLineNum = 26083349;BA.debugLine="Log(tmpMap)";
__c.LogImpl("326083349",BA.ObjectToString(_tmpmap),0);
RDebugUtils.currentLine=26083350;
 //BA.debugLineNum = 26083350;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=26083351;
 //BA.debugLineNum = 26083351;BA.debugLine="LogColor(promosMap, Colors.Magenta)";
__c.LogImpl("326083351",BA.ObjectToString(__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Magenta);
 };
RDebugUtils.currentLine=26083356;
 //BA.debugLineNum = 26083356;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos_click(keymon.lat.medicomed.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=26017792;
 //BA.debugLineNum = 26017792;BA.debugLine="Sub b_prodMenos_Click";
RDebugUtils.currentLine=26017793;
 //BA.debugLineNum = 26017793;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=26017794;
 //BA.debugLineNum = 26017794;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=26017795;
 //BA.debugLineNum = 26017795;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=26017797;
 //BA.debugLineNum = 26017797;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=26017799;
 //BA.debugLineNum = 26017799;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=26017800;
 //BA.debugLineNum = 26017800;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=26017802;
 //BA.debugLineNum = 26017802;BA.debugLine="Log(Regex.Split(\"\\|\", laCant.tag)(0))";
__c.LogImpl("326017802",__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)],0);
RDebugUtils.currentLine=26017803;
 //BA.debugLineNum = 26017803;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)];
RDebugUtils.currentLine=26017805;
 //BA.debugLineNum = 26017805;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)];
RDebugUtils.currentLine=26017806;
 //BA.debugLineNum = 26017806;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=26017807;
 //BA.debugLineNum = 26017807;BA.debugLine="Log(tmpMap)";
__c.LogImpl("326017807",BA.ObjectToString(_tmpmap),0);
RDebugUtils.currentLine=26017808;
 //BA.debugLineNum = 26017808;BA.debugLine="promosMap.Put(prodId, tmpMap)";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_prodid),(Object)(_tmpmap.getObject()));
RDebugUtils.currentLine=26017809;
 //BA.debugLineNum = 26017809;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=26017810;
 //BA.debugLineNum = 26017810;BA.debugLine="LogColor(promosMap, Colors.Magenta)";
__c.LogImpl("326017810",BA.ObjectToString(__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Magenta);
RDebugUtils.currentLine=26017811;
 //BA.debugLineNum = 26017811;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26017814;
 //BA.debugLineNum = 26017814;BA.debugLine="End Sub";
return "";
}
public String  _b_promomas_click(keymon.lat.medicomed.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=26411008;
 //BA.debugLineNum = 26411008;BA.debugLine="Private Sub b_promoMas_Click";
RDebugUtils.currentLine=26411009;
 //BA.debugLineNum = 26411009;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=26411010;
 //BA.debugLineNum = 26411010;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=26411011;
 //BA.debugLineNum = 26411011;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=26411012;
 //BA.debugLineNum = 26411012;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._prodsvarreq2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=26411013;
 //BA.debugLineNum = 26411013;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=26411014;
 //BA.debugLineNum = 26411014;BA.debugLine="prodsVarReq = prodsVarReq2 * et_promoCant.Text.A";
__ref._prodsvarreq /*int*/  = (int) (__ref._prodsvarreq2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=26411015;
 //BA.debugLineNum = 26411015;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("326411015",("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=26411017;
 //BA.debugLineNum = 26411017;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=26411018;
 //BA.debugLineNum = 26411018;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26411019;
 //BA.debugLineNum = 26411019;BA.debugLine="End Sub";
return "";
}
public String  _b_promomenos_click(keymon.lat.medicomed.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=26345472;
 //BA.debugLineNum = 26345472;BA.debugLine="Private Sub b_promoMenos_Click";
RDebugUtils.currentLine=26345473;
 //BA.debugLineNum = 26345473;BA.debugLine="If et_promoCant.Text > 1 Then";
if ((double)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>1) { 
RDebugUtils.currentLine=26345474;
 //BA.debugLineNum = 26345474;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=26345476;
 //BA.debugLineNum = 26345476;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=26345477;
 //BA.debugLineNum = 26345477;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._prodsvarreq2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())))))+"")));
RDebugUtils.currentLine=26345478;
 //BA.debugLineNum = 26345478;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=26345479;
 //BA.debugLineNum = 26345479;BA.debugLine="prodsVarReq = prodsVarReq2 * et_promoCant.Text.As";
__ref._prodsvarreq /*int*/  = (int) (__ref._prodsvarreq2 /*int*/ *((int)(Double.parseDouble(__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))));
RDebugUtils.currentLine=26345480;
 //BA.debugLineNum = 26345480;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("326345480",("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=26345481;
 //BA.debugLineNum = 26345481;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26345482;
 //BA.debugLineNum = 26345482;BA.debugLine="End Sub";
return "";
}
public String  _b_terminar1_click(keymon.lat.medicomed.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=26476544;
 //BA.debugLineNum = 26476544;BA.debugLine="Private Sub b_terminar1_Click";
RDebugUtils.currentLine=26476545;
 //BA.debugLineNum = 26476545;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26476546;
 //BA.debugLineNum = 26476546;BA.debugLine="Log(\"============================================";
__c.LogImpl("326476546","====================================================================",0);
RDebugUtils.currentLine=26476547;
 //BA.debugLineNum = 26476547;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=26476548;
 //BA.debugLineNum = 26476548;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=26476549;
 //BA.debugLineNum = 26476549;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),BA.NumberToString(0),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._tipo_venta /*String*/ );};
 }
};
RDebugUtils.currentLine=26476551;
 //BA.debugLineNum = 26476551;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=26476552;
 //BA.debugLineNum = 26476552;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=26476553;
 //BA.debugLineNum = 26476553;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),BA.NumberToString(0),_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._tipo_venta /*String*/ );
 }
};
RDebugUtils.currentLine=26476567;
 //BA.debugLineNum = 26476567;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=26476568;
 //BA.debugLineNum = 26476568;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/  = __c.True;
RDebugUtils.currentLine=26476569;
 //BA.debugLineNum = 26476569;BA.debugLine="B4XPages.ShowPage(\"productos\")";
_b4xpages._showpage /*String*/ (ba,"productos");
RDebugUtils.currentLine=26476570;
 //BA.debugLineNum = 26476570;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._productos /*keymon.lat.medicomed.c_productos*/ ._b_terminar1_click /*String*/ (null);
RDebugUtils.currentLine=26476571;
 //BA.debugLineNum = 26476571;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(keymon.lat.medicomed.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=25755648;
 //BA.debugLineNum = 25755648;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=25755650;
 //BA.debugLineNum = 25755650;BA.debugLine="p_promociones.Top=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (0));
RDebugUtils.currentLine=25755651;
 //BA.debugLineNum = 25755651;BA.debugLine="p_promociones.Left=0";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0));
RDebugUtils.currentLine=25755652;
 //BA.debugLineNum = 25755652;BA.debugLine="p_promociones.Height=Root.Height";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=25755653;
 //BA.debugLineNum = 25755653;BA.debugLine="p_promociones.Width=Root.Width";
__ref._p_promociones /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=25755654;
 //BA.debugLineNum = 25755654;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=25755655;
 //BA.debugLineNum = 25755655;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=25755656;
 //BA.debugLineNum = 25755656;BA.debugLine="prodsIds.Initialize";
__ref._prodsids /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755657;
 //BA.debugLineNum = 25755657;BA.debugLine="prodsCants.Initialize";
__ref._prodscants /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755658;
 //BA.debugLineNum = 25755658;BA.debugLine="prodsPrecios.Initialize";
__ref._prodsprecios /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755659;
 //BA.debugLineNum = 25755659;BA.debugLine="prodsIds2.Initialize";
__ref._prodsids2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755660;
 //BA.debugLineNum = 25755660;BA.debugLine="prodsCants2.Initialize";
__ref._prodscants2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755661;
 //BA.debugLineNum = 25755661;BA.debugLine="prodsPrecios2.Initialize";
__ref._prodsprecios2 /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=25755662;
 //BA.debugLineNum = 25755662;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=25755663;
 //BA.debugLineNum = 25755663;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
__ref._prodspedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("productos")));
RDebugUtils.currentLine=25755664;
 //BA.debugLineNum = 25755664;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
__ref._montopedidoactual /*String*/  = BA.ObjectToString(_m.Get((Object)("monto")));
RDebugUtils.currentLine=25755666;
 //BA.debugLineNum = 25755666;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=25755667;
 //BA.debugLineNum = 25755667;BA.debugLine="End Sub";
return "";
}
public String  _muestrapromo(keymon.lat.medicomed.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 _pv = null;
int _pfp = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
String _p = "";
anywheresoftware.b4a.objects.collections.Map _thisprod = null;
RDebugUtils.currentLine=25821184;
 //BA.debugLineNum = 25821184;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin";
RDebugUtils.currentLine=25821185;
 //BA.debugLineNum = 25821185;BA.debugLine="Private thisLog As Boolean = False";
_thislog = __c.False;
RDebugUtils.currentLine=25821187;
 //BA.debugLineNum = 25821187;BA.debugLine="estaPromo = promo";
__ref._estapromo /*String*/  = _promo;
RDebugUtils.currentLine=25821188;
 //BA.debugLineNum = 25821188;BA.debugLine="esteCliente = cliente";
__ref._estecliente /*String*/  = _cliente;
RDebugUtils.currentLine=25821189;
 //BA.debugLineNum = 25821189;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=25821190;
 //BA.debugLineNum = 25821190;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=25821191;
 //BA.debugLineNum = 25821191;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=25821193;
 //BA.debugLineNum = 25821193;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("325821193","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=25821194;
 //BA.debugLineNum = 25821194;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) { 
__c.LogImpl("325821194","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
RDebugUtils.currentLine=25821195;
 //BA.debugLineNum = 25821195;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
__ref._maxcantpromos /*int*/  = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
RDebugUtils.currentLine=25821196;
 //BA.debugLineNum = 25821196;BA.debugLine="et_promoCant.Text = 1";
__ref._et_promocant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(1));
RDebugUtils.currentLine=25821197;
 //BA.debugLineNum = 25821197;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=25821198;
 //BA.debugLineNum = 25821198;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=25821199;
 //BA.debugLineNum = 25821199;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=25821200;
 //BA.debugLineNum = 25821200;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("325821200",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=25821201;
 //BA.debugLineNum = 25821201;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) { 
__c.LogImpl("325821201",BA.ObjectToString(_prodspromo),0);};
RDebugUtils.currentLine=25821205;
 //BA.debugLineNum = 25821205;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=25821206;
 //BA.debugLineNum = 25821206;BA.debugLine="prodsFijosTot = 0";
__ref._prodsfijostot /*float*/  = (float) (0);
RDebugUtils.currentLine=25821209;
 //BA.debugLineNum = 25821209;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=25821210;
 //BA.debugLineNum = 25821210;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) { 
__c.LogImpl("325821210",BA.ObjectToString(_mp),0);};
RDebugUtils.currentLine=25821211;
 //BA.debugLineNum = 25821211;BA.debugLine="tpf = 0";
__ref._tpf /*int*/  = (int) (0);
RDebugUtils.currentLine=25821212;
 //BA.debugLineNum = 25821212;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
{
final anywheresoftware.b4a.BA.IterableList group21 = ((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas")))));
final int groupLen21 = group21.getSize()
;int index21 = 0;
;
for (; index21 < groupLen21;index21++){
_pfp = (int)(BA.ObjectToNumber(group21.Get(index21)));
RDebugUtils.currentLine=25821213;
 //BA.debugLineNum = 25821213;BA.debugLine="tpf = tpf + pfp";
__ref._tpf /*int*/  = (int) (__ref._tpf /*int*/ +_pfp);
 }
};
RDebugUtils.currentLine=25821215;
 //BA.debugLineNum = 25821215;BA.debugLine="tpf2 = tpf";
__ref._tpf2 /*int*/  = __ref._tpf /*int*/ ;
RDebugUtils.currentLine=25821217;
 //BA.debugLineNum = 25821217;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=25821218;
 //BA.debugLineNum = 25821218;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")";
__ref._prodsvarreq /*int*/  = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariablesRequeridos"))));
RDebugUtils.currentLine=25821219;
 //BA.debugLineNum = 25821219;BA.debugLine="prodsVarReq2 = prodsVarReq";
__ref._prodsvarreq2 /*int*/  = __ref._prodsvarreq /*int*/ ;
RDebugUtils.currentLine=25821220;
 //BA.debugLineNum = 25821220;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=25821221;
 //BA.debugLineNum = 25821221;BA.debugLine="If prodsVarReq = 0 Then";
if (__ref._prodsvarreq /*int*/ ==0) { 
RDebugUtils.currentLine=25821222;
 //BA.debugLineNum = 25821222;BA.debugLine="p_prodsVariables.Visible = False";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }else {
RDebugUtils.currentLine=25821224;
 //BA.debugLineNum = 25821224;BA.debugLine="p_prodsVariables.Visible = True";
__ref._p_prodsvariables /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=25821227;
 //BA.debugLineNum = 25821227;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25821228;
 //BA.debugLineNum = 25821228;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label";
_label1 = __ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=25821229;
 //BA.debugLineNum = 25821229;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=25821230;
 //BA.debugLineNum = 25821230;BA.debugLine="label1.TextColor = Colors.black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=25821231;
 //BA.debugLineNum = 25821231;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (30)));
RDebugUtils.currentLine=25821232;
 //BA.debugLineNum = 25821232;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=25821234;
 //BA.debugLineNum = 25821234;BA.debugLine="lv_prodsFijos.Clear";
__ref._lv_prodsfijos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=25821235;
 //BA.debugLineNum = 25821235;BA.debugLine="agregaFijosALista(mp, True)";
__ref._agregafijosalista /*String*/ (null,_mp,__c.True);
RDebugUtils.currentLine=25821236;
 //BA.debugLineNum = 25821236;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) { 
__c.LogImpl("325821236","Total prods fijos = "+BA.NumberToString(__ref._prodsfijostot /*float*/ ),0);};
RDebugUtils.currentLine=25821238;
 //BA.debugLineNum = 25821238;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=25821239;
 //BA.debugLineNum = 25821239;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=25821245;
 //BA.debugLineNum = 25821245;BA.debugLine="If thisLog Then Log(pv)";
if (_thislog) { 
__c.LogImpl("325821245",BA.ObjectToString(_pv),0);};
RDebugUtils.currentLine=25821246;
 //BA.debugLineNum = 25821246;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) { 
__c.LogImpl("325821246","invDisp="+BA.ObjectToString(_invdisppromo),0);};
RDebugUtils.currentLine=25821247;
 //BA.debugLineNum = 25821247;BA.debugLine="clv_prodsVariabes.Clear";
__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=25821248;
 //BA.debugLineNum = 25821248;BA.debugLine="For Each p As String In pv";
{
final anywheresoftware.b4a.BA.IterableList group48 = _pv;
final int groupLen48 = group48.getSize()
;int index48 = 0;
;
for (; index48 < groupLen48;index48++){
_p = BA.ObjectToString(group48.Get(index48));
RDebugUtils.currentLine=25821249;
 //BA.debugLineNum = 25821249;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
if (_invdisppromo.ContainsKey((Object)(_p))) { 
RDebugUtils.currentLine=25821254;
 //BA.debugLineNum = 25821254;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=25821255;
 //BA.debugLineNum = 25821255;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) { 
__c.LogImpl("325821255",BA.ObjectToString(_thisprod),0);};
RDebugUtils.currentLine=25821256;
 //BA.debugLineNum = 25821256;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)))+" $"+BA.ObjectToString(_thisprod.Get((Object)("precio"))),BA.ObjectToString(_thisprod.Get((Object)("precio"))),(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=25821259;
 //BA.debugLineNum = 25821259;BA.debugLine="b_terminar1.Visible = False";
__ref._b_terminar1 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=25821260;
 //BA.debugLineNum = 25821260;BA.debugLine="b_continuar.Visible = False";
__ref._b_continuar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=25821261;
 //BA.debugLineNum = 25821261;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=25821262;
 //BA.debugLineNum = 25821262;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(keymon.lat.medicomed.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=25690112;
 //BA.debugLineNum = 25690112;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=25690113;
 //BA.debugLineNum = 25690113;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=25690115;
 //BA.debugLineNum = 25690115;BA.debugLine="Root.LoadLayout(\"promociones\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("promociones",ba);
RDebugUtils.currentLine=25690116;
 //BA.debugLineNum = 25690116;BA.debugLine="promosMap.Initialize";
__ref._promosmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=25690117;
 //BA.debugLineNum = 25690117;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(keymon.lat.medicomed.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
RDebugUtils.currentLine=25559040;
 //BA.debugLineNum = 25559040;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=25559041;
 //BA.debugLineNum = 25559041;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=25559042;
 //BA.debugLineNum = 25559042;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=25559043;
 //BA.debugLineNum = 25559043;BA.debugLine="Private l_promoDesc As Label";
_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559044;
 //BA.debugLineNum = 25559044;BA.debugLine="Private lv_prodsFijos As ListView";
_lv_prodsfijos = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=25559045;
 //BA.debugLineNum = 25559045;BA.debugLine="Private clv_prodsVariabes As CustomListView";
_clv_prodsvariabes = new b4a.example3.customlistview();
RDebugUtils.currentLine=25559046;
 //BA.debugLineNum = 25559046;BA.debugLine="Private l_prodsFijos As Label";
_l_prodsfijos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559047;
 //BA.debugLineNum = 25559047;BA.debugLine="Private l_prodsVariables As Label";
_l_prodsvariables = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559048;
 //BA.debugLineNum = 25559048;BA.debugLine="Private i_prod As ImageView";
_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=25559049;
 //BA.debugLineNum = 25559049;BA.debugLine="Private l_prodX As Label";
_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559050;
 //BA.debugLineNum = 25559050;BA.debugLine="Private p_prods As Panel";
_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=25559051;
 //BA.debugLineNum = 25559051;BA.debugLine="Private b_prodMenos As Button";
_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559052;
 //BA.debugLineNum = 25559052;BA.debugLine="Private et_pCant As EditText";
_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=25559053;
 //BA.debugLineNum = 25559053;BA.debugLine="Private b_prodMas As Button";
_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559054;
 //BA.debugLineNum = 25559054;BA.debugLine="Private l_pCant As Label";
_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559055;
 //BA.debugLineNum = 25559055;BA.debugLine="Dim totalProds As Int = 0";
_totalprods = (int) (0);
RDebugUtils.currentLine=25559056;
 //BA.debugLineNum = 25559056;BA.debugLine="Dim prodsVarReq As Int = 0";
_prodsvarreq = (int) (0);
RDebugUtils.currentLine=25559057;
 //BA.debugLineNum = 25559057;BA.debugLine="Dim prodsVarReq2 As Int = 0";
_prodsvarreq2 = (int) (0);
RDebugUtils.currentLine=25559058;
 //BA.debugLineNum = 25559058;BA.debugLine="Dim totalCompra As Float = 0";
_totalcompra = (float) (0);
RDebugUtils.currentLine=25559059;
 //BA.debugLineNum = 25559059;BA.debugLine="Dim prodsFijosTot As Float = 0";
_prodsfijostot = (float) (0);
RDebugUtils.currentLine=25559060;
 //BA.debugLineNum = 25559060;BA.debugLine="Dim tpf As Int = 0";
_tpf = (int) (0);
RDebugUtils.currentLine=25559061;
 //BA.debugLineNum = 25559061;BA.debugLine="Dim tpf2 As Int = 0";
_tpf2 = (int) (0);
RDebugUtils.currentLine=25559062;
 //BA.debugLineNum = 25559062;BA.debugLine="Dim maxCantPromos As Int = 1";
_maxcantpromos = (int) (1);
RDebugUtils.currentLine=25559063;
 //BA.debugLineNum = 25559063;BA.debugLine="Private l_totProds As Label";
_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559064;
 //BA.debugLineNum = 25559064;BA.debugLine="Private l_total As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559065;
 //BA.debugLineNum = 25559065;BA.debugLine="Private b_terminar1 As Button";
_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559066;
 //BA.debugLineNum = 25559066;BA.debugLine="Private p_promociones As Panel";
_p_promociones = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=25559067;
 //BA.debugLineNum = 25559067;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=25559068;
 //BA.debugLineNum = 25559068;BA.debugLine="Dim estaPromo, esteCliente As String";
_estapromo = "";
_estecliente = "";
RDebugUtils.currentLine=25559069;
 //BA.debugLineNum = 25559069;BA.debugLine="Private b_promoMas As Button";
_b_promomas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559070;
 //BA.debugLineNum = 25559070;BA.debugLine="Private b_promoMenos As Button";
_b_promomenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559071;
 //BA.debugLineNum = 25559071;BA.debugLine="Private et_promoCant As EditText";
_et_promocant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=25559072;
 //BA.debugLineNum = 25559072;BA.debugLine="Private l_promosCant As Label";
_l_promoscant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=25559073;
 //BA.debugLineNum = 25559073;BA.debugLine="Private b_continuar As Button";
_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=25559074;
 //BA.debugLineNum = 25559074;BA.debugLine="Private p_prodsVariables As Panel";
_p_prodsvariables = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=25559075;
 //BA.debugLineNum = 25559075;BA.debugLine="Dim laPromo = \"\", elCliente = \"\" As String";
_lapromo = "";
_elcliente = "";
RDebugUtils.currentLine=25559076;
 //BA.debugLineNum = 25559076;BA.debugLine="Dim prodsPedidoActual As String";
_prodspedidoactual = "";
RDebugUtils.currentLine=25559077;
 //BA.debugLineNum = 25559077;BA.debugLine="Dim montoPedidoActual As String";
_montopedidoactual = "";
RDebugUtils.currentLine=25559078;
 //BA.debugLineNum = 25559078;BA.debugLine="Dim promosMap As Map";
_promosmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=25559079;
 //BA.debugLineNum = 25559079;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(keymon.lat.medicomed.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=25952256;
 //BA.debugLineNum = 25952256;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
RDebugUtils.currentLine=25952257;
 //BA.debugLineNum = 25952257;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=25952258;
 //BA.debugLineNum = 25952258;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=25952259;
 //BA.debugLineNum = 25952259;BA.debugLine="p.LoadLayout(\"proditempromo\")";
_p.LoadLayout("proditempromo",ba);
RDebugUtils.currentLine=25952260;
 //BA.debugLineNum = 25952260;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=25952261;
 //BA.debugLineNum = 25952261;BA.debugLine="l_prodX.Text = Text";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text));
RDebugUtils.currentLine=25952262;
 //BA.debugLineNum = 25952262;BA.debugLine="l_prodX.TextSize = 15";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (15));
RDebugUtils.currentLine=25952263;
 //BA.debugLineNum = 25952263;BA.debugLine="p_prods.Height = Height";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(_height);
RDebugUtils.currentLine=25952264;
 //BA.debugLineNum = 25952264;BA.debugLine="p_prods.Width = clv_prodsVariabes.GetBase.Width";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._clv_prodsvariabes /*b4a.example3.customlistview*/ ._getbase().getWidth());
RDebugUtils.currentLine=25952265;
 //BA.debugLineNum = 25952265;BA.debugLine="l_prodX.Height = Height";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setHeight(_height);
RDebugUtils.currentLine=25952267;
 //BA.debugLineNum = 25952267;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=25952268;
 //BA.debugLineNum = 25952268;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid));
RDebugUtils.currentLine=25952269;
 //BA.debugLineNum = 25952269;BA.debugLine="et_pCant.BringToFront";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .BringToFront();
RDebugUtils.currentLine=25952271;
 //BA.debugLineNum = 25952271;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=25952272;
 //BA.debugLineNum = 25952272;BA.debugLine="End Sub";
return null;
}
public String  _et_pcant_focuschanged(keymon.lat.medicomed.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=26279936;
 //BA.debugLineNum = 26279936;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
RDebugUtils.currentLine=26279937;
 //BA.debugLineNum = 26279937;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("326279937","focus changed",__c.Colors.Magenta);
RDebugUtils.currentLine=26279938;
 //BA.debugLineNum = 26279938;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26279939;
 //BA.debugLineNum = 26279939;BA.debugLine="End Sub";
return "";
}
public String  _et_pcant_textchanged(keymon.lat.medicomed.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=26148864;
 //BA.debugLineNum = 26148864;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
RDebugUtils.currentLine=26148866;
 //BA.debugLineNum = 26148866;BA.debugLine="cuentaProds";
__ref._cuentaprods /*String*/ (null);
RDebugUtils.currentLine=26148867;
 //BA.debugLineNum = 26148867;BA.debugLine="End Sub";
return "";
}
public String  _mods(keymon.lat.medicomed.c_promos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_promos";
if (Debug.shouldDelegate(ba, "mods", false))
	 {return ((String) Debug.delegate(ba, "mods", null));}
RDebugUtils.currentLine=25493504;
 //BA.debugLineNum = 25493504;BA.debugLine="Sub Mods";
RDebugUtils.currentLine=25493506;
 //BA.debugLineNum = 25493506;BA.debugLine="End Sub";
return "";
}
}