package keymon.lat.medicomed;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class c_promos_subs_0 {


public static RemoteObject  _agregafijosalista(RemoteObject __ref,RemoteObject _mp,RemoteObject _addlistitem) throws Exception{
try {
		Debug.PushSubsStack("agregaFijosALista (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,162);
if (RapidSub.canDelegate("agregafijosalista")) { return __ref.runUserSub(false, "c_promos","agregafijosalista", __ref, _mp, _addlistitem);}
RemoteObject _thislog = RemoteObject.createImmutable(false);
RemoteObject _cont = RemoteObject.createImmutable(0);
RemoteObject _pf = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _p = RemoteObject.createImmutable("");
RemoteObject _tpi = RemoteObject.createImmutable("");
RemoteObject _tpr = RemoteObject.createImmutable("");
RemoteObject _ntpi = RemoteObject.createImmutable(0);
Debug.locals.put("mp", _mp);
Debug.locals.put("addListItem", _addlistitem);
 BA.debugLineNum = 162;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo";
Debug.ShouldStop(2);
 BA.debugLineNum = 163;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(4);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 164;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(8);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 165;BA.debugLine="prodsFijosTot = 0";
Debug.ShouldStop(16);
__ref.setField ("_prodsfijostot" /*RemoteObject*/ ,BA.numberCast(float.class, 0));
 BA.debugLineNum = 166;BA.debugLine="Dim pf As List = mp.Get(\"prodsFijos\")";
Debug.ShouldStop(32);
_pf = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_pf = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijos")))));Debug.locals.put("pf", _pf);Debug.locals.put("pf", _pf);
 BA.debugLineNum = 167;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\"";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("<",_pf.runMethod(true,"getSize"),BA.numberCast(double.class, 1))) { 
_pf.runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("Sin productos fijos."))));};
 BA.debugLineNum = 171;BA.debugLine="prodsIds.clear";
Debug.ShouldStop(1024);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 172;BA.debugLine="prodsCants.clear";
Debug.ShouldStop(2048);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 173;BA.debugLine="prodsPrecios.clear";
Debug.ShouldStop(4096);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 174;BA.debugLine="prodsIds.Add(estaPromo)";
Debug.ShouldStop(8192);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((__ref.getField(true,"_estapromo" /*RemoteObject*/ ))));
 BA.debugLineNum = 175;BA.debugLine="prodsCants.Add(et_promoCant.text.As(Int))";
Debug.ShouldStop(16384);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(((BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"))))));
 BA.debugLineNum = 176;BA.debugLine="prodsPrecios.Add(0)";
Debug.ShouldStop(32768);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(RemoteObject.createImmutable((0))));
 BA.debugLineNum = 177;BA.debugLine="For Each p As String In pf";
Debug.ShouldStop(65536);
{
final RemoteObject group12 = _pf;
final int groupLen12 = group12.runMethod(true,"getSize").<Integer>get()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_p = BA.ObjectToString(group12.runMethod(false,"Get",index12));Debug.locals.put("p", _p);
Debug.locals.put("p", _p);
 BA.debugLineNum = 179;BA.debugLine="If mp.Get(\"prodsFijosPiezas\").As(List).Size > 0";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosPiezas")))))).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 180;BA.debugLine="Private tpi As String = mp.Get(\"prodsFijosPieza";
Debug.ShouldStop(524288);
_tpi = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosPiezas")))))).runMethod(false,"Get",(Object)(_cont)));Debug.locals.put("tpi", _tpi);Debug.locals.put("tpi", _tpi);
 }else {
 BA.debugLineNum = 182;BA.debugLine="Private tpi As String = 0";
Debug.ShouldStop(2097152);
_tpi = BA.NumberToString(0);Debug.locals.put("tpi", _tpi);Debug.locals.put("tpi", _tpi);
 };
 BA.debugLineNum = 184;BA.debugLine="If mp.Get(\"prodsFijosPrecios\").As(List).Size > 0";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosPrecios")))))).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 185;BA.debugLine="Private tpr As String = mp.Get(\"prodsFijosPreci";
Debug.ShouldStop(16777216);
_tpr = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosPrecios")))))).runMethod(false,"Get",(Object)(_cont)));Debug.locals.put("tpr", _tpr);Debug.locals.put("tpr", _tpr);
 }else {
 BA.debugLineNum = 187;BA.debugLine="Private tpr As String = 0";
Debug.ShouldStop(67108864);
_tpr = BA.NumberToString(0);Debug.locals.put("tpr", _tpr);Debug.locals.put("tpr", _tpr);
 };
 BA.debugLineNum = 189;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)";
Debug.ShouldStop(268435456);
__ref.setField ("_prodsfijostot" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsfijostot" /*RemoteObject*/ ),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _tpi),BA.numberCast(double.class, _tpr)}, "*",0, 0))}, "+",1, 0)));
 BA.debugLineNum = 190;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
Debug.ShouldStop(536870912);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325886748",RemoteObject.concat(RemoteObject.createImmutable("|"),_tpi,RemoteObject.createImmutable("|"),_p),0);};
 BA.debugLineNum = 191;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
Debug.ShouldStop(1073741824);
_ntpi = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _tpi),BA.numberCast(double.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"))}, "*",0, 0));Debug.locals.put("ntpi", _ntpi);Debug.locals.put("ntpi", _ntpi);
 BA.debugLineNum = 192;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(".",_addlistitem) && RemoteObject.solveBoolean(">",BA.numberCast(double.class, _tpi),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_ntpi,RemoteObject.createImmutable(" "),c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_p)),RemoteObject.createImmutable(" - $"),_tpr))));};
 BA.debugLineNum = 193;BA.debugLine="cont = cont+1";
Debug.ShouldStop(1);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 196;BA.debugLine="prodsIds.Add(p)";
Debug.ShouldStop(8);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_p)));
 BA.debugLineNum = 197;BA.debugLine="prodsCants.Add(tpi.As(Int)*et_promoCant.text.As(";
Debug.ShouldStop(16);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.solve(new RemoteObject[] {(BA.numberCast(int.class, _tpi)),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1))));
 BA.debugLineNum = 198;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int";
Debug.ShouldStop(32);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_tpr)));
 }
}Debug.locals.put("p", _p);
;
 BA.debugLineNum = 200;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_continuar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_continuar_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,394);
if (RapidSub.canDelegate("b_continuar_click")) { return __ref.runUserSub(false, "c_promos","b_continuar_click", __ref);}
int _t = 0;
RemoteObject _pn = RemoteObject.createImmutable("");
RemoteObject _prodspage = RemoteObject.declareNull("keymon.lat.medicomed.c_productos");
 BA.debugLineNum = 394;BA.debugLine="Private Sub b_continuar_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 395;BA.debugLine="cuentaProds";
Debug.ShouldStop(1024);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 396;BA.debugLine="Log(\"============================================";
Debug.ShouldStop(2048);
c_promos.__c.runVoidMethod ("LogImpl","326542082",RemoteObject.createImmutable("===================================================================="),0);
 BA.debugLineNum = 397;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
Debug.ShouldStop(4096);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_t = 0 ;
for (;(step3 > 0 && _t <= limit3) || (step3 < 0 && _t >= limit3) ;_t = ((int)(0 + _t + step3))  ) {
Debug.locals.put("t", _t);
 BA.debugLineNum = 398;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(8192);
_pn = c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 399;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(16384);
c_promos._subs.runVoidMethod ("_guardaproductosingestion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_estapromo" /*RemoteObject*/ )),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(BA.ObjectToString(__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(_pn),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(c_promos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 401;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
Debug.ShouldStop(65536);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_t = 0 ;
for (;(step7 > 0 && _t <= limit7) || (step7 < 0 && _t >= limit7) ;_t = ((int)(0 + _t + step7))  ) {
Debug.locals.put("t", _t);
 BA.debugLineNum = 402;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(131072);
_pn = c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 403;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(262144);
c_promos._subs.runVoidMethod ("_guardaproductosingestion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_estapromo" /*RemoteObject*/ )),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(BA.ObjectToString(__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(_pn),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(c_promos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 417;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 420;BA.debugLine="Private prodspage As C_Productos";
Debug.ShouldStop(8);
_prodspage = RemoteObject.createNew ("keymon.lat.medicomed.c_productos");Debug.locals.put("prodspage", _prodspage);
 BA.debugLineNum = 421;BA.debugLine="If prodspage.IsInitialized Then";
Debug.ShouldStop(16);
if (_prodspage.runMethod(true,"IsInitialized" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 422;BA.debugLine="prodspage.lv_catalogos.Visible = True";
Debug.ShouldStop(32);
_prodspage.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 423;BA.debugLine="prodspage.lv_promos.Visible = False";
Debug.ShouldStop(64);
_prodspage.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 424;BA.debugLine="prodspage.clv_productos.AsView.Visible = False";
Debug.ShouldStop(128);
_prodspage.getField(false,"_clv_productos" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 };
 BA.debugLineNum = 426;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
Debug.ShouldStop(512);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 427;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(1024);
c_promos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 428;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMas_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,244);
if (RapidSub.canDelegate("b_prodmas_click")) { return __ref.runUserSub(false, "c_promos","b_prodmas_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _prodid = RemoteObject.createImmutable("");
RemoteObject _tmpmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 244;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(524288);
 BA.debugLineNum = 245;BA.debugLine="If totalProds < prodsVarReq + tpf Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),__ref.getField(true,"_tpf" /*RemoteObject*/ )}, "+",1, 1)))) { 
 BA.debugLineNum = 246;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFrom";
Debug.ShouldStop(2097152);
_index = __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_promos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 247;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel";
Debug.ShouldStop(4194304);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 248;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(8388608);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 250;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4";
Debug.ShouldStop(33554432);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 253;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T";
Debug.ShouldStop(268435456);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_promos.__c.runMethod(false, "ArrayToList", (Object)(c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 255;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))))) { 
 BA.debugLineNum = 256;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
Debug.ShouldStop(-2147483648);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 257;BA.debugLine="cuentaProds";
Debug.ShouldStop(1);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 260;BA.debugLine="Log(Regex.Split(\"\\|\", laCant.tag)(0))";
Debug.ShouldStop(8);
c_promos.__c.runVoidMethod ("LogImpl","326083344",c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 261;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(16);
_precio = c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 263;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(64);
_prodid = c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 2));Debug.locals.put("prodId", _prodid);Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 264;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci";
Debug.ShouldStop(128);
_tmpmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap = c_promos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("precio")),(_precio),RemoteObject.createImmutable(("cant")),(_lacant.runMethod(true,"getText")),RemoteObject.createImmutable(("almacen")),(__ref.getField(true,"_estapromo" /*RemoteObject*/ ))}));Debug.locals.put("tmpMap", _tmpmap);Debug.locals.put("tmpMap", _tmpmap);
 BA.debugLineNum = 265;BA.debugLine="Log(tmpMap)";
Debug.ShouldStop(256);
c_promos.__c.runVoidMethod ("LogImpl","326083349",BA.ObjectToString(_tmpmap),0);
 BA.debugLineNum = 266;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(512);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 BA.debugLineNum = 267;BA.debugLine="LogColor(promosMap, Colors.Magenta)";
Debug.ShouldStop(1024);
c_promos.__c.runVoidMethod ("LogImpl","326083351",BA.ObjectToString(__ref.getField(false,"_promosmap" /*RemoteObject*/ )),c_promos.__c.getField(false,"Colors").getField(true,"Magenta"));
 };
 BA.debugLineNum = 272;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenos_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,220);
if (RapidSub.canDelegate("b_prodmenos_click")) { return __ref.runUserSub(false, "c_promos","b_prodmenos_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _prodid = RemoteObject.createImmutable("");
RemoteObject _tmpmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 220;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 221;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFromV";
Debug.ShouldStop(268435456);
_index = __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_promos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 222;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel(";
Debug.ShouldStop(536870912);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 223;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(1073741824);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 225;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)";
Debug.ShouldStop(1);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 227;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(4);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 228;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 230;BA.debugLine="Log(Regex.Split(\"\\|\", laCant.tag)(0))";
Debug.ShouldStop(32);
c_promos.__c.runVoidMethod ("LogImpl","326017802",c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 231;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(64);
_precio = c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 233;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(256);
_prodid = c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag")))).getArrayElement(true,BA.numberCast(int.class, 2));Debug.locals.put("prodId", _prodid);Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 234;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(512);
_tmpmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap = c_promos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("precio")),(_precio),RemoteObject.createImmutable(("cant")),(_lacant.runMethod(true,"getText")),RemoteObject.createImmutable(("almacen")),(__ref.getField(true,"_estapromo" /*RemoteObject*/ ))}));Debug.locals.put("tmpMap", _tmpmap);Debug.locals.put("tmpMap", _tmpmap);
 BA.debugLineNum = 235;BA.debugLine="Log(tmpMap)";
Debug.ShouldStop(1024);
c_promos.__c.runVoidMethod ("LogImpl","326017807",BA.ObjectToString(_tmpmap),0);
 BA.debugLineNum = 236;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(2048);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 BA.debugLineNum = 237;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_prodid)));};
 BA.debugLineNum = 238;BA.debugLine="LogColor(promosMap, Colors.Magenta)";
Debug.ShouldStop(8192);
c_promos.__c.runVoidMethod ("LogImpl","326017810",BA.ObjectToString(__ref.getField(false,"_promosmap" /*RemoteObject*/ )),c_promos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 239;BA.debugLine="cuentaProds";
Debug.ShouldStop(16384);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 242;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_promomas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_promoMas_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,352);
if (RapidSub.canDelegate("b_promomas_click")) { return __ref.runUserSub(false, "c_promos","b_promomas_click", __ref);}
 BA.debugLineNum = 352;BA.debugLine="Private Sub b_promoMas_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 353;BA.debugLine="If et_promoCant.Text < maxCantPromos Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(true,"_maxcantpromos" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 354;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) +";
Debug.ShouldStop(2);
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"))),RemoteObject.createImmutable(1)}, "+",1, 1)));
 BA.debugLineNum = 355;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 *";
Debug.ShouldStop(4);
__ref.getField(false,"_l_prodsfijos" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos fijos ("),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable(")")))));
 BA.debugLineNum = 356;BA.debugLine="l_prodsVariables.Text = $\"Productos variables re";
Debug.ShouldStop(8);
__ref.getField(false,"_l_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables requeridos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 357;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
Debug.ShouldStop(16);
__ref.setField ("_tpf" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 358;BA.debugLine="prodsVarReq = prodsVarReq2 * et_promoCant.Text.A";
Debug.ShouldStop(32);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 359;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
Debug.ShouldStop(64);
c_promos.__c.runVoidMethod ("LogImpl","326411015",(RemoteObject.concat(RemoteObject.createImmutable("Max promos="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(((BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))))),RemoteObject.createImmutable(", Prods fijos="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tpf" /*RemoteObject*/ )))),RemoteObject.createImmutable(",  "))),0);
 };
 BA.debugLineNum = 361;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(true,"_maxcantpromos" /*RemoteObject*/ )))) { 
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_maxcantpromos" /*RemoteObject*/ )));};
 BA.debugLineNum = 362;BA.debugLine="cuentaProds";
Debug.ShouldStop(512);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 363;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_promomenos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_promoMenos_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,340);
if (RapidSub.canDelegate("b_promomenos_click")) { return __ref.runUserSub(false, "c_promos","b_promomenos_click", __ref);}
 BA.debugLineNum = 340;BA.debugLine="Private Sub b_promoMenos_Click";
Debug.ShouldStop(524288);
 BA.debugLineNum = 341;BA.debugLine="If et_promoCant.Text > 1 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 342;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) -";
Debug.ShouldStop(2097152);
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"))),RemoteObject.createImmutable(1)}, "-",1, 1)));
 };
 BA.debugLineNum = 344;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 * e";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_prodsfijos" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos fijos ("),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable(")")))));
 BA.debugLineNum = 345;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables requeridos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 346;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
Debug.ShouldStop(33554432);
__ref.setField ("_tpf" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 347;BA.debugLine="prodsVarReq = prodsVarReq2 * et_promoCant.Text.As";
Debug.ShouldStop(67108864);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 348;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
Debug.ShouldStop(134217728);
c_promos.__c.runVoidMethod ("LogImpl","326345480",(RemoteObject.concat(RemoteObject.createImmutable("Max promos="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(((BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))))),RemoteObject.createImmutable(", Prods fijos="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tpf" /*RemoteObject*/ )))),RemoteObject.createImmutable(",  "))),0);
 BA.debugLineNum = 349;BA.debugLine="cuentaProds";
Debug.ShouldStop(268435456);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 350;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_terminar1_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_terminar1_Click (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,365);
if (RapidSub.canDelegate("b_terminar1_click")) { return __ref.runUserSub(false, "c_promos","b_terminar1_click", __ref);}
int _t = 0;
RemoteObject _pn = RemoteObject.createImmutable("");
 BA.debugLineNum = 365;BA.debugLine="Private Sub b_terminar1_Click";
Debug.ShouldStop(4096);
 BA.debugLineNum = 366;BA.debugLine="cuentaProds";
Debug.ShouldStop(8192);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 367;BA.debugLine="Log(\"============================================";
Debug.ShouldStop(16384);
c_promos.__c.runVoidMethod ("LogImpl","326476546",RemoteObject.createImmutable("===================================================================="),0);
 BA.debugLineNum = 368;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
Debug.ShouldStop(32768);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_t = 0 ;
for (;(step3 > 0 && _t <= limit3) || (step3 < 0 && _t >= limit3) ;_t = ((int)(0 + _t + step3))  ) {
Debug.locals.put("t", _t);
 BA.debugLineNum = 369;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(65536);
_pn = c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 370;BA.debugLine="If prodsCants.Get(t) > 0 Then Subs.guardaProduct";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t)))),BA.numberCast(double.class, 0))) { 
c_promos._subs.runVoidMethod ("_guardaproductosingestion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_estapromo" /*RemoteObject*/ )),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(BA.ObjectToString(__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(_pn),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(c_promos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));};
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 372;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
Debug.ShouldStop(524288);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_t = 0 ;
for (;(step7 > 0 && _t <= limit7) || (step7 < 0 && _t >= limit7) ;_t = ((int)(0 + _t + step7))  ) {
Debug.locals.put("t", _t);
 BA.debugLineNum = 373;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(1048576);
_pn = c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 374;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(2097152);
c_promos._subs.runVoidMethod ("_guardaproductosingestion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_estapromo" /*RemoteObject*/ )),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(BA.ObjectToString(__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(_pn),(Object)(BA.ObjectToString(__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _t))))),(Object)(c_promos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_promos._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 388;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 389;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
Debug.ShouldStop(16);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 390;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(32);
c_promos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 391;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click";
Debug.ShouldStop(64);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 BA.debugLineNum = 392;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,59);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_promos","b4xpage_appear", __ref);}
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 59;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 61;BA.debugLine="p_promociones.Top=0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setTop",BA.numberCast(int.class, 0));
 BA.debugLineNum = 62;BA.debugLine="p_promociones.Left=0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, 0));
 BA.debugLineNum = 63;BA.debugLine="p_promociones.Height=Root.Height";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 64;BA.debugLine="p_promociones.Width=Root.Width";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 65;BA.debugLine="b_terminar1.Left = Root.Width - (b_terminar1.Widt";
Debug.ShouldStop(1);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setLeft",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(10)}, "+",1, 1))}, "-",1, 1));
 BA.debugLineNum = 66;BA.debugLine="b_continuar.Left = Root.Width - b_terminar1.Width";
Debug.ShouldStop(2);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setLeft",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"getWidth"),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(20)}, "+",1, 1))}, "--",2, 1));
 BA.debugLineNum = 67;BA.debugLine="prodsIds.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 68;BA.debugLine="prodsCants.Initialize";
Debug.ShouldStop(8);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 69;BA.debugLine="prodsPrecios.Initialize";
Debug.ShouldStop(16);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 70;BA.debugLine="prodsIds2.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 71;BA.debugLine="prodsCants2.Initialize";
Debug.ShouldStop(64);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 72;BA.debugLine="prodsPrecios2.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 73;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(256);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_m = c_promos._subs.runMethod(false,"_traetotalesclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("m", _m);Debug.locals.put("m", _m);
 BA.debugLineNum = 74;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(512);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 75;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(1024);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 77;BA.debugLine="If laPromo <> \"\" Then muestraPromo(laPromo, elCli";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_lapromo" /*RemoteObject*/ ),BA.ObjectToString(""))) { 
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_muestrapromo" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_lapromo" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_elcliente" /*RemoteObject*/ )));};
 BA.debugLineNum = 78;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,52);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_promos","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 52;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(524288);
 BA.debugLineNum = 53;BA.debugLine="Root = Root1";
Debug.ShouldStop(1048576);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 55;BA.debugLine="Root.LoadLayout(\"promociones\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("promociones")),__ref.getField(false, "ba"));
 BA.debugLineNum = 56;BA.debugLine="promosMap.Initialize";
Debug.ShouldStop(8388608);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 57;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 6;BA.debugLine="Private Root As B4XView 'ignore";
c_promos._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_promos._root);
 //BA.debugLineNum = 7;BA.debugLine="Private xui As XUI";
c_promos._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_promos._xui);
 //BA.debugLineNum = 8;BA.debugLine="Private l_promoDesc As Label";
c_promos._l_promodesc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_promodesc",c_promos._l_promodesc);
 //BA.debugLineNum = 9;BA.debugLine="Private lv_prodsFijos As ListView";
c_promos._lv_prodsfijos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_prodsfijos",c_promos._lv_prodsfijos);
 //BA.debugLineNum = 10;BA.debugLine="Private clv_prodsVariabes As CustomListView";
c_promos._clv_prodsvariabes = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_prodsvariabes",c_promos._clv_prodsvariabes);
 //BA.debugLineNum = 11;BA.debugLine="Private l_prodsFijos As Label";
c_promos._l_prodsfijos = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodsfijos",c_promos._l_prodsfijos);
 //BA.debugLineNum = 12;BA.debugLine="Private l_prodsVariables As Label";
c_promos._l_prodsvariables = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodsvariables",c_promos._l_prodsvariables);
 //BA.debugLineNum = 13;BA.debugLine="Private i_prod As ImageView";
c_promos._i_prod = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_i_prod",c_promos._i_prod);
 //BA.debugLineNum = 14;BA.debugLine="Private l_prodX As Label";
c_promos._l_prodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodx",c_promos._l_prodx);
 //BA.debugLineNum = 15;BA.debugLine="Private p_prods As Panel";
c_promos._p_prods = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prods",c_promos._p_prods);
 //BA.debugLineNum = 16;BA.debugLine="Private b_prodMenos As Button";
c_promos._b_prodmenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenos",c_promos._b_prodmenos);
 //BA.debugLineNum = 17;BA.debugLine="Private et_pCant As EditText";
c_promos._et_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pcant",c_promos._et_pcant);
 //BA.debugLineNum = 18;BA.debugLine="Private b_prodMas As Button";
c_promos._b_prodmas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmas",c_promos._b_prodmas);
 //BA.debugLineNum = 19;BA.debugLine="Private l_pCant As Label";
c_promos._l_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pcant",c_promos._l_pcant);
 //BA.debugLineNum = 20;BA.debugLine="Dim totalProds As Int = 0";
c_promos._totalprods = BA.numberCast(int.class, 0);__ref.setField("_totalprods",c_promos._totalprods);
 //BA.debugLineNum = 21;BA.debugLine="Dim prodsVarReq As Int = 0";
c_promos._prodsvarreq = BA.numberCast(int.class, 0);__ref.setField("_prodsvarreq",c_promos._prodsvarreq);
 //BA.debugLineNum = 22;BA.debugLine="Dim prodsVarReq2 As Int = 0";
c_promos._prodsvarreq2 = BA.numberCast(int.class, 0);__ref.setField("_prodsvarreq2",c_promos._prodsvarreq2);
 //BA.debugLineNum = 23;BA.debugLine="Dim totalCompra As Float = 0";
c_promos._totalcompra = BA.numberCast(float.class, 0);__ref.setField("_totalcompra",c_promos._totalcompra);
 //BA.debugLineNum = 24;BA.debugLine="Dim prodsFijosTot As Float = 0";
c_promos._prodsfijostot = BA.numberCast(float.class, 0);__ref.setField("_prodsfijostot",c_promos._prodsfijostot);
 //BA.debugLineNum = 25;BA.debugLine="Dim tpf As Int = 0";
c_promos._tpf = BA.numberCast(int.class, 0);__ref.setField("_tpf",c_promos._tpf);
 //BA.debugLineNum = 26;BA.debugLine="Dim tpf2 As Int = 0";
c_promos._tpf2 = BA.numberCast(int.class, 0);__ref.setField("_tpf2",c_promos._tpf2);
 //BA.debugLineNum = 27;BA.debugLine="Dim maxCantPromos As Int = 1";
c_promos._maxcantpromos = BA.numberCast(int.class, 1);__ref.setField("_maxcantpromos",c_promos._maxcantpromos);
 //BA.debugLineNum = 28;BA.debugLine="Private l_totProds As Label";
c_promos._l_totprods = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_totprods",c_promos._l_totprods);
 //BA.debugLineNum = 29;BA.debugLine="Private l_total As Label";
c_promos._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_promos._l_total);
 //BA.debugLineNum = 30;BA.debugLine="Private b_terminar1 As Button";
c_promos._b_terminar1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_terminar1",c_promos._b_terminar1);
 //BA.debugLineNum = 31;BA.debugLine="Private p_promociones As Panel";
c_promos._p_promociones = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_promociones",c_promos._p_promociones);
 //BA.debugLineNum = 32;BA.debugLine="Dim prodsIds, prodsCants, prodsPrecios, prodsIds2";
c_promos._prodsids = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodsids",c_promos._prodsids);
c_promos._prodscants = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodscants",c_promos._prodscants);
c_promos._prodsprecios = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodsprecios",c_promos._prodsprecios);
c_promos._prodsids2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodsids2",c_promos._prodsids2);
c_promos._prodscants2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodscants2",c_promos._prodscants2);
c_promos._prodsprecios2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_prodsprecios2",c_promos._prodsprecios2);
 //BA.debugLineNum = 33;BA.debugLine="Dim estaPromo, esteCliente As String";
c_promos._estapromo = RemoteObject.createImmutable("");__ref.setField("_estapromo",c_promos._estapromo);
c_promos._estecliente = RemoteObject.createImmutable("");__ref.setField("_estecliente",c_promos._estecliente);
 //BA.debugLineNum = 34;BA.debugLine="Private b_promoMas As Button";
c_promos._b_promomas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_promomas",c_promos._b_promomas);
 //BA.debugLineNum = 35;BA.debugLine="Private b_promoMenos As Button";
c_promos._b_promomenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_promomenos",c_promos._b_promomenos);
 //BA.debugLineNum = 36;BA.debugLine="Private et_promoCant As EditText";
c_promos._et_promocant = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_promocant",c_promos._et_promocant);
 //BA.debugLineNum = 37;BA.debugLine="Private l_promosCant As Label";
c_promos._l_promoscant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_promoscant",c_promos._l_promoscant);
 //BA.debugLineNum = 38;BA.debugLine="Private b_continuar As Button";
c_promos._b_continuar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_continuar",c_promos._b_continuar);
 //BA.debugLineNum = 39;BA.debugLine="Private p_prodsVariables As Panel";
c_promos._p_prodsvariables = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prodsvariables",c_promos._p_prodsvariables);
 //BA.debugLineNum = 40;BA.debugLine="Dim laPromo = \"\", elCliente = \"\" As String";
c_promos._lapromo = BA.ObjectToString("");__ref.setField("_lapromo",c_promos._lapromo);
c_promos._elcliente = BA.ObjectToString("");__ref.setField("_elcliente",c_promos._elcliente);
 //BA.debugLineNum = 41;BA.debugLine="Dim prodsPedidoActual As String";
c_promos._prodspedidoactual = RemoteObject.createImmutable("");__ref.setField("_prodspedidoactual",c_promos._prodspedidoactual);
 //BA.debugLineNum = 42;BA.debugLine="Dim montoPedidoActual As String";
c_promos._montopedidoactual = RemoteObject.createImmutable("");__ref.setField("_montopedidoactual",c_promos._montopedidoactual);
 //BA.debugLineNum = 43;BA.debugLine="Dim promosMap As Map";
c_promos._promosmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_promosmap",c_promos._promosmap);
 //BA.debugLineNum = 44;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,202);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_promos","createlistitem", __ref, _text, _preciou, _inv, _width, _height, _img, _prodid);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
Debug.locals.put("Text", _text);
Debug.locals.put("precioU", _preciou);
Debug.locals.put("inv", _inv);
Debug.locals.put("Width", _width);
Debug.locals.put("Height", _height);
Debug.locals.put("img", _img);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 202;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(512);
 BA.debugLineNum = 203;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(1024);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 204;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(2048);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
 BA.debugLineNum = 205;BA.debugLine="p.LoadLayout(\"proditempromo\")";
Debug.ShouldStop(4096);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("proditempromo")),__ref.getField(false, "ba"));
 BA.debugLineNum = 206;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 207;BA.debugLine="l_prodX.Text = Text";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_text));
 BA.debugLineNum = 208;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 209;BA.debugLine="p_prods.Height = Height";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",_height);
 BA.debugLineNum = 210;BA.debugLine="p_prods.Width = clv_prodsVariabes.GetBase.Width";
Debug.ShouldStop(131072);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"));
 BA.debugLineNum = 211;BA.debugLine="l_prodX.Height = Height";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setHeight",_height);
 BA.debugLineNum = 213;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 214;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(2097152);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 215;BA.debugLine="et_pCant.BringToFront";
Debug.ShouldStop(4194304);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 217;BA.debugLine="Return p";
Debug.ShouldStop(16777216);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 218;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cuentaprods(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("cuentaProds (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,279);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_promos","cuentaprods", __ref);}
RemoteObject _thislog = RemoteObject.createImmutable(false);
RemoteObject _tcpf = RemoteObject.createImmutable(0f);
int _pf = 0;
int _i = 0;
RemoteObject _p0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cant1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
 BA.debugLineNum = 279;BA.debugLine="Sub cuentaProds";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 282;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(33554432);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 283;BA.debugLine="If thisLog Then LogColor($\"ProdsFijos=${tpf}, tot";
Debug.ShouldStop(67108864);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214404",(RemoteObject.concat(RemoteObject.createImmutable("ProdsFijos="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tpf" /*RemoteObject*/ )))),RemoteObject.createImmutable(", totalProds="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable(", totalCompra="),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_promos.__c.getField(false,"Colors").getField(true,"Red"));};
 BA.debugLineNum = 284;BA.debugLine="prodsIds2.Clear";
Debug.ShouldStop(134217728);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 285;BA.debugLine="prodsCants2.Clear";
Debug.ShouldStop(268435456);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 286;BA.debugLine="prodsPrecios2.Clear";
Debug.ShouldStop(536870912);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 287;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 288;BA.debugLine="agregaFijosALista(Subs.traePromo(estaPromo, esteC";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_agregafijosalista" /*RemoteObject*/ ,(Object)(c_promos._subs.runMethod(false,"_traepromo" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_estapromo" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_estecliente" /*RemoteObject*/ )))),(Object)(c_promos.__c.getField(true,"True")));
 BA.debugLineNum = 290;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro";
Debug.ShouldStop(2);
_tcpf = BA.numberCast(float.class, 0);Debug.locals.put("tcpf", _tcpf);Debug.locals.put("tcpf", _tcpf);
 BA.debugLineNum = 291;BA.debugLine="For pf = 0 To prodsIds.Size - 1";
Debug.ShouldStop(4);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pf = 0 ;
for (;(step9 > 0 && _pf <= limit9) || (step9 < 0 && _pf >= limit9) ;_pf = ((int)(0 + _pf + step9))  ) {
Debug.locals.put("pf", _pf);
 BA.debugLineNum = 292;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
Debug.ShouldStop(8);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214413",(RemoteObject.concat(RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tcpf))),RemoteObject.createImmutable(" + "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf))))),RemoteObject.createImmutable(" * "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf))))),RemoteObject.createImmutable(" = "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf)))),BA.numberCast(double.class, __ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf))))}, "*",0, 0))))),RemoteObject.createImmutable(""))),0);};
 BA.debugLineNum = 293;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
Debug.ShouldStop(16);
_tcpf = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_tcpf,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf)))),BA.numberCast(double.class, __ref.getField(false,"_prodscants" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pf))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("tcpf", _tcpf);
 }
}Debug.locals.put("pf", _pf);
;
 BA.debugLineNum = 296;BA.debugLine="totalCompra = tcpf";
Debug.ShouldStop(128);
__ref.setField ("_totalcompra" /*RemoteObject*/ ,_tcpf);
 BA.debugLineNum = 297;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij";
Debug.ShouldStop(256);
__ref.setField ("_totalprods" /*RemoteObject*/ ,__ref.getField(true,"_tpf" /*RemoteObject*/ ));
 BA.debugLineNum = 298;BA.debugLine="For i = 0 To clv_prodsVariabes.GetSize - 1";
Debug.ShouldStop(512);
{
final int step15 = 1;
final int limit15 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15) ;_i = ((int)(0 + _i + step15))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 299;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes.GetPan";
Debug.ShouldStop(1024);
_p0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p0 = __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("p0", _p0);Debug.locals.put("p0", _p0);
 BA.debugLineNum = 300;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(2048);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = _p0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 301;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
Debug.ShouldStop(4096);
_cant1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_cant1 = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("cant1", _cant1);Debug.locals.put("cant1", _cant1);
 BA.debugLineNum = 303;BA.debugLine="totalProds = totalProds + cant1.Text";
Debug.ShouldStop(16384);
__ref.setField ("_totalprods" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, _cant1.runMethod(true,"getText"))}, "+",1, 0)));
 BA.debugLineNum = 304;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant";
Debug.ShouldStop(32768);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_promos.__c.runMethod(false, "ArrayToList", (Object)(c_promos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_cant1.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 305;BA.debugLine="If cant1.Text > esteTag.Get(1) Then cant1.Text =";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cant1.runMethod(true,"getText")),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))))) { 
_cant1.runMethod(true,"setText",BA.ObjectToCharSequence(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))));};
 BA.debugLineNum = 306;BA.debugLine="If cant1.Text > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cant1.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 307;BA.debugLine="Log(esteTag.Get(2) & \"|\" & cant1.Text)";
Debug.ShouldStop(262144);
c_promos.__c.runVoidMethod ("LogImpl","326214428",RemoteObject.concat(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_cant1.runMethod(true,"getText")),0);
 BA.debugLineNum = 308;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c";
Debug.ShouldStop(524288);
__ref.setField ("_totalcompra" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalcompra" /*RemoteObject*/ ),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _cant1.runMethod(true,"getText"))}, "*",0, 0))}, "+",1, 0)));
 BA.debugLineNum = 309;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
Debug.ShouldStop(1048576);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214430",(RemoteObject.concat(RemoteObject.createImmutable("Cant: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cant1.runMethod(true,"getText")))),RemoteObject.createImmutable(", Suma: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);};
 BA.debugLineNum = 310;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
Debug.ShouldStop(2097152);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 311;BA.debugLine="prodsCants2.Add(cant1.Text)";
Debug.ShouldStop(4194304);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_cant1.runMethod(true,"getText"))));
 BA.debugLineNum = 312;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
Debug.ShouldStop(8388608);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))));
 };
 BA.debugLineNum = 314;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Total: $"),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 315;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 317;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
Debug.ShouldStop(268435456);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214438",(RemoteObject.concat(RemoteObject.createImmutable("Total Prods: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable(", Total: $"),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);};
 BA.debugLineNum = 318;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Total: $"),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 319;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 320;BA.debugLine="If totalProds < prodsVarReq + tpf Or totalProds >";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),__ref.getField(true,"_tpf" /*RemoteObject*/ )}, "+",1, 1))) || RemoteObject.solveBoolean(">",__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),__ref.getField(true,"_tpf" /*RemoteObject*/ )}, "+",1, 1)))) { 
 BA.debugLineNum = 322;BA.debugLine="b_terminar1.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 323;BA.debugLine="b_continuar.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 326;BA.debugLine="b_terminar1.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 327;BA.debugLine="b_continuar.Visible = True";
Debug.ShouldStop(64);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 };
 BA.debugLineNum = 329;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
Debug.ShouldStop(256);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214450",(RemoteObject.concat(RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodsids" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_promos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodscants" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_promos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""))),c_promos.__c.getField(false,"Colors").getField(true,"Blue"));};
 BA.debugLineNum = 330;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
Debug.ShouldStop(512);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","326214451",(RemoteObject.concat(RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_promos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_promos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""))),c_promos.__c.getField(false,"Colors").getField(true,"Magenta"));};
 BA.debugLineNum = 332;BA.debugLine="LogColor($\"Total Prods: ${totalProds}, Total: $$1";
Debug.ShouldStop(2048);
c_promos.__c.runVoidMethod ("LogImpl","326214453",(RemoteObject.concat(RemoteObject.createImmutable("Total Prods: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable(", Total: $"),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_promos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 333;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_pcant_focuschanged(RemoteObject __ref,RemoteObject _hasfocus) throws Exception{
try {
		Debug.PushSubsStack("et_pCant_FocusChanged (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,335);
if (RapidSub.canDelegate("et_pcant_focuschanged")) { return __ref.runUserSub(false, "c_promos","et_pcant_focuschanged", __ref, _hasfocus);}
Debug.locals.put("HasFocus", _hasfocus);
 BA.debugLineNum = 335;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
Debug.ShouldStop(16384);
 BA.debugLineNum = 336;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
Debug.ShouldStop(32768);
c_promos.__c.runVoidMethod ("LogImpl","326279937",BA.ObjectToString("focus changed"),c_promos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 337;BA.debugLine="cuentaProds";
Debug.ShouldStop(65536);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 338;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_pcant_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("et_pCant_TextChanged (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,274);
if (RapidSub.canDelegate("et_pcant_textchanged")) { return __ref.runUserSub(false, "c_promos","et_pcant_textchanged", __ref, _old, _new);}
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 274;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
Debug.ShouldStop(131072);
 BA.debugLineNum = 276;BA.debugLine="cuentaProds";
Debug.ShouldStop(524288);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 277;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,47);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_promos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 47;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(16384);
 BA.debugLineNum = 48;BA.debugLine="Return Me";
Debug.ShouldStop(32768);
if (true) return __ref;
 BA.debugLineNum = 49;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mods(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Mods (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,1);
if (RapidSub.canDelegate("mods")) { return __ref.runUserSub(false, "c_promos","mods", __ref);}
 BA.debugLineNum = 1;BA.debugLine="Sub Mods";
Debug.ShouldStop(1);
 BA.debugLineNum = 3;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _muestrapromo(RemoteObject __ref,RemoteObject _promo,RemoteObject _cliente) throws Exception{
try {
		Debug.PushSubsStack("muestraPromo (c_promos) ","c_promos",18,__ref.getField(false, "ba"),__ref,81);
if (RapidSub.canDelegate("muestrapromo")) { return __ref.runUserSub(false, "c_promos","muestrapromo", __ref, _promo, _cliente);}
RemoteObject _thislog = RemoteObject.createImmutable(false);
RemoteObject _mp = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _prodspromo = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _invdisppromo = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _pv = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _pfp = RemoteObject.createImmutable(0);
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _p = RemoteObject.createImmutable("");
RemoteObject _thisprod = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 81;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin";
Debug.ShouldStop(65536);
 BA.debugLineNum = 82;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(131072);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 84;BA.debugLine="estaPromo = promo";
Debug.ShouldStop(524288);
__ref.setField ("_estapromo" /*RemoteObject*/ ,_promo);
 BA.debugLineNum = 85;BA.debugLine="esteCliente = cliente";
Debug.ShouldStop(1048576);
__ref.setField ("_estecliente" /*RemoteObject*/ ,_cliente);
 BA.debugLineNum = 86;BA.debugLine="Private mp As Map = Subs.traePromo(promo, cliente";
Debug.ShouldStop(2097152);
_mp = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_mp = c_promos._subs.runMethod(false,"_traepromo" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_promo),(Object)(_cliente));Debug.locals.put("mp", _mp);Debug.locals.put("mp", _mp);
 BA.debugLineNum = 87;BA.debugLine="Private prodsPromo As Map = mp.Get(\"productos\") '";
Debug.ShouldStop(4194304);
_prodspromo = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_prodspromo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos")))));Debug.locals.put("prodsPromo", _prodspromo);Debug.locals.put("prodsPromo", _prodspromo);
 BA.debugLineNum = 88;BA.debugLine="Private invDispPromo As Map = Subs.traemosInventa";
Debug.ShouldStop(8388608);
_invdisppromo = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_invdisppromo = c_promos._subs.runMethod(false,"_traemosinventariodisponibleparapromo" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_promo));Debug.locals.put("invDispPromo", _invdisppromo);Debug.locals.put("invDispPromo", _invdisppromo);
 BA.debugLineNum = 90;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
Debug.ShouldStop(33554432);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821193",RemoteObject.concat(RemoteObject.createImmutable("Max promos por inv de prods FIJOS: "),c_promos._subs.runMethod(true,"_revisamaxpromosprodsfijosporinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_mp))),0);};
 BA.debugLineNum = 91;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
Debug.ShouldStop(67108864);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821194",RemoteObject.concat(RemoteObject.createImmutable("Max promos por inv de prods VARIABLES: "),c_promos._subs.runMethod(true,"_revisamaxpromosprodsvariablesporinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_mp))),0);};
 BA.debugLineNum = 92;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
Debug.ShouldStop(134217728);
__ref.setField ("_maxcantpromos" /*RemoteObject*/ ,c_promos._subs.runMethod(true,"_revisamaxpromosprodsvariablesporinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_mp)));
 BA.debugLineNum = 93;BA.debugLine="et_promoCant.Text = 1";
Debug.ShouldStop(268435456);
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(1));
 BA.debugLineNum = 94;BA.debugLine="l_promosCant.text = \"Max promos: \" & maxCantPromo";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_promoscant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Max promos: "),__ref.getField(true,"_maxcantpromos" /*RemoteObject*/ ))));
 BA.debugLineNum = 95;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(1073741824);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 96;BA.debugLine="cs.Initialize";
Debug.ShouldStop(-2147483648);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 97;BA.debugLine="If thisLog Then Log(mp)";
Debug.ShouldStop(1);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821200",BA.ObjectToString(_mp),0);};
 BA.debugLineNum = 98;BA.debugLine="If thisLog Then Log(prodsPromo)";
Debug.ShouldStop(2);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821201",BA.ObjectToString(_prodspromo),0);};
 BA.debugLineNum = 102;BA.debugLine="l_promoDesc.Text = cs.Color(Colors.RGB(100,149,23";
Debug.ShouldStop(32);
__ref.getField(false,"_l_promodesc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_promos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 100)),(Object)(BA.numberCast(int.class, 149)),(Object)(BA.numberCast(int.class, 237))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Promocion: ")))).runMethod(false,"Pop").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_promos.__c.getField(true,"CRLF")))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_promo))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_promos.__c.getField(true,"CRLF")))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("descripcion"))))))).runMethod(false,"PopAll").getObject()));
 BA.debugLineNum = 103;BA.debugLine="prodsFijosTot = 0";
Debug.ShouldStop(64);
__ref.setField ("_prodsfijostot" /*RemoteObject*/ ,BA.numberCast(float.class, 0));
 BA.debugLineNum = 106;BA.debugLine="Dim pv As List = mp.Get(\"prodsVariables\")";
Debug.ShouldStop(512);
_pv = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_pv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariables")))));Debug.locals.put("pv", _pv);Debug.locals.put("pv", _pv);
 BA.debugLineNum = 107;BA.debugLine="If thisLog Then Log(mp)";
Debug.ShouldStop(1024);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821210",BA.ObjectToString(_mp),0);};
 BA.debugLineNum = 108;BA.debugLine="tpf = 0";
Debug.ShouldStop(2048);
__ref.setField ("_tpf" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 109;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
Debug.ShouldStop(4096);
{
final RemoteObject group21 = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosPiezas"))))));
final int groupLen21 = group21.runMethod(true,"getSize").<Integer>get()
;int index21 = 0;
;
for (; index21 < groupLen21;index21++){
_pfp = BA.numberCast(int.class, group21.runMethod(false,"Get",index21));Debug.locals.put("pfp", _pfp);
Debug.locals.put("pfp", _pfp);
 BA.debugLineNum = 110;BA.debugLine="tpf = tpf + pfp";
Debug.ShouldStop(8192);
__ref.setField ("_tpf" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf" /*RemoteObject*/ ),_pfp}, "+",1, 1));
 }
}Debug.locals.put("pfp", _pfp);
;
 BA.debugLineNum = 112;BA.debugLine="tpf2 = tpf";
Debug.ShouldStop(32768);
__ref.setField ("_tpf2" /*RemoteObject*/ ,__ref.getField(true,"_tpf" /*RemoteObject*/ ));
 BA.debugLineNum = 114;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf})\"$";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_prodsfijos" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos fijos ("),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tpf" /*RemoteObject*/ )))),RemoteObject.createImmutable(")")))));
 BA.debugLineNum = 115;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")";
Debug.ShouldStop(262144);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,BA.numberCast(int.class, _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesRequeridos"))))));
 BA.debugLineNum = 116;BA.debugLine="prodsVarReq2 = prodsVarReq";
Debug.ShouldStop(524288);
__ref.setField ("_prodsvarreq2" /*RemoteObject*/ ,__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ));
 BA.debugLineNum = 117;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables requeridos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 118;BA.debugLine="If prodsVarReq = 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 119;BA.debugLine="p_prodsVariables.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 121;BA.debugLine="p_prodsVariables.Visible = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 };
 BA.debugLineNum = 124;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(134217728);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 125;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label";
Debug.ShouldStop(268435456);
_label1 = __ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 126;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(536870912);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 127;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(1073741824);
_label1.runMethod(true,"setTextColor",c_promos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 128;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").runMethod(true,"setItemHeight",c_promos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 30))));
 BA.debugLineNum = 129;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 131;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(4);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 132;BA.debugLine="agregaFijosALista(mp, True)";
Debug.ShouldStop(8);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_agregafijosalista" /*RemoteObject*/ ,(Object)(_mp),(Object)(c_promos.__c.getField(true,"True")));
 BA.debugLineNum = 133;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
Debug.ShouldStop(16);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821236",RemoteObject.concat(RemoteObject.createImmutable("Total prods fijos = "),__ref.getField(true,"_prodsfijostot" /*RemoteObject*/ )),0);};
 BA.debugLineNum = 135;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
Debug.ShouldStop(64);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tpf" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 136;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
Debug.ShouldStop(128);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Total: $"),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_prodsfijostot" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 142;BA.debugLine="If thisLog Then Log(pv)";
Debug.ShouldStop(8192);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821245",BA.ObjectToString(_pv),0);};
 BA.debugLineNum = 143;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
Debug.ShouldStop(16384);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821246",RemoteObject.concat(RemoteObject.createImmutable("invDisp="),_invdisppromo),0);};
 BA.debugLineNum = 144;BA.debugLine="clv_prodsVariabes.Clear";
Debug.ShouldStop(32768);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 145;BA.debugLine="For Each p As String In pv";
Debug.ShouldStop(65536);
{
final RemoteObject group48 = _pv;
final int groupLen48 = group48.runMethod(true,"getSize").<Integer>get()
;int index48 = 0;
;
for (; index48 < groupLen48;index48++){
_p = BA.ObjectToString(group48.runMethod(false,"Get",index48));Debug.locals.put("p", _p);
Debug.locals.put("p", _p);
 BA.debugLineNum = 146;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
Debug.ShouldStop(131072);
if (_invdisppromo.runMethod(true,"ContainsKey",(Object)((_p))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 151;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)";
Debug.ShouldStop(4194304);
_thisprod = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_thisprod = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _prodspromo.runMethod(false,"Get",(Object)((_p))));Debug.locals.put("thisProd", _thisprod);Debug.locals.put("thisProd", _thisprod);
 BA.debugLineNum = 152;BA.debugLine="If thisLog Then Log(thisProd)";
Debug.ShouldStop(8388608);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","325821255",BA.ObjectToString(_thisprod),0);};
 BA.debugLineNum = 153;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
Debug.ShouldStop(16777216);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_createlistitem" /*RemoteObject*/ ,(Object)(RemoteObject.concat(c_promos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_p)),c_promos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Hay "),_invdisppromo.runMethod(false,"Get",(Object)((_p))),RemoteObject.createImmutable(" $"),_thisprod.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))))),(Object)(BA.ObjectToString(_thisprod.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))))),(Object)(BA.numberCast(int.class, _invdisppromo.runMethod(false,"Get",(Object)((_p))))),(Object)(__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_promos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50)))),RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper"), c_promos.__c.getField(false,"Null")),(Object)(_p)).getObject()),(Object)((_p)));
 };
 }
}Debug.locals.put("p", _p);
;
 BA.debugLineNum = 156;BA.debugLine="b_terminar1.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 157;BA.debugLine="b_continuar.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 158;BA.debugLine="cuentaProds";
Debug.ShouldStop(536870912);
__ref.runClassMethod (keymon.lat.medicomed.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 159;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}