package keymon.lat.medicomed;

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

public class c_productos_subs_0 {


public static RemoteObject  _b_aceptar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_aceptar_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,734);
if (RapidSub.canDelegate("b_aceptar_click")) { return __ref.runUserSub(false, "c_productos","b_aceptar_click", __ref);}
 BA.debugLineNum = 734;BA.debugLine="Private Sub b_aceptar_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 735;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 736;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(-2147483648);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 737;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_buscar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_buscar_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,667);
if (RapidSub.canDelegate("b_buscar_click")) { return __ref.runUserSub(false, "c_productos","b_buscar_click", __ref);}
 BA.debugLineNum = 667;BA.debugLine="Private Sub b_buscar_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 668;BA.debugLine="forzarBusqueda = True";
Debug.ShouldStop(134217728);
__ref.setField ("_forzarbusqueda" /*RemoteObject*/ ,c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 669;BA.debugLine="Busca_TextChanged(\"\",BUSCA.Text)";
Debug.ShouldStop(268435456);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_busca_textchanged" /*void*/ ,(Object)(BA.ObjectToString("")),(Object)(__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 670;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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,623);
if (RapidSub.canDelegate("b_continuar_click")) { return __ref.runUserSub(false, "c_productos","b_continuar_click", __ref);}
RemoteObject _p1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _p = RemoteObject.createImmutable("");
RemoteObject _pn = RemoteObject.createImmutable("");
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 623;BA.debugLine="Private Sub b_continuar_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 624;BA.debugLine="Log(\"b_continuar_Click\")";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","324379393",RemoteObject.createImmutable("b_continuar_Click"),0);
 BA.debugLineNum = 625;BA.debugLine="cuentaProds";
Debug.ShouldStop(65536);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 626;BA.debugLine="Private p1 As Map";
Debug.ShouldStop(131072);
_p1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("p1", _p1);
 BA.debugLineNum = 627;BA.debugLine="For Each p As String In prodsMap.Keys";
Debug.ShouldStop(262144);
{
final RemoteObject group4 = __ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen4 = group4.runMethod(true,"getSize").<Integer>get()
;int index4 = 0;
;
for (; index4 < groupLen4;index4++){
_p = BA.ObjectToString(group4.runMethod(false,"Get",index4));Debug.locals.put("p", _p);
Debug.locals.put("p", _p);
 BA.debugLineNum = 628;BA.debugLine="p1 = prodsMap.Get(p)";
Debug.ShouldStop(524288);
_p1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_p))));Debug.locals.put("p1", _p1);
 BA.debugLineNum = 629;BA.debugLine="Log(p & \"|\" & p1)";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","324379398",RemoteObject.concat(_p,RemoteObject.createImmutable("|"),_p1),0);
 BA.debugLineNum = 630;BA.debugLine="Private pn As String = Subs.traeProdNombre(p)";
Debug.ShouldStop(2097152);
_pn = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_p));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 631;BA.debugLine="Subs.guardaProductoSinGestion(Subs.traeAlmacen,";
Debug.ShouldStop(4194304);
c_productos._subs.runVoidMethod ("_guardaproductosingestion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString(_p1.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))))),(Object)(BA.ObjectToString(_p1.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant")))))),(Object)(_pn),(Object)(_p),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )),(Object)(c_productos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(__ref.getField(true,"_rutausuario" /*RemoteObject*/ )),(Object)(BA.NumberToString(0)),(Object)(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 }
}Debug.locals.put("p", _p);
;
 BA.debugLineNum = 633;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","324379402",RemoteObject.createImmutable("promos-inv, prods-inv, cat-vis"),0);
 BA.debugLineNum = 634;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 635;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 636;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 637;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 638;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 639;BA.debugLine="Log(\"Continuar\")";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","324379408",RemoteObject.createImmutable("Continuar"),0);
 BA.debugLineNum = 640;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(-2147483648);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_m = c_productos._subs.runMethod(false,"_traetotalesclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("m", _m);Debug.locals.put("m", _m);
 BA.debugLineNum = 641;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(1);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 642;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(2);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 643;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,495);
if (RapidSub.canDelegate("b_prodmas_click")) { return __ref.runUserSub(false, "c_productos","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 _precio = RemoteObject.createImmutable("");
RemoteObject _inv = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
 BA.debugLineNum = 495;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 496;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(32768);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 498;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(131072);
_index = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 499;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(262144);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 500;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(524288);
_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 = 501;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(1048576);
_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, 2)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 503;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(4194304);
_precio = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 504;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(8388608);
_inv = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen")))));Debug.locals.put("inv", _inv);Debug.locals.put("inv", _inv);
 BA.debugLineNum = 505;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 507;BA.debugLine="If laCant.Text + 1 <= inv Then";
Debug.ShouldStop(67108864);
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, _inv))) { 
 BA.debugLineNum = 508;BA.debugLine="Log(NumberFormat2(laCant.Text+1,0,0,0,False))";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","324051725",c_productos.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_productos.__c.getField(true,"False"))),0);
 BA.debugLineNum = 509;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text+1,0,";
Debug.ShouldStop(268435456);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_productos.__c.getField(true,"False")))))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 511;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(1073741824);
_id = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 };
 BA.debugLineNum = 518;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(32);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_precio),(Object)(_lacant.runMethod(true,"getText")),(Object)(c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))),(Object)(_id),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )),(Object)(c_productos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(__ref.getField(true,"_rutausuario" /*RemoteObject*/ )),(Object)(BA.NumberToString(0)),(Object)(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 BA.debugLineNum = 519;BA.debugLine="cuentaProds";
Debug.ShouldStop(64);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 521;BA.debugLine="End Sub";
Debug.ShouldStop(256);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,469);
if (RapidSub.canDelegate("b_prodmenos_click")) { return __ref.runUserSub(false, "c_productos","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 _tmpmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
 BA.debugLineNum = 469;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 470;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(2097152);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 472;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(8388608);
_index = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 473;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(16777216);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 474;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(33554432);
_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 = 475;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(67108864);
_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, 2)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 477;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 479;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text-1,0,0";
Debug.ShouldStop(1073741824);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_productos.__c.getField(true,"False")))))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 480;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(-2147483648);
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 = 481;BA.debugLine="Private tmpMap As Map = clv_prods_ll.GetValue(ind";
Debug.ShouldStop(1);
_tmpmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index))));Debug.locals.put("tmpMap", _tmpmap);Debug.locals.put("tmpMap", _tmpmap);
 BA.debugLineNum = 482;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(2);
_precio = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 483;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(4);
_id = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 484;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(8);
_tmpmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap = c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("precio")),(_precio),RemoteObject.createImmutable(("cant")),(_lacant.runMethod(true,"getText")),RemoteObject.createImmutable(("almacen")),(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))}));Debug.locals.put("tmpMap", _tmpmap);Debug.locals.put("tmpMap", _tmpmap);
 BA.debugLineNum = 487;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_id)));};
 BA.debugLineNum = 490;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(512);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_precio),(Object)(_lacant.runMethod(true,"getText")),(Object)(c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))),(Object)(_id),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )),(Object)(c_productos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(__ref.getField(true,"_rutausuario" /*RemoteObject*/ )),(Object)(BA.NumberToString(0)),(Object)(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 BA.debugLineNum = 491;BA.debugLine="cuentaProds";
Debug.ShouldStop(1024);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 493;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_qr_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_QR_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,425);
if (RapidSub.canDelegate("b_qr_click")) { return __ref.runUserSub(false, "c_productos","b_qr_click", __ref);}
 BA.debugLineNum = 425;BA.debugLine="Sub b_QR_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 426;BA.debugLine="If ciclo = 1 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 427;BA.debugLine="ciclo = 2";
Debug.ShouldStop(1024);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(2));
 BA.debugLineNum = 428;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(2048);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 429;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(4096);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 430;BA.debugLine="else if ciclo = 2 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(2))) { 
 BA.debugLineNum = 431;BA.debugLine="ciclo = 3";
Debug.ShouldStop(16384);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(3));
 BA.debugLineNum = 432;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(32768);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 433;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(65536);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 434;BA.debugLine="else if ciclo = 3 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(3))) { 
 BA.debugLineNum = 435;BA.debugLine="ciclo = 4";
Debug.ShouldStop(262144);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(4));
 BA.debugLineNum = 436;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(524288);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 437;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1048576);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 438;BA.debugLine="else if ciclo = 4 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(4))) { 
 BA.debugLineNum = 439;BA.debugLine="ciclo = 5";
Debug.ShouldStop(4194304);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(5));
 BA.debugLineNum = 440;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(8388608);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 441;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16777216);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 442;BA.debugLine="else if ciclo = 5 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(5))) { 
 BA.debugLineNum = 443;BA.debugLine="ciclo = 1";
Debug.ShouldStop(67108864);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 444;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(134217728);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 445;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(268435456);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 }}}}}
;
 BA.debugLineNum = 447;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_rechazar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_rechazar_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,712);
if (RapidSub.canDelegate("b_rechazar_click")) { return __ref.runUserSub(false, "c_productos","b_rechazar_click", __ref);}
 BA.debugLineNum = 712;BA.debugLine="Private Sub b_rechazar_Click";
Debug.ShouldStop(128);
 BA.debugLineNum = 713;BA.debugLine="If folio <> \"\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_folio" /*RemoteObject*/ ),BA.ObjectToString(""))) { 
 BA.debugLineNum = 714;BA.debugLine="result =  Msgbox2($\"Seguro que desea borrar el p";
Debug.ShouldStop(512);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_productos.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Seguro que desea borrar el pedido completo?"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Haciendo clic largo sobre un producto se pueden borrar articulos independientes."))))),(Object)(BA.ObjectToCharSequence("Rechazar Pedido")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_productos.__c.runMethod(false,"LoadBitmap",(Object)(c_productos.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 715;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 716;BA.debugLine="Subs.borraPedidoClienteActual";
Debug.ShouldStop(2048);
c_productos._subs.runVoidMethod ("_borrapedidoclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 717;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 718;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
Debug.ShouldStop(8192);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_promos" /*RemoteObject*/ ).getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 719;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(16384);
c_productos.__c.runVoidMethod ("LogImpl","324903687",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 720;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(32768);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_productos.__c.getField(false,"Null")));
 BA.debugLineNum = 721;BA.debugLine="Log(\"Positivo\")";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","324903689",RemoteObject.createImmutable("Positivo"),0);
 BA.debugLineNum = 722;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(131072);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }else {
 BA.debugLineNum = 724;BA.debugLine="Log(\"NO Positivo\")";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","324903692",RemoteObject.createImmutable("NO Positivo"),0);
 BA.debugLineNum = 725;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 };
 }else {
 BA.debugLineNum = 728;BA.debugLine="Msgbox(\"CLIENTE YA SE TRANSMITIO, FAVOR DE LLAMA";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("CLIENTE YA SE TRANSMITIO, FAVOR DE LLAMAR A SOPORTE PARA ASISTENCIA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 730;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 731;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(67108864);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 732;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,577);
if (RapidSub.canDelegate("b_terminar1_click")) { return __ref.runUserSub(false, "c_productos","b_terminar1_click", __ref);}
RemoteObject _c_prods = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _textcolor = RemoteObject.createImmutable(0);
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
 BA.debugLineNum = 577;BA.debugLine="Sub b_terminar1_Click";
Debug.ShouldStop(1);
 BA.debugLineNum = 580;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete from";
Debug.ShouldStop(8);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from PEDIDO WHERE PE_PRONOMBRE = ? ")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("N/A"))})))));
 BA.debugLineNum = 582;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 583;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 584;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 585;BA.debugLine="lv_prodsPedido.Clear";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 587;BA.debugLine="Private c_prods As Cursor=B4XPages.MainPage.skmt.";
Debug.ShouldStop(1024);
_c_prods = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c_prods = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select PE_PRONOMBRE,PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_PRONOMBRE"))));Debug.locals.put("c_prods", _c_prods);Debug.locals.put("c_prods", _c_prods);
 BA.debugLineNum = 588;BA.debugLine="If c_prods.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_c_prods.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 589;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(4096);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 590;BA.debugLine="For i=0 To c_prods.RowCount -1";
Debug.ShouldStop(8192);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {_c_prods.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 591;BA.debugLine="cs.Initialize";
Debug.ShouldStop(16384);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 592;BA.debugLine="c_prods.Position=i";
Debug.ShouldStop(32768);
_c_prods.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 593;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(65536);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 594;BA.debugLine="label1 = lv_prodsPedido.TwoLinesLayout.Label";
Debug.ShouldStop(131072);
_label1 = __ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 595;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(262144);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 596;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(524288);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 597;BA.debugLine="label1.color = Colors.White";
Debug.ShouldStop(1048576);
_label1.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 598;BA.debugLine="Private textColor As Int = Colors.black";
Debug.ShouldStop(2097152);
_textcolor = c_productos.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 599;BA.debugLine="If Not(IsNumber(c_prods.GetString(\"PE_CEDIS\")))";
Debug.ShouldStop(4194304);
if (c_productos.__c.runMethod(true,"Not",(Object)(c_productos.__c.runMethod(true,"IsNumber",(Object)(_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))))))).<Boolean>get().booleanValue()) { 
_textcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 210)),(Object)(BA.numberCast(int.class, 105)),(Object)(BA.numberCast(int.class, 30)));Debug.locals.put("textColor", _textcolor);};
 BA.debugLineNum = 601;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(16777216);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 602;BA.debugLine="label2 = lv_prodsPedido.TwoLinesLayout.SecondLa";
Debug.ShouldStop(33554432);
_label2 = __ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 603;BA.debugLine="label2.TextSize = 15";
Debug.ShouldStop(67108864);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 604;BA.debugLine="label2.TextColor = Colors.Blue";
Debug.ShouldStop(134217728);
_label2.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 605;BA.debugLine="lv_prodsPedido.AddTwoLines(cs.Color(textColor).";
Debug.ShouldStop(268435456);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(_textcolor)).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))))).runMethod(false,"Pop").getObject())),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Cantidad #"),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),RemoteObject.createImmutable(" SubTotal $"),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))),RemoteObject.createImmutable(" Folio "),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")))))));
 BA.debugLineNum = 606;BA.debugLine="folio = c_prods.GetString(\"PE_FOLIO\")";
Debug.ShouldStop(536870912);
__ref.setField ("_folio" /*RemoteObject*/ ,_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 609;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(P";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))));
 BA.debugLineNum = 610;BA.debugLine="C.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 611;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(4);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))));
 BA.debugLineNum = 612;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(8);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))));
 BA.debugLineNum = 613;BA.debugLine="c.Close";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 615;BA.debugLine="c_prods.Close";
Debug.ShouldStop(64);
_c_prods.runVoidMethod ("Close");
 BA.debugLineNum = 616;BA.debugLine="p_vistaPreviaTrans.Width = Root.Width";
Debug.ShouldStop(128);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 617;BA.debugLine="Subs.centraPanel(p_vistaPrevia, Root.Width)";
Debug.ShouldStop(256);
c_productos._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_vistaprevia" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 618;BA.debugLine="If Subs.pedidoGuardado Then b_rechazar.Enabled =";
Debug.ShouldStop(512);
if (c_productos._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")).<Boolean>get().booleanValue()) { 
__ref.getField(false,"_b_rechazar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));}
else {
__ref.getField(false,"_b_rechazar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"True"));};
 BA.debugLineNum = 619;BA.debugLine="p_vistaPrevia.Visible=True";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_vistaprevia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 620;BA.debugLine="p_vistaPreviaTrans.Visible=True";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 621;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,126);
if (RapidSub.canDelegate("b4xpage_appear")) { __ref.runUserSub(false, "c_productos","b4xpage_appear", __ref); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(keymon.lat.medicomed.c_productos parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_productos parent;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,126);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 127;BA.debugLine="clienteId = Subs.traeCliente";
Debug.ShouldStop(1073741824);
__ref.setField ("_clienteid" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 128;BA.debugLine="rutaUsuario = Subs.traeRuta";
Debug.ShouldStop(-2147483648);
__ref.setField ("_rutausuario" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 129;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(1);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("PRIORITARIO")),(RemoteObject.createImmutable("1"))})))));
 BA.debugLineNum = 130;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(2);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("ESTRATEGICO")),(RemoteObject.createImmutable("2"))})))));
 BA.debugLineNum = 131;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(4);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("COMPLEMENTARIO")),(RemoteObject.createImmutable("3"))})))));
 BA.debugLineNum = 132;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(8);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("CATALOGO REGULAR")),(RemoteObject.createImmutable("0"))})))));
 BA.debugLineNum = 133;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(16);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_CLASIF = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("PROMOS")),(RemoteObject.createImmutable("PROMOS"))})))));
 BA.debugLineNum = 134;BA.debugLine="clv_prods_ll.GetBase.SetLayoutAnimated(0, 5dip, 1";
Debug.ShouldStop(32);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5)))),(Object)(parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 130)))),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(10)}, "+",1, 1)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.68)}, "*",0, 0))));
 BA.debugLineNum = 135;BA.debugLine="clv_prods_ll.Base_Resize(clv_prods_ll.GetBase.Wid";
Debug.ShouldStop(64);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getHeight"))));
 BA.debugLineNum = 136;BA.debugLine="If B4XPages.MainPage.bTerminarClicked Then";
Debug.ShouldStop(128);
if (true) break;

case 1:
//if
this.state = 4;
if (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_bterminarclicked" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 137;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 138;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 139;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 140;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 141;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 142;BA.debugLine="B4XPages.MainPage.bTerminarClicked = False";
Debug.ShouldStop(8192);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;
;
 BA.debugLineNum = 144;BA.debugLine="If ya_entro <> \"1\" Then";
Debug.ShouldStop(32768);

case 4:
//if
this.state = 13;
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_ya_entro" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
this.state = 6;
}if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 145;BA.debugLine="If BUSCA.Text <> \"\" Then BUSCA.Text =\"\"";
Debug.ShouldStop(65536);
if (true) break;

case 7:
//if
this.state = 12;
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
this.state = 9;
;}if (true) break;

case 9:
//C
this.state = 12;
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
if (true) break;

case 12:
//C
this.state = 13;
;
 BA.debugLineNum = 146;BA.debugLine="entro =\"3\"";
Debug.ShouldStop(131072);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 147;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(262144);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 148;BA.debugLine="Sleep(100)";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_productos", "b4xpage_appear"),BA.numberCast(int.class, 100));
this.state = 24;
return;
case 24:
//C
this.state = 13;
;
 BA.debugLineNum = 149;BA.debugLine="lfila.Text = \"CATALOGOS\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGOS"));
 BA.debugLineNum = 150;BA.debugLine="p_productos.Height = Root.Height";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_productos" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 151;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 152;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 153;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 154;BA.debugLine="p_botonesVenta.Top = clv_prods_ll.AsView.top + c";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setTop",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getTop"),__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getHeight"),RemoteObject.createImmutable(25)}, "+-",2, 1));
 BA.debugLineNum = 155;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 13:
//C
this.state = 14;
;
 BA.debugLineNum = 157;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(268435456);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 158;BA.debugLine="label1 = lv_catalogos.SingleLineLayout.Label";
Debug.ShouldStop(536870912);
_label1 = __ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 159;BA.debugLine="label1.TextSize = 17";
Debug.ShouldStop(1073741824);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 160;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(-2147483648);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 161;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 162;BA.debugLine="lv_catalogos.AddSingleLine(\"CATALOGO\")";
Debug.ShouldStop(2);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("CATALOGO"))));
 BA.debugLineNum = 163;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select coun";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as hayPromos from cat_gunaprod where CAT_GP_TIPOPROD = 'PROMOS'"))));
 BA.debugLineNum = 164;BA.debugLine="c.Position = 0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 165;BA.debugLine="If c.GetInt(\"hayPromos\") > 0 Then";
Debug.ShouldStop(16);
if (true) break;

case 14:
//if
this.state = 17;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("hayPromos"))),BA.numberCast(double.class, 0))) { 
this.state = 16;
}if (true) break;

case 16:
//C
this.state = 17;
 BA.debugLineNum = 166;BA.debugLine="lv_catalogos.AddSingleLine(\"PROMOS\")";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("PROMOS"))));
 if (true) break;

case 17:
//C
this.state = 18;
;
 BA.debugLineNum = 168;BA.debugLine="Sleep(100)";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_productos", "b4xpage_appear"),BA.numberCast(int.class, 100));
this.state = 25;
return;
case 25:
//C
this.state = 18;
;
 BA.debugLineNum = 169;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(256);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 170;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 171;BA.debugLine="l_total.Left = 5dip";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setLeft",parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5))));
 BA.debugLineNum = 172;BA.debugLine="l_totProds.Width = Root.Width * 0.19";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.19)}, "*",0, 0)));
 BA.debugLineNum = 173;BA.debugLine="l_total.Left = l_totProds.Width + 20";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setLeft",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(20)}, "+",1, 1));
 BA.debugLineNum = 174;BA.debugLine="l_total.Width = Root.Width * 0.25";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.25)}, "*",0, 0)));
 BA.debugLineNum = 176;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(32768);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_m = parent._subs.runMethod(false,"_traetotalesclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("m", _m);Debug.locals.put("m", _m);
 BA.debugLineNum = 177;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(65536);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 178;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(131072);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 179;BA.debugLine="hayPedido = Subs.hayPedido";
Debug.ShouldStop(262144);
__ref.setField ("_haypedido" /*RemoteObject*/ ,parent._subs.runMethod(true,"_haypedido" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 181;BA.debugLine="If reiniciarlistaProds Then";
Debug.ShouldStop(1048576);
if (true) break;

case 18:
//if
this.state = 23;
if (__ref.getField(true,"_reiniciarlistaprods" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 20;
}else 
{ BA.debugLineNum = 184;BA.debugLine="else If hayPedido Then";
Debug.ShouldStop(8388608);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 22;
}}
if (true) break;

case 20:
//C
this.state = 23;
 BA.debugLineNum = 182;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("LogImpl","323396408",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 183;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(4194304);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), parent.__c.getField(false,"Null")));
 if (true) break;

case 22:
//C
this.state = 23;
 BA.debugLineNum = 186;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("LogImpl","323396412",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 187;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(67108864);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), parent.__c.getField(false,"Null")));
 if (true) break;

case 23:
//C
this.state = -1;
;
 BA.debugLineNum = 189;BA.debugLine="clv_prods_ll.JumpToItem(0) 'Vamos al primer artíc";
Debug.ShouldStop(268435456);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_jumptoitem",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 190;BA.debugLine="PCLV.lblHint.SetTextSizeAnimated(0,13)";
Debug.ShouldStop(536870912);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_lblhint" /*RemoteObject*/ ).runVoidMethod ("SetTextSizeAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(float.class, 13)));
 BA.debugLineNum = 191;BA.debugLine="PCLV.B4XSeekBar1.Color1=Colors.DarkGray";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color1" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"DarkGray"));
 BA.debugLineNum = 192;BA.debugLine="PCLV.B4XSeekBar1.Color2=Colors.DarkGray";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color2" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"DarkGray"));
 BA.debugLineNum = 193;BA.debugLine="PCLV.B4XSeekBar1.ThumbColor=Colors.red";
Debug.ShouldStop(1);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_thumbcolor" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 194;BA.debugLine="PCLV.B4XSeekBar1.mBase.Left=Root.Width *0.91";
Debug.ShouldStop(2);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.91)}, "*",0, 0)));
 BA.debugLineNum = 196;BA.debugLine="PCLV.B4XSeekBar1.mBase.Height=clv_prods_ll.AsView";
Debug.ShouldStop(8);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getHeight"));
 BA.debugLineNum = 197;BA.debugLine="PCLV.pnlOverlay.Height = clv_prods_ll.AsView.Heig";
Debug.ShouldStop(16);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_pnloverlay" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getHeight"));
 BA.debugLineNum = 198;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(32);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.b4xseekbar.class, "_update" /*RemoteObject*/ );
 BA.debugLineNum = 199;BA.debugLine="End Sub";
Debug.ShouldStop(64);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b4xpage_closerequest(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,375);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_productos","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(keymon.lat.medicomed.c_productos parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_productos parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,375);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,RemoteObject.createImmutable(null));return;}
case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 378;BA.debugLine="If l_info.Visible Then";
Debug.ShouldStop(33554432);
if (true) break;

case 1:
//if
this.state = 16;
if (__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 3;
}else 
{ BA.debugLineNum = 381;BA.debugLine="else if p_vistaPreviaTrans.Visible Then";
Debug.ShouldStop(268435456);
if (__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 5;
}else 
{ BA.debugLineNum = 384;BA.debugLine="else if lv_promos.visible Then";
Debug.ShouldStop(-2147483648);
if (__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 7;
}else 
{ BA.debugLineNum = 391;BA.debugLine="else if clv_prods_ll.AsView.Visible Then";
Debug.ShouldStop(64);
if (__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 9;
}else 
{ BA.debugLineNum = 410;BA.debugLine="else If entro = \"4\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
this.state = 11;
}else 
{ BA.debugLineNum = 414;BA.debugLine="Else If entro = \"3\" Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
this.state = 13;
}else {
this.state = 15;
}}}}}}
if (true) break;

case 3:
//C
this.state = 16;
 BA.debugLineNum = 379;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 380;BA.debugLine="Return False";
Debug.ShouldStop(134217728);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 5:
//C
this.state = 16;
 BA.debugLineNum = 382;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 383;BA.debugLine="Return False";
Debug.ShouldStop(1073741824);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 7:
//C
this.state = 16;
 BA.debugLineNum = 385;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 386;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 387;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 388;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 389;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 390;BA.debugLine="Return False";
Debug.ShouldStop(32);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 9:
//C
this.state = 16;
 BA.debugLineNum = 392;BA.debugLine="lfila.text = \"CATALOGO\"";
Debug.ShouldStop(128);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGO"));
 BA.debugLineNum = 393;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(256);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 394;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 395;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 396;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 397;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 398;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 399;BA.debugLine="Return False";
Debug.ShouldStop(16384);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 11:
//C
this.state = 16;
 BA.debugLineNum = 411;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(67108864);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 412;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(134217728);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 413;BA.debugLine="Return True";
Debug.ShouldStop(268435456);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"True")));return;};
 if (true) break;

case 13:
//C
this.state = 16;
 BA.debugLineNum = 415;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(1073741824);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 416;BA.debugLine="Return False";
Debug.ShouldStop(-2147483648);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 15:
//C
this.state = 16;
 BA.debugLineNum = 418;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(2);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 419;BA.debugLine="Return False";
Debug.ShouldStop(4);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 16:
//C
this.state = -1;
;
 BA.debugLineNum = 421;BA.debugLine="End Sub";
Debug.ShouldStop(16);
if (true) break;

            }
        }
    }
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,87);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_productos","b4xpage_created", __ref, _root1);}
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 87;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 88;BA.debugLine="Root = Root1";
Debug.ShouldStop(8388608);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 91;BA.debugLine="Root.LoadLayout(\"productos\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("productos")),__ref.getField(false, "ba"));
 BA.debugLineNum = 92;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(134217728);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_productos.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 93;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",c_productos.__c.getField(false,"File").runMethod(true,"Exists",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db"))),c_productos.__c.getField(true,"False"))) { 
 BA.debugLineNum = 94;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(536870912);
c_productos.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_productos.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db")));
 };
 BA.debugLineNum = 96;BA.debugLine="PCLV.Initialize(Me, \"PCLV\", clv_prods_ll)";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.preoptimizedclv.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(BA.ObjectToString("PCLV")),(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ )));
 BA.debugLineNum = 97;BA.debugLine="ciclo = 1";
Debug.ShouldStop(1);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 98;BA.debugLine="l_info.Width = Root.Width * 0.8";
Debug.ShouldStop(2);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.8)}, "*",0, 0)));
 BA.debugLineNum = 99;BA.debugLine="l_info.Left = (Root.Width/2) - (l_info.Width/2)";
Debug.ShouldStop(4);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 100;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select dist";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select distinct CAT_GP_TIPO from cat_gunaprod where CAT_GP_TIPO <> 'PROMOS' order by CAT_GP_TIPO"))));
 BA.debugLineNum = 101;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 102;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(32);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 103;BA.debugLine="label1 = lv_tipo.SingleLineLayout.Label";
Debug.ShouldStop(64);
_label1 = __ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 104;BA.debugLine="label1.TextSize = 17";
Debug.ShouldStop(128);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 105;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(256);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 106;BA.debugLine="lv_tipo.Clear";
Debug.ShouldStop(512);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 107;BA.debugLine="For i=0 To c.RowCount-1";
Debug.ShouldStop(1024);
{
final int step18 = 1;
final int limit18 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step18 > 0 && _i <= limit18) || (step18 < 0 && _i >= limit18) ;_i = ((int)(0 + _i + step18))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 108;BA.debugLine="c.Position=i";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 109;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_TIPO"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 112;BA.debugLine="c.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 115;BA.debugLine="listaTiempos.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_listatiempos" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 116;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(524288);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 117;BA.debugLine="pedidoMap.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_pedidomap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 118;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 119;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","323330848",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 120;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_productos.__c.getField(false,"Null")));
 BA.debugLineNum = 121;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 122;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _busca_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("Busca_TextChanged (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,856);
if (RapidSub.canDelegate("busca_textchanged")) { __ref.runUserSub(false, "c_productos","busca_textchanged", __ref, _old, _new); return;}
ResumableSub_Busca_TextChanged rsub = new ResumableSub_Busca_TextChanged(null,__ref,_old,_new);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_Busca_TextChanged extends BA.ResumableSub {
public ResumableSub_Busca_TextChanged(keymon.lat.medicomed.c_productos parent,RemoteObject __ref,RemoteObject _old,RemoteObject _new) {
this.parent = parent;
this.__ref = __ref;
this._old = _old;
this._new = _new;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_productos parent;
RemoteObject _old;
RemoteObject _new;
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("Busca_TextChanged (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,856);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 858;BA.debugLine="If Not(clv_prods_ll.AsView.Visible) Then clv_prod";
Debug.ShouldStop(33554432);
if (true) break;

case 1:
//if
this.state = 6;
if (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getVisible"))).<Boolean>get().booleanValue()) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"True"));
if (true) break;

case 6:
//C
this.state = 7;
;
 BA.debugLineNum = 859;BA.debugLine="If (New.Length = 1 Or New.Length = 2) And Not(for";
Debug.ShouldStop(67108864);
if (true) break;

case 7:
//if
this.state = 12;
if (RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean("=",_new.runMethod(true,"length"),BA.numberCast(double.class, 1)) || RemoteObject.solveBoolean("=",_new.runMethod(true,"length"),BA.numberCast(double.class, 2))))) && RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_forzarbusqueda" /*RemoteObject*/ ))))) { 
this.state = 9;
;}if (true) break;

case 9:
//C
this.state = 12;
if (true) return ;
if (true) break;

case 12:
//C
this.state = -1;
;
 BA.debugLineNum = 860;BA.debugLine="forzarBusqueda = False";
Debug.ShouldStop(134217728);
__ref.setField ("_forzarbusqueda" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 BA.debugLineNum = 861;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(268435456);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 862;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 863;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 864;BA.debugLine="Sleep(0)";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_productos", "busca_textchanged"),BA.numberCast(int.class, 0));
this.state = 13;
return;
case 13:
//C
this.state = -1;
;
 BA.debugLineNum = 865;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQ";
Debug.ShouldStop(1);
_p = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_p = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD from CAT_GUNAPROD where CAT_GP_NOMBRE like '%"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_new))),RemoteObject.createImmutable("%' and CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_CLASIF <> 'PROMOS' And CAT_GP_TIPOPROD2 <> '2' order by CAT_GP_NOMBRE"))))));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 866;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","325296906",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 867;BA.debugLine="LlenaProdsLL(p)";
Debug.ShouldStop(4);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,(Object)(_p));
 BA.debugLineNum = 886;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
if (true) break;

            }
        }
    }
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_productos._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_productos._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_productos._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_productos._xui);
 //BA.debugLineNum = 4;BA.debugLine="Dim ruta As String";
c_productos._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",c_productos._ruta);
 //BA.debugLineNum = 5;BA.debugLine="Dim q_buscar As String";
c_productos._q_buscar = RemoteObject.createImmutable("");__ref.setField("_q_buscar",c_productos._q_buscar);
 //BA.debugLineNum = 6;BA.debugLine="Dim forzarBusqueda As Boolean = False";
c_productos._forzarbusqueda = c_productos.__c.getField(true,"False");__ref.setField("_forzarbusqueda",c_productos._forzarbusqueda);
 //BA.debugLineNum = 7;BA.debugLine="Dim skmt As SQL";
c_productos._skmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_skmt",c_productos._skmt);
 //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor";
c_productos._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_productos._c);
 //BA.debugLineNum = 9;BA.debugLine="Dim c2 As Cursor";
c_productos._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_productos._c2);
 //BA.debugLineNum = 10;BA.debugLine="Dim C3 As Cursor";
c_productos._c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c3",c_productos._c3);
 //BA.debugLineNum = 11;BA.debugLine="Dim s As Cursor";
c_productos._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_productos._s);
 //BA.debugLineNum = 12;BA.debugLine="Dim lv_catalogos As ListView";
c_productos._lv_catalogos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_catalogos",c_productos._lv_catalogos);
 //BA.debugLineNum = 13;BA.debugLine="Dim lv_promos As ListView";
c_productos._lv_promos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_promos",c_productos._lv_promos);
 //BA.debugLineNum = 14;BA.debugLine="Dim entro As String";
c_productos._entro = RemoteObject.createImmutable("");__ref.setField("_entro",c_productos._entro);
 //BA.debugLineNum = 15;BA.debugLine="Dim gest As Button";
c_productos._gest = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_gest",c_productos._gest);
 //BA.debugLineNum = 16;BA.debugLine="Dim lfila As Label";
c_productos._lfila = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_lfila",c_productos._lfila);
 //BA.debugLineNum = 17;BA.debugLine="Dim marca As String";
c_productos._marca = RemoteObject.createImmutable("");__ref.setField("_marca",c_productos._marca);
 //BA.debugLineNum = 18;BA.debugLine="Dim tipo As String";
c_productos._tipo = RemoteObject.createImmutable("");__ref.setField("_tipo",c_productos._tipo);
 //BA.debugLineNum = 19;BA.debugLine="Dim subtipo As String";
c_productos._subtipo = RemoteObject.createImmutable("");__ref.setField("_subtipo",c_productos._subtipo);
 //BA.debugLineNum = 20;BA.debugLine="Private BUSCA As EditText";
c_productos._busca = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_busca",c_productos._busca);
 //BA.debugLineNum = 21;BA.debugLine="Dim ya_entro As String";
c_productos._ya_entro = RemoteObject.createImmutable("");__ref.setField("_ya_entro",c_productos._ya_entro);
 //BA.debugLineNum = 22;BA.debugLine="Dim TIENE_PROMOS As String";
c_productos._tiene_promos = RemoteObject.createImmutable("");__ref.setField("_tiene_promos",c_productos._tiene_promos);
 //BA.debugLineNum = 23;BA.debugLine="Dim RES As String";
c_productos._res = RemoteObject.createImmutable("");__ref.setField("_res",c_productos._res);
 //BA.debugLineNum = 24;BA.debugLine="Dim S1 As Cursor";
c_productos._s1 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s1",c_productos._s1);
 //BA.debugLineNum = 25;BA.debugLine="Dim bmp As Bitmap";
c_productos._bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");__ref.setField("_bmp",c_productos._bmp);
 //BA.debugLineNum = 26;BA.debugLine="Dim ciclo As String";
c_productos._ciclo = RemoteObject.createImmutable("");__ref.setField("_ciclo",c_productos._ciclo);
 //BA.debugLineNum = 27;BA.debugLine="Private b_qr As Button";
c_productos._b_qr = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_qr",c_productos._b_qr);
 //BA.debugLineNum = 28;BA.debugLine="Private p_productos As Panel";
c_productos._p_productos = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_productos",c_productos._p_productos);
 //BA.debugLineNum = 29;BA.debugLine="Dim clv_productos As CustomListView";
c_productos._clv_productos = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_productos",c_productos._clv_productos);
 //BA.debugLineNum = 30;BA.debugLine="Private ImageView1 As ImageView";
c_productos._imageview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_imageview1",c_productos._imageview1);
 //BA.debugLineNum = 31;BA.debugLine="Private Panel3 As Panel";
c_productos._panel3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel3",c_productos._panel3);
 //BA.debugLineNum = 32;BA.debugLine="Private p_prods As Panel";
c_productos._p_prods = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prods",c_productos._p_prods);
 //BA.debugLineNum = 33;BA.debugLine="Private i_prod As ImageView";
c_productos._i_prod = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_i_prod",c_productos._i_prod);
 //BA.debugLineNum = 34;BA.debugLine="Private l_prodX As Label";
c_productos._l_prodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodx",c_productos._l_prodx);
 //BA.debugLineNum = 35;BA.debugLine="Private b_prodMas As Button";
c_productos._b_prodmas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmas",c_productos._b_prodmas);
 //BA.debugLineNum = 36;BA.debugLine="Private l_pCant As Label";
c_productos._l_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pcant",c_productos._l_pcant);
 //BA.debugLineNum = 37;BA.debugLine="Private et_pCant As EditText";
c_productos._et_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pcant",c_productos._et_pcant);
 //BA.debugLineNum = 38;BA.debugLine="Private b_prodMenos As Button";
c_productos._b_prodmenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenos",c_productos._b_prodmenos);
 //BA.debugLineNum = 39;BA.debugLine="Dim b_terminar1 As Button";
c_productos._b_terminar1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_terminar1",c_productos._b_terminar1);
 //BA.debugLineNum = 40;BA.debugLine="Dim b_continuar As Button";
c_productos._b_continuar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_continuar",c_productos._b_continuar);
 //BA.debugLineNum = 41;BA.debugLine="Private l_total As Label";
c_productos._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_productos._l_total);
 //BA.debugLineNum = 42;BA.debugLine="Private l_totProds As Label";
c_productos._l_totprods = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_totprods",c_productos._l_totprods);
 //BA.debugLineNum = 43;BA.debugLine="Dim totalProds As Int = 0";
c_productos._totalprods = BA.numberCast(int.class, 0);__ref.setField("_totalprods",c_productos._totalprods);
 //BA.debugLineNum = 44;BA.debugLine="Dim totalCompra As Float = 0";
c_productos._totalcompra = BA.numberCast(float.class, 0);__ref.setField("_totalcompra",c_productos._totalcompra);
 //BA.debugLineNum = 45;BA.debugLine="Dim etCantHasFocus As Boolean = False";
c_productos._etcanthasfocus = c_productos.__c.getField(true,"False");__ref.setField("_etcanthasfocus",c_productos._etcanthasfocus);
 //BA.debugLineNum = 46;BA.debugLine="Dim prodsMap As Map";
c_productos._prodsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_prodsmap",c_productos._prodsmap);
 //BA.debugLineNum = 47;BA.debugLine="Private l_Cargando As Label";
c_productos._l_cargando = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cargando",c_productos._l_cargando);
 //BA.debugLineNum = 48;BA.debugLine="Private l_info As Label";
c_productos._l_info = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_info",c_productos._l_info);
 //BA.debugLineNum = 49;BA.debugLine="Private b_buscar As Button";
c_productos._b_buscar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_buscar",c_productos._b_buscar);
 //BA.debugLineNum = 50;BA.debugLine="Private p_botonesVenta As Panel";
c_productos._p_botonesventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botonesventa",c_productos._p_botonesventa);
 //BA.debugLineNum = 51;BA.debugLine="Private lv_tipo As ListView";
c_productos._lv_tipo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_tipo",c_productos._lv_tipo);
 //BA.debugLineNum = 52;BA.debugLine="Private lv_subtipo As ListView";
c_productos._lv_subtipo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_subtipo",c_productos._lv_subtipo);
 //BA.debugLineNum = 53;BA.debugLine="Private p_vistaPreviaTrans As Panel";
c_productos._p_vistapreviatrans = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_vistapreviatrans",c_productos._p_vistapreviatrans);
 //BA.debugLineNum = 54;BA.debugLine="Private lv_prodsPedido As ListView";
c_productos._lv_prodspedido = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_prodspedido",c_productos._lv_prodspedido);
 //BA.debugLineNum = 55;BA.debugLine="Private b_rechazar As Button";
c_productos._b_rechazar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_rechazar",c_productos._b_rechazar);
 //BA.debugLineNum = 56;BA.debugLine="Private b_aceptar As Button";
c_productos._b_aceptar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_aceptar",c_productos._b_aceptar);
 //BA.debugLineNum = 57;BA.debugLine="Private p_vistaPrevia As Panel";
c_productos._p_vistaprevia = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_vistaprevia",c_productos._p_vistaprevia);
 //BA.debugLineNum = 58;BA.debugLine="Dim folio As String";
c_productos._folio = RemoteObject.createImmutable("");__ref.setField("_folio",c_productos._folio);
 //BA.debugLineNum = 59;BA.debugLine="Dim result As String";
c_productos._result = RemoteObject.createImmutable("");__ref.setField("_result",c_productos._result);
 //BA.debugLineNum = 60;BA.debugLine="Private l_cant As Label";
c_productos._l_cant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cant",c_productos._l_cant);
 //BA.debugLineNum = 61;BA.debugLine="Private l_total2 As Label";
c_productos._l_total2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total2",c_productos._l_total2);
 //BA.debugLineNum = 62;BA.debugLine="Dim prodsPedidoActual As String";
c_productos._prodspedidoactual = RemoteObject.createImmutable("");__ref.setField("_prodspedidoactual",c_productos._prodspedidoactual);
 //BA.debugLineNum = 63;BA.debugLine="Dim montoPedidoActual As String";
c_productos._montopedidoactual = RemoteObject.createImmutable("");__ref.setField("_montopedidoactual",c_productos._montopedidoactual);
 //BA.debugLineNum = 65;BA.debugLine="Private clv_prods_ll As CustomListView";
c_productos._clv_prods_ll = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_prods_ll",c_productos._clv_prods_ll);
 //BA.debugLineNum = 66;BA.debugLine="Private PCLV As PreoptimizedCLV";
c_productos._pclv = RemoteObject.createNew ("keymon.lat.medicomed.preoptimizedclv");__ref.setField("_pclv",c_productos._pclv);
 //BA.debugLineNum = 67;BA.debugLine="Dim listaProds As List";
c_productos._listaprods = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listaprods",c_productos._listaprods);
 //BA.debugLineNum = 69;BA.debugLine="Dim pedidoMap As Map";
c_productos._pedidomap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_pedidomap",c_productos._pedidomap);
 //BA.debugLineNum = 70;BA.debugLine="Private p_botMasMen As Panel";
c_productos._p_botmasmen = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botmasmen",c_productos._p_botmasmen);
 //BA.debugLineNum = 71;BA.debugLine="Dim reiniciarlistaProds As Boolean= False";
c_productos._reiniciarlistaprods = c_productos.__c.getField(true,"False");__ref.setField("_reiniciarlistaprods",c_productos._reiniciarlistaprods);
 //BA.debugLineNum = 73;BA.debugLine="Dim listaTiempos As List";
c_productos._listatiempos = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listatiempos",c_productos._listatiempos);
 //BA.debugLineNum = 74;BA.debugLine="Dim clienteId As String";
c_productos._clienteid = RemoteObject.createImmutable("");__ref.setField("_clienteid",c_productos._clienteid);
 //BA.debugLineNum = 75;BA.debugLine="Dim rutaUsuario As String";
c_productos._rutausuario = RemoteObject.createImmutable("");__ref.setField("_rutausuario",c_productos._rutausuario);
 //BA.debugLineNum = 76;BA.debugLine="Dim hayPedido As Boolean";
c_productos._haypedido = RemoteObject.createImmutable(false);__ref.setField("_haypedido",c_productos._haypedido);
 //BA.debugLineNum = 77;BA.debugLine="Dim listaHints As List";
c_productos._listahints = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listahints",c_productos._listahints);
 //BA.debugLineNum = 78;BA.debugLine="Dim h As Cursor";
c_productos._h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_h",c_productos._h);
 //BA.debugLineNum = 79;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _clv_prods_ll_itemclick(RemoteObject __ref,RemoteObject _index,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("clv_prods_ll_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,801);
if (RapidSub.canDelegate("clv_prods_ll_itemclick")) { return __ref.runUserSub(false, "c_productos","clv_prods_ll_itemclick", __ref, _index, _value);}
Debug.locals.put("Index", _index);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 801;BA.debugLine="Private Sub clv_prods_ll_ItemClick (Index As Int,";
Debug.ShouldStop(1);
 BA.debugLineNum = 803;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _clv_prods_ll_visiblerangechanged(RemoteObject __ref,RemoteObject _firstindex,RemoteObject _lastindex) throws Exception{
try {
		Debug.PushSubsStack("clv_prods_ll_VisibleRangeChanged (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,815);
if (RapidSub.canDelegate("clv_prods_ll_visiblerangechanged")) { return __ref.runUserSub(false, "c_productos","clv_prods_ll_visiblerangechanged", __ref, _firstindex, _lastindex);}
RemoteObject _extrasize = RemoteObject.createImmutable(0);
int _i = 0;
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _precio = RemoteObject.createImmutable("");
Debug.locals.put("FirstIndex", _firstindex);
Debug.locals.put("LastIndex", _lastindex);
 BA.debugLineNum = 815;BA.debugLine="Private Sub clv_prods_ll_VisibleRangeChanged (Firs";
Debug.ShouldStop(16384);
 BA.debugLineNum = 818;BA.debugLine="Dim ExtraSize As Int = 30 'List size";
Debug.ShouldStop(131072);
_extrasize = BA.numberCast(int.class, 30);Debug.locals.put("ExtraSize", _extrasize);Debug.locals.put("ExtraSize", _extrasize);
 BA.debugLineNum = 819;BA.debugLine="For i = Max(0, FirstIndex - ExtraSize) To Min(Las";
Debug.ShouldStop(262144);
{
final int step2 = 1;
final int limit2 = (int) (0 + c_productos.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_lastindex,_extrasize}, "+",1, 1))),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1)))).<Double>get().doubleValue());
_i = (int) (0 + c_productos.__c.runMethod(true,"Max",(Object)(BA.numberCast(double.class, 0)),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_firstindex,_extrasize}, "-",1, 1)))).<Double>get().doubleValue()) ;
for (;(step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2) ;_i = ((int)(0 + _i + step2))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 820;BA.debugLine="Dim Pnl As B4XView = clv_prods_ll.GetPanel(i)";
Debug.ShouldStop(524288);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("Pnl", _pnl);Debug.locals.put("Pnl", _pnl);
 BA.debugLineNum = 821;BA.debugLine="If i > FirstIndex - ExtraSize And i < LastIndex";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",RemoteObject.createImmutable(_i),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_firstindex,_extrasize}, "-",1, 1))) && RemoteObject.solveBoolean("<",RemoteObject.createImmutable(_i),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_lastindex,_extrasize}, "+",1, 1)))) { 
 BA.debugLineNum = 823;BA.debugLine="If Pnl.NumberOfViews = 0 Then 'Add each item/la";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_pnl.runMethod(true,"getNumberOfViews"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 824;BA.debugLine="Pnl.LoadLayout(\"proditem\")";
Debug.ShouldStop(8388608);
_pnl.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("proditem")),__ref.getField(false, "ba"));
 BA.debugLineNum = 825;BA.debugLine="p_prods.Width = Root.Width * 0.92";
Debug.ShouldStop(16777216);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.92)}, "*",0, 0)));
 BA.debugLineNum = 826;BA.debugLine="p_botMasMen.Left = p_prods.Width - (p_botMasMe";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_botmasmen" /*RemoteObject*/ ).runMethod(true,"setLeft",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getWidth"),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_botmasmen" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(5)}, "+",1, 1))}, "-",1, 1));
 BA.debugLineNum = 827;BA.debugLine="Pnl.Height = p_prods.Height";
Debug.ShouldStop(67108864);
_pnl.runMethod(true,"setHeight",__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 828;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(134217728);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 829;BA.debugLine="cs.Initialize";
Debug.ShouldStop(268435456);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 830;BA.debugLine="l_prodX.SetTextSizeAnimated(0, 13)";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runVoidMethod ("SetTextSizeAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(float.class, 13)));
 BA.debugLineNum = 831;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant\"";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("N",(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant"))))) && RemoteObject.solveBoolean(">",BA.numberCast(double.class, (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant"))))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 832;BA.debugLine="p_prods.Color=0xFFE2EEFF";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",BA.numberCast(int.class, ((int)0xffe2eeff)));
 BA.debugLineNum = 833;BA.debugLine="et_pCant.TextColor=Colors.Red";
Debug.ShouldStop(1);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 834;BA.debugLine="If Subs.pedidoGuardado Then";
Debug.ShouldStop(2);
if (c_productos._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 835;BA.debugLine="Log(\"YA SE GUARDO\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","325231380",RemoteObject.createImmutable("YA SE GUARDO"),0);
 BA.debugLineNum = 836;BA.debugLine="et_pCant.Enabled = False";
Debug.ShouldStop(8);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 838;BA.debugLine="b_prodMenos.Enabled = False";
Debug.ShouldStop(32);
__ref.getField(false,"_b_prodmenos" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));
 };
 };
 BA.debugLineNum = 841;BA.debugLine="Private precio As String=NumberFormat2(clv_pro";
Debug.ShouldStop(256);
_precio = c_productos.__c.runMethod(true,"NumberFormat2",(Object)((BA.numberCast(double.class, (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio"))))))),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_productos.__c.getField(true,"False")));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 842;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant\"";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("N",(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant")))))) { 
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant"))))));};
 BA.debugLineNum = 843;BA.debugLine="l_prodX.Text = cs.Color(Colors.red).append(clv";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Red"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prod"))))))).runMethod(false,"Pop").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF")))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(BA.numberCast(int.class, _i))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen")))))))).runMethod(false,"Color",(Object)(BA.numberCast(int.class, ((int)0xff017f01)))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("   $"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));
 };
 }else {
 };
 BA.debugLineNum = 851;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size - Fir";
Debug.ShouldStop(262144);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.b4xseekbar.class, "_setvalue" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),_firstindex}, "-",1, 1));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 854;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid,RemoteObject _bc,RemoteObject _tc) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,452);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_productos","createlistitem", __ref, _text, _preciou, _inv, _width, _height, _img, _prodid, _bc, _tc);}
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);
Debug.locals.put("bc", _bc);
Debug.locals.put("tc", _tc);
 BA.debugLineNum = 452;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(8);
 BA.debugLineNum = 467;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,558);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_productos","cuentaprods", __ref);}
 BA.debugLineNum = 558;BA.debugLine="Sub cuentaProds";
Debug.ShouldStop(8192);
 BA.debugLineNum = 560;BA.debugLine="Log(\"===========================\")";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","324182786",RemoteObject.createImmutable("==========================="),0);
 BA.debugLineNum = 561;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(65536);
c_productos._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_productos._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select sum(PE_COSTO_TOT) as total, sum(PE_CANT) as cant from PEDIDO where PE_CLIENTE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_clienteid" /*RemoteObject*/ )))),RemoteObject.createImmutable("'"))))));__ref.setField("_c",c_productos._c);
 BA.debugLineNum = 564;BA.debugLine="p_botonesVenta.Visible = True";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 565;BA.debugLine="p_botonesVenta.BringToFront";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 566;BA.debugLine="c.Position=0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 567;BA.debugLine="Log($\"Total Prods: ${c.GetString(\"cant\")}, Total";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","324182793",(RemoteObject.concat(RemoteObject.createImmutable("Total Prods: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cant")))))),RemoteObject.createImmutable(", Total Compra: $"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("total")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 568;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 569;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,571);
if (RapidSub.canDelegate("et_pcant_focuschanged")) { return __ref.runUserSub(false, "c_productos","et_pcant_focuschanged", __ref, _hasfocus);}
Debug.locals.put("HasFocus", _hasfocus);
 BA.debugLineNum = 571;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 572;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","324248321",(RemoteObject.concat(RemoteObject.createImmutable("focus changed="),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hasfocus))),RemoteObject.createImmutable(""))),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 573;BA.debugLine="etCantHasFocus = HasFocus";
Debug.ShouldStop(268435456);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,_hasfocus);
 BA.debugLineNum = 574;BA.debugLine="cuentaProds";
Debug.ShouldStop(536870912);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 575;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,523);
if (RapidSub.canDelegate("et_pcant_textchanged")) { return __ref.runUserSub(false, "c_productos","et_pcant_textchanged", __ref, _old, _new);}
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 _id = RemoteObject.createImmutable("");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _inv = RemoteObject.createImmutable("");
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 523;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
Debug.ShouldStop(1024);
 BA.debugLineNum = 535;BA.debugLine="If etCantHasFocus = True Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ),c_productos.__c.getField(true,"True"))) { 
 BA.debugLineNum = 538;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(33554432);
_index = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 539;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
Debug.ShouldStop(67108864);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 540;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(134217728);
_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 = 541;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2";
Debug.ShouldStop(268435456);
_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, 2)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 542;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(536870912);
_id = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 543;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i";
Debug.ShouldStop(1073741824);
_precio = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 544;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
Debug.ShouldStop(-2147483648);
_inv = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen")))));Debug.locals.put("inv", _inv);Debug.locals.put("inv", _inv);
 BA.debugLineNum = 545;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
Debug.ShouldStop(1);
_inv = BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen")))));Debug.locals.put("inv", _inv);Debug.locals.put("inv", _inv);
 BA.debugLineNum = 546;BA.debugLine="If(New = \"\" Or New = Null) Then New = 0";
Debug.ShouldStop(2);
if ((RemoteObject.solveBoolean("=",_new,BA.ObjectToString("")) || RemoteObject.solveBoolean("n",_new))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 547;BA.debugLine="If(New > inv) Then";
Debug.ShouldStop(4);
if ((RemoteObject.solveBoolean(">",BA.numberCast(double.class, _new),BA.numberCast(double.class, _inv)))) { 
 BA.debugLineNum = 548;BA.debugLine="Sender.As(EditText).text = inv";
Debug.ShouldStop(8);
(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_inv));
 };
 BA.debugLineNum = 551;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(".",c_productos.__c.runMethod(true,"Not",(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("=",_old,BA.ObjectToString("0")) && RemoteObject.solveBoolean("=",_new,RemoteObject.createImmutable("")))))) && RemoteObject.solveBoolean("N",_lacant.runMethod(true,"getText")) && RemoteObject.solveBoolean("!",_lacant.runMethod(true,"getText"),BA.NumberToString(0)) && RemoteObject.solveBoolean("!",_lacant.runMethod(true,"getText"),BA.ObjectToString("")) && RemoteObject.solveBoolean(".",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ))) { 
 BA.debugLineNum = 552;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio";
Debug.ShouldStop(128);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_precio),(Object)(_lacant.runMethod(true,"getText")),(Object)(c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))),(Object)(_id),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )),(Object)(c_productos._subs.runMethod(true,"_traefecha" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(__ref.getField(true,"_rutausuario" /*RemoteObject*/ )),(Object)(BA.NumberToString(0)),(Object)(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )));
 BA.debugLineNum = 553;BA.debugLine="cuentaProds";
Debug.ShouldStop(256);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 556;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,82);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_productos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 82;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(131072);
 BA.debugLineNum = 83;BA.debugLine="Return Me";
Debug.ShouldStop(262144);
if (true) return __ref;
 BA.debugLineNum = 84;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_info_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_info_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,651);
if (RapidSub.canDelegate("l_info_click")) { return __ref.runUserSub(false, "c_productos","l_info_click", __ref);}
 BA.debugLineNum = 651;BA.debugLine="Private Sub l_info_Click";
Debug.ShouldStop(1024);
 BA.debugLineNum = 652;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 653;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_prodx_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_prodx_click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,805);
if (RapidSub.canDelegate("l_prodx_click")) { return __ref.runUserSub(false, "c_productos","l_prodx_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(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");
 BA.debugLineNum = 805;BA.debugLine="Sub l_prodx_click";
Debug.ShouldStop(16);
 BA.debugLineNum = 806;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(32);
_index = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 807;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(ind";
Debug.ShouldStop(64);
_p0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p0 = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("p0", _p0);Debug.locals.put("p0", _p0);
 BA.debugLineNum = 808;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(128);
_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 = 809;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(2";
Debug.ShouldStop(256);
_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, 2)));Debug.locals.put("cant1", _cant1);Debug.locals.put("cant1", _cant1);
 BA.debugLineNum = 810;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(512);
_index = __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 812;BA.debugLine="Log(cant1.Text)";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","325165831",_cant1.runMethod(true,"getText"),0);
 BA.debugLineNum = 813;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_prodx_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_prodX_LongClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,645);
if (RapidSub.canDelegate("l_prodx_longclick")) { return __ref.runUserSub(false, "c_productos","l_prodx_longclick", __ref);}
 BA.debugLineNum = 645;BA.debugLine="Private Sub l_prodX_LongClick";
Debug.ShouldStop(16);
 BA.debugLineNum = 646;BA.debugLine="Log(\"longclic = \"&Sender.as(Label).tag)";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","324444929",RemoteObject.concat(RemoteObject.createImmutable("longclic = "),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")),0);
 BA.debugLineNum = 647;BA.debugLine="l_info.Text = Sender.as(Label).tag";
Debug.ShouldStop(64);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")));
 BA.debugLineNum = 648;BA.debugLine="l_info.Visible = True";
Debug.ShouldStop(128);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 649;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _llenacatalogo(RemoteObject __ref,RemoteObject _subtipo1) throws Exception{
try {
		Debug.PushSubsStack("llenaCatalogo (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,350);
if (RapidSub.canDelegate("llenacatalogo")) { return __ref.runUserSub(false, "c_productos","llenacatalogo", __ref, _subtipo1);}
Debug.locals.put("subtipo1", _subtipo1);
 BA.debugLineNum = 350;BA.debugLine="Sub llenaCatalogo(subtipo1 As String)";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 373;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _llenaprodsll(RemoteObject __ref,RemoteObject _p) throws Exception{
try {
		Debug.PushSubsStack("LlenaProdsLL (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,888);
if (RapidSub.canDelegate("llenaprodsll")) { return __ref.runUserSub(false, "c_productos","llenaprodsll", __ref, _p);}
RemoteObject _cantsmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _pe = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _tempmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _listaprodsconcant = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _listaprodsconcantindex = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
int _q = 0;
RemoteObject _cont = RemoteObject.createImmutable(0);
int _pr0 = 0;
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
int _pr = 0;
 BA.debugLineNum = 888;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 890;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(33554432);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 891;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca";
Debug.ShouldStop(67108864);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 892;BA.debugLine="Dim cantsMap As Map";
Debug.ShouldStop(134217728);
_cantsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("cantsMap", _cantsmap);
 BA.debugLineNum = 893;BA.debugLine="cantsMap.Initialize";
Debug.ShouldStop(268435456);
_cantsmap.runVoidMethod ("Initialize");
 BA.debugLineNum = 894;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(536870912);
_pe = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_pe = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID, PE_CANT from PEDIDO where PE_CLIENTE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_clienteid" /*RemoteObject*/ )))),RemoteObject.createImmutable("' and PE_CEDIS = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("pe", _pe);Debug.locals.put("pe", _pe);
 BA.debugLineNum = 896;BA.debugLine="Do While pe.NextRow";
Debug.ShouldStop(-2147483648);
while (_pe.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 897;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(1);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 898;BA.debugLine="cantsMap.put(pe.GetString(\"PE_PROID\"), pe.GetSt";
Debug.ShouldStop(2);
_cantsmap.runVoidMethod ("Put",(Object)((_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))),(Object)((_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))));
 }
;
 BA.debugLineNum = 900;BA.debugLine="pe.Close";
Debug.ShouldStop(8);
_pe.runVoidMethod ("Close");
 };
 BA.debugLineNum = 903;BA.debugLine="If p.IsInitialized Then";
Debug.ShouldStop(64);
if (_p.runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 }else {
 BA.debugLineNum = 907;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(1024);
_p = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_p = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD from CAT_GUNAPROD where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' And CAT_GP_TIPOPROD2 <> '2' order by CAT_GP_NOMBRE")))));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 };
 BA.debugLineNum = 910;BA.debugLine="Do While p.NextRow";
Debug.ShouldStop(8192);
while (_p.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 911;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(16384);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 912;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(".",__ref.getField(true,"_haypedido" /*RemoteObject*/ )) && RemoteObject.solveBoolean(".",_cantsmap.runMethod(true,"ContainsKey",(Object)((_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))))))) { 
_cant = BA.numberCast(int.class, _cantsmap.runMethod(false,"Get",(Object)((_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("cant", _cant);};
 BA.debugLineNum = 913;BA.debugLine="Dim tempMap As Map = CreateMap(\"prod\":p.GetStrin";
Debug.ShouldStop(65536);
_tempmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tempmap = c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("prod")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE")))),RemoteObject.createImmutable(("precio")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))),RemoteObject.createImmutable(("almacen")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")))),RemoteObject.createImmutable(("id")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),RemoteObject.createImmutable(("cant")),(_cant)}));Debug.locals.put("tempMap", _tempmap);Debug.locals.put("tempMap", _tempmap);
 BA.debugLineNum = 914;BA.debugLine="listaProds.Add(tempMap)";
Debug.ShouldStop(131072);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_tempmap.getObject())));
 }
;
 BA.debugLineNum = 916;BA.debugLine="p.Close";
Debug.ShouldStop(524288);
_p.runVoidMethod ("Close");
 BA.debugLineNum = 918;BA.debugLine="PCLV.Commit";
Debug.ShouldStop(2097152);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.preoptimizedclv.class, "_commit" /*RemoteObject*/ );
 BA.debugLineNum = 919;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 920;BA.debugLine="Private listaProdsConCant, listaProdsConCantIndex";
Debug.ShouldStop(8388608);
_listaprodsconcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("listaProdsConCant", _listaprodsconcant);
_listaprodsconcantindex = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("listaProdsConCantIndex", _listaprodsconcantindex);
 BA.debugLineNum = 921;BA.debugLine="listaProdsConCant.Initialize";
Debug.ShouldStop(16777216);
_listaprodsconcant.runVoidMethod ("Initialize");
 BA.debugLineNum = 922;BA.debugLine="listaProdsConCantIndex.Initialize";
Debug.ShouldStop(33554432);
_listaprodsconcantindex.runVoidMethod ("Initialize");
 BA.debugLineNum = 923;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 924;BA.debugLine="For q=0 To listaProds.Size-1' Sacamos los product";
Debug.ShouldStop(134217728);
{
final int step29 = 1;
final int limit29 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_q = 0 ;
for (;(step29 > 0 && _q <= limit29) || (step29 < 0 && _q >= limit29) ;_q = ((int)(0 + _q + step29))  ) {
Debug.locals.put("q", _q);
 BA.debugLineNum = 925;BA.debugLine="If listaProds.Get(q).As(Map).Get(\"cant\").As(Int)";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("!",(BA.numberCast(int.class, (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _q))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant")))))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 927;BA.debugLine="listaProdsConCant.Add(listaProds.Get(q))";
Debug.ShouldStop(1073741824);
_listaprodsconcant.runVoidMethod ("Add",(Object)(__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _q)))));
 BA.debugLineNum = 928;BA.debugLine="listaProdsConCantIndex.Add(q)";
Debug.ShouldStop(-2147483648);
_listaprodsconcantindex.runVoidMethod ("Add",(Object)(RemoteObject.createImmutable((_q))));
 };
 }
}Debug.locals.put("q", _q);
;
 BA.debugLineNum = 932;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(8);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 933;BA.debugLine="For pr0=0 To listaProdsConCant.Size - 1 'Agregamo";
Debug.ShouldStop(16);
{
final int step36 = 1;
final int limit36 = RemoteObject.solve(new RemoteObject[] {_listaprodsconcant.runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pr0 = 0 ;
for (;(step36 > 0 && _pr0 <= limit36) || (step36 < 0 && _pr0 >= limit36) ;_pr0 = ((int)(0 + _pr0 + step36))  ) {
Debug.locals.put("pr0", _pr0);
 BA.debugLineNum = 934;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(32);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("Pnl", _pnl);Debug.locals.put("Pnl", _pnl);
 BA.debugLineNum = 935;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsVi";
Debug.ShouldStop(64);
_pnl.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50)))));
 BA.debugLineNum = 936;BA.debugLine="clv_prods_ll.Add(Pnl, listaProdsConCant.Get(pr0)";
Debug.ShouldStop(128);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_add",(Object)(_pnl),(Object)(_listaprodsconcant.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pr0)))));
 BA.debugLineNum = 937;BA.debugLine="listaHints.Add(listaProdsConCant.get(pr0).As(Map";
Debug.ShouldStop(256);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _listaprodsconcant.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pr0))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prod"))))));
 BA.debugLineNum = 938;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(512);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 }
}Debug.locals.put("pr0", _pr0);
;
 BA.debugLineNum = 942;BA.debugLine="For pr=0 To listaProds.Size-1";
Debug.ShouldStop(8192);
{
final int step43 = 1;
final int limit43 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pr = 0 ;
for (;(step43 > 0 && _pr <= limit43) || (step43 < 0 && _pr >= limit43) ;_pr = ((int)(0 + _pr + step43))  ) {
Debug.locals.put("pr", _pr);
 BA.debugLineNum = 943;BA.debugLine="If listaProdsConCantIndex.IndexOf(pr) = -1 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_listaprodsconcantindex.runMethod(true,"IndexOf",(Object)(RemoteObject.createImmutable((_pr)))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 944;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(32768);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("Pnl", _pnl);Debug.locals.put("Pnl", _pnl);
 BA.debugLineNum = 945;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsV";
Debug.ShouldStop(65536);
_pnl.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50)))));
 BA.debugLineNum = 946;BA.debugLine="clv_prods_ll.Add(Pnl, listaProds.Get(pr))";
Debug.ShouldStop(131072);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_add",(Object)(_pnl),(Object)(__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pr)))));
 BA.debugLineNum = 947;BA.debugLine="listaHints.Add(listaProds.get(pr).As(Map).Get(\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pr))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prod"))))));
 BA.debugLineNum = 948;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(524288);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 };
 }
}Debug.locals.put("pr", _pr);
;
 BA.debugLineNum = 955;BA.debugLine="PCLV.B4XSeekBar1.MaxValue = clv_prods_ll.Size";
Debug.ShouldStop(67108864);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_maxvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 956;BA.debugLine="PCLV.B4XSeekBar1.MinValue = 0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_minvalue" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 957;BA.debugLine="PCLV.B4XSeekBar1.Interval = clv_prods_ll.Size/20";
Debug.ShouldStop(268435456);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_interval" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(20)}, "/",0, 0)));
 BA.debugLineNum = 958;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size";
Debug.ShouldStop(536870912);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.b4xseekbar.class, "_setvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 959;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.b4xseekbar.class, "_update" /*RemoteObject*/ );
 BA.debugLineNum = 961;BA.debugLine="reiniciarlistaProds = False";
Debug.ShouldStop(1);
__ref.setField ("_reiniciarlistaprods" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 962;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_catalogos_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_catalogos_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,205);
if (RapidSub.canDelegate("lv_catalogos_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_catalogos_itemclick", __ref, _position, _value);}
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label13 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label14 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
RemoteObject _tm = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 205;BA.debugLine="Sub lv_catalogos_ItemClick (Position As Int, Value";
Debug.ShouldStop(4096);
 BA.debugLineNum = 206;BA.debugLine="If Value = \"CATALOGO\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("CATALOGO")))) { 
 BA.debugLineNum = 208;BA.debugLine="lfila.text = \"PRODUCTOS\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PRODUCTOS"));
 BA.debugLineNum = 209;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 211;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 212;BA.debugLine="If hayPedido Then p_botonesVenta.Visible = True";
Debug.ShouldStop(524288);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));};
 }else {
 BA.debugLineNum = 214;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 215;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 216;BA.debugLine="lfila.text = \"PROMOCIONES\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOCIONES"));
 BA.debugLineNum = 217;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 218;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(33554432);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 219;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(67108864);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 220;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(134217728);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 221;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(268435456);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 222;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(536870912);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 223;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(1073741824);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 224;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(-2147483648);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 225;BA.debugLine="label2.TextSize = 15";
Debug.ShouldStop(1);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 226;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(2);
_label2.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 227;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(4);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 228;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
Debug.ShouldStop(8);
_label13 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"Label");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 229;BA.debugLine="label13.TextSize = 15";
Debug.ShouldStop(16);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 230;BA.debugLine="label13.TextColor = Colors.Black";
Debug.ShouldStop(32);
_label13.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 231;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(64);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 232;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(128);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 233;BA.debugLine="label14.TextSize = 15";
Debug.ShouldStop(256);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 234;BA.debugLine="label14.TextColor = Colors.Black";
Debug.ShouldStop(512);
_label14.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 235;BA.debugLine="lfila.text = \"PROMOS\"";
Debug.ShouldStop(1024);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOS"));
 BA.debugLineNum = 236;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
Debug.ShouldStop(2048);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from cat_gunaprod where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) )")),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {BA.ObjectToString(_value),BA.ObjectToString(_value),BA.ObjectToString(_value)}))));
 BA.debugLineNum = 237;BA.debugLine="Log($\"res:${c2.RowCount}, ${Value}, ${marca}, ${";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","323527456",(RemoteObject.concat(RemoteObject.createImmutable("res:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_marca" /*RemoteObject*/ )))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_tipo" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 238;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 239;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(16384);
{
final int step32 = 1;
final int limit32 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step32 > 0 && _i <= limit32) || (step32 < 0 && _i >= limit32) ;_i = ((int)(0 + _i + step32))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 240;BA.debugLine="c2.Position=i";
Debug.ShouldStop(32768);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 241;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(65536);
_tm = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tm = c_productos._subs.runMethod(false,"_procesapromocion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )));Debug.locals.put("tm", _tm);Debug.locals.put("tm", _tm);
 BA.debugLineNum = 242;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("status")))),RemoteObject.createImmutable(("ok")))) { 
 BA.debugLineNum = 243;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_NO";
Debug.ShouldStop(262144);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE"))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("# "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN"))),RemoteObject.createImmutable(" $ "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))),RemoteObject.createImmutable(" F:"),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("mp")))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosCant")))),RemoteObject.createImmutable(" V:"),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("mp")))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesCant"))))))));
 };
 }
}Debug.locals.put("i", _i);
;
 }else {
 BA.debugLineNum = 247;BA.debugLine="ToastMessageShow(\"No hay promociones disponible";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No hay promociones disponibles.")),(Object)(c_productos.__c.getField(true,"False")));
 };
 BA.debugLineNum = 249;BA.debugLine="c2.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 250;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(33554432);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 };
 BA.debugLineNum = 252;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _lv_catalogos2_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_catalogos2_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,254);
if (RapidSub.canDelegate("lv_catalogos2_itemclick")) { __ref.runUserSub(false, "c_productos","lv_catalogos2_itemclick", __ref, _position, _value); return;}
ResumableSub_lv_catalogos2_ItemClick rsub = new ResumableSub_lv_catalogos2_ItemClick(null,__ref,_position,_value);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_lv_catalogos2_ItemClick extends BA.ResumableSub {
public ResumableSub_lv_catalogos2_ItemClick(keymon.lat.medicomed.c_productos parent,RemoteObject __ref,RemoteObject _position,RemoteObject _value) {
this.parent = parent;
this.__ref = __ref;
this._position = _position;
this._value = _value;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_productos parent;
RemoteObject _position;
RemoteObject _value;
RemoteObject _cliente = RemoteObject.declareNull("keymon.lat.medicomed.c_cliente");
RemoteObject _iniciocontador = RemoteObject.createImmutable("");
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label13 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label14 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
RemoteObject _tm = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
int step57;
int limit57;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("lv_catalogos2_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,254);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 255;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 256;BA.debugLine="BUSCA.Text = \"\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 257;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
Debug.ShouldStop(1);
_cliente = (parent._b4xpages.runMethod(false,"_getpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente"))));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 258;BA.debugLine="Log($\"value=${Value}\"$)";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","323592964",(RemoteObject.concat(RemoteObject.createImmutable("value="),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 259;BA.debugLine="If Value = \"PROMOS\" And cliente.cuenta <> \"N\" The";
Debug.ShouldStop(4);
if (true) break;

case 1:
//if
this.state = 6;
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("!",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
this.state = 3;
}else 
{ BA.debugLineNum = 263;BA.debugLine="Else if Value = \"PROMOS\" And cliente.cuenta = \"N\"";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("=",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
this.state = 5;
}}
if (true) break;

case 3:
//C
this.state = 6;
 BA.debugLineNum = 260;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(8);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 261;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(16);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 262;BA.debugLine="tipo = \"PROMOS\"";
Debug.ShouldStop(32);
__ref.setField ("_tipo" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 264;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(128);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 265;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(256);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 if (true) break;
;
 BA.debugLineNum = 267;BA.debugLine="If Value = \"PROMOS\" Then";
Debug.ShouldStop(1024);

case 6:
//if
this.state = 11;
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS")))) { 
this.state = 8;
}else {
this.state = 10;
}if (true) break;

case 8:
//C
this.state = 11;
 BA.debugLineNum = 268;BA.debugLine="LogColor(\"Promos\", Colors.red)";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("LogImpl","323592974",BA.ObjectToString("Promos"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 269;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
Debug.ShouldStop(4096);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from cat_gunaprod where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ?  AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) )")),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {BA.ObjectToString(_value),__ref.getField(true,"_marca" /*RemoteObject*/ ),__ref.getField(true,"_tipo" /*RemoteObject*/ )}))));
 if (true) break;

case 10:
//C
this.state = 11;
 BA.debugLineNum = 271;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
Debug.ShouldStop(16384);
parent.__c.runVoidMethod ("LogImpl","323592977",BA.ObjectToString("Catalogo"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 272;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_";
Debug.ShouldStop(32768);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from cat_gunaprod where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))));
 if (true) break;
;
 BA.debugLineNum = 274;BA.debugLine="If Value = \"CATALOGO\" Then";
Debug.ShouldStop(131072);

case 11:
//if
this.state = 28;
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("CATALOGO")))) { 
this.state = 13;
}else {
this.state = 15;
}if (true) break;

case 13:
//C
this.state = 28;
 BA.debugLineNum = 275;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 276;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 277;BA.debugLine="lfila.text = \"CATALOGO\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGO"));
 BA.debugLineNum = 278;BA.debugLine="Log(\"PGS\")";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("LogImpl","323592984",RemoteObject.createImmutable("PGS"),0);
 BA.debugLineNum = 279;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Cargando catalogo ..."))));
 BA.debugLineNum = 280;BA.debugLine="Sleep(100)";
Debug.ShouldStop(8388608);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_productos", "lv_catalogos2_itemclick"),BA.numberCast(int.class, 100));
this.state = 29;
return;
case 29:
//C
this.state = 28;
;
 BA.debugLineNum = 281;BA.debugLine="Private inicioContador As String = DateTime.Now";
Debug.ShouldStop(16777216);
_iniciocontador = BA.NumberToString(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"));Debug.locals.put("inicioContador", _iniciocontador);Debug.locals.put("inicioContador", _iniciocontador);
 BA.debugLineNum = 282;BA.debugLine="llenaCatalogo(False)";
Debug.ShouldStop(33554432);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_llenacatalogo" /*RemoteObject*/ ,(Object)(BA.ObjectToString(parent.__c.getField(true,"False"))));
 BA.debugLineNum = 283;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(67108864);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 284;BA.debugLine="Log(\"PGH\")";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("LogImpl","323592990",RemoteObject.createImmutable("PGH"),0);
 BA.debugLineNum = 285;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
Debug.ShouldStop(268435456);
parent.__c.runVoidMethod ("LogImpl","323592991",RemoteObject.concat(RemoteObject.createImmutable("TIEMPO DE PROCESO DEL CATALOGO: "),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {parent.__c.getField(false,"DateTime").runMethod(true,"getNow"),BA.numberCast(double.class, _iniciocontador)}, "-",1, 0)),RemoteObject.createImmutable(1000)}, "/",0, 0))),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 286;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(536870912);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 287;BA.debugLine="c2.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 15:
//C
this.state = 16;
 BA.debugLineNum = 289;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 290;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 291;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 292;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 293;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(16);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 294;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(32);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 295;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(64);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 296;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(128);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 297;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(256);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 298;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(512);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 299;BA.debugLine="label2.TextSize = 15";
Debug.ShouldStop(1024);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 300;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(2048);
_label2.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 301;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(4096);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 302;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
Debug.ShouldStop(8192);
_label13 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"Label");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 303;BA.debugLine="label13.TextSize = 15";
Debug.ShouldStop(16384);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 304;BA.debugLine="label13.TextColor = Colors.Black";
Debug.ShouldStop(32768);
_label13.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 305;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(65536);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 306;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(131072);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 307;BA.debugLine="label14.TextSize = 15";
Debug.ShouldStop(262144);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 308;BA.debugLine="label14.TextColor = Colors.Black";
Debug.ShouldStop(524288);
_label14.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 309;BA.debugLine="lfila.text = \"PROMOS\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOS"));
 BA.debugLineNum = 310;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (true) break;

case 16:
//if
this.state = 27;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 18;
}if (true) break;

case 18:
//C
this.state = 19;
 BA.debugLineNum = 311;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(4194304);
if (true) break;

case 19:
//for
this.state = 26;
step57 = 1;
limit57 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 30;
if (true) break;

case 30:
//C
this.state = 26;
if ((step57 > 0 && _i <= limit57) || (step57 < 0 && _i >= limit57)) this.state = 21;
if (true) break;

case 31:
//C
this.state = 30;
_i = ((int)(0 + _i + step57)) ;
Debug.locals.put("i", _i);
if (true) break;

case 21:
//C
this.state = 22;
 BA.debugLineNum = 312;BA.debugLine="c2.Position=i";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 313;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(16777216);
_tm = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tm = parent._subs.runMethod(false,"_procesapromocion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )));Debug.locals.put("tm", _tm);Debug.locals.put("tm", _tm);
 BA.debugLineNum = 314;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
Debug.ShouldStop(33554432);
if (true) break;

case 22:
//if
this.state = 25;
if (RemoteObject.solveBoolean("=",_tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("status")))),RemoteObject.createImmutable(("ok")))) { 
this.state = 24;
}if (true) break;

case 24:
//C
this.state = 25;
 BA.debugLineNum = 315;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_NO";
Debug.ShouldStop(67108864);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE"))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("# "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN"))),RemoteObject.createImmutable(" $ "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))),RemoteObject.createImmutable(" F:"),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("mp")))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsFijosCant")))),RemoteObject.createImmutable(" V:"),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("mp")))))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prodsVariablesCant"))))))));
 if (true) break;

case 25:
//C
this.state = 31;
;
 if (true) break;
if (true) break;

case 26:
//C
this.state = 27;
Debug.locals.put("i", _i);
;
 if (true) break;

case 27:
//C
this.state = 28;
;
 BA.debugLineNum = 319;BA.debugLine="c2.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 28:
//C
this.state = -1;
;
 BA.debugLineNum = 321;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(1);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 322;BA.debugLine="End Sub";
Debug.ShouldStop(2);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _lv_prodspedido_itemlongclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_prodsPedido_ItemLongClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,739);
if (RapidSub.canDelegate("lv_prodspedido_itemlongclick")) { return __ref.runUserSub(false, "c_productos","lv_prodspedido_itemlongclick", __ref, _position, _value);}
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _clie_id = RemoteObject.createImmutable("");
RemoteObject _usuario = RemoteObject.createImmutable("");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 739;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position";
Debug.ShouldStop(4);
 BA.debugLineNum = 740;BA.debugLine="Private sDate,sTime, clie_id, usuario As String";
Debug.ShouldStop(8);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
_clie_id = RemoteObject.createImmutable("");Debug.locals.put("clie_id", _clie_id);
_usuario = RemoteObject.createImmutable("");Debug.locals.put("usuario", _usuario);
 BA.debugLineNum = 741;BA.debugLine="If Not(Subs.pedidoGuardado) Then";
Debug.ShouldStop(16);
if (c_productos.__c.runMethod(true,"Not",(Object)(c_productos._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 742;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar este";
Debug.ShouldStop(32);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_productos.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_productos.__c.runMethod(false,"LoadBitmap",(Object)(c_productos.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 743;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 744;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select PE_";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select PE_PROID,PE_CANT FROM PEDIDO where pe_pronombre = ? and pe_cliente in (Select CUENTA from cuentaa) ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_value)}))));
 BA.debugLineNum = 745;BA.debugLine="c.Position=0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 746;BA.debugLine="Log(\"aqui1\")";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","325034759",RemoteObject.createImmutable("aqui1"),0);
 BA.debugLineNum = 747;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update ca";
Debug.ShouldStop(1024);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))})))));
 BA.debugLineNum = 748;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
Debug.ShouldStop(2048);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 BA.debugLineNum = 749;BA.debugLine="c.Close";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 750;BA.debugLine="Log(\"aqui2\")";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","325034763",RemoteObject.createImmutable("aqui2"),0);
 BA.debugLineNum = 751;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select cou";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(*) AS CUANTOS from cat_gunaprod where  CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = ? and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_value)}))));
 BA.debugLineNum = 752;BA.debugLine="c.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 753;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 754;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete f";
Debug.ShouldStop(131072);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where  pe_cedis in (select pe_cedis from pedido where pe_pronombre = ?) and pe_cliente in (Select CUENTA from cuentaa)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_value})))));
 BA.debugLineNum = 755;BA.debugLine="Log(\"aqui3\")";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","325034768",RemoteObject.createImmutable("aqui3"),0);
 }else {
 BA.debugLineNum = 757;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete f";
Debug.ShouldStop(1048576);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where  pe_pronombre = ?  and pe_cliente in (Select CUENTA from cuentaa)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_value})))));
 BA.debugLineNum = 758;BA.debugLine="Log(\"aqui4\")";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","325034771",RemoteObject.createImmutable("aqui4"),0);
 };
 BA.debugLineNum = 760;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(8388608);
c_productos.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 761;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16777216);
_sdate = c_productos.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_productos.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 762;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(33554432);
_stime = c_productos.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_productos.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 763;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUEN";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 764;BA.debugLine="c.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 765;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(268435456);
_clie_id = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")));Debug.locals.put("clie_id", _clie_id);
 BA.debugLineNum = 766;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUA";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 767;BA.debugLine="c.Position=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 768;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(-2147483648);
_usuario = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("usuario", _usuario);
 BA.debugLineNum = 769;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 770;BA.debugLine="c.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 771;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 772;BA.debugLine="Log(\"aqui5\")";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","325034785",RemoteObject.createImmutable("aqui5"),0);
 BA.debugLineNum = 773;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
Debug.ShouldStop(16);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 774;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i";
Debug.ShouldStop(32);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(_clie_id),(RemoteObject.concat(_sdate,_stime)),(_usuario),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 777;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
Debug.ShouldStop(256);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 778;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE km";
Debug.ShouldStop(512);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 779;BA.debugLine="h =B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(1024);
__ref.getField(false,"_h" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))));
 BA.debugLineNum = 780;BA.debugLine="h.Position=0";
Debug.ShouldStop(2048);
__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 781;BA.debugLine="l_cant.Text = h.GetString(\"PC_NOART\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))));
 BA.debugLineNum = 782;BA.debugLine="l_total2.Text = h.GetString(\"PC_MONTO\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))));
 BA.debugLineNum = 783;BA.debugLine="h.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_h" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 785;BA.debugLine="Log(\"aqui6\")";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","325034798",RemoteObject.createImmutable("aqui6"),0);
 BA.debugLineNum = 786;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
Debug.ShouldStop(131072);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE km";
Debug.ShouldStop(262144);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 788;BA.debugLine="h =B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(524288);
__ref.getField(false,"_h" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))));
 BA.debugLineNum = 789;BA.debugLine="h.Position=0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 790;BA.debugLine="l_cant.Text = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 791;BA.debugLine="l_total2.Text = 0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 792;BA.debugLine="h.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_h" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 794;BA.debugLine="b_terminar1_Click";
Debug.ShouldStop(33554432);
__ref.runClassMethod (keymon.lat.medicomed.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 797;BA.debugLine="ToastMessageShow(\"Esta venta ya esta guardada, n";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Esta venta ya esta guardada, no se puede editar ni borrar.")),(Object)(c_productos.__c.getField(true,"False")));
 };
 BA.debugLineNum = 799;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_promos_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_promos_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,324);
if (RapidSub.canDelegate("lv_promos_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_promos_itemclick", __ref, _position, _value);}
RemoteObject _cliente = RemoteObject.declareNull("keymon.lat.medicomed.c_cliente");
RemoteObject _promos = RemoteObject.declareNull("keymon.lat.medicomed.c_promos");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 324;BA.debugLine="Sub lv_promos_ItemClick (Position As Int, Value As";
Debug.ShouldStop(8);
 BA.debugLineNum = 325;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 326;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
Debug.ShouldStop(32);
_cliente = (c_productos._b4xpages.runMethod(false,"_getpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente"))));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 328;BA.debugLine="If Value = \"PROMOS\" And cliente.cuenta <> \"N\" The";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("!",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 329;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(256);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 330;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(512);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 331;BA.debugLine="tipo = \"PROMOS\"";
Debug.ShouldStop(1024);
__ref.setField ("_tipo" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 }else 
{ BA.debugLineNum = 332;BA.debugLine="Else if Value = \"PROMOS\" And cliente.cuenta = \"N\"";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("=",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 333;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(4096);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 334;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(8192);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }}
;
 BA.debugLineNum = 336;BA.debugLine="If entro = \"3\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
 }else 
{ BA.debugLineNum = 338;BA.debugLine="Else If entro = \"4\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 339;BA.debugLine="Log(\"Entro = 4\")";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","323658511",RemoteObject.createImmutable("Entro = 4"),0);
 BA.debugLineNum = 340;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(524288);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PROID")));
 BA.debugLineNum = 341;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(1048576);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PROID VALUES (?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_value})))));
 BA.debugLineNum = 342;BA.debugLine="Dim promos As C_Promos = B4XPages.GetPage(\"Promo";
Debug.ShouldStop(2097152);
_promos = (c_productos._b4xpages.runMethod(false,"_getpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Promos"))));Debug.locals.put("promos", _promos);Debug.locals.put("promos", _promos);
 BA.debugLineNum = 343;BA.debugLine="promos.laPromo = Subs.traeProdIdDeBD.Get(\"id\")";
Debug.ShouldStop(4194304);
_promos.setField ("_lapromo" /*RemoteObject*/ ,BA.ObjectToString(c_productos._subs.runMethod(false,"_traeprodiddebd" /*RemoteObject*/ ,__ref.getField(false, "ba")).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id"))))));
 BA.debugLineNum = 344;BA.debugLine="promos.elCliente = Subs.traeUsuarioDeBD";
Debug.ShouldStop(8388608);
_promos.setField ("_elcliente" /*RemoteObject*/ ,c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 345;BA.debugLine="B4XPages.ShowPage(\"Promos\")";
Debug.ShouldStop(16777216);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Promos")));
 }}
;
 BA.debugLineNum = 347;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_promos_itemlongclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_promos_ItemLongClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,655);
if (RapidSub.canDelegate("lv_promos_itemlongclick")) { return __ref.runUserSub(false, "c_productos","lv_promos_itemlongclick", __ref, _position, _value);}
RemoteObject _id = RemoteObject.createImmutable("");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 655;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
Debug.ShouldStop(16384);
 BA.debugLineNum = 656;BA.debugLine="Log(\"Promo longclic = \"&Value)";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","324576001",RemoteObject.concat(RemoteObject.createImmutable("Promo longclic = "),_value),0);
 BA.debugLineNum = 657;BA.debugLine="Private id As String = \"\"";
Debug.ShouldStop(65536);
_id = BA.ObjectToString("");Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 658;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(131072);
c_productos._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_productos._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ID from cat_gunaprod where CAT_GP_TIPO = 'PROMOS' and CAT_GP_NOMBRE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable("'"))))));__ref.setField("_c",c_productos._c);
 BA.debugLineNum = 659;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 660;BA.debugLine="c.Position = 0";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 661;BA.debugLine="id = c.GetString(\"CAT_GP_ID\")";
Debug.ShouldStop(1048576);
_id = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")));Debug.locals.put("id", _id);
 };
 BA.debugLineNum = 663;BA.debugLine="l_info.Text = $\"ID: ${id}${CRLF}${Value}\"$";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("ID: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 664;BA.debugLine="l_info.Visible = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 665;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_subtipo_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_subtipo_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,692);
if (RapidSub.canDelegate("lv_subtipo_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_subtipo_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 692;BA.debugLine="Private Sub lv_subtipo_ItemClick (Position As Int,";
Debug.ShouldStop(524288);
 BA.debugLineNum = 706;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_tipo_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_tipo_ItemClick (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,672);
if (RapidSub.canDelegate("lv_tipo_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_tipo_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 672;BA.debugLine="Private Sub lv_tipo_ItemClick (Position As Int, Va";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 690;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_vistapreviatrans_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_vistaPreviaTrans_Click (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,708);
if (RapidSub.canDelegate("p_vistapreviatrans_click")) { return __ref.runUserSub(false, "c_productos","p_vistapreviatrans_click", __ref);}
 BA.debugLineNum = 708;BA.debugLine="Private Sub p_vistaPreviaTrans_Click";
Debug.ShouldStop(8);
 BA.debugLineNum = 710;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _pclv_addprods(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("PCLV_AddProds (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,201);
if (RapidSub.canDelegate("pclv_addprods")) { return __ref.runUserSub(false, "c_productos","pclv_addprods", __ref);}
 BA.debugLineNum = 201;BA.debugLine="Sub PCLV_AddProds";
Debug.ShouldStop(256);
 BA.debugLineNum = 203;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _pclv_hintrequested(RemoteObject __ref,RemoteObject _index) throws Exception{
try {
		Debug.PushSubsStack("PCLV_HintRequested (c_productos) ","c_productos",17,__ref.getField(false, "ba"),__ref,965);
if (RapidSub.canDelegate("pclv_hintrequested")) { return __ref.runUserSub(false, "c_productos","pclv_hintrequested", __ref, _index);}
RemoteObject _word = RemoteObject.createImmutable("");
Debug.locals.put("Index", _index);
 BA.debugLineNum = 965;BA.debugLine="Sub PCLV_HintRequested(Index As Int) As Object";
Debug.ShouldStop(16);
 BA.debugLineNum = 966;BA.debugLine="Dim word As String = listaHints.get(Index)";
Debug.ShouldStop(32);
_word = BA.ObjectToString(__ref.getField(false,"_listahints" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_index)));Debug.locals.put("word", _word);Debug.locals.put("word", _word);
 BA.debugLineNum = 967;BA.debugLine="Return word";
Debug.ShouldStop(64);
if (true) return (_word);
 BA.debugLineNum = 968;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}