package SHARK2.keymon.com.mx;

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",15,__ref.getField(false, "ba"),__ref,216);
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 = 216;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 217;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(16777216);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 218;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(33554432);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 219;BA.debugLine="prodsFijosTot = 0";
Debug.ShouldStop(67108864);
__ref.setField ("_prodsfijostot" /*RemoteObject*/ ,BA.numberCast(float.class, 0));
 BA.debugLineNum = 220;BA.debugLine="Dim pf As List = mp.Get(\"prodsFijos\")";
Debug.ShouldStop(134217728);
_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 = 221;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\"";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("<",_pf.runMethod(true,"getSize"),BA.numberCast(double.class, 1))) { 
_pf.runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("Sin productos fijos."))));};
 BA.debugLineNum = 225;BA.debugLine="prodsIds.clear";
Debug.ShouldStop(1);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 226;BA.debugLine="prodsCants.clear";
Debug.ShouldStop(2);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 227;BA.debugLine="prodsPrecios.clear";
Debug.ShouldStop(4);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 228;BA.debugLine="prodsIds.Add(estaPromo)";
Debug.ShouldStop(8);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((__ref.getField(true,"_estapromo" /*RemoteObject*/ ))));
 BA.debugLineNum = 229;BA.debugLine="prodsCants.Add(et_promoCant.text.As(Int))";
Debug.ShouldStop(16);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(((BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"))))));
 BA.debugLineNum = 230;BA.debugLine="prodsPrecios.Add(0)";
Debug.ShouldStop(32);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(RemoteObject.createImmutable((0))));
 BA.debugLineNum = 231;BA.debugLine="For Each p As String In pf";
Debug.ShouldStop(64);
{
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 = 233;BA.debugLine="If mp.Get(\"prodsFijosPiezas\").As(List).Size > 0";
Debug.ShouldStop(256);
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 = 234;BA.debugLine="Private tpi As String = mp.Get(\"prodsFijosPieza";
Debug.ShouldStop(512);
_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 = 236;BA.debugLine="Private tpi As String = 0";
Debug.ShouldStop(2048);
_tpi = BA.NumberToString(0);Debug.locals.put("tpi", _tpi);Debug.locals.put("tpi", _tpi);
 };
 BA.debugLineNum = 238;BA.debugLine="If mp.Get(\"prodsFijosPrecios\").As(List).Size > 0";
Debug.ShouldStop(8192);
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 = 239;BA.debugLine="Private tpr As String = mp.Get(\"prodsFijosPreci";
Debug.ShouldStop(16384);
_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 = 241;BA.debugLine="Private tpr As String = 0";
Debug.ShouldStop(65536);
_tpr = BA.NumberToString(0);Debug.locals.put("tpr", _tpr);Debug.locals.put("tpr", _tpr);
 };
 BA.debugLineNum = 243;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)";
Debug.ShouldStop(262144);
__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 = 244;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
Debug.ShouldStop(524288);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521168156",RemoteObject.concat(RemoteObject.createImmutable("|"),_tpi,RemoteObject.createImmutable("|"),_p),0);};
 BA.debugLineNum = 245;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
Debug.ShouldStop(1048576);
_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 = 246;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
Debug.ShouldStop(2097152);
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 = 247;BA.debugLine="cont = cont+1";
Debug.ShouldStop(4194304);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 250;BA.debugLine="prodsIds.Add(p)";
Debug.ShouldStop(33554432);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_p)));
 BA.debugLineNum = 251;BA.debugLine="prodsCants.Add(tpi.As(Int)*et_promoCant.text.As(";
Debug.ShouldStop(67108864);
__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 = 252;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int";
Debug.ShouldStop(134217728);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_tpr)));
 }
}Debug.locals.put("p", _p);
;
 BA.debugLineNum = 254;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
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",15,__ref.getField(false, "ba"),__ref,556);
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("SHARK2.keymon.com.mx.c_productos");
 BA.debugLineNum = 556;BA.debugLine="Private Sub b_continuar_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 557;BA.debugLine="cuentaProds";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 558;BA.debugLine="Log(\"============================================";
Debug.ShouldStop(8192);
c_promos.__c.runVoidMethod ("LogImpl","522020098",RemoteObject.createImmutable("===================================================================="),0);
 BA.debugLineNum = 559;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
Debug.ShouldStop(16384);
{
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 = 560;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(32768);
_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 = 561;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(65536);
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)(c_promos._subs.runMethod(true,"_traecliente" /*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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 563;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
Debug.ShouldStop(262144);
{
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 = 564;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(524288);
_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 = 565;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(1048576);
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)(c_promos._subs.runMethod(true,"_traecliente" /*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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 579;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(4);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 582;BA.debugLine="Private prodspage As C_Productos";
Debug.ShouldStop(32);
_prodspage = RemoteObject.createNew ("SHARK2.keymon.com.mx.c_productos");Debug.locals.put("prodspage", _prodspage);
 BA.debugLineNum = 583;BA.debugLine="If prodspage.IsInitialized Then";
Debug.ShouldStop(64);
if (_prodspage.runMethod(true,"IsInitialized" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 584;BA.debugLine="prodspage.lv_catalogos.Visible = True";
Debug.ShouldStop(128);
_prodspage.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 585;BA.debugLine="prodspage.lv_promos.Visible = False";
Debug.ShouldStop(256);
_prodspage.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 586;BA.debugLine="prodspage.clv_productos.AsView.Visible = False";
Debug.ShouldStop(512);
_prodspage.getField(false,"_clv_productos" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 };
 BA.debugLineNum = 588;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
Debug.ShouldStop(2048);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 589;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(4096);
c_promos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 590;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",15,__ref.getField(false, "ba"),__ref,321);
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 = 321;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(1);
 BA.debugLineNum = 322;BA.debugLine="If prodsVar1 < prodsVarReq Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_prodsvar1" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_prodsvarreq" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 323;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFrom";
Debug.ShouldStop(4);
_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 = 324;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel";
Debug.ShouldStop(8);
_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 = 325;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(16);
_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 = 327;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4";
Debug.ShouldStop(64);
_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 = 330;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T";
Debug.ShouldStop(512);
_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 = 332;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
Debug.ShouldStop(2048);
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 = 333;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
Debug.ShouldStop(4096);
_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 = 334;BA.debugLine="cuentaProds";
Debug.ShouldStop(8192);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 338;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(131072);
_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 = 340;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(524288);
_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 = 341;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci";
Debug.ShouldStop(1048576);
_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 = 343;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(4194304);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 };
 BA.debugLineNum = 349;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmas2_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMas2_Click (c_promos) ","c_promos",15,__ref.getField(false, "ba"),__ref,376);
if (RapidSub.canDelegate("b_prodmas2_click")) { return __ref.runUserSub(false, "c_promos","b_prodmas2_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 = 376;BA.debugLine="Sub b_prodMas2_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 378;BA.debugLine="If prodsVar2 < prodsVarReq2 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_prodsvar2" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 379;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFro";
Debug.ShouldStop(67108864);
_index = __ref.getField(false,"_clv_prodsvariabes2" /*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 = 380;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPane";
Debug.ShouldStop(134217728);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 381;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(268435456);
_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 = 383;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4";
Debug.ShouldStop(1073741824);
_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 = 386;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T";
Debug.ShouldStop(2);
_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 = 388;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
Debug.ShouldStop(8);
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 = 389;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
Debug.ShouldStop(16);
_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 = 390;BA.debugLine="cuentaProds";
Debug.ShouldStop(32);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 394;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(512);
_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 = 396;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC";
Debug.ShouldStop(2048);
_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 = 397;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci";
Debug.ShouldStop(4096);
_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 = 399;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(16384);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 };
 BA.debugLineNum = 405;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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",15,__ref.getField(false, "ba"),__ref,297);
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 = 297;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 298;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFromV";
Debug.ShouldStop(512);
_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 = 299;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel(";
Debug.ShouldStop(1024);
_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 = 300;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(2048);
_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 = 302;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)";
Debug.ShouldStop(8192);
_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 = 304;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(32768);
_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 = 305;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(65536);
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 = 308;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(524288);
_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 = 310;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(2097152);
_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 = 311;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(4194304);
_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 = 313;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(16777216);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 BA.debugLineNum = 314;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_prodid)));};
 BA.debugLineNum = 316;BA.debugLine="cuentaProds";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 319;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenos2_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenos2_Click (c_promos) ","c_promos",15,__ref.getField(false, "ba"),__ref,352);
if (RapidSub.canDelegate("b_prodmenos2_click")) { return __ref.runUserSub(false, "c_promos","b_prodmenos2_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 = 352;BA.debugLine="Sub b_prodMenos2_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 353;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFrom";
Debug.ShouldStop(1);
_index = __ref.getField(false,"_clv_prodsvariabes2" /*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 = 354;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPanel";
Debug.ShouldStop(2);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 355;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(4);
_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 = 357;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)";
Debug.ShouldStop(16);
_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 = 359;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(64);
_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 = 360;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(128);
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 = 363;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(1024);
_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 = 365;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa";
Debug.ShouldStop(4096);
_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 = 366;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(8192);
_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 = 368;BA.debugLine="promosMap.Put(prodId, tmpMap)";
Debug.ShouldStop(32768);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_prodid)),(Object)((_tmpmap.getObject())));
 BA.debugLineNum = 369;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_prodid)));};
 BA.debugLineNum = 371;BA.debugLine="cuentaProds";
Debug.ShouldStop(262144);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 374;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
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",15,__ref.getField(false, "ba"),__ref,512);
if (RapidSub.canDelegate("b_promomas_click")) { return __ref.runUserSub(false, "c_promos","b_promomas_click", __ref);}
 BA.debugLineNum = 512;BA.debugLine="Private Sub b_promoMas_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 513;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 = 514;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 = 515;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 = 516;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,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 517;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2";
Debug.ShouldStop(16);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables2 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 = 518;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
Debug.ShouldStop(32);
__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 = 519;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.A";
Debug.ShouldStop(64);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 520;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
Debug.ShouldStop(128);
__ref.setField ("_prodsvarreq2" /*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 = 521;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
Debug.ShouldStop(256);
c_promos.__c.runVoidMethod ("LogImpl","521889033",(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 = 523;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
Debug.ShouldStop(1024);
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 = 524;BA.debugLine="cuentaProds";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 525;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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",15,__ref.getField(false, "ba"),__ref,498);
if (RapidSub.canDelegate("b_promomenos_click")) { return __ref.runUserSub(false, "c_promos","b_promomenos_click", __ref);}
 BA.debugLineNum = 498;BA.debugLine="Private Sub b_promoMenos_Click";
Debug.ShouldStop(131072);
 BA.debugLineNum = 499;BA.debugLine="If et_promoCant.Text > 1 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 500;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) -";
Debug.ShouldStop(524288);
__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 = 502;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 * e";
Debug.ShouldStop(2097152);
__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 = 503;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
Debug.ShouldStop(4194304);
__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,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 504;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables2 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 = 505;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
Debug.ShouldStop(16777216);
__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 = 506;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.As";
Debug.ShouldStop(33554432);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 507;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text.";
Debug.ShouldStop(67108864);
__ref.setField ("_prodsvarreq2" /*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 = 508;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
Debug.ShouldStop(134217728);
c_promos.__c.runVoidMethod ("LogImpl","521823498",(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 = 509;BA.debugLine="cuentaProds";
Debug.ShouldStop(268435456);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 510;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",15,__ref.getField(false, "ba"),__ref,527);
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 = 527;BA.debugLine="Private Sub b_terminar1_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 528;BA.debugLine="cuentaProds";
Debug.ShouldStop(32768);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 529;BA.debugLine="Log(\"============================================";
Debug.ShouldStop(65536);
c_promos.__c.runVoidMethod ("LogImpl","521954562",RemoteObject.createImmutable("===================================================================="),0);
 BA.debugLineNum = 530;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
Debug.ShouldStop(131072);
{
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 = 531;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(262144);
_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 = 532;BA.debugLine="If prodsCants.Get(t) > 0 Then Subs.guardaProduct";
Debug.ShouldStop(524288);
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)(c_promos._subs.runMethod(true,"_traecliente" /*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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));};
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 534;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr";
Debug.ShouldStop(2097152);
{
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 = 535;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods";
Debug.ShouldStop(4194304);
_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 = 536;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsPr";
Debug.ShouldStop(8388608);
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)(c_promos._subs.runMethod(true,"_traecliente" /*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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 }
}Debug.locals.put("t", _t);
;
 BA.debugLineNum = 550;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 551;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True";
Debug.ShouldStop(64);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 552;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(128);
c_promos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 553;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click";
Debug.ShouldStop(256);
c_promos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 BA.debugLineNum = 554;BA.debugLine="End Sub";
Debug.ShouldStop(512);
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",15,__ref.getField(false, "ba"),__ref,68);
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 = 68;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(8);
 BA.debugLineNum = 70;BA.debugLine="prodsIds.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 71;BA.debugLine="prodsCants.Initialize";
Debug.ShouldStop(64);
__ref.getField(false,"_prodscants" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 72;BA.debugLine="prodsPrecios.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_prodsprecios" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 73;BA.debugLine="prodsIds2.Initialize";
Debug.ShouldStop(256);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 74;BA.debugLine="prodsCants2.Initialize";
Debug.ShouldStop(512);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 75;BA.debugLine="prodsPrecios2.Initialize";
Debug.ShouldStop(1024);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 76;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(2048);
_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 = 77;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(4096);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 78;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(8192);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 80;BA.debugLine="If laPromo <> \"\" Then muestraPromo(laPromo, elCli";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_lapromo" /*RemoteObject*/ ),BA.ObjectToString(""))) { 
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_muestrapromo" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_lapromo" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_elcliente" /*RemoteObject*/ )));};
 BA.debugLineNum = 81;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
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",15,__ref.getField(false, "ba"),__ref,53);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_promos","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 53;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 54;BA.debugLine="Root = Root1";
Debug.ShouldStop(2097152);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 56;BA.debugLine="Root.LoadLayout(\"promociones\")";
Debug.ShouldStop(8388608);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("promociones")),__ref.getField(false, "ba"));
 BA.debugLineNum = 58;BA.debugLine="p_promociones.Height= Root.Height";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 59;BA.debugLine="p_promociones.Width= Root.Width";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 61;BA.debugLine="promosMap.Initialize";
Debug.ShouldStop(268435456);
__ref.getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 62;BA.debugLine="p_promociones.Top=0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setTop",BA.numberCast(int.class, 0));
 BA.debugLineNum = 63;BA.debugLine="p_promociones.Left=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_promociones" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, 0));
 BA.debugLineNum = 64;BA.debugLine="b_terminar1.Left = Root.Width - (b_terminar1.Widt";
Debug.ShouldStop(-2147483648);
__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 = 65;BA.debugLine="b_continuar.Left = Root.Width - b_terminar1.Width";
Debug.ShouldStop(1);
__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 = 66;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
c_promos._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_promos._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI";
c_promos._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_promos._xui);
 //BA.debugLineNum = 4;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 = 5;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 = 6;BA.debugLine="Private clv_prodsVariabes, clv_prodsVariabes2 As";
c_promos._clv_prodsvariabes = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_prodsvariabes",c_promos._clv_prodsvariabes);
c_promos._clv_prodsvariabes2 = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_prodsvariabes2",c_promos._clv_prodsvariabes2);
 //BA.debugLineNum = 7;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 = 8;BA.debugLine="Private l_prodsVariables, l_prodsVariables2 As La";
c_promos._l_prodsvariables = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodsvariables",c_promos._l_prodsvariables);
c_promos._l_prodsvariables2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodsvariables2",c_promos._l_prodsvariables2);
 //BA.debugLineNum = 9;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 = 10;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 = 11;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 = 12;BA.debugLine="Private b_prodMenos, b_prodMenos2 As Button";
c_promos._b_prodmenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenos",c_promos._b_prodmenos);
c_promos._b_prodmenos2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenos2",c_promos._b_prodmenos2);
 //BA.debugLineNum = 13;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 = 14;BA.debugLine="Private b_prodMas, b_prodMas2 As Button";
c_promos._b_prodmas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmas",c_promos._b_prodmas);
c_promos._b_prodmas2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmas2",c_promos._b_prodmas2);
 //BA.debugLineNum = 15;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 = 16;BA.debugLine="Dim totalProds As Int = 0";
c_promos._totalprods = BA.numberCast(int.class, 0);__ref.setField("_totalprods",c_promos._totalprods);
 //BA.debugLineNum = 17;BA.debugLine="Dim prodsVar1 As Int = 0";
c_promos._prodsvar1 = BA.numberCast(int.class, 0);__ref.setField("_prodsvar1",c_promos._prodsvar1);
 //BA.debugLineNum = 18;BA.debugLine="Dim prodsVar2 As Int = 0";
c_promos._prodsvar2 = BA.numberCast(int.class, 0);__ref.setField("_prodsvar2",c_promos._prodsvar2);
 //BA.debugLineNum = 19;BA.debugLine="Dim prodsVarReq As Int = 0";
c_promos._prodsvarreq = BA.numberCast(int.class, 0);__ref.setField("_prodsvarreq",c_promos._prodsvarreq);
 //BA.debugLineNum = 20;BA.debugLine="Dim prodsVarReq_ As Int = 0";
c_promos._prodsvarreq_ = BA.numberCast(int.class, 0);__ref.setField("_prodsvarreq_",c_promos._prodsvarreq_);
 //BA.debugLineNum = 21;BA.debugLine="Dim prodsVarReq2 As Int = 0";
c_promos._prodsvarreq2 = BA.numberCast(int.class, 0);__ref.setField("_prodsvarreq2",c_promos._prodsvarreq2);
 //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, p_prodsVariables2 As Pa";
c_promos._p_prodsvariables = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prodsvariables",c_promos._p_prodsvariables);
c_promos._p_prodsvariables2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prodsvariables2",c_promos._p_prodsvariables2);
 //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="Dim su As StringUtils";
c_promos._su = RemoteObject.createNew ("anywheresoftware.b4a.objects.StringUtils");__ref.setField("_su",c_promos._su);
 //BA.debugLineNum = 45;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",15,__ref.getField(false, "ba"),__ref,256);
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 = 256;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 257;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(1);
_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 = 258;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(2);
_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 = 259;BA.debugLine="p.LoadLayout(\"prodItem1\")";
Debug.ShouldStop(4);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem1")),__ref.getField(false, "ba"));
 BA.debugLineNum = 260;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(8);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 261;BA.debugLine="l_prodX.Text = Text";
Debug.ShouldStop(16);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_text));
 BA.debugLineNum = 262;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(32);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 265;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_";
Debug.ShouldStop(256);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_su" /*RemoteObject*/ ).runMethod(true,"MeasureMultilineTextHeight",(Object)((__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).getObject())),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(20)}, "+",1, 1));
 BA.debugLineNum = 266;BA.debugLine="If p_prods.Height < Height Then p_prods.Height =";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("<",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"),BA.numberCast(double.class, _height))) { 
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",_height);};
 BA.debugLineNum = 267;BA.debugLine="l_prodX.Height = p_prods.Height";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 268;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 269;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(4096);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 270;BA.debugLine="et_pCant.BringToFront";
Debug.ShouldStop(8192);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 272;BA.debugLine="p.Height = p_prods.Height";
Debug.ShouldStop(32768);
_p.runMethod(true,"setHeight",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 273;BA.debugLine="Return p";
Debug.ShouldStop(65536);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 274;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem2(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem2 (c_promos) ","c_promos",15,__ref.getField(false, "ba"),__ref,276);
if (RapidSub.canDelegate("createlistitem2")) { return __ref.runUserSub(false, "c_promos","createlistitem2", __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 = 276;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
Debug.ShouldStop(524288);
 BA.debugLineNum = 277;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(1048576);
_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 = 278;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(2097152);
_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 = 279;BA.debugLine="p.LoadLayout(\"prodItem2\")";
Debug.ShouldStop(4194304);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem2")),__ref.getField(false, "ba"));
 BA.debugLineNum = 280;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 281;BA.debugLine="l_prodX.Text = Text";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_text));
 BA.debugLineNum = 282;BA.debugLine="l_prodX.TextSize = 15";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 285;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_";
Debug.ShouldStop(268435456);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_su" /*RemoteObject*/ ).runMethod(true,"MeasureMultilineTextHeight",(Object)((__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).getObject())),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(20)}, "+",1, 1));
 BA.debugLineNum = 286;BA.debugLine="If p_prods.Height < Height Then p_prods.Height =";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("<",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"),BA.numberCast(double.class, _height))) { 
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",_height);};
 BA.debugLineNum = 287;BA.debugLine="l_prodX.Height = p_prods.Height";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 289;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(1);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 290;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId";
Debug.ShouldStop(2);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(_preciou,RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid)));
 BA.debugLineNum = 291;BA.debugLine="et_pCant.BringToFront";
Debug.ShouldStop(4);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 293;BA.debugLine="p.Height = p_prods.Height";
Debug.ShouldStop(16);
_p.runMethod(true,"setHeight",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 294;BA.debugLine="Return p";
Debug.ShouldStop(32);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 295;BA.debugLine="End Sub";
Debug.ShouldStop(64);
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",15,__ref.getField(false, "ba"),__ref,413);
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");
RemoteObject _cant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
 BA.debugLineNum = 413;BA.debugLine="Sub cuentaProds";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 416;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(-2147483648);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 418;BA.debugLine="prodsIds2.Clear";
Debug.ShouldStop(2);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 419;BA.debugLine="prodsCants2.Clear";
Debug.ShouldStop(4);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 420;BA.debugLine="prodsPrecios2.Clear";
Debug.ShouldStop(8);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 421;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(16);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 422;BA.debugLine="prodsVar1 = 0";
Debug.ShouldStop(32);
__ref.setField ("_prodsvar1" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 423;BA.debugLine="prodsVar2 = 0";
Debug.ShouldStop(64);
__ref.setField ("_prodsvar2" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 424;BA.debugLine="agregaFijosALista(Subs.traePromo(estaPromo, esteC";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.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 = 426;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro";
Debug.ShouldStop(512);
_tcpf = BA.numberCast(float.class, 0);Debug.locals.put("tcpf", _tcpf);Debug.locals.put("tcpf", _tcpf);
 BA.debugLineNum = 427;BA.debugLine="For pf = 0 To prodsIds.Size - 1";
Debug.ShouldStop(1024);
{
final int step10 = 1;
final int limit10 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_prodsids" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pf = 0 ;
for (;(step10 > 0 && _pf <= limit10) || (step10 < 0 && _pf >= limit10) ;_pf = ((int)(0 + _pf + step10))  ) {
Debug.locals.put("pf", _pf);
 BA.debugLineNum = 428;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
Debug.ShouldStop(2048);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692431",(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 = 429;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
Debug.ShouldStop(4096);
_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 = 432;BA.debugLine="totalCompra = tcpf";
Debug.ShouldStop(32768);
__ref.setField ("_totalcompra" /*RemoteObject*/ ,_tcpf);
 BA.debugLineNum = 433;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij";
Debug.ShouldStop(65536);
__ref.setField ("_totalprods" /*RemoteObject*/ ,__ref.getField(true,"_tpf" /*RemoteObject*/ ));
 BA.debugLineNum = 435;BA.debugLine="For i = 0 To clv_prodsVariabes.GetSize - 1";
Debug.ShouldStop(262144);
{
final int step16 = 1;
final int limit16 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step16 > 0 && _i <= limit16) || (step16 < 0 && _i >= limit16) ;_i = ((int)(0 + _i + step16))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 436;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes.GetPan";
Debug.ShouldStop(524288);
_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 = 437;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(1048576);
_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 = 438;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
Debug.ShouldStop(2097152);
_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 = 439;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_cant1.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_cant1.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 440;BA.debugLine="totalProds = totalProds + cant1.Text";
Debug.ShouldStop(8388608);
__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 = 441;BA.debugLine="prodsVar1 = prodsVar1 + cant1.Text";
Debug.ShouldStop(16777216);
__ref.setField ("_prodsvar1" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvar1" /*RemoteObject*/ ),BA.numberCast(double.class, _cant1.runMethod(true,"getText"))}, "+",1, 0)));
 BA.debugLineNum = 442;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant";
Debug.ShouldStop(33554432);
_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 = 443;BA.debugLine="If cant1.Text > esteTag.Get(1) Then cant1.Text =";
Debug.ShouldStop(67108864);
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 = 444;BA.debugLine="If cant1.Text > 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cant1.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 446;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c";
Debug.ShouldStop(536870912);
__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 = 447;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
Debug.ShouldStop(1073741824);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692450",(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 = 448;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 449;BA.debugLine="prodsCants2.Add(cant1.Text)";
Debug.ShouldStop(1);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_cant1.runMethod(true,"getText"))));
 BA.debugLineNum = 450;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
Debug.ShouldStop(2);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))));
 };
 BA.debugLineNum = 452;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
Debug.ShouldStop(8);
__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 = 453;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
Debug.ShouldStop(16);
__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 = 456;BA.debugLine="For i = 0 To clv_prodsVariabes2.GetSize - 1";
Debug.ShouldStop(128);
{
final int step35 = 1;
final int limit35 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step35 > 0 && _i <= limit35) || (step35 < 0 && _i >= limit35) ;_i = ((int)(0 + _i + step35))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 457;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes2.GetPa";
Debug.ShouldStop(256);
_p0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p0 = __ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("p0", _p0);Debug.locals.put("p0", _p0);
 BA.debugLineNum = 458;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(512);
_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 = 459;BA.debugLine="Private cant2 As B4XView = p.GetView(2).GetView(";
Debug.ShouldStop(1024);
_cant2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_cant2 = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("cant2", _cant2);Debug.locals.put("cant2", _cant2);
 BA.debugLineNum = 460;BA.debugLine="totalProds = totalProds + cant2.Text";
Debug.ShouldStop(2048);
__ref.setField ("_totalprods" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, _cant2.runMethod(true,"getText"))}, "+",1, 0)));
 BA.debugLineNum = 461;BA.debugLine="prodsVar2 = prodsVar2 + cant2.Text";
Debug.ShouldStop(4096);
__ref.setField ("_prodsvar2" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvar2" /*RemoteObject*/ ),BA.numberCast(double.class, _cant2.runMethod(true,"getText"))}, "+",1, 0)));
 BA.debugLineNum = 462;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant";
Debug.ShouldStop(8192);
_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(_cant2.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 463;BA.debugLine="If cant2.Text > esteTag.Get(1) Then cant2.Text =";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cant2.runMethod(true,"getText")),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))))) { 
_cant2.runMethod(true,"setText",BA.ObjectToCharSequence(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))));};
 BA.debugLineNum = 464;BA.debugLine="If cant2.Text > 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cant2.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 466;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c";
Debug.ShouldStop(131072);
__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, _cant2.runMethod(true,"getText"))}, "*",0, 0))}, "+",1, 0)));
 BA.debugLineNum = 467;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
Debug.ShouldStop(262144);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692470",(RemoteObject.concat(RemoteObject.createImmutable("Cant: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cant2.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 = 468;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
Debug.ShouldStop(524288);
__ref.getField(false,"_prodsids2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 469;BA.debugLine="prodsCants2.Add(cant2.Text)";
Debug.ShouldStop(1048576);
__ref.getField(false,"_prodscants2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_cant2.runMethod(true,"getText"))));
 BA.debugLineNum = 470;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))";
Debug.ShouldStop(2097152);
__ref.getField(false,"_prodsprecios2" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))));
 };
 BA.debugLineNum = 472;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
Debug.ShouldStop(8388608);
__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 = 473;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
Debug.ShouldStop(16777216);
__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 = 476;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
Debug.ShouldStop(134217728);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692479",(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 = 477;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
Debug.ShouldStop(268435456);
__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 = 478;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
Debug.ShouldStop(536870912);
__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 = 479;BA.debugLine="If totalProds < prodsVarReq + prodsVarReq2 + tpf";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),__ref.getField(true,"_tpf" /*RemoteObject*/ )}, "++",2, 1))) || RemoteObject.solveBoolean(">",__ref.getField(true,"_totalprods" /*RemoteObject*/ ),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ),__ref.getField(true,"_tpf" /*RemoteObject*/ )}, "++",2, 1)))) { 
 BA.debugLineNum = 481;BA.debugLine="b_terminar1.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 482;BA.debugLine="b_continuar.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 485;BA.debugLine="b_terminar1.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 486;BA.debugLine="b_continuar.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 };
 BA.debugLineNum = 488;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
Debug.ShouldStop(128);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692491",(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 = 489;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
Debug.ShouldStop(256);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521692492",(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 = 491;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
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",15,__ref.getField(false, "ba"),__ref,493);
if (RapidSub.canDelegate("et_pcant_focuschanged")) { return __ref.runUserSub(false, "c_promos","et_pcant_focuschanged", __ref, _hasfocus);}
Debug.locals.put("HasFocus", _hasfocus);
 BA.debugLineNum = 493;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
Debug.ShouldStop(4096);
 BA.debugLineNum = 494;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
Debug.ShouldStop(8192);
c_promos.__c.runVoidMethod ("LogImpl","521757953",BA.ObjectToString("focus changed"),c_promos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 495;BA.debugLine="cuentaProds";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 496;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
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",15,__ref.getField(false, "ba"),__ref,408);
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 = 408;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 410;BA.debugLine="cuentaProds";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 411;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_promocant_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("et_promoCant_TextChanged (c_promos) ","c_promos",15,__ref.getField(false, "ba"),__ref,603);
if (RapidSub.canDelegate("et_promocant_textchanged")) { return __ref.runUserSub(false, "c_promos","et_promocant_textchanged", __ref, _old, _new);}
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 603;BA.debugLine="Private Sub et_promoCant_TextChanged (Old As Strin";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 605;BA.debugLine="If et_promoCant.Text = \"\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 606;BA.debugLine="et_promoCant.Text = 1";
Debug.ShouldStop(536870912);
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(1));
 };
 BA.debugLineNum = 610;BA.debugLine="If et_promoCant.Text < maxCantPromos Then";
Debug.ShouldStop(2);
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 = 612;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 *";
Debug.ShouldStop(8);
__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 = 613;BA.debugLine="l_prodsVariables.Text = $\"Productos variables re";
Debug.ShouldStop(16);
__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,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 614;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2";
Debug.ShouldStop(32);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables2 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 = 615;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)";
Debug.ShouldStop(64);
__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 = 616;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.A";
Debug.ShouldStop(128);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_prodsvarreq_" /*RemoteObject*/ ),(BA.numberCast(int.class, __ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethod(true,"getText")))}, "*",0, 1));
 BA.debugLineNum = 617;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
Debug.ShouldStop(256);
__ref.setField ("_prodsvarreq2" /*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 = 618;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
Debug.ShouldStop(512);
c_promos.__c.runVoidMethod ("LogImpl","522085647",(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 = 620;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
Debug.ShouldStop(2048);
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 = 621;BA.debugLine="cuentaProds";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 622;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",15,__ref.getField(false, "ba"),__ref,48);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_promos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 48;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(32768);
 BA.debugLineNum = 49;BA.debugLine="Return Me";
Debug.ShouldStop(65536);
if (true) return __ref;
 BA.debugLineNum = 50;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(null);
}
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",15,__ref.getField(false, "ba"),__ref,84);
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 _listapv = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _listapreciospv = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _listapv2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _listapreciospv2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _pv = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _pv2 = 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 _indicepv = RemoteObject.createImmutable("");
RemoteObject _esteprecio = RemoteObject.createImmutable("");
RemoteObject _thisprod = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _indicepv2 = RemoteObject.createImmutable("");
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 84;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin";
Debug.ShouldStop(524288);
 BA.debugLineNum = 85;BA.debugLine="Private thisLog As Boolean = False";
Debug.ShouldStop(1048576);
_thislog = c_promos.__c.getField(true,"False");Debug.locals.put("thisLog", _thislog);Debug.locals.put("thisLog", _thislog);
 BA.debugLineNum = 87;BA.debugLine="estaPromo = promo";
Debug.ShouldStop(4194304);
__ref.setField ("_estapromo" /*RemoteObject*/ ,_promo);
 BA.debugLineNum = 88;BA.debugLine="esteCliente = cliente";
Debug.ShouldStop(8388608);
__ref.setField ("_estecliente" /*RemoteObject*/ ,_cliente);
 BA.debugLineNum = 89;BA.debugLine="Private mp As Map = Subs.traePromo(promo, cliente";
Debug.ShouldStop(16777216);
_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 = 90;BA.debugLine="Private prodsPromo As Map = mp.Get(\"productos\") '";
Debug.ShouldStop(33554432);
_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 = 91;BA.debugLine="Private invDispPromo As Map = Subs.traemosInventa";
Debug.ShouldStop(67108864);
_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 = 93;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
Debug.ShouldStop(268435456);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102601",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 = 94;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
Debug.ShouldStop(536870912);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102602",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 = 95;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
Debug.ShouldStop(1073741824);
__ref.setField ("_maxcantpromos" /*RemoteObject*/ ,c_promos._subs.runMethod(true,"_revisamaxpromosprodsvariablesporinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_mp)));
 BA.debugLineNum = 96;BA.debugLine="et_promoCant.Text = 1";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_et_promocant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(1));
 BA.debugLineNum = 97;BA.debugLine="l_promosCant.text = \"Max promos: \" & maxCantPromo";
Debug.ShouldStop(1);
__ref.getField(false,"_l_promoscant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Max promos: "),__ref.getField(true,"_maxcantpromos" /*RemoteObject*/ ))));
 BA.debugLineNum = 98;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(2);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 99;BA.debugLine="cs.Initialize";
Debug.ShouldStop(4);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 100;BA.debugLine="If thisLog Then Log(mp)";
Debug.ShouldStop(8);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102608",BA.ObjectToString(_mp),0);};
 BA.debugLineNum = 101;BA.debugLine="If thisLog Then Log(prodsPromo)";
Debug.ShouldStop(16);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102609",BA.ObjectToString(_prodspromo),0);};
 BA.debugLineNum = 102;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\"";
Debug.ShouldStop(32);
_listapv = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_listapv = 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("listaPV", _listapv);Debug.locals.put("listaPV", _listapv);
 BA.debugLineNum = 103;BA.debugLine="Private listaPreciosPV As List = mp.Get(\"prodsVar";
Debug.ShouldStop(64);
_listapreciospv = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_listapreciospv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesPrecios")))));Debug.locals.put("listaPreciosPV", _listapreciospv);Debug.locals.put("listaPreciosPV", _listapreciospv);
 BA.debugLineNum = 104;BA.debugLine="Private listaPV2 As List = mp.Get(\"prodsVariables";
Debug.ShouldStop(128);
_listapv2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_listapv2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariables2")))));Debug.locals.put("listaPV2", _listapv2);Debug.locals.put("listaPV2", _listapv2);
 BA.debugLineNum = 105;BA.debugLine="Private listaPreciosPV2 As List = mp.Get(\"prodsVa";
Debug.ShouldStop(256);
_listapreciospv2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_listapreciospv2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesPrecios2")))));Debug.locals.put("listaPreciosPV2", _listapreciospv2);Debug.locals.put("listaPreciosPV2", _listapreciospv2);
 BA.debugLineNum = 110;BA.debugLine="l_promoDesc.Text = cs.Color(Colors.RGB(100,149,23";
Debug.ShouldStop(8192);
__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 = 111;BA.debugLine="prodsFijosTot = 0";
Debug.ShouldStop(16384);
__ref.setField ("_prodsfijostot" /*RemoteObject*/ ,BA.numberCast(float.class, 0));
 BA.debugLineNum = 114;BA.debugLine="Dim pv As List = mp.Get(\"prodsVariables\")";
Debug.ShouldStop(131072);
_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 = 115;BA.debugLine="Dim pv2 As List = mp.Get(\"prodsVariables2\")";
Debug.ShouldStop(262144);
_pv2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_pv2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariables2")))));Debug.locals.put("pv2", _pv2);Debug.locals.put("pv2", _pv2);
 BA.debugLineNum = 116;BA.debugLine="If thisLog Then Log(mp)";
Debug.ShouldStop(524288);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102624",BA.ObjectToString(_mp),0);};
 BA.debugLineNum = 117;BA.debugLine="tpf = 0";
Debug.ShouldStop(1048576);
__ref.setField ("_tpf" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 118;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
Debug.ShouldStop(2097152);
{
final RemoteObject group26 = (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 groupLen26 = group26.runMethod(true,"getSize").<Integer>get()
;int index26 = 0;
;
for (; index26 < groupLen26;index26++){
_pfp = BA.numberCast(int.class, group26.runMethod(false,"Get",index26));Debug.locals.put("pfp", _pfp);
Debug.locals.put("pfp", _pfp);
 BA.debugLineNum = 119;BA.debugLine="tpf = tpf + pfp";
Debug.ShouldStop(4194304);
__ref.setField ("_tpf" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_tpf" /*RemoteObject*/ ),_pfp}, "+",1, 1));
 }
}Debug.locals.put("pfp", _pfp);
;
 BA.debugLineNum = 121;BA.debugLine="tpf2 = tpf";
Debug.ShouldStop(16777216);
__ref.setField ("_tpf2" /*RemoteObject*/ ,__ref.getField(true,"_tpf" /*RemoteObject*/ ));
 BA.debugLineNum = 123;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf})\"$";
Debug.ShouldStop(67108864);
__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 = 124;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")";
Debug.ShouldStop(134217728);
__ref.setField ("_prodsvarreq" /*RemoteObject*/ ,BA.numberCast(int.class, _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesRequeridos"))))));
 BA.debugLineNum = 125;BA.debugLine="prodsVarReq_ = prodsVarReq";
Debug.ShouldStop(268435456);
__ref.setField ("_prodsvarreq_" /*RemoteObject*/ ,__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ));
 BA.debugLineNum = 126;BA.debugLine="prodsVarReq2 = mp.Get(\"prodsVariables2Requeridos\"";
Debug.ShouldStop(536870912);
__ref.setField ("_prodsvarreq2" /*RemoteObject*/ ,BA.numberCast(int.class, _mp.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariables2Requeridos"))))));
 BA.debugLineNum = 127;BA.debugLine="prodsVarReq2_ = prodsVarReq2";
Debug.ShouldStop(1073741824);
__ref.setField ("_prodsvarreq2_" /*RemoteObject*/ ,__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ ));
 BA.debugLineNum = 129;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req";
Debug.ShouldStop(1);
__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 = 130;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r";
Debug.ShouldStop(2);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Productos variables2 requeridos: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_prodsvarreq2" /*RemoteObject*/ )))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 131;BA.debugLine="If prodsVarReq = 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_prodsvarreq" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 132;BA.debugLine="p_prodsVariables.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 134;BA.debugLine="p_prodsVariables.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 };
 BA.debugLineNum = 137;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(256);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 138;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label";
Debug.ShouldStop(512);
_label1 = __ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 139;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(1024);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 140;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(2048);
_label1.runMethod(true,"setTextColor",c_promos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 141;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip";
Debug.ShouldStop(4096);
__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 = 142;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(8192);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 144;BA.debugLine="lv_prodsFijos.Clear";
Debug.ShouldStop(32768);
__ref.getField(false,"_lv_prodsfijos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 145;BA.debugLine="agregaFijosALista(mp, True)";
Debug.ShouldStop(65536);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_agregafijosalista" /*RemoteObject*/ ,(Object)(_mp),(Object)(c_promos.__c.getField(true,"True")));
 BA.debugLineNum = 146;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
Debug.ShouldStop(131072);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102654",RemoteObject.concat(RemoteObject.createImmutable("Total prods fijos = "),__ref.getField(true,"_prodsfijostot" /*RemoteObject*/ )),0);};
 BA.debugLineNum = 148;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
Debug.ShouldStop(524288);
__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 = 149;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
Debug.ShouldStop(1048576);
__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 = 155;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
Debug.ShouldStop(67108864);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102663",(RemoteObject.concat(RemoteObject.createImmutable("PV1: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pv.runMethod(true,"getSize")))),RemoteObject.createImmutable(", "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pv.getObject()))),RemoteObject.createImmutable(""))),0);};
 BA.debugLineNum = 156;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
Debug.ShouldStop(134217728);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102664",(RemoteObject.concat(RemoteObject.createImmutable("PV2: "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pv2.runMethod(true,"getSize")))),RemoteObject.createImmutable(", "),c_promos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pv2.getObject()))),RemoteObject.createImmutable(""))),0);};
 BA.debugLineNum = 157;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
Debug.ShouldStop(268435456);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102665",RemoteObject.concat(RemoteObject.createImmutable("invDisp="),_invdisppromo),0);};
 BA.debugLineNum = 158;BA.debugLine="clv_prodsVariabes.Clear";
Debug.ShouldStop(536870912);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 159;BA.debugLine="clv_prodsVariabes2.Clear";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 160;BA.debugLine="For Each p As String In pv";
Debug.ShouldStop(-2147483648);
{
final RemoteObject group58 = _pv;
final int groupLen58 = group58.runMethod(true,"getSize").<Integer>get()
;int index58 = 0;
;
for (; index58 < groupLen58;index58++){
_p = BA.ObjectToString(group58.runMethod(false,"Get",index58));Debug.locals.put("p", _p);
Debug.locals.put("p", _p);
 BA.debugLineNum = 161;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
Debug.ShouldStop(1);
if (_invdisppromo.runMethod(true,"ContainsKey",(Object)((_p))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 162;BA.debugLine="Private indicePV = listaPV.IndexOf(p)";
Debug.ShouldStop(2);
_indicepv = BA.NumberToString(_listapv.runMethod(true,"IndexOf",(Object)((_p))));Debug.locals.put("indicePV", _indicepv);Debug.locals.put("indicePV", _indicepv);
 BA.debugLineNum = 164;BA.debugLine="Private estePrecio = listaPreciosPV.Get(indiceP";
Debug.ShouldStop(8);
_esteprecio = BA.ObjectToString(_listapreciospv.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _indicepv))));Debug.locals.put("estePrecio", _esteprecio);Debug.locals.put("estePrecio", _esteprecio);
 BA.debugLineNum = 169;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)";
Debug.ShouldStop(256);
_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 = 170;BA.debugLine="If thisLog Then Log(thisProd)";
Debug.ShouldStop(512);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102678",BA.ObjectToString(_thisprod),0);};
 BA.debugLineNum = 171;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
Debug.ShouldStop(1024);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.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(" $"),_esteprecio)),(Object)(_esteprecio),(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 = 174;BA.debugLine="For Each p As String In pv2";
Debug.ShouldStop(8192);
{
final RemoteObject group67 = _pv2;
final int groupLen67 = group67.runMethod(true,"getSize").<Integer>get()
;int index67 = 0;
;
for (; index67 < groupLen67;index67++){
_p = BA.ObjectToString(group67.runMethod(false,"Get",index67));Debug.locals.put("p", _p);
Debug.locals.put("p", _p);
 BA.debugLineNum = 175;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta";
Debug.ShouldStop(16384);
if (_invdisppromo.runMethod(true,"ContainsKey",(Object)((_p))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 180;BA.debugLine="Private indicePV2 = listaPV2.IndexOf(p)";
Debug.ShouldStop(524288);
_indicepv2 = BA.NumberToString(_listapv2.runMethod(true,"IndexOf",(Object)((_p))));Debug.locals.put("indicePV2", _indicepv2);Debug.locals.put("indicePV2", _indicepv2);
 BA.debugLineNum = 183;BA.debugLine="Private estePrecio = listaPreciosPV2.Get(indice";
Debug.ShouldStop(4194304);
_esteprecio = BA.ObjectToString(_listapreciospv2.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _indicepv2))));Debug.locals.put("estePrecio", _esteprecio);Debug.locals.put("estePrecio", _esteprecio);
 BA.debugLineNum = 188;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)";
Debug.ShouldStop(134217728);
_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 = 189;BA.debugLine="If thisLog Then Log(thisProd)";
Debug.ShouldStop(268435456);
if (_thislog.<Boolean>get().booleanValue()) { 
c_promos.__c.runVoidMethod ("LogImpl","521102697",BA.ObjectToString(_thisprod),0);};
 BA.debugLineNum = 190;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra";
Debug.ShouldStop(536870912);
__ref.getField(false,"_clv_prodsvariabes2" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_createlistitem2" /*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(" $"),_esteprecio)),(Object)(_esteprecio),(Object)(BA.numberCast(int.class, _invdisppromo.runMethod(false,"Get",(Object)((_p))))),(Object)(__ref.getField(false,"_clv_prodsvariabes2" /*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 = 193;BA.debugLine="If pv2.Size = 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_pv2.runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 195;BA.debugLine="l_prodsVariables2.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 196;BA.debugLine="p_prodsVariables2.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_p_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 198;BA.debugLine="p_prodsVariables.Height = 410dip";
Debug.ShouldStop(32);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setHeight",c_promos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 410))));
 BA.debugLineNum = 199;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab";
Debug.ShouldStop(64);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"setHeight",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(20)}, "-",1, 1));
 BA.debugLineNum = 203;BA.debugLine="clv_prodsVariabes.Base_Resize(clv_prodsVariabes.";
Debug.ShouldStop(1024);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(20)}, "-",1, 1))));
 }else {
 BA.debugLineNum = 205;BA.debugLine="l_prodsVariables2.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 206;BA.debugLine="p_prodsVariables2.Visible = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_prodsvariables2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"True"));
 BA.debugLineNum = 207;BA.debugLine="p_prodsVariables.Height = 210dip";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"setHeight",c_promos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 210))));
 BA.debugLineNum = 208;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab";
Debug.ShouldStop(32768);
__ref.getField(false,"_clv_prodsvariabes" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"setHeight",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prodsvariables" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(20)}, "-",1, 1));
 };
 BA.debugLineNum = 210;BA.debugLine="b_terminar1.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_b_terminar1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 211;BA.debugLine="b_continuar.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_b_continuar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_promos.__c.getField(true,"False"));
 BA.debugLineNum = 212;BA.debugLine="cuentaProds";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_promos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 213;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}