package gunav2.keymon.com.mx;

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

public class c_productos_subs_0 {


public static RemoteObject  _b_acep_dev_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_acep_dev_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2383);
if (RapidSub.canDelegate("b_acep_dev_click")) { return __ref.runUserSub(false, "c_productos","b_acep_dev_click", __ref);}
 BA.debugLineNum = 2383;BA.debugLine="Private Sub b_acep_dev_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 2384;BA.debugLine="p_devo.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_devo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 2385;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_aceptar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_aceptar_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,1349);
if (RapidSub.canDelegate("b_aceptar_click")) { return __ref.runUserSub(false, "c_productos","b_aceptar_click", __ref);}
 BA.debugLineNum = 1349;BA.debugLine="Private Sub b_aceptar_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 1350;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(32);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1351;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(64);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 1352;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_continuar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_continuar_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,1239);
if (RapidSub.canDelegate("b_continuar_click")) { return __ref.runUserSub(false, "c_productos","b_continuar_click", __ref);}
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 1239;BA.debugLine="Private Sub b_continuar_Click";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 1240;BA.debugLine="Log(\"b_continuar_Click\")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","066781185",RemoteObject.createImmutable("b_continuar_Click"),0);
 BA.debugLineNum = 1241;BA.debugLine="cuentaProds";
Debug.ShouldStop(16777216);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 1243;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","066781188",(RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).getObject()))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1251;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","066781196",RemoteObject.createImmutable("promos-inv, prods-inv, cat-vis"),0);
 BA.debugLineNum = 1252;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1253;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 = 1254;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1255;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1256;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 = 1257;BA.debugLine="Log(\"Continuar\")";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","066781202",RemoteObject.createImmutable("Continuar"),0);
 BA.debugLineNum = 1258;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(512);
_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 = 1259;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(1024);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 1260;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(2048);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 1261;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_devmas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_devmas_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2404);
if (RapidSub.canDelegate("b_devmas_click")) { return __ref.runUserSub(false, "c_productos","b_devmas_click", __ref);}
RemoteObject _c6 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _dev2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2404;BA.debugLine="Private Sub b_devmas_Click";
Debug.ShouldStop(8);
 BA.debugLineNum = 2406;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue";
Debug.ShouldStop(32);
_c6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c6 = 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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) and PE_CEDIS <> 'DUR' "))));Debug.locals.put("c6", _c6);Debug.locals.put("c6", _c6);
 BA.debugLineNum = 2407;BA.debugLine="If c6.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_c6.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2408;BA.debugLine="c6.Position = 0";
Debug.ShouldStop(128);
_c6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2412;BA.debugLine="Log(((l_cantdev.Text + 1)* preciodev))";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","068157448",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)),__ref.getField(true,"_preciodev" /*RemoteObject*/ )}, "*",0, 0))),0);
 BA.debugLineNum = 2413;BA.debugLine="If c6.GetString(\"PC_MONTO\")- ((l_cantdev.Text +";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("g",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _c6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)),__ref.getField(true,"_preciodev" /*RemoteObject*/ )}, "*",0, 0))}, "-",1, 0),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2414;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(8192);
_dev2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_dev2 = 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_NOMBRE  = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_nombredev" /*RemoteObject*/ )))),RemoteObject.createImmutable("'"))))));Debug.locals.put("dev2", _dev2);Debug.locals.put("dev2", _dev2);
 BA.debugLineNum = 2415;BA.debugLine="dev2.Position = 0";
Debug.ShouldStop(16384);
_dev2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2416;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).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")))));
 BA.debugLineNum = 2418;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 2420;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1";
Debug.ShouldStop(524288);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("DUR")),(Object)(BA.NumberToString((__ref.getField(true,"_preciodev" /*RemoteObject*/ ).<Double>get().doubleValue()*-(double) (0 + 1)))),(Object)(__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(__ref.getField(true,"_nombredev" /*RemoteObject*/ )),(Object)(_dev2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_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*/ )),(Object)(BA.NumberToString(1)),(Object)(BA.NumberToString(1)));
 }else {
 BA.debugLineNum = 2422;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1";
Debug.ShouldStop(2097152);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("DUR")),(Object)(BA.NumberToString((__ref.getField(true,"_preciodev" /*RemoteObject*/ ).<Double>get().doubleValue()*-(double) (0 + 1)))),(Object)(__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(__ref.getField(true,"_nombredev" /*RemoteObject*/ )),(Object)(_dev2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_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*/ )),(Object)(BA.NumberToString(1)),(Object)(BA.NumberToString(0)));
 };
 }else {
 BA.debugLineNum = 2428;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al prec";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 };
 BA.debugLineNum = 2439;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_devmenos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_devmenos_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2387);
if (RapidSub.canDelegate("b_devmenos_click")) { return __ref.runUserSub(false, "c_productos","b_devmenos_click", __ref);}
RemoteObject _dev2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2387;BA.debugLine="Private Sub b_devmenos_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 2388;BA.debugLine="If NumberFormat2((l_cantdev.Text - 1),0,0,0, Fals";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("g",BA.numberCast(double.class, c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).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")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2390;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(2097152);
_dev2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_dev2 = 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_NOMBRE  = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_nombredev" /*RemoteObject*/ )))),RemoteObject.createImmutable("'"))))));Debug.locals.put("dev2", _dev2);Debug.locals.put("dev2", _dev2);
 BA.debugLineNum = 2391;BA.debugLine="dev2.Position = 0";
Debug.ShouldStop(4194304);
_dev2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2392;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text -";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).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")))));
 BA.debugLineNum = 2393;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 2395;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)";
Debug.ShouldStop(67108864);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("DUR")),(Object)(BA.NumberToString((__ref.getField(true,"_preciodev" /*RemoteObject*/ ).<Double>get().doubleValue()*-(double) (0 + 1)))),(Object)(__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(__ref.getField(true,"_nombredev" /*RemoteObject*/ )),(Object)(_dev2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_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*/ )),(Object)(BA.NumberToString(1)),(Object)(BA.NumberToString(1)));
 }else {
 BA.debugLineNum = 2397;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)";
Debug.ShouldStop(268435456);
c_productos._subs.runVoidMethod ("_actualizaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("DUR")),(Object)(BA.NumberToString((__ref.getField(true,"_preciodev" /*RemoteObject*/ ).<Double>get().doubleValue()*-(double) (0 + 1)))),(Object)(__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(__ref.getField(true,"_nombredev" /*RemoteObject*/ )),(Object)(_dev2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_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*/ )),(Object)(BA.NumberToString(1)),(Object)(BA.NumberToString(0)));
 };
 };
 BA.debugLineNum = 2402;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_okpromodesc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_okpromodesc_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2296);
if (RapidSub.canDelegate("b_okpromodesc_click")) { return __ref.runUserSub(false, "c_productos","b_okpromodesc_click", __ref);}
 BA.debugLineNum = 2296;BA.debugLine="Private Sub b_okpromodesc_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 2297;BA.debugLine="p_promodesc.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_p_promodesc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 2298;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
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",7,__ref.getField(false, "ba"),__ref,878);
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 _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _inv = RemoteObject.createImmutable("");
RemoteObject _existencias = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _nombrex = RemoteObject.createImmutable("");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
 BA.debugLineNum = 878;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(8192);
 BA.debugLineNum = 879;BA.debugLine="totalcajasmaspiezas = 0";
Debug.ShouldStop(16384);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 880;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(32768);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 881;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(65536);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 884;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(524288);
_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 = 885;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(1048576);
_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 = 886;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(2097152);
_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 = 887;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(4194304);
_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 = 889;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(16777216);
_panelpiezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelpiezas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("panelpiezas", _panelpiezas);Debug.locals.put("panelpiezas", _panelpiezas);
 BA.debugLineNum = 891;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(67108864);
_lprodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lprodx = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("lProdX", _lprodx);Debug.locals.put("lProdX", _lprodx);
 BA.debugLineNum = 894;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(536870912);
_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 = 895;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(1073741824);
_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 = 896;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
Debug.ShouldStop(-2147483648);
_existencias = 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("existencias", _existencias);Debug.locals.put("existencias", _existencias);
 BA.debugLineNum = 897;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","066453523",(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_existencias))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 898;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 899;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 = 916;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","066453542",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 918;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text <";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean("k",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0))))))) { 
 BA.debugLineNum = 920;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almace";
Debug.ShouldStop(8388608);
(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)))).runVoidMethod ("Put",(Object)(RemoteObject.createImmutable(("almacen"))),(Object)(((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),RemoteObject.createImmutable(1)}, "-",1, 0)))));
 BA.debugLineNum = 921;BA.debugLine="inv = inv - 1";
Debug.ShouldStop(16777216);
_inv = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),RemoteObject.createImmutable(1)}, "-",1, 0));Debug.locals.put("inv", _inv);
 BA.debugLineNum = 923;BA.debugLine="laCant.Text = NumberFormat2((laCant.Text + 1), 1";
Debug.ShouldStop(67108864);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(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, 1)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_productos.__c.getField(true,"False")))));
 };
 BA.debugLineNum = 926;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
Debug.ShouldStop(536870912);
_nombrex = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("nombreX", _nombrex);Debug.locals.put("nombreX", _nombrex);
 BA.debugLineNum = 935;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("LogImpl","066453561",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 941;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","066453567",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),0);
 BA.debugLineNum = 942;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 943;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(16384);
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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(1)));
 }else {
 BA.debugLineNum = 945;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(65536);
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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 };
 BA.debugLineNum = 948;BA.debugLine="cuentaProds";
Debug.ShouldStop(524288);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 951;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(4194304);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 952;BA.debugLine="cs.Initialize";
Debug.ShouldStop(8388608);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 953;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"se";
Debug.ShouldStop(16777216);
_o = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_o = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ALMACEN from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
 BA.debugLineNum = 954;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(33554432);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 955;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 956;BA.debugLine="o.Position = 0";
Debug.ShouldStop(134217728);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 957;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(268435456);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 966;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red).";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(2),BA.numberCast(double.class, 2))) { 
_lprodx.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(_nombrex))).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: "),_invactualizado)))).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)((c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _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")))))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 BA.debugLineNum = 969;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(256);
__ref.setField ("_invtotal" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalcajasmaspiezas" /*RemoteObject*/ ),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0)));
 BA.debugLineNum = 971;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
Debug.ShouldStop(1024);
__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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 = 972;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 973;BA.debugLine="C.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 974;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","066453600",(RemoteObject.concat(RemoteObject.createImmutable("registros: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", arts: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))))),RemoteObject.createImmutable(", monto:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 975;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Prods: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))));
 BA.debugLineNum = 976;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Total: $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))))));
 BA.debugLineNum = 977;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("Total: $null"))) { 
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Total: $0.0"));};
 BA.debugLineNum = 978;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \"";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("Prods: null"))) { 
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Prods: 0"));};
 };
 BA.debugLineNum = 981;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenos_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,734);
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 _panelbotonesc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _tmpmap1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _tmpmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _nombrex = RemoteObject.createImmutable("");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
RemoteObject _c7 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totaldev = RemoteObject.createImmutable(0);
RemoteObject _c6 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totalprod = RemoteObject.createImmutable(0);
 BA.debugLineNum = 734;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 735;BA.debugLine="totalcajasmaspiezas = 0";
Debug.ShouldStop(1073741824);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 736;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(-2147483648);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 737;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(1);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 739;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(4);
_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 = 740;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(8);
_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 = 741;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(16);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 742;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(32);
_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 = 744;BA.debugLine="Dim panelbotonesc As B4XView = pnl.GetView(3)";
Debug.ShouldStop(128);
_panelbotonesc = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelbotonesc = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelbotonesc", _panelbotonesc);Debug.locals.put("panelbotonesc", _panelbotonesc);
 BA.debugLineNum = 745;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(256);
_lprodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lprodx = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("lProdX", _lprodx);Debug.locals.put("lProdX", _lprodx);
 BA.debugLineNum = 747;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(1024);
_panelpiezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelpiezas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("panelpiezas", _panelpiezas);Debug.locals.put("panelpiezas", _panelpiezas);
 BA.debugLineNum = 749;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 751;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text-1,0,0";
Debug.ShouldStop(16384);
_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 = 752;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(32768);
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 = 753;BA.debugLine="Private tmpMap1 As Map = clv_prods_ll.GetValue(in";
Debug.ShouldStop(65536);
_tmpmap1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap1 = (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("tmpMap1", _tmpmap1);Debug.locals.put("tmpMap1", _tmpmap1);
 BA.debugLineNum = 754;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(131072);
_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 = 755;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(262144);
_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 = 756;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(524288);
_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 = 757;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
Debug.ShouldStop(1048576);
_nombrex = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("nombreX", _nombrex);Debug.locals.put("nombreX", _nombrex);
 BA.debugLineNum = 758;BA.debugLine="LogColor(tmpMap1,Colors.Magenta)";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","066387992",BA.ObjectToString(_tmpmap1),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 759;BA.debugLine="prodsMap.Put(id, tmpMap)";
Debug.ShouldStop(4194304);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((_id)),(Object)((_tmpmap.getObject())));
 BA.debugLineNum = 760;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_id)));};
 BA.debugLineNum = 772;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","066388006",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 774;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant.te";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","066388008",(RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_lacant.runMethod(true,"getText")))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable(", "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_clienteid" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 775;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 776;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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(1)));
 }else {
 BA.debugLineNum = 778;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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 };
 BA.debugLineNum = 780;BA.debugLine="cuentaProds";
Debug.ShouldStop(2048);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 781;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","066388015",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 782;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","066388016",(RemoteObject.concat(RemoteObject.createImmutable("Total Prods: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_totalprods" /*RemoteObject*/ )))),RemoteObject.createImmutable(", Total Compra: $"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((__ref.getField(true,"_totalcompra" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 783;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 784;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(32768);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 785;BA.debugLine="cs.Initialize";
Debug.ShouldStop(65536);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 786;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(131072);
_o = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_o = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ALMACEN from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
 BA.debugLineNum = 787;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(262144);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 788;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 789;BA.debugLine="o.Position = 0";
Debug.ShouldStop(1048576);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 790;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(2097152);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 800;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(2),BA.numberCast(double.class, 2))) { 
_lprodx.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(_nombrex))).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: "),_invactualizado)))).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)((c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _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")))))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 814;BA.debugLine="If Subs.totalPedido < 1 Then laCant.Text = \"0\"";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, c_productos._subs.runMethod(true,"_totalpedido" /*RemoteObject*/ ,__ref.getField(false, "ba"))),BA.numberCast(double.class, 1))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 815;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(16384);
__ref.setField ("_invtotal" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalcajasmaspiezas" /*RemoteObject*/ ),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0)));
 BA.debugLineNum = 834;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
Debug.ShouldStop(2);
__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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 = 837;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 = 838;BA.debugLine="C.Position = 0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 839;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("LogImpl","066388073",(RemoteObject.concat(RemoteObject.createImmutable("registros: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", arts: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))))),RemoteObject.createImmutable(", monto:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 840;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
Debug.ShouldStop(128);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Prods: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))));
 BA.debugLineNum = 841;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
Debug.ShouldStop(256);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Total: $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))))));
 BA.debugLineNum = 842;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Total: $0.0"));};
 BA.debugLineNum = 843;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \"";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Prods: 0"));};
 };
 BA.debugLineNum = 849;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQue";
Debug.ShouldStop(65536);
_c7 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c7 = 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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) and PE_CEDIS = 'DUR'"))));Debug.locals.put("c7", _c7);Debug.locals.put("c7", _c7);
 BA.debugLineNum = 850;BA.debugLine="If c7.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_c7.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 851;BA.debugLine="c7.Position = 0";
Debug.ShouldStop(262144);
_c7.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 853;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO\"";
Debug.ShouldStop(1048576);
_totaldev = BA.numberCast(double.class, _c7.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))));Debug.locals.put("totaldev", _totaldev);Debug.locals.put("totaldev", _totaldev);
 };
 BA.debugLineNum = 857;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue";
Debug.ShouldStop(16777216);
_c6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c6 = 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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) and PE_CEDIS <> 'DUR' "))));Debug.locals.put("c6", _c6);Debug.locals.put("c6", _c6);
 BA.debugLineNum = 858;BA.debugLine="If c6.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_c6.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 859;BA.debugLine="c6.Position = 0";
Debug.ShouldStop(67108864);
_c6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 861;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONTO";
Debug.ShouldStop(268435456);
_totalprod = BA.numberCast(double.class, _c6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))));Debug.locals.put("totalprod", _totalprod);Debug.locals.put("totalprod", _totalprod);
 };
 BA.debugLineNum = 865;BA.debugLine="Log(totaldev &\"       \" & totalprod)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","066388099",RemoteObject.concat(_totaldev,RemoteObject.createImmutable("       "),_totalprod),0);
 BA.debugLineNum = 866;BA.debugLine="If totalprod = 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_totalprod,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 867;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(4);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'")));
 BA.debugLineNum = 868;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else 
{ BA.debugLineNum = 869;BA.debugLine="Else If totalprod < (totaldev * -1) Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("<",_totalprod,BA.numberCast(double.class, (_totaldev.<Double>get().doubleValue()*-(double) (0 + 1))))) { 
 BA.debugLineNum = 870;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(32);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'")));
 BA.debugLineNum = 871;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }}
;
 BA.debugLineNum = 876;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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",7,__ref.getField(false, "ba"),__ref,690);
if (RapidSub.canDelegate("b_qr_click")) { return __ref.runUserSub(false, "c_productos","b_qr_click", __ref);}
 BA.debugLineNum = 690;BA.debugLine="Sub b_QR_Click";
Debug.ShouldStop(131072);
 BA.debugLineNum = 691;BA.debugLine="If ciclo = 1 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 692;BA.debugLine="ciclo = 2";
Debug.ShouldStop(524288);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(2));
 BA.debugLineNum = 693;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(1048576);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 694;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2097152);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 695;BA.debugLine="else if ciclo = 2 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(2))) { 
 BA.debugLineNum = 696;BA.debugLine="ciclo = 3";
Debug.ShouldStop(8388608);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(3));
 BA.debugLineNum = 697;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(16777216);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 698;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 699;BA.debugLine="else if ciclo = 3 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(3))) { 
 BA.debugLineNum = 700;BA.debugLine="ciclo = 4";
Debug.ShouldStop(134217728);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(4));
 BA.debugLineNum = 701;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(268435456);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 702;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(536870912);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 703;BA.debugLine="else if ciclo = 4 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(4))) { 
 BA.debugLineNum = 704;BA.debugLine="ciclo = 5";
Debug.ShouldStop(-2147483648);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(5));
 BA.debugLineNum = 705;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(1);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 706;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 707;BA.debugLine="else if ciclo = 5 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(5))) { 
 BA.debugLineNum = 708;BA.debugLine="ciclo = 1";
Debug.ShouldStop(8);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 709;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(16);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 710;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(32);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }}}}}
;
 BA.debugLineNum = 712;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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",7,__ref.getField(false, "ba"),__ref,1326);
if (RapidSub.canDelegate("b_rechazar_click")) { return __ref.runUserSub(false, "c_productos","b_rechazar_click", __ref);}
 BA.debugLineNum = 1326;BA.debugLine="Private Sub b_rechazar_Click";
Debug.ShouldStop(8192);
 BA.debugLineNum = 1328;BA.debugLine="result =  Msgbox2($\"Seguro que desea borrar el pe";
Debug.ShouldStop(32768);
__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 = 1329;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1330;BA.debugLine="Subs.borraPedidoClienteActual";
Debug.ShouldStop(131072);
c_productos._subs.runVoidMethod ("_borrapedidoclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 1331;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1335;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 1336;BA.debugLine="Log(\"Positivo\")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","067174410",RemoteObject.createImmutable("Positivo"),0);
 BA.debugLineNum = 1337;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(16777216);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }else {
 BA.debugLineNum = 1339;BA.debugLine="Log(\"NO Positivo\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","067174413",RemoteObject.createImmutable("NO Positivo"),0);
 BA.debugLineNum = 1340;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 };
 BA.debugLineNum = 1345;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(1);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1346;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(2);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 1347;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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",7,__ref.getField(false, "ba"),__ref,1167);
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 = 1167;BA.debugLine="Sub b_terminar1_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 1170;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete from";
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_PRONOMBRE = ? ")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("N/A"))})))));
 BA.debugLineNum = 1172;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1173;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1174;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(2097152);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1175;BA.debugLine="lv_prodsPedido.Clear";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 1176;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Height = 35di";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label").runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 35))));
 BA.debugLineNum = 1177;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.Height";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel").runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 25))));
 BA.debugLineNum = 1178;BA.debugLine="Private c_prods As Cursor=B4XPages.MainPage.skmt.";
Debug.ShouldStop(33554432);
_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 = 1179;BA.debugLine="If c_prods.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_c_prods.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1180;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(134217728);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 1182;BA.debugLine="vamoaver.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1183;BA.debugLine="For i=0 To c_prods.RowCount -1";
Debug.ShouldStop(1073741824);
{
final int step12 = 1;
final int limit12 = RemoteObject.solve(new RemoteObject[] {_c_prods.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step12 > 0 && _i <= limit12) || (step12 < 0 && _i >= limit12) ;_i = ((int)(0 + _i + step12))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1184;BA.debugLine="cs.Initialize";
Debug.ShouldStop(-2147483648);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 1185;BA.debugLine="c_prods.Position=i";
Debug.ShouldStop(1);
_c_prods.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1186;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(2);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 1187;BA.debugLine="label1 = lv_prodsPedido.TwoLinesLayout.Label";
Debug.ShouldStop(4);
_label1 = __ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 1188;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(8);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 1189;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(16);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 1190;BA.debugLine="label1.color = Colors.White";
Debug.ShouldStop(32);
_label1.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 1191;BA.debugLine="Private textColor As Int = Colors.black";
Debug.ShouldStop(64);
_textcolor = c_productos.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 1193;BA.debugLine="If c_prods.GetString(\"PE_FOLIO\") = \"VENTA\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("VENTA"))) { 
 BA.debugLineNum = 1194;BA.debugLine="textColor = Colors.RGB(48,3,195)";
Debug.ShouldStop(512);
_textcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 48)),(Object)(BA.numberCast(int.class, 3)),(Object)(BA.numberCast(int.class, 195)));Debug.locals.put("textColor", _textcolor);
 }else 
{ BA.debugLineNum = 1195;BA.debugLine="Else If c_prods.GetString(\"PE_FOLIO\") = \"PREVEN";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("PREVENTA")) || RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("ABORDO")) || RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("RECARGA"))) { 
 BA.debugLineNum = 1196;BA.debugLine="textColor = Colors.RGB(166,0,0)";
Debug.ShouldStop(2048);
_textcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 166)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("textColor", _textcolor);
 }}
;
 BA.debugLineNum = 1198;BA.debugLine="If Not(IsNumber(c_prods.GetString(\"PE_CEDIS\")))";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(".",c_productos.__c.runMethod(true,"Not",(Object)(c_productos.__c.runMethod(true,"IsNumber",(Object)(_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))))))) && RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("VENTA"))) { 
 BA.debugLineNum = 1199;BA.debugLine="textColor = Colors.RGB(154,131,231) 'Si es pro";
Debug.ShouldStop(16384);
_textcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 154)),(Object)(BA.numberCast(int.class, 131)),(Object)(BA.numberCast(int.class, 231)));Debug.locals.put("textColor", _textcolor);
 }else 
{ BA.debugLineNum = 1200;BA.debugLine="Else If Not(IsNumber(c_prods.GetString(\"PE_CEDI";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(".",c_productos.__c.runMethod(true,"Not",(Object)(c_productos.__c.runMethod(true,"IsNumber",(Object)(_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))))))) && RemoteObject.solveBoolean("=",_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("PREVENTA"))) { 
 BA.debugLineNum = 1201;BA.debugLine="textColor = Colors.RGB(255,111,111) 'Si es pro";
Debug.ShouldStop(65536);
_textcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 111)),(Object)(BA.numberCast(int.class, 111)));Debug.locals.put("textColor", _textcolor);
 }}
;
 BA.debugLineNum = 1203;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(262144);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 1204;BA.debugLine="label2 = lv_prodsPedido.TwoLinesLayout.SecondLa";
Debug.ShouldStop(524288);
_label2 = __ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 1205;BA.debugLine="label2.TextSize = 10";
Debug.ShouldStop(1048576);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 10));
 BA.debugLineNum = 1206;BA.debugLine="label2.TextColor = Colors.Blue";
Debug.ShouldStop(2097152);
_label2.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 1209;BA.debugLine="lv_prodsPedido.AddSingleLine(cs.Color(textColor";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(_textcolor)).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 15))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),RemoteObject.createImmutable(" "))))).runMethod(false,"Pop").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF")))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 10))).runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Cantidad #"),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable(" SubTotal $"),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable(" "),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),RemoteObject.createImmutable(" "),_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))))))).runMethod(false,"PopAll").getObject())));
 BA.debugLineNum = 1210;BA.debugLine="label1.Height = 120dip";
Debug.ShouldStop(33554432);
_label1.runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 120))));
 BA.debugLineNum = 1211;BA.debugLine="lv_prodsPedido.SingleLineLayout.ItemHeight = 90";
Debug.ShouldStop(67108864);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").runMethod(true,"setItemHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 90))));
 BA.debugLineNum = 1212;BA.debugLine="vamoaver.Add(c_prods.GetString(\"PE_FOLIO\"))";
Debug.ShouldStop(134217728);
__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))))));
 BA.debugLineNum = 1213;BA.debugLine="folio = c_prods.GetString(\"PE_FOLIO\")";
Debug.ShouldStop(268435456);
__ref.setField ("_folio" /*RemoteObject*/ ,_c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1219;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select sum";
Debug.ShouldStop(4);
__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 = 1220;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1221;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(16);
__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 = 1222;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(32);
__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 = 1223;BA.debugLine="c.Close";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1226;BA.debugLine="c_prods.Close";
Debug.ShouldStop(512);
_c_prods.runVoidMethod ("Close");
 BA.debugLineNum = 1228;BA.debugLine="l_total2.Text = Subs.calculaTotalConPromoXRango(S";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos._subs.runMethod(true,"_calculatotalconpromoxrango" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 BA.debugLineNum = 1231;BA.debugLine="p_vistaPreviaTrans.Width = Root.Width";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 1232;BA.debugLine="p_vistaPreviaTrans.Height = Root.Height";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 1233;BA.debugLine="Subs.centraPanel(p_vistaPrevia, Root.Width)";
Debug.ShouldStop(65536);
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 = 1235;BA.debugLine="p_vistaPrevia.Visible=True";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_vistaprevia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1236;BA.debugLine="p_vistaPreviaTrans.Visible=True";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1237;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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",7,__ref.getField(false, "ba"),__ref,154);
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(gunav2.keymon.com.mx.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;
gunav2.keymon.com.mx.c_productos parent;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _haypromos = RemoteObject.createImmutable(false);
int _i = 0;
RemoteObject _tm = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
int step59;
int limit59;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,154);
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 = 155;BA.debugLine="tipo_venta = Subs.traeTipoVentaDeBD";
Debug.ShouldStop(67108864);
__ref.setField ("_tipo_venta" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traetipoventadebd" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA\" Or B";
Debug.ShouldStop(134217728);
if (true) break;

case 1:
//if
this.state = 8;
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA")) || RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("ABORDO")) || RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
this.state = 3;
}else 
{ BA.debugLineNum = 158;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"VENTA\" Th";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("VENTA"))) { 
this.state = 5;
}else 
{ BA.debugLineNum = 160;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"RECARGA\"";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("RECARGA"))) { 
this.state = 7;
}}}
if (true) break;

case 3:
//C
this.state = 8;
 BA.debugLineNum = 157;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
Debug.ShouldStop(268435456);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD");
 if (true) break;

case 5:
//C
this.state = 8;
 BA.debugLineNum = 159;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
Debug.ShouldStop(1073741824);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD2");
 if (true) break;

case 7:
//C
this.state = 8;
 BA.debugLineNum = 161;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD3\"";
Debug.ShouldStop(1);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD3");
 if (true) break;

case 8:
//C
this.state = 9;
;
 BA.debugLineNum = 163;BA.debugLine="Log(Starter.tabla)";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("LogImpl","065798153",parent._starter._tabla /*RemoteObject*/ ,0);
 BA.debugLineNum = 164;BA.debugLine="clienteId = Subs.traeCliente";
Debug.ShouldStop(8);
__ref.setField ("_clienteid" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 165;BA.debugLine="rutaUsuario = Subs.traeRuta";
Debug.ShouldStop(16);
__ref.setField ("_rutausuario" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 166;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(32);
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 = 167;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(64);
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 = 168;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(128);
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 = 169;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(256);
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 = 170;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(512);
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 = 171;BA.debugLine="clv_prods_ll.GetBase.SetLayoutAnimated(0, 5dip, 1";
Debug.ShouldStop(1024);
__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.74)}, "*",0, 0))));
 BA.debugLineNum = 172;BA.debugLine="clv_prods_ll.Base_Resize(clv_prods_ll.GetBase.Wid";
Debug.ShouldStop(2048);
__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 = 173;BA.debugLine="If B4XPages.MainPage.bTerminarClicked Then";
Debug.ShouldStop(4096);
if (true) break;

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

case 11:
//C
this.state = 12;
 BA.debugLineNum = 174;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 = 175;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 176;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 177;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 178;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 179;BA.debugLine="B4XPages.MainPage.bTerminarClicked = False";
Debug.ShouldStop(262144);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;
;
 BA.debugLineNum = 181;BA.debugLine="If ya_entro <> \"1\" Then";
Debug.ShouldStop(1048576);

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

case 14:
//C
this.state = 15;
 BA.debugLineNum = 182;BA.debugLine="If BUSCA.Text <> \"\" Then BUSCA.Text =\"\"";
Debug.ShouldStop(2097152);
if (true) break;

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

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

case 20:
//C
this.state = 21;
;
 BA.debugLineNum = 183;BA.debugLine="entro =\"3\"";
Debug.ShouldStop(4194304);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 184;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 185;BA.debugLine="Sleep(100)";
Debug.ShouldStop(16777216);
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 = 56;
return;
case 56:
//C
this.state = 21;
;
 BA.debugLineNum = 186;BA.debugLine="lfila.Text = \"PORTAFOLIO\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PORTAFOLIO"));
 BA.debugLineNum = 187;BA.debugLine="p_productos.Height = Root.Height";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_productos" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 188;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 189;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 190;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 191;BA.debugLine="p_botonesVenta.Top = clv_prods_ll.AsView.top + c";
Debug.ShouldStop(1073741824);
__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(10)}, "+-",2, 1));
 BA.debugLineNum = 192;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 21:
//C
this.state = 22;
;
 BA.debugLineNum = 194;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(2);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 195;BA.debugLine="label1 = lv_catalogos.SingleLineLayout.Label";
Debug.ShouldStop(4);
_label1 = __ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 196;BA.debugLine="label1.TextSize = 20";
Debug.ShouldStop(8);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 20));
 BA.debugLineNum = 197;BA.debugLine="label1.TextColor = Colors.White";
Debug.ShouldStop(16);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 198;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)";
Debug.ShouldStop(32);
_label1.runVoidMethod ("setColor",parent.__c.getField(false,"Colors").runMethod(true,"ARGB",(Object)(BA.numberCast(int.class, 58)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255))));
 BA.debugLineNum = 199;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DEF";
Debug.ShouldStop(64);
_label1.runMethod(false,"setTypeface",parent.__c.getField(false,"Typeface").runMethod(false,"CreateNew",(Object)(parent.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD")),(Object)(parent.__c.getField(false,"Typeface").getField(true,"STYLE_BOLD"))));
 BA.debugLineNum = 200;BA.debugLine="lv_catalogos.Width = Root.Width * 0.99";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.99)}, "*",0, 0)));
 BA.debugLineNum = 201;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 202;BA.debugLine="lv_catalogos.AddSingleLine(\"PORTAFOLIO\")";
Debug.ShouldStop(512);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("PORTAFOLIO"))));
 BA.debugLineNum = 204;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select cou";
Debug.ShouldStop(2048);
__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.concat(RemoteObject.createImmutable("select count(*) as hayPromos from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_TIPO = 'PROMOS'"))))));
 BA.debugLineNum = 205;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 207;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"SELECT CUE";
Debug.ShouldStop(16384);
__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 CUENTA FROM CUENTAA")))));
 BA.debugLineNum = 208;BA.debugLine="c.Position = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 209;BA.debugLine="If c.GetString(\"CUENTA\") <> \"0\" And c.GetString(\"";
Debug.ShouldStop(65536);
if (true) break;

case 22:
//if
this.state = 44;
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),BA.ObjectToString("0")) && RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),BA.ObjectToString("1"))) { 
this.state = 24;
}if (true) break;

case 24:
//C
this.state = 25;
 BA.debugLineNum = 210;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
Debug.ShouldStop(131072);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 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[] {2},new Object[] {BA.ObjectToString("PROMOS"),RemoteObject.createImmutable("PROMOS")}))));
 BA.debugLineNum = 211;BA.debugLine="LogColor($\"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","065798201",(RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 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))"))),parent.__c.getField(false,"Colors").getField(true,"Cyan"));
 BA.debugLineNum = 213;BA.debugLine="Private hayPromos As Boolean = False";
Debug.ShouldStop(1048576);
_haypromos = parent.__c.getField(true,"False");Debug.locals.put("hayPromos", _haypromos);Debug.locals.put("hayPromos", _haypromos);
 BA.debugLineNum = 214;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (true) break;

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

case 27:
//C
this.state = 28;
 BA.debugLineNum = 215;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("LogImpl","065798205",RemoteObject.concat(RemoteObject.createImmutable("Esto es un conteo --->"),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 216;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(8388608);
if (true) break;

case 28:
//for
this.state = 35;
step59 = 1;
limit59 = 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 = 57;
if (true) break;

case 57:
//C
this.state = 35;
if ((step59 > 0 && _i <= limit59) || (step59 < 0 && _i >= limit59)) this.state = 30;
if (true) break;

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

case 30:
//C
this.state = 31;
 BA.debugLineNum = 217;BA.debugLine="c2.Position = i";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 218;BA.debugLine="Log(\"Esto es i----->\"& i)'Isaac";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("LogImpl","065798208",RemoteObject.concat(RemoteObject.createImmutable("Esto es i----->"),RemoteObject.createImmutable(_i)),0);
 BA.debugLineNum = 219;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(67108864);
_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 = 220;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
Debug.ShouldStop(134217728);
if (true) break;

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

case 33:
//C
this.state = 34;
 BA.debugLineNum = 221;BA.debugLine="hayPromos = True";
Debug.ShouldStop(268435456);
_haypromos = parent.__c.getField(true,"True");Debug.locals.put("hayPromos", _haypromos);
 if (true) break;

case 34:
//C
this.state = 58;
;
 if (true) break;
if (true) break;
Debug.locals.put("i", _i);
;
 BA.debugLineNum = 224;BA.debugLine="If hayPromos Then lv_catalogos.AddSingleLine(\"P";
Debug.ShouldStop(-2147483648);

case 35:
//if
this.state = 40;
if (_haypromos.<Boolean>get().booleanValue()) { 
this.state = 37;
;}if (true) break;

case 37:
//C
this.state = 40;
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("PROMOCIONES"))));
if (true) break;

case 40:
//C
this.state = 43;
;
 if (true) break;

case 42:
//C
this.state = 43;
 BA.debugLineNum = 226;BA.debugLine="Log(\"NO HAY PROMOS\")";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","065798216",RemoteObject.createImmutable("NO HAY PROMOS"),0);
 if (true) break;

case 43:
//C
this.state = 44;
;
 BA.debugLineNum = 228;BA.debugLine="c2.Close";
Debug.ShouldStop(8);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 44:
//C
this.state = 45;
;
 BA.debugLineNum = 231;BA.debugLine="Sleep(100)";
Debug.ShouldStop(64);
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 = 59;
return;
case 59:
//C
this.state = 45;
;
 BA.debugLineNum = 232;BA.debugLine="l_total.Visible =False";
Debug.ShouldStop(128);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 233;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(256);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 234;BA.debugLine="l_total.Left = 5dip";
Debug.ShouldStop(512);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setLeft",parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5))));
 BA.debugLineNum = 235;BA.debugLine="l_totProds.Width = Root.Width * 0.19";
Debug.ShouldStop(1024);
__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 = 236;BA.debugLine="l_total.Left = l_totProds.Width + 20";
Debug.ShouldStop(2048);
__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 = 237;BA.debugLine="l_total.Width = Root.Width * 0.25";
Debug.ShouldStop(4096);
__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 = 239;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(16384);
_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 = 240;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(32768);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 241;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(65536);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 242;BA.debugLine="hayPedido = Subs.hayPedido";
Debug.ShouldStop(131072);
__ref.setField ("_haypedido" /*RemoteObject*/ ,parent._subs.runMethod(true,"_haypedido" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 244;BA.debugLine="B4XPages.MainPage.productos.clv_prods_ll.Clear";
Debug.ShouldStop(524288);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 245;BA.debugLine="If reiniciarlistaProds Then";
Debug.ShouldStop(1048576);
if (true) break;

case 45:
//if
this.state = 50;
if (__ref.getField(true,"_reiniciarlistaprods" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 47;
}else 
{ BA.debugLineNum = 249;BA.debugLine="else If hayPedido Then";
Debug.ShouldStop(16777216);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 49;
}}
if (true) break;

case 47:
//C
this.state = 50;
 BA.debugLineNum = 248;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(8388608);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 if (true) break;

case 49:
//C
this.state = 50;
 BA.debugLineNum = 253;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(268435456);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 if (true) break;
;
 BA.debugLineNum = 255;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)";
Debug.ShouldStop(1073741824);

case 50:
//if
this.state = 55;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),BA.numberCast(double.class, 0))) { 
this.state = 52;
;}if (true) break;

case 52:
//C
this.state = 55;
__ref.runClassMethod (gunav2.keymon.com.mx.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 55:
//C
this.state = -1;
;
 BA.debugLineNum = 256;BA.debugLine="clv_prods_ll.JumpToItem(0) 'Vamos al primer artíc";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_jumptoitem",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 257;BA.debugLine="PCLV.lblHint.SetTextSizeAnimated(0,13)";
Debug.ShouldStop(1);
__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 = 258;BA.debugLine="PCLV.B4XSeekBar1.Color1=Colors.DarkGray";
Debug.ShouldStop(2);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color1" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"DarkGray"));
 BA.debugLineNum = 259;BA.debugLine="PCLV.B4XSeekBar1.Color2=Colors.DarkGray";
Debug.ShouldStop(4);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color2" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"DarkGray"));
 BA.debugLineNum = 260;BA.debugLine="PCLV.B4XSeekBar1.ThumbColor=Colors.red";
Debug.ShouldStop(8);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_thumbcolor" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 261;BA.debugLine="PCLV.B4XSeekBar1.mBase.Left=Root.Width *0.91";
Debug.ShouldStop(16);
__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 = 263;BA.debugLine="PCLV.B4XSeekBar1.mBase.Height=clv_prods_ll.AsView";
Debug.ShouldStop(64);
__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 = 264;BA.debugLine="PCLV.pnlOverlay.Height = clv_prods_ll.AsView.Heig";
Debug.ShouldStop(128);
__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 = 265;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(256);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xseekbar.class, "_update" /*RemoteObject*/ );
 BA.debugLineNum = 269;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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",7,__ref.getField(false, "ba"),__ref,632);
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(gunav2.keymon.com.mx.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;
gunav2.keymon.com.mx.c_productos parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,632);
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 = 635;BA.debugLine="If l_info.Visible Then";
Debug.ShouldStop(67108864);
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 = 639;BA.debugLine="else if p_vistaPreviaTrans.Visible Then";
Debug.ShouldStop(1073741824);
if (__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 5;
}else 
{ BA.debugLineNum = 643;BA.debugLine="else if lv_promos.visible Then";
Debug.ShouldStop(4);
if (__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 7;
}else 
{ BA.debugLineNum = 651;BA.debugLine="else if clv_prods_ll.AsView.Visible Then";
Debug.ShouldStop(1024);
if (__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 9;
}else 
{ BA.debugLineNum = 671;BA.debugLine="else If entro = \"4\" Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
this.state = 11;
}else 
{ BA.debugLineNum = 677;BA.debugLine="Else If entro = \"3\" Then";
Debug.ShouldStop(16);
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 = 636;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 637;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(268435456);
parent.__c.runVoidMethod ("LogImpl","066191365",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 638;BA.debugLine="Return False";
Debug.ShouldStop(536870912);
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 = 640;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 641;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(1);
parent.__c.runVoidMethod ("LogImpl","066191369",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 642;BA.debugLine="Return False";
Debug.ShouldStop(2);
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 = 644;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 645;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 646;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 647;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 648;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 649;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(256);
parent.__c.runVoidMethod ("LogImpl","066191377",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 650;BA.debugLine="Return False";
Debug.ShouldStop(512);
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 = 652;BA.debugLine="lfila.text = \"PORTAFOLIO\"";
Debug.ShouldStop(2048);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PORTAFOLIO"));
 BA.debugLineNum = 653;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 = 654;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 655;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 656;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 657;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 658;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(131072);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 659;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","066191387",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 660;BA.debugLine="Return False";
Debug.ShouldStop(524288);
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 = 673;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(1);
parent.__c.runVoidMethod ("LogImpl","066191401",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 675;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(4);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 676;BA.debugLine="Return True";
Debug.ShouldStop(8);
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 = 678;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(32);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 679;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("LogImpl","066191407",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 680;BA.debugLine="Return False";
Debug.ShouldStop(128);
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 = 682;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(512);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 683;BA.debugLine="Log(\"AQUI\")";
Debug.ShouldStop(1024);
parent.__c.runVoidMethod ("LogImpl","066191411",RemoteObject.createImmutable("AQUI"),0);
 BA.debugLineNum = 684;BA.debugLine="Return False";
Debug.ShouldStop(2048);
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 = 686;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",7,__ref.getField(false, "ba"),__ref,113);
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 = 113;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(65536);
 BA.debugLineNum = 114;BA.debugLine="Root = Root1";
Debug.ShouldStop(131072);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 117;BA.debugLine="Root.LoadLayout(\"productos\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("productos")),__ref.getField(false, "ba"));
 BA.debugLineNum = 118;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(2097152);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_productos.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 119;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(4194304);
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 = 120;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(8388608);
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 = 122;BA.debugLine="PCLV.Initialize(Me, \"PCLV\", clv_prods_ll)";
Debug.ShouldStop(33554432);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.preoptimizedclv.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(BA.ObjectToString("PCLV")),(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ )));
 BA.debugLineNum = 123;BA.debugLine="ciclo = 1";
Debug.ShouldStop(67108864);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 124;BA.debugLine="l_info.Width = Root.Width * 0.8";
Debug.ShouldStop(134217728);
__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 = 125;BA.debugLine="l_info.Left = (Root.Width/2) - (l_info.Width/2)";
Debug.ShouldStop(268435456);
__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 = 126;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select dist";
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 distinct CAT_GP_TIPO from cat_gunaprod where CAT_GP_TIPO <> 'PROMOS' order by CAT_GP_TIPO"))));
 BA.debugLineNum = 127;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 128;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(-2147483648);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 129;BA.debugLine="label1 = lv_tipo.SingleLineLayout.Label";
Debug.ShouldStop(1);
_label1 = __ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 130;BA.debugLine="label1.TextSize = 17";
Debug.ShouldStop(2);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 131;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(4);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 132;BA.debugLine="lv_tipo.Clear";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 133;BA.debugLine="For i=0 To c.RowCount-1";
Debug.ShouldStop(16);
{
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 = 134;BA.debugLine="c.Position=i";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 135;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("LogImpl","065732630",RemoteObject.createImmutable("ENTRE AQUI EN PROMOS create"),0);
 BA.debugLineNum = 136;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
Debug.ShouldStop(128);
__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 = 139;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 142;BA.debugLine="listaTiempos.Initialize";
Debug.ShouldStop(8192);
__ref.getField(false,"_listatiempos" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 143;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(16384);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 144;BA.debugLine="pedidoMap.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_pedidomap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 145;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(65536);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 148;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 149;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 150;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
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",7,__ref.getField(false, "ba"),__ref,1748);
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(gunav2.keymon.com.mx.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;
gunav2.keymon.com.mx.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",7,__ref.getField(false, "ba"),__ref,1748);
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 = 1750;BA.debugLine="If Not(clv_prods_ll.AsView.Visible) Then clv_prod";
Debug.ShouldStop(2097152);
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 = 1751;BA.debugLine="If (New.Length = 1 Or New.Length = 2) And Not(for";
Debug.ShouldStop(4194304);
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 = 1752;BA.debugLine="forzarBusqueda = False";
Debug.ShouldStop(8388608);
__ref.setField ("_forzarbusqueda" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 BA.debugLineNum = 1753;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(16777216);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 1754;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(33554432);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1755;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1756;BA.debugLine="Sleep(0)";
Debug.ShouldStop(134217728);
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 = 1761;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exec";
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 DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID 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_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"))))));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 1763;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("LogImpl","067567631",RemoteObject.createImmutable("Llamamos LlenaProdsLL"),0);
 BA.debugLineNum = 1764;BA.debugLine="LlenaProdsLL(p)";
Debug.ShouldStop(8);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,(Object)(_p));
 BA.debugLineNum = 1783;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
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 = 64;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
c_productos._tipo_venta = c_productos._subs.runMethod(true,"_traetipoventadebd" /*RemoteObject*/ ,__ref.getField(false, "ba"));__ref.setField("_tipo_venta",c_productos._tipo_venta);
 //BA.debugLineNum = 65;BA.debugLine="Dim 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 ("gunav2.keymon.com.mx.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 r As Cursor";
c_productos._r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_r",c_productos._r);
 //BA.debugLineNum = 79;BA.debugLine="Dim vamoaver As List";
c_productos._vamoaver = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_vamoaver",c_productos._vamoaver);
 //BA.debugLineNum = 80;BA.debugLine="Dim j3 As Cursor";
c_productos._j3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_j3",c_productos._j3);
 //BA.debugLineNum = 81;BA.debugLine="Dim invTotal As Int";
c_productos._invtotal = RemoteObject.createImmutable(0);__ref.setField("_invtotal",c_productos._invtotal);
 //BA.debugLineNum = 82;BA.debugLine="Private et_pCantc As EditText";
c_productos._et_pcantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pcantc",c_productos._et_pcantc);
 //BA.debugLineNum = 83;BA.debugLine="Private b_prodMenosc As Button";
c_productos._b_prodmenosc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenosc",c_productos._b_prodmenosc);
 //BA.debugLineNum = 84;BA.debugLine="Private b_prodMasc As Button";
c_productos._b_prodmasc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmasc",c_productos._b_prodmasc);
 //BA.debugLineNum = 85;BA.debugLine="Dim totalcajasmaspiezas As Int";
c_productos._totalcajasmaspiezas = RemoteObject.createImmutable(0);__ref.setField("_totalcajasmaspiezas",c_productos._totalcajasmaspiezas);
 //BA.debugLineNum = 86;BA.debugLine="Dim cajas As Int";
c_productos._cajas = RemoteObject.createImmutable(0);__ref.setField("_cajas",c_productos._cajas);
 //BA.debugLineNum = 87;BA.debugLine="Dim piezas As Int";
c_productos._piezas = RemoteObject.createImmutable(0);__ref.setField("_piezas",c_productos._piezas);
 //BA.debugLineNum = 88;BA.debugLine="Dim P_CALATOLOS As Panel";
c_productos._p_calatolos = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_calatolos",c_productos._p_calatolos);
 //BA.debugLineNum = 90;BA.debugLine="Dim Panel2 As Panel";
c_productos._panel2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel2",c_productos._panel2);
 //BA.debugLineNum = 91;BA.debugLine="Private p_botMasMenc As Panel";
c_productos._p_botmasmenc = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botmasmenc",c_productos._p_botmasmenc);
 //BA.debugLineNum = 92;BA.debugLine="Private p_promodesc As Panel";
c_productos._p_promodesc = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_promodesc",c_productos._p_promodesc);
 //BA.debugLineNum = 93;BA.debugLine="Private l_promodesc As Label";
c_productos._l_promodesc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_promodesc",c_productos._l_promodesc);
 //BA.debugLineNum = 94;BA.debugLine="Private b_okpromodesc As Button";
c_productos._b_okpromodesc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_okpromodesc",c_productos._b_okpromodesc);
 //BA.debugLineNum = 95;BA.debugLine="Private p_devo As Panel";
c_productos._p_devo = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_devo",c_productos._p_devo);
 //BA.debugLineNum = 96;BA.debugLine="Private l_proddev As Label";
c_productos._l_proddev = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_proddev",c_productos._l_proddev);
 //BA.debugLineNum = 97;BA.debugLine="Private b_devmas As Button";
c_productos._b_devmas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_devmas",c_productos._b_devmas);
 //BA.debugLineNum = 98;BA.debugLine="Private l_cantdev As Label";
c_productos._l_cantdev = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cantdev",c_productos._l_cantdev);
 //BA.debugLineNum = 99;BA.debugLine="Private b_devmenos As Button";
c_productos._b_devmenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_devmenos",c_productos._b_devmenos);
 //BA.debugLineNum = 100;BA.debugLine="Private b_acep_dev As Button";
c_productos._b_acep_dev = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_acep_dev",c_productos._b_acep_dev);
 //BA.debugLineNum = 103;BA.debugLine="Dim preciodev As Double";
c_productos._preciodev = RemoteObject.createImmutable(0);__ref.setField("_preciodev",c_productos._preciodev);
 //BA.debugLineNum = 104;BA.debugLine="Dim nombredev As String";
c_productos._nombredev = RemoteObject.createImmutable("");__ref.setField("_nombredev",c_productos._nombredev);
 //BA.debugLineNum = 105;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",7,__ref.getField(false, "ba"),__ref,1529);
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 = 1529;BA.debugLine="Private Sub clv_prods_ll_ItemClick (Index As Int,";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 1531;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
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",7,__ref.getField(false, "ba"),__ref,1579);
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 = 1579;BA.debugLine="Private Sub clv_prods_ll_VisibleRangeChanged (Firs";
Debug.ShouldStop(1024);
 BA.debugLineNum = 1623;BA.debugLine="Dim ExtraSize As Int = 15 'List size";
Debug.ShouldStop(4194304);
_extrasize = BA.numberCast(int.class, 15);Debug.locals.put("ExtraSize", _extrasize);Debug.locals.put("ExtraSize", _extrasize);
 BA.debugLineNum = 1624;BA.debugLine="For i = Max(0, FirstIndex - ExtraSize) To Min(Las";
Debug.ShouldStop(8388608);
{
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 = 1625;BA.debugLine="Dim Pnl As B4XView = clv_prods_ll.GetPanel(i)";
Debug.ShouldStop(16777216);
_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 = 1626;BA.debugLine="If i > FirstIndex - ExtraSize And i < LastIndex";
Debug.ShouldStop(33554432);
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 = 1628;BA.debugLine="If Pnl.NumberOfViews = 0 Then 'Add each item/la";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_pnl.runMethod(true,"getNumberOfViews"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1629;BA.debugLine="Pnl.LoadLayout(\"proditem\")";
Debug.ShouldStop(268435456);
_pnl.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("proditem")),__ref.getField(false, "ba"));
 BA.debugLineNum = 1631;BA.debugLine="p_prods.Width = Root.Width * 0.92";
Debug.ShouldStop(1073741824);
__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 = 1632;BA.debugLine="p_botMasMen.Left = p_prods.Width - (p_botMasMe";
Debug.ShouldStop(-2147483648);
__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 = 1633;BA.debugLine="p_botMasMenc.Left = p_prods.Width - (p_botMasM";
Debug.ShouldStop(1);
__ref.getField(false,"_p_botmasmenc" /*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 = 1634;BA.debugLine="p_prods.Height = 134dip";
Debug.ShouldStop(2);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 134))));
 BA.debugLineNum = 1642;BA.debugLine="Pnl.SetLayoutAnimated(0,0,0,Pnl.Width,145dip)";
Debug.ShouldStop(512);
_pnl.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_pnl.runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 145)))));
 BA.debugLineNum = 1643;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(1024);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 1644;BA.debugLine="cs.Initialize";
Debug.ShouldStop(2048);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 1645;BA.debugLine="l_prodX.SetTextSizeAnimated(0, 13)";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runVoidMethod ("SetTextSizeAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(float.class, 13)));
 BA.debugLineNum = 1646;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant\"";
Debug.ShouldStop(8192);
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 = 1647;BA.debugLine="p_prods.Color=0xFFE2EEFF";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",BA.numberCast(int.class, ((int)0xffe2eeff)));
 BA.debugLineNum = 1652;BA.debugLine="et_pCant.TextColor=Colors.Red";
Debug.ShouldStop(524288);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1653;BA.debugLine="et_pCantc.TextColor=Colors.Red";
Debug.ShouldStop(1048576);
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1654;BA.debugLine="If Subs.pedidoGuardado Then";
Debug.ShouldStop(2097152);
if (c_productos._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1656;BA.debugLine="et_pCant.Enabled = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1658;BA.debugLine="b_prodMenos.Enabled = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_b_prodmenos" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));
 };
 }else {
 BA.debugLineNum = 1661;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"prio";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",(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("prioridad")))),RemoteObject.createImmutable(("PRIORITARIO")))) { 
 BA.debugLineNum = 1662;BA.debugLine="p_prods.Color = Colors.RGB(255, 212, 163) 'n";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 212)),(Object)(BA.numberCast(int.class, 163))));
 }else 
{ BA.debugLineNum = 1664;BA.debugLine="Else If clv_prods_ll.GetValue(i).As(Map).Get(";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",(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("prioridad")))),RemoteObject.createImmutable(("COMPLEMENTARIO")))) { 
 BA.debugLineNum = 1665;BA.debugLine="p_prods.Color = Colors.RGB(177, 200, 249)'az";
Debug.ShouldStop(1);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 177)),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 249))));
 }else 
{ BA.debugLineNum = 1667;BA.debugLine="else If clv_prods_ll.GetValue(i).As(Map).Get(";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",(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("prioridad")))),RemoteObject.createImmutable(("CATALOGO REGULAR")))) { 
 BA.debugLineNum = 1668;BA.debugLine="p_prods.Color = Colors.White";
Debug.ShouldStop(8);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 }else 
{ BA.debugLineNum = 1670;BA.debugLine="else If clv_prods_ll.GetValue(i).As(Map).Get(";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",(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("prioridad")))),RemoteObject.createImmutable(("ESTRATEGICO")))) { 
 BA.debugLineNum = 1671;BA.debugLine="p_prods.Color = Colors.RGB(241, 255, 163) 'a";
Debug.ShouldStop(64);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 241)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 163))));
 }}}}
;
 };
 BA.debugLineNum = 1675;BA.debugLine="Private precio As String=NumberFormat2(clv_pro";
Debug.ShouldStop(1024);
_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 = 1686;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant";
Debug.ShouldStop(2097152);
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 = 1718;BA.debugLine="l_prodX.Text = cs.Color(Colors.red).append(clv";
Debug.ShouldStop(2097152);
__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 = 1743;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size - Fir";
Debug.ShouldStop(16384);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.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 = 1746;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
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",7,__ref.getField(false, "ba"),__ref,717);
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 = 717;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(4096);
 BA.debugLineNum = 732;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
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",7,__ref.getField(false, "ba"),__ref,1153);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_productos","cuentaprods", __ref);}
 BA.debugLineNum = 1153;BA.debugLine="Sub cuentaProds";
Debug.ShouldStop(1);
 BA.debugLineNum = 1155;BA.debugLine="Log(\"===========================\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","066650114",RemoteObject.createImmutable("==========================="),0);
 BA.debugLineNum = 1156;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(8);
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 = 1159;BA.debugLine="p_botonesVenta.Visible = True";
Debug.ShouldStop(64);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1160;BA.debugLine="p_botonesVenta.BringToFront";
Debug.ShouldStop(128);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 1161;BA.debugLine="c.Position=0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1163;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1165;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_pcant_focuschanged(RemoteObject __ref,RemoteObject _hasfocus) throws Exception{
try {
		Debug.PushSubsStack("et_pCant_FocusChanged (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,983);
if (RapidSub.canDelegate("et_pcant_focuschanged")) { return __ref.runUserSub(false, "c_productos","et_pcant_focuschanged", __ref, _hasfocus);}
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 _lacant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _id = RemoteObject.createImmutable("");
Debug.locals.put("HasFocus", _hasfocus);
 BA.debugLineNum = 983;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 984;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","066519041",(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 = 985;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\"";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 986;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
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 = 987;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
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 = 988;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 = 989;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 = 990;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(536870912);
_lacant2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant2 = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("laCant2", _lacant2);Debug.locals.put("laCant2", _lacant2);
 BA.debugLineNum = 991;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 = 992;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\"";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 993;BA.debugLine="etCantHasFocus = HasFocus";
Debug.ShouldStop(1);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,_hasfocus);
 BA.debugLineNum = 994;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","066519051",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 995;BA.debugLine="If laCant2.IsInitialized Then";
Debug.ShouldStop(4);
if (_lacant2.runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 996;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text";
Debug.ShouldStop(8);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, _lacant2.runMethod(true,"getText"))}, "+",1, 0)));
 }else {
 BA.debugLineNum = 998;BA.debugLine="totalcajasmaspiezas = laCant.Text";
Debug.ShouldStop(32);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, _lacant.runMethod(true,"getText")));
 };
 BA.debugLineNum = 1000;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(128);
__ref.setField ("_invtotal" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_totalcajasmaspiezas" /*RemoteObject*/ ),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0)));
 BA.debugLineNum = 1003;BA.debugLine="cuentaProds";
Debug.ShouldStop(1024);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 1004;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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",7,__ref.getField(false, "ba"),__ref,1006);
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 _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _inv = RemoteObject.createImmutable("");
RemoteObject _nombrex = RemoteObject.createImmutable("");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
RemoteObject _c7 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totaldev = RemoteObject.createImmutable(0);
RemoteObject _c6 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totalprod = RemoteObject.createImmutable(0);
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 1006;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
Debug.ShouldStop(8192);
 BA.debugLineNum = 1009;BA.debugLine="If etCantHasFocus = True Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ),c_productos.__c.getField(true,"True"))) { 
 BA.debugLineNum = 1010;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus=";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","066584580",(RemoteObject.concat(RemoteObject.createImmutable("txt changed: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_old))),RemoteObject.createImmutable("|"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_new))),RemoteObject.createImmutable(", hasfocus="),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 1011;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(262144);
_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 = 1012;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
Debug.ShouldStop(524288);
_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 = 1013;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(1048576);
_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 = 1014;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2";
Debug.ShouldStop(2097152);
_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 = 1016;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(8388608);
_lprodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lprodx = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("lProdX", _lprodx);Debug.locals.put("lProdX", _lprodx);
 BA.debugLineNum = 1017;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(16777216);
_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 = 1018;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i";
Debug.ShouldStop(33554432);
_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 = 1019;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
Debug.ShouldStop(67108864);
_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 = 1020;BA.debugLine="Private inv As String=Subs.traeinventario(id)";
Debug.ShouldStop(134217728);
_inv = c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("inv", _inv);Debug.locals.put("inv", _inv);
 BA.debugLineNum = 1021;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
Debug.ShouldStop(268435456);
_nombrex = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("nombreX", _nombrex);Debug.locals.put("nombreX", _nombrex);
 BA.debugLineNum = 1023;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(1073741824);
_panelpiezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelpiezas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("panelpiezas", _panelpiezas);Debug.locals.put("panelpiezas", _panelpiezas);
 BA.debugLineNum = 1026;BA.debugLine="If(New = \"\" Or New = Null Or New = \"-\") Then New";
Debug.ShouldStop(2);
if ((RemoteObject.solveBoolean("=",_new,BA.ObjectToString("")) || RemoteObject.solveBoolean("n",_new) || RemoteObject.solveBoolean("=",_new,RemoteObject.createImmutable("-")))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 1028;BA.debugLine="If(New > invTotal) Then";
Debug.ShouldStop(8);
if ((RemoteObject.solveBoolean(">",BA.numberCast(double.class, _new),BA.numberCast(double.class, __ref.getField(true,"_invtotal" /*RemoteObject*/ ))))) { 
 BA.debugLineNum = 1029;BA.debugLine="Sender.As(EditText).text = invTotal";
Debug.ShouldStop(16);
(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(__ref.getField(true,"_invtotal" /*RemoteObject*/ )));
 };
 BA.debugLineNum = 1033;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 1034;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1035;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","066584605",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1049;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <";
Debug.ShouldStop(16777216);
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.ObjectToString("")) && RemoteObject.solveBoolean(".",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ))) { 
 BA.debugLineNum = 1050;BA.debugLine="Log(\"actualizamos producto\")";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","066584620",RemoteObject.createImmutable("actualizamos producto"),0);
 BA.debugLineNum = 1051;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 1052;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci";
Debug.ShouldStop(134217728);
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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(1)));
 }else {
 BA.debugLineNum = 1054;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci";
Debug.ShouldStop(536870912);
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*/ )),(Object)(BA.NumberToString(0)),(Object)(BA.NumberToString(0)));
 };
 BA.debugLineNum = 1057;BA.debugLine="cuentaProds";
Debug.ShouldStop(1);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 1070;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 1071;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(16384);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 1072;BA.debugLine="cs.Initialize";
Debug.ShouldStop(32768);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 1073;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(65536);
_o = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_o = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_ALMACEN from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
 BA.debugLineNum = 1074;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(131072);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 1076;BA.debugLine="o.Position = 0";
Debug.ShouldStop(524288);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1077;BA.debugLine="invActualizado = Subs.traeinventario(id)";
Debug.ShouldStop(1048576);
_invactualizado = c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 1078;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","066584648",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 1089;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
Debug.ShouldStop(1);
_lprodx.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(_nombrex))).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: "),(c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))))))).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)((c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _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")))))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));
 };
 BA.debugLineNum = 1103;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
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,"ExecQuery",(Object)(RemoteObject.createImmutable("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 = 1104;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1105;BA.debugLine="C.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1106;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","066584676",(RemoteObject.concat(RemoteObject.createImmutable("registros: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", arts: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))))),RemoteObject.createImmutable(", monto:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1107;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Prods: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))));
 BA.debugLineNum = 1108;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Total: $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))))));
 BA.debugLineNum = 1109;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Total: $0.0"));};
 BA.debugLineNum = 1110;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Prods: 0"));};
 };
 BA.debugLineNum = 1113;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
Debug.ShouldStop(16777216);
__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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 = 1114;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1115;BA.debugLine="C.Position = 0";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1116;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","066584686",(RemoteObject.concat(RemoteObject.createImmutable("registros: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", arts: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))))),RemoteObject.createImmutable(", monto:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1117;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Prods: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))));
 BA.debugLineNum = 1118;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Total: $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))))));
 BA.debugLineNum = 1119;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Total: $0.0"));};
 BA.debugLineNum = 1120;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Prods: 0"));};
 };
 BA.debugLineNum = 1126;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(32);
_c7 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c7 = 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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) and PE_CEDIS = 'DUR'"))));Debug.locals.put("c7", _c7);Debug.locals.put("c7", _c7);
 BA.debugLineNum = 1127;BA.debugLine="If c7.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_c7.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1128;BA.debugLine="c7.Position = 0";
Debug.ShouldStop(128);
_c7.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1130;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO";
Debug.ShouldStop(512);
_totaldev = BA.numberCast(double.class, _c7.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))));Debug.locals.put("totaldev", _totaldev);Debug.locals.put("totaldev", _totaldev);
 };
 BA.debugLineNum = 1134;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(8192);
_c6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c6 = 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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) and PE_CEDIS <> 'DUR' "))));Debug.locals.put("c6", _c6);Debug.locals.put("c6", _c6);
 BA.debugLineNum = 1135;BA.debugLine="If c6.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_c6.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1136;BA.debugLine="c6.Position = 0";
Debug.ShouldStop(32768);
_c6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1138;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONT";
Debug.ShouldStop(131072);
_totalprod = BA.numberCast(double.class, _c6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))));Debug.locals.put("totalprod", _totalprod);Debug.locals.put("totalprod", _totalprod);
 };
 BA.debugLineNum = 1143;BA.debugLine="If totalprod = 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_totalprod,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1144;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(8388608);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'")));
 BA.debugLineNum = 1145;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else 
{ BA.debugLineNum = 1146;BA.debugLine="Else If totalprod < totaldev Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("<",_totalprod,_totaldev)) { 
 BA.debugLineNum = 1147;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(67108864);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'")));
 BA.debugLineNum = 1148;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }}
;
 };
 BA.debugLineNum = 1151;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
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",7,__ref.getField(false, "ba"),__ref,108);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_productos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 108;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(2048);
 BA.debugLineNum = 109;BA.debugLine="Return Me";
Debug.ShouldStop(4096);
if (true) return __ref;
 BA.debugLineNum = 110;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",7,__ref.getField(false, "ba"),__ref,1265);
if (RapidSub.canDelegate("l_info_click")) { return __ref.runUserSub(false, "c_productos","l_info_click", __ref);}
 BA.debugLineNum = 1265;BA.debugLine="Private Sub l_info_Click";
Debug.ShouldStop(65536);
 BA.debugLineNum = 1266;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1267;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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",7,__ref.getField(false, "ba"),__ref,1533);
if (RapidSub.canDelegate("l_prodx_click")) { return __ref.runUserSub(false, "c_productos","l_prodx_click", __ref);}
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
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");
RemoteObject _prdox = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _prodx1 = null;
RemoteObject _textprom = RemoteObject.createImmutable("");
RemoteObject _descpro = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _hgfd = 0;
RemoteObject _preciocat = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _recalculo = RemoteObject.createImmutable(0f);
 BA.debugLineNum = 1533;BA.debugLine="Sub l_prodx_click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 1535;BA.debugLine="Dim cs As CSBuilder";
Debug.ShouldStop(1073741824);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 1536;BA.debugLine="cs.Initialize";
Debug.ShouldStop(-2147483648);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 1537;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(1);
_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 = 1538;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(Ind";
Debug.ShouldStop(2);
_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 = 1539;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(4);
_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 = 1540;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(2";
Debug.ShouldStop(8);
_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 = 1541;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)";
Debug.ShouldStop(16);
_prdox = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_prdox = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("PRDOX", _prdox);Debug.locals.put("PRDOX", _prdox);
 BA.debugLineNum = 1542;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 = 1545;BA.debugLine="Log(cant1.Text)";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","067436556",_cant1.runMethod(true,"getText"),0);
 BA.debugLineNum = 1546;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Tex";
Debug.ShouldStop(512);
_prodx1 = c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(c_productos.__c.getField(true,"CRLF")),(Object)(_prdox.runMethod(true,"getText")));Debug.locals.put("prodx1", _prodx1);Debug.locals.put("prodx1", _prodx1);
 BA.debugLineNum = 1547;BA.debugLine="Log(prodx1(1))";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","067436558",_prodx1.getArrayElement(true,BA.numberCast(int.class, 1)),0);
 BA.debugLineNum = 1548;BA.debugLine="p_promodesc.Visible = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_promodesc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1549;BA.debugLine="p_promodesc.Height = Root.Height";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_promodesc" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 1550;BA.debugLine="p_promodesc.Width = Root.Width";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_promodesc" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 1551;BA.debugLine="Dim textprom As String = \"\"";
Debug.ShouldStop(16384);
_textprom = BA.ObjectToString("");Debug.locals.put("textprom", _textprom);Debug.locals.put("textprom", _textprom);
 BA.debugLineNum = 1552;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(32768);
_descpro = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_descpro = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("') AND INSTR(',' || CAT_PD_TIER || ',' , ',"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetipocliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable(",') > 0 "))))));Debug.locals.put("descpro", _descpro);Debug.locals.put("descpro", _descpro);
 BA.debugLineNum = 1553;BA.debugLine="Log($\"SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","067436564",(RemoteObject.concat(RemoteObject.createImmutable("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("') AND INSTR(',' || CAT_DP_TIER || ',' , ',"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetipocliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable(",') > 0 "))),0);
 BA.debugLineNum = 1554;BA.debugLine="Log(descpro.RowCount)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","067436565",BA.NumberToString(_descpro.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1555;BA.debugLine="If descpro.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_descpro.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1556;BA.debugLine="l_promodesc.Text = \"\"";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_promodesc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 1557;BA.debugLine="For hgfd = 0 To descpro.RowCount -1";
Debug.ShouldStop(1048576);
{
final int step21 = 1;
final int limit21 = RemoteObject.solve(new RemoteObject[] {_descpro.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_hgfd = 0 ;
for (;(step21 > 0 && _hgfd <= limit21) || (step21 < 0 && _hgfd >= limit21) ;_hgfd = ((int)(0 + _hgfd + step21))  ) {
Debug.locals.put("hgfd", _hgfd);
 BA.debugLineNum = 1558;BA.debugLine="descpro.Position = hgfd";
Debug.ShouldStop(2097152);
_descpro.runMethod(true,"setPosition",BA.numberCast(int.class, _hgfd));
 BA.debugLineNum = 1560;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(8388608);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 1561;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(16777216);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1562;BA.debugLine="textprom = \"\"";
Debug.ShouldStop(33554432);
_textprom = BA.ObjectToString("");Debug.locals.put("textprom", _textprom);
 BA.debugLineNum = 1563;BA.debugLine="Private recalculo As Float = preciocat.GetStrin";
Debug.ShouldStop(67108864);
_recalculo = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))),BA.numberCast(double.class, c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))),BA.numberCast(double.class, _descpro.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_PD_DESCUENTO"))))}, "*",0, 0)),RemoteObject.createImmutable(100)}, "/",0, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_productos.__c.getField(true,"False"))))}, "-",1, 0));Debug.locals.put("recalculo", _recalculo);Debug.locals.put("recalculo", _recalculo);
 BA.debugLineNum = 1565;BA.debugLine="textprom = cs.Color(Colors.Black).Append(\"Descu";
Debug.ShouldStop(268435456);
_textprom = BA.ObjectToString(_cs.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Descuento "),(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_hgfd),RemoteObject.createImmutable(1)}, "+",1, 1)),c_productos.__c.getField(true,"CRLF"),c_productos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("  Min: "),_descpro.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_PD_RANGO"))),RemoteObject.createImmutable(" Max: "),_descpro.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_PD_RANGO2"))),c_productos.__c.getField(true,"CRLF"),c_productos.__c.getField(true,"CRLF"))))).runMethod(false,"Pop").runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Red"))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 18))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Descuento: "),_descpro.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("CAT_PD_DESCUENTO"))),RemoteObject.createImmutable("%"),c_productos.__c.getField(true,"CRLF"),c_productos.__c.getField(true,"CRLF"))))).runMethod(false,"Pop").runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Red"))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 18))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Precio: "),c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _recalculo)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_productos.__c.getField(true,"False"))),c_productos.__c.getField(true,"CRLF"),c_productos.__c.getField(true,"CRLF"))))).runMethod(false,"PopAll"));Debug.locals.put("textprom", _textprom);
 BA.debugLineNum = 1566;BA.debugLine="l_promodesc.Text = \"\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_promodesc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 1567;BA.debugLine="l_promodesc.Text = textprom";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_promodesc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_textprom));
 }
}Debug.locals.put("hgfd", _hgfd);
;
 }else {
 BA.debugLineNum = 1573;BA.debugLine="l_promodesc.Text = \"El producto no tiene descuen";
Debug.ShouldStop(16);
__ref.getField(false,"_l_promodesc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("El producto no tiene descuento o el tipo de cliente no es apto para este descuento."));
 };
 BA.debugLineNum = 1577;BA.debugLine="End Sub";
Debug.ShouldStop(256);
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",7,__ref.getField(false, "ba"),__ref,2306);
if (RapidSub.canDelegate("l_prodx_longclick")) { return __ref.runUserSub(false, "c_productos","l_prodx_longclick", __ref);}
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
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");
RemoteObject _prdox = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _prodx1 = null;
RemoteObject _prodx3 = null;
RemoteObject _dev = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _devo = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2306;BA.debugLine="Private Sub l_prodX_LongClick";
Debug.ShouldStop(2);
 BA.debugLineNum = 2307;BA.debugLine="If tipo_venta <> \"PREVENTA_FUTURA\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 2310;BA.debugLine="Log(l_total.Text)";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","067960836",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),0);
 BA.debugLineNum = 2311;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
Debug.ShouldStop(64);
__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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 ) AND PE_CEDIS <> 'DUR'"))));
 BA.debugLineNum = 2313;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2314;BA.debugLine="C.Position = 0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2316;BA.debugLine="If c.GetString(\"PC_MONTO\") > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2319;BA.debugLine="Dim cs As CSBuilder";
Debug.ShouldStop(16384);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2320;BA.debugLine="cs.Initialize";
Debug.ShouldStop(32768);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 2321;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(65536);
_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 = 2322;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(In";
Debug.ShouldStop(131072);
_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 = 2323;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(262144);
_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 = 2324;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
Debug.ShouldStop(524288);
_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 = 2325;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)";
Debug.ShouldStop(1048576);
_prdox = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_prdox = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("PRDOX", _prdox);Debug.locals.put("PRDOX", _prdox);
 BA.debugLineNum = 2326;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(2097152);
_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 = 2329;BA.debugLine="Log(cant1.Text)";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","067960855",_cant1.runMethod(true,"getText"),0);
 BA.debugLineNum = 2330;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Te";
Debug.ShouldStop(33554432);
_prodx1 = c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(c_productos.__c.getField(true,"CRLF")),(Object)(_prdox.runMethod(true,"getText")));Debug.locals.put("prodx1", _prodx1);Debug.locals.put("prodx1", _prodx1);
 BA.debugLineNum = 2331;BA.debugLine="Dim prodx3() As String=Regex.Split(\"\\$\",prodx1(1";
Debug.ShouldStop(67108864);
_prodx3 = c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\$")),(Object)(_prodx1.getArrayElement(true,BA.numberCast(int.class, 1))));Debug.locals.put("prodx3", _prodx3);Debug.locals.put("prodx3", _prodx3);
 BA.debugLineNum = 2332;BA.debugLine="Log(prodx1(1))";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","067960858",_prodx1.getArrayElement(true,BA.numberCast(int.class, 1)),0);
 BA.debugLineNum = 2334;BA.debugLine="preciodev = prodx3(1)";
Debug.ShouldStop(536870912);
__ref.setField ("_preciodev" /*RemoteObject*/ ,BA.numberCast(double.class, _prodx3.getArrayElement(true,BA.numberCast(int.class, 1))));
 BA.debugLineNum = 2335;BA.debugLine="nombredev = prodx1(0)";
Debug.ShouldStop(1073741824);
__ref.setField ("_nombredev" /*RemoteObject*/ ,_prodx1.getArrayElement(true,BA.numberCast(int.class, 0)));
 BA.debugLineNum = 2337;BA.debugLine="Dim dev As Cursor = B4XPages.MainPage.skmt.ExecQ";
Debug.ShouldStop(1);
_dev = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_dev = 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 IFNULL(CAT_GP_DEV, 0) AS CAT_GP_DEV, CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_NOMBRE  = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("dev", _dev);Debug.locals.put("dev", _dev);
 BA.debugLineNum = 2338;BA.debugLine="dev.Position = 0";
Debug.ShouldStop(2);
_dev.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2339;BA.debugLine="If dev.GetInt(\"CAT_GP_DEV\") = 1 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_dev.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_GP_DEV"))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2342;BA.debugLine="c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));
 BA.debugLineNum = 2345;BA.debugLine="If c.GetString(\"PC_MONTO\") < dev.GetInt(\"CAT_G";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),BA.numberCast(double.class, _dev.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))))) { 
 BA.debugLineNum = 2346;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al pr";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2347;BA.debugLine="Log(1)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","067960873",BA.NumberToString(1),0);
 }else {
 BA.debugLineNum = 2349;BA.debugLine="p_devo.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_devo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 2350;BA.debugLine="p_devo.Height = Root.Height";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_devo" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2351;BA.debugLine="p_devo.Width = Root.Width";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_devo" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2352;BA.debugLine="l_proddev.Text = prodx1(0)";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_proddev" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))));
 BA.debugLineNum = 2355;BA.debugLine="Dim devo As Cursor = B4XPages.MainPage.skmt.E";
Debug.ShouldStop(262144);
_devo = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_devo = 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(IFNULL(PE_CANT,0)) as suma from PEDIDO where PE_PRONOMBRE  = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodx1.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_CEDIS = 'DUR'"))))));Debug.locals.put("devo", _devo);Debug.locals.put("devo", _devo);
 BA.debugLineNum = 2356;BA.debugLine="devo.Position = 0";
Debug.ShouldStop(524288);
_devo.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2358;BA.debugLine="l_cantdev.Text = devo.GetInt(\"suma\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_cantdev" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_devo.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("suma")))));
 };
 }else 
{ BA.debugLineNum = 2367;BA.debugLine="Else If dev.GetInt(\"CAT_GP_DEV\") = 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_dev.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_GP_DEV"))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2368;BA.debugLine="MsgboxAsync(\"El producto no se puede devolver\",";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El producto no se puede devolver")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }}
;
 }else {
 BA.debugLineNum = 2374;BA.debugLine="MsgboxAsync(\"El Cliente no tiene venta para mete";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El Cliente no tiene venta para meter devoluciones")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 };
 };
 BA.debugLineNum = 2380;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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",7,__ref.getField(false, "ba"),__ref,607);
if (RapidSub.canDelegate("llenacatalogo")) { return __ref.runUserSub(false, "c_productos","llenacatalogo", __ref, _subtipo1);}
Debug.locals.put("subtipo1", _subtipo1);
 BA.debugLineNum = 607;BA.debugLine="Sub llenaCatalogo(subtipo1 As String)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 630;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
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",7,__ref.getField(false, "ba"),__ref,1785);
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 = 1785;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 1786;BA.debugLine="Log(\"Iniciamos LlenaProdsLL\")";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","067633153",RemoteObject.createImmutable("Iniciamos LlenaProdsLL"),0);
 BA.debugLineNum = 1787;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1788;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca";
Debug.ShouldStop(134217728);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1789;BA.debugLine="Dim cantsMap As Map";
Debug.ShouldStop(268435456);
_cantsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("cantsMap", _cantsmap);
 BA.debugLineNum = 1790;BA.debugLine="cantsMap.Initialize";
Debug.ShouldStop(536870912);
_cantsmap.runVoidMethod ("Initialize");
 BA.debugLineNum = 1791;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 1792;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex";
Debug.ShouldStop(-2147483648);
_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("' and PE_FOLIO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )))),RemoteObject.createImmutable("' AND PE_FUTURO = '1' "))))));Debug.locals.put("pe", _pe);Debug.locals.put("pe", _pe);
 }else {
 BA.debugLineNum = 1794;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex";
Debug.ShouldStop(2);
_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("' and PE_FOLIO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ )))),RemoteObject.createImmutable("' AND PE_FUTURO = '0' "))))));Debug.locals.put("pe", _pe);Debug.locals.put("pe", _pe);
 };
 BA.debugLineNum = 1797;BA.debugLine="Do While pe.NextRow";
Debug.ShouldStop(16);
while (_pe.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 1798;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(32);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 1800;BA.debugLine="cantsMap.put(pe.GetString(\"PE_PROID\"), pe.GetS";
Debug.ShouldStop(128);
_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 = 1804;BA.debugLine="Log(clienteId &\"|||||\"&pe.GetString(\"PE_PROID\")";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","067633171",RemoteObject.concat(__ref.getField(true,"_clienteid" /*RemoteObject*/ ),RemoteObject.createImmutable("|||||"),_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))),RemoteObject.createImmutable("|||||"),_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),0);
 }
;
 BA.debugLineNum = 1806;BA.debugLine="pe.Close";
Debug.ShouldStop(8192);
_pe.runVoidMethod ("Close");
 };
 BA.debugLineNum = 1809;BA.debugLine="If p.IsInitialized Then";
Debug.ShouldStop(65536);
if (_p.runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 }else {
 BA.debugLineNum = 1816;BA.debugLine="LogColor(Starter.tabla,Colors.blue)";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","067633183",c_productos._starter._tabla /*RemoteObject*/ ,c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 1840;BA.debugLine="If Subs.traeTipoCliente = 5 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",c_productos._subs.runMethod(true,"_traetipocliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.numberCast(double.class, 5))) { 
 BA.debugLineNum = 1841;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(65536);
_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.concat(RemoteObject.createImmutable("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_LISTAPRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"),RemoteObject.createImmutable("	order by\n"),RemoteObject.createImmutable("		Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"),RemoteObject.createImmutable("		WHEN 'ESTRATEGICO' THEN 1\n"),RemoteObject.createImmutable("		WHEN 'COMPLEMENTARIO' then 2\n"),RemoteObject.createImmutable("		Else 3\n"),RemoteObject.createImmutable("		End, CAT_GP_NOMBRE"))))));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 }else {
 BA.debugLineNum = 1849;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(16777216);
_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.concat(RemoteObject.createImmutable("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"),RemoteObject.createImmutable("	order by\n"),RemoteObject.createImmutable("		Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"),RemoteObject.createImmutable("		WHEN 'ESTRATEGICO' THEN 1\n"),RemoteObject.createImmutable("		WHEN 'COMPLEMENTARIO' then 2\n"),RemoteObject.createImmutable("		Else 3\n"),RemoteObject.createImmutable("		End, CAT_GP_NOMBRE"))))));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 };
 };
 BA.debugLineNum = 1876;BA.debugLine="Do While p.NextRow";
Debug.ShouldStop(524288);
while (_p.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 1877;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(1048576);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 1878;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin";
Debug.ShouldStop(2097152);
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")))))))) { 
 BA.debugLineNum = 1879;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","067633246",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),0);
 BA.debugLineNum = 1880;BA.debugLine="cant = cantsMap.Get(p.GetString(\"CAT_GP_ID\"))";
Debug.ShouldStop(8388608);
_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 = 1882;BA.debugLine="If Subs.traeTipoCliente = 5 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",c_productos._subs.runMethod(true,"_traetipocliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.numberCast(double.class, 5))) { 
 BA.debugLineNum = 1883;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("!",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("GUN141")) && RemoteObject.solveBoolean("!",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("GUN142"))) { 
 BA.debugLineNum = 1886;BA.debugLine="Dim tempMap As Map = CreateMap( _";
Debug.ShouldStop(536870912);
_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_LISTAPRECIO")))),RemoteObject.createImmutable(("prioridad")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_TIPOPROD")))),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),RemoteObject.createImmutable(("conversion")),RemoteObject.createImmutable((1)),RemoteObject.createImmutable(("precio_caja")),RemoteObject.createImmutable((0)),RemoteObject.createImmutable(("b_caja")),RemoteObject.createImmutable((0))}));Debug.locals.put("tempMap", _tempmap);Debug.locals.put("tempMap", _tempmap);
 BA.debugLineNum = 1897;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map";
Debug.ShouldStop(256);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_tempmap.getObject())));
 };
 }else {
 BA.debugLineNum = 1900;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("!",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("GUN141")) && RemoteObject.solveBoolean("!",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("GUN142"))) { 
 BA.debugLineNum = 1903;BA.debugLine="Dim tempMap As Map = CreateMap( _";
Debug.ShouldStop(16384);
_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(("prioridad")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_TIPOPROD")))),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),RemoteObject.createImmutable(("conversion")),RemoteObject.createImmutable((1)),RemoteObject.createImmutable(("precio_caja")),RemoteObject.createImmutable((0)),RemoteObject.createImmutable(("b_caja")),RemoteObject.createImmutable((0))}));Debug.locals.put("tempMap", _tempmap);Debug.locals.put("tempMap", _tempmap);
 BA.debugLineNum = 1914;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map";
Debug.ShouldStop(33554432);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_tempmap.getObject())));
 };
 };
 }
;
 BA.debugLineNum = 1921;BA.debugLine="PCLV.Commit";
Debug.ShouldStop(1);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.preoptimizedclv.class, "_commit" /*RemoteObject*/ );
 BA.debugLineNum = 1922;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(2);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 1923;BA.debugLine="Private listaProdsConCant, listaProdsConCantIndex";
Debug.ShouldStop(4);
_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 = 1924;BA.debugLine="listaProdsConCant.Initialize";
Debug.ShouldStop(8);
_listaprodsconcant.runVoidMethod ("Initialize");
 BA.debugLineNum = 1925;BA.debugLine="listaProdsConCantIndex.Initialize";
Debug.ShouldStop(16);
_listaprodsconcantindex.runVoidMethod ("Initialize");
 BA.debugLineNum = 1926;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1927;BA.debugLine="For q=0 To listaProds.Size-1' quitamos los produc";
Debug.ShouldStop(64);
{
final int step51 = 1;
final int limit51 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_q = 0 ;
for (;(step51 > 0 && _q <= limit51) || (step51 < 0 && _q >= limit51) ;_q = ((int)(0 + _q + step51))  ) {
Debug.locals.put("q", _q);
 BA.debugLineNum = 1928;BA.debugLine="If listaProds.Get(q).As(Map).Get(\"cant\").As(Int)";
Debug.ShouldStop(128);
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 = 1930;BA.debugLine="listaProdsConCant.Add(listaProds.Get(q))";
Debug.ShouldStop(512);
_listaprodsconcant.runVoidMethod ("Add",(Object)(__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _q)))));
 BA.debugLineNum = 1931;BA.debugLine="listaProdsConCantIndex.Add(q)";
Debug.ShouldStop(1024);
_listaprodsconcantindex.runVoidMethod ("Add",(Object)(RemoteObject.createImmutable((_q))));
 };
 }
}Debug.locals.put("q", _q);
;
 BA.debugLineNum = 1935;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(16384);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1936;BA.debugLine="For pr0=0 To listaProdsConCant.Size - 1 'Agregamo";
Debug.ShouldStop(32768);
{
final int step58 = 1;
final int limit58 = RemoteObject.solve(new RemoteObject[] {_listaprodsconcant.runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pr0 = 0 ;
for (;(step58 > 0 && _pr0 <= limit58) || (step58 < 0 && _pr0 >= limit58) ;_pr0 = ((int)(0 + _pr0 + step58))  ) {
Debug.locals.put("pr0", _pr0);
 BA.debugLineNum = 1937;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(65536);
_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 = 1939;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsVi";
Debug.ShouldStop(262144);
_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, 65)))));
 BA.debugLineNum = 1940;BA.debugLine="clv_prods_ll.Add(Pnl, listaProdsConCant.Get(pr0)";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_add",(Object)(_pnl),(Object)(_listaprodsconcant.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _pr0)))));
 BA.debugLineNum = 1941;BA.debugLine="listaHints.Add(listaProdsConCant.get(pr0).As(Map";
Debug.ShouldStop(1048576);
__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 = 1942;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(2097152);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 }
}Debug.locals.put("pr0", _pr0);
;
 BA.debugLineNum = 1946;BA.debugLine="For pr=0 To listaProds.Size-1";
Debug.ShouldStop(33554432);
{
final int step65 = 1;
final int limit65 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pr = 0 ;
for (;(step65 > 0 && _pr <= limit65) || (step65 < 0 && _pr >= limit65) ;_pr = ((int)(0 + _pr + step65))  ) {
Debug.locals.put("pr", _pr);
 BA.debugLineNum = 1947;BA.debugLine="If listaProdsConCantIndex.IndexOf(pr) = -1 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_listaprodsconcantindex.runMethod(true,"IndexOf",(Object)(RemoteObject.createImmutable((_pr)))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1948;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(134217728);
_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 = 1949;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsV";
Debug.ShouldStop(268435456);
_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, 65)))));
 BA.debugLineNum = 1952;BA.debugLine="listaHints.Add(listaProds.get(pr).As(Map).Get(\"";
Debug.ShouldStop(-2147483648);
__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 = 1953;BA.debugLine="clv_prods_ll.Add(Pnl, listaProds.Get(pr))";
Debug.ShouldStop(1);
__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 = 1955;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(4);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 };
 }
}Debug.locals.put("pr", _pr);
;
 BA.debugLineNum = 1962;BA.debugLine="PCLV.B4XSeekBar1.MaxValue = clv_prods_ll.Size";
Debug.ShouldStop(512);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_maxvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 1963;BA.debugLine="PCLV.B4XSeekBar1.MinValue = 0";
Debug.ShouldStop(1024);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_minvalue" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1964;BA.debugLine="PCLV.B4XSeekBar1.Interval = clv_prods_ll.Size/20";
Debug.ShouldStop(2048);
__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 = 1965;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size";
Debug.ShouldStop(4096);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xseekbar.class, "_setvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 1966;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(8192);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xseekbar.class, "_update" /*RemoteObject*/ );
 BA.debugLineNum = 1968;BA.debugLine="reiniciarlistaProds = False";
Debug.ShouldStop(32768);
__ref.setField ("_reiniciarlistaprods" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1969;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
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",7,__ref.getField(false, "ba"),__ref,275);
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");
RemoteObject _yacompropro2265 = RemoteObject.createImmutable(false);
RemoteObject _yacompropro3054 = RemoteObject.createImmutable(false);
RemoteObject _yacompropro3055 = RemoteObject.createImmutable(false);
RemoteObject _tipocliente = RemoteObject.createImmutable(0);
int _i = 0;
RemoteObject _muestrapromo = RemoteObject.createImmutable(false);
RemoteObject _tm = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 275;BA.debugLine="Sub lv_catalogos_ItemClick (Position As Int, Value";
Debug.ShouldStop(262144);
 BA.debugLineNum = 276;BA.debugLine="If Value = \"PORTAFOLIO\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PORTAFOLIO")))) { 
 BA.debugLineNum = 278;BA.debugLine="lfila.text = \"PRODUCTOS\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PRODUCTOS"));
 BA.debugLineNum = 279;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 281;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),BA.numberCast(double.class, 0))) { 
__ref.runClassMethod (gunav2.keymon.com.mx.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 = 282;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(33554432);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 283;BA.debugLine="If hayPedido Then p_botonesVenta.Visible = True";
Debug.ShouldStop(67108864);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));};
 BA.debugLineNum = 286;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN";
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 IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) 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 = 287;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 288;BA.debugLine="C.Position = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 289;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","065929230",(RemoteObject.concat(RemoteObject.createImmutable("registros: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", arts: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))))),RemoteObject.createImmutable(", monto:"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 290;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
Debug.ShouldStop(2);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Prods: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))));
 BA.debugLineNum = 291;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
Debug.ShouldStop(4);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Total: $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO"))))));
 BA.debugLineNum = 292;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\"";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Total: $0.0"));};
 BA.debugLineNum = 293;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text =";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Prods: 0"));};
 };
 }else {
 BA.debugLineNum = 296;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 297;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 298;BA.debugLine="lfila.text = \"PROMOCIONES\"";
Debug.ShouldStop(512);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOCIONES"));
 BA.debugLineNum = 299;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 319;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 320;BA.debugLine="lv_promos.Height = Root.Height * 0.65";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setHeight",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.65)}, "*",0, 0)));
 BA.debugLineNum = 321;BA.debugLine="lv_promos.Width = Root.Width *0.96";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.96)}, "*",0, 0)));
 BA.debugLineNum = 323;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(4);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 324;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(8);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 325;BA.debugLine="label1.TextSize = 20";
Debug.ShouldStop(16);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 20));
 BA.debugLineNum = 326;BA.debugLine="label1.TextColor = Colors.White";
Debug.ShouldStop(32);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 327;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)";
Debug.ShouldStop(64);
_label1.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"ARGB",(Object)(BA.numberCast(int.class, 58)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255))));
 BA.debugLineNum = 328;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(128);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 329;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(256);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 330;BA.debugLine="label2.TextSize = 20";
Debug.ShouldStop(512);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 20));
 BA.debugLineNum = 331;BA.debugLine="label2.TextColor = Colors.White";
Debug.ShouldStop(1024);
_label2.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 332;BA.debugLine="label2.Color = Colors.ARGB(58,255,255,255)";
Debug.ShouldStop(2048);
_label2.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"ARGB",(Object)(BA.numberCast(int.class, 58)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255))));
 BA.debugLineNum = 333;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(4096);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 334;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 = 335;BA.debugLine="label13.TextSize = 20";
Debug.ShouldStop(16384);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 20));
 BA.debugLineNum = 336;BA.debugLine="label13.TextColor = Colors.White";
Debug.ShouldStop(32768);
_label13.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 337;BA.debugLine="label13.Color = Colors.ARGB(58,255,255,255)";
Debug.ShouldStop(65536);
_label13.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"ARGB",(Object)(BA.numberCast(int.class, 58)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255))));
 BA.debugLineNum = 338;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(131072);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 339;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(262144);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 340;BA.debugLine="label14.TextSize = 20";
Debug.ShouldStop(524288);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 20));
 BA.debugLineNum = 341;BA.debugLine="label14.TextColor = Colors.White";
Debug.ShouldStop(1048576);
_label14.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 342;BA.debugLine="label14.Color = Colors.ARGB(58,255,255,255)";
Debug.ShouldStop(2097152);
_label14.runVoidMethod ("setColor",c_productos.__c.getField(false,"Colors").runMethod(true,"ARGB",(Object)(BA.numberCast(int.class, 58)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 255))));
 BA.debugLineNum = 353;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 354;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select";
Debug.ShouldStop(2);
__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)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 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) AND PE_FUTURO = '1' )")))),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PROMOS"),RemoteObject.createImmutable("PROMOS")}))));
 }else {
 BA.debugLineNum = 356;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select";
Debug.ShouldStop(8);
__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)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND  CAT_GP_ALMACEN > 0 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) AND PE_FUTURO = '0' )")))),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PROMOS"),RemoteObject.createImmutable("PROMOS")}))));
 };
 BA.debugLineNum = 360;BA.debugLine="Private yaComproPRO2265 As Boolean = Subs.revisa";
Debug.ShouldStop(128);
_yacompropro2265 = c_productos._subs.runMethod(true,"_revisapro2265" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))));Debug.locals.put("yaComproPRO2265", _yacompropro2265);Debug.locals.put("yaComproPRO2265", _yacompropro2265);
 BA.debugLineNum = 361;BA.debugLine="Private yaComproPRO3054 As Boolean = Subs.revisa";
Debug.ShouldStop(256);
_yacompropro3054 = c_productos._subs.runMethod(true,"_revisapro3054" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))));Debug.locals.put("yaComproPRO3054", _yacompropro3054);Debug.locals.put("yaComproPRO3054", _yacompropro3054);
 BA.debugLineNum = 362;BA.debugLine="Private yaComproPRO3055 As Boolean = Subs.revisa";
Debug.ShouldStop(512);
_yacompropro3055 = c_productos._subs.runMethod(true,"_revisapro3055" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))));Debug.locals.put("yaComproPRO3055", _yacompropro3055);Debug.locals.put("yaComproPRO3055", _yacompropro3055);
 BA.debugLineNum = 363;BA.debugLine="Private tipoCliente As Int = Subs.traeTipoClient";
Debug.ShouldStop(1024);
_tipocliente = c_productos._subs.runMethod(true,"_traetipocliente" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("tipoCliente", _tipocliente);Debug.locals.put("tipoCliente", _tipocliente);
 BA.debugLineNum = 364;BA.debugLine="Log(c2.RowCount)";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","065929305",BA.NumberToString(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 365;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 383;BA.debugLine="For i=0 To c2.RowCount - 1";
Debug.ShouldStop(1073741824);
{
final int step55 = 1;
final int limit55 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step55 > 0 && _i <= limit55) || (step55 < 0 && _i >= limit55) ;_i = ((int)(0 + _i + step55))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 384;BA.debugLine="c2.Position = i";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 385;BA.debugLine="Private muestraPromo As Boolean = True";
Debug.ShouldStop(1);
_muestrapromo = c_productos.__c.getField(true,"True");Debug.locals.put("muestraPromo", _muestrapromo);Debug.locals.put("muestraPromo", _muestrapromo);
 BA.debugLineNum = 386;BA.debugLine="Log($\"SEGMENTADA: ${c2.GetString(\"CAT_PA_BSEGM";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","065929327",(RemoteObject.concat(RemoteObject.createImmutable("SEGMENTADA: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_PA_BSEGMENTA")))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 387;BA.debugLine="If c2.GetInt(\"CAT_PA_BSEGMENTA\") = 1 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_PA_BSEGMENTA"))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 388;BA.debugLine="LogColor(\"#######   PROMO SEGMENTADA ####  \"&";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","065929329",RemoteObject.concat(RemoteObject.createImmutable("#######   PROMO SEGMENTADA ####  "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 389;BA.debugLine="LogColor($\"#######   SEGV: ${c2.GetString(\"CA";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","065929330",(RemoteObject.concat(RemoteObject.createImmutable("#######   SEGV: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_PA_SEGMENTAV")))))),RemoteObject.createImmutable(" ####"))),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 390;BA.debugLine="LogColor($\"#######   TIPOCLIE: ${tipoCliente}";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","065929331",(RemoteObject.concat(RemoteObject.createImmutable("#######   TIPOCLIE: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipocliente))),RemoteObject.createImmutable(" ####"))),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 391;BA.debugLine="LogColor($\"#######   ¿ENTRA?: ${c2.GetString(";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("LogImpl","065929332",(RemoteObject.concat(RemoteObject.createImmutable("#######   ¿ENTRA?: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_PA_SEGMENTAV"))).runMethod(true,"contains",(Object)(BA.NumberToString(_tipocliente)))))),RemoteObject.createImmutable(" ####"))),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 392;BA.debugLine="If Not(c2.GetString(\"CAT_PA_SEGMENTAV\").Conta";
Debug.ShouldStop(128);
if (c_productos.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_PA_SEGMENTAV"))).runMethod(true,"contains",(Object)(BA.NumberToString(_tipocliente))))).<Boolean>get().booleanValue()) { 
_muestrapromo = c_productos.__c.getField(true,"False");Debug.locals.put("muestraPromo", _muestrapromo);};
 };
 BA.debugLineNum = 398;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(8192);
_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)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))));Debug.locals.put("tm", _tm);Debug.locals.put("tm", _tm);
 BA.debugLineNum = 399;BA.debugLine="Log($\"TM=${tm}\"$)";
Debug.ShouldStop(16384);
c_productos.__c.runVoidMethod ("LogImpl","065929340",(RemoteObject.concat(RemoteObject.createImmutable("TM="),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tm.getObject()))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 400;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("status")))),RemoteObject.createImmutable(("ok")))) { 
 BA.debugLineNum = 401;BA.debugLine="If yaComproPRO2265 And c2.GetString(\"CAT_GP_I";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(".",_yacompropro2265) && RemoteObject.solveBoolean("=",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("PRO3015"))) { 
 BA.debugLineNum = 402;BA.debugLine="LogColor(\"Ya compro la PRO2265, ya no se mue";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","065929343",BA.ObjectToString("Ya compro la PRO2265, ya no se muestra la PRO3015"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 }else {
 BA.debugLineNum = 404;BA.debugLine="If (yaComproPRO3054 And c2.GetString(\"CAT_GP";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean(".",_yacompropro3054) && RemoteObject.solveBoolean("=",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),RemoteObject.createImmutable("PRO3054"))))) || RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean(".",_yacompropro3055) && RemoteObject.solveBoolean("=",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),RemoteObject.createImmutable("PRO3055")))))) { 
 BA.debugLineNum = 406;BA.debugLine="LogColor(\"Ya compro prods de la PRO3054 o P";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","065929347",BA.ObjectToString("Ya compro prods de la PRO3054 o PRO3055 o es cliente nuevo, ya no se muestra."),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 }else {
 BA.debugLineNum = 408;BA.debugLine="If Subs.traeAlmacen = 88 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(88))) { 
 BA.debugLineNum = 409;BA.debugLine="Log(\"SI ENTRE1\")";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","065929350",RemoteObject.createImmutable("SI ENTRE1"),0);
 BA.debugLineNum = 410;BA.debugLine="Log(c2.GetString(\"CAT_GP_ID\"))";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","065929351",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),0);
 BA.debugLineNum = 411;BA.debugLine="If c2.GetString(\"CAT_GP_ID\") = \"MYKONOS_01";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("MYKONOS_01")) && RemoteObject.solveBoolean(".",c_productos._subs.runMethod(true,"_traemontoprod" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 412;BA.debugLine="Log(\"SI ENTRE\")";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","065929353",RemoteObject.createImmutable("SI ENTRE"),0);
 BA.debugLineNum = 413;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
Debug.ShouldStop(268435456);
if (_muestrapromo.<Boolean>get().booleanValue()) { 
__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"))))))));};
 }else 
{ BA.debugLineNum = 414;BA.debugLine="Else If c2.GetString(\"CAT_GP_ID\") <> \"MYKO";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),BA.ObjectToString("MYKONOS_01"))) { 
 BA.debugLineNum = 415;BA.debugLine="Log(\"SI ENTRE2\")";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","065929356",RemoteObject.createImmutable("SI ENTRE2"),0);
 BA.debugLineNum = 416;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
Debug.ShouldStop(-2147483648);
if (_muestrapromo.<Boolean>get().booleanValue()) { 
__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"))))))));};
 }}
;
 }else {
 BA.debugLineNum = 419;BA.debugLine="Log(\"SI ENTRE3\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","065929360",RemoteObject.createImmutable("SI ENTRE3"),0);
 BA.debugLineNum = 420;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLines";
Debug.ShouldStop(8);
if (_muestrapromo.<Boolean>get().booleanValue()) { 
__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"))))))));};
 };
 BA.debugLineNum = 422;BA.debugLine="Log($\"################################${CRL";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","065929363",(RemoteObject.concat(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)((_muestrapromo))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("################################"))),0);
 };
 };
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 433;BA.debugLine="label1.Height = 50dip";
Debug.ShouldStop(65536);
_label1.runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50))));
 BA.debugLineNum = 434;BA.debugLine="label2.Height = 45dip";
Debug.ShouldStop(131072);
_label2.runMethod(true,"setHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 45))));
 BA.debugLineNum = 435;BA.debugLine="label2.Top = label1.Height";
Debug.ShouldStop(262144);
_label2.runMethod(true,"setTop",_label1.runMethod(true,"getHeight"));
 BA.debugLineNum = 436;BA.debugLine="lv_promos.TwoLinesLayout.ItemHeight = 95dip";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").runMethod(true,"setItemHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 95))));
 BA.debugLineNum = 437;BA.debugLine="Subs.SetDivider(lv_promos, Colors.White, 2)";
Debug.ShouldStop(1048576);
c_productos._subs.runVoidMethod ("_setdivider" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_lv_promos" /*RemoteObject*/ )),(Object)(c_productos.__c.getField(false,"Colors").getField(true,"White")),(Object)(BA.numberCast(int.class, 2)));
 }else {
 BA.debugLineNum = 439;BA.debugLine="ToastMessageShow(\"No hay PROMOS disponibles.\",";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No hay PROMOS disponibles.")),(Object)(c_productos.__c.getField(true,"False")));
 };
 BA.debugLineNum = 441;BA.debugLine="c2.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 442;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(33554432);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 };
 BA.debugLineNum = 444;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",7,__ref.getField(false, "ba"),__ref,446);
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(gunav2.keymon.com.mx.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;
gunav2.keymon.com.mx.c_productos parent;
RemoteObject _position;
RemoteObject _value;
RemoteObject _cliente = RemoteObject.declareNull("gunav2.keymon.com.mx.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 step58;
int limit58;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("lv_catalogos2_ItemClick (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,446);
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 = 447;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 = 448;BA.debugLine="BUSCA.Text = \"\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 449;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 = 450;BA.debugLine="Log($\"value=${Value}\"$)";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","065994756",(RemoteObject.concat(RemoteObject.createImmutable("value="),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 451;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N";
Debug.ShouldStop(4);
if (true) break;

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

case 3:
//C
this.state = 6;
 BA.debugLineNum = 452;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(8);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 453;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(16);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 454;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 = 456;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(128);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 457;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 = 459;BA.debugLine="If Value = \"PROMOCIONES\" Then";
Debug.ShouldStop(1024);

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

case 8:
//C
this.state = 11;
 BA.debugLineNum = 460;BA.debugLine="LogColor(\"Promos\", Colors.red)";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("LogImpl","065994766",BA.ObjectToString("Promos"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 461;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select  C";
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)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" 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) ) ORDER BY 1")))),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {BA.ObjectToString("PROMOS"),__ref.getField(true,"_marca" /*RemoteObject*/ ),__ref.getField(true,"_tipo" /*RemoteObject*/ )}))));
 if (true) break;

case 10:
//C
this.state = 11;
 BA.debugLineNum = 463;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
Debug.ShouldStop(16384);
parent.__c.runVoidMethod ("LogImpl","065994769",BA.ObjectToString("Catalogo"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 464;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.concat(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 "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))))));
 if (true) break;
;
 BA.debugLineNum = 486;BA.debugLine="If Value = \"PORTAFOLIO\" Then";
Debug.ShouldStop(32);

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

case 13:
//C
this.state = 28;
 BA.debugLineNum = 487;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 488;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 489;BA.debugLine="lfila.text = \"PORTAFOLIO\"";
Debug.ShouldStop(256);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PORTAFOLIO"));
 BA.debugLineNum = 490;BA.debugLine="Log(\"PGS\")";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("LogImpl","065994796",RemoteObject.createImmutable("PGS"),0);
 BA.debugLineNum = 491;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
Debug.ShouldStop(1024);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Cargando catalogo ..."))));
 BA.debugLineNum = 492;BA.debugLine="Sleep(100)";
Debug.ShouldStop(2048);
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 = 493;BA.debugLine="Private inicioContador As String = DateTime.Now";
Debug.ShouldStop(4096);
_iniciocontador = BA.NumberToString(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"));Debug.locals.put("inicioContador", _iniciocontador);Debug.locals.put("inicioContador", _iniciocontador);
 BA.debugLineNum = 494;BA.debugLine="llenaCatalogo(False)";
Debug.ShouldStop(8192);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_llenacatalogo" /*RemoteObject*/ ,(Object)(BA.ObjectToString(parent.__c.getField(true,"False"))));
 BA.debugLineNum = 495;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(16384);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 496;BA.debugLine="Log(\"PGH\")";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("LogImpl","065994802",RemoteObject.createImmutable("PGH"),0);
 BA.debugLineNum = 497;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("LogImpl","065994803",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 = 498;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(131072);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 499;BA.debugLine="c2.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 15:
//C
this.state = 16;
 BA.debugLineNum = 501;BA.debugLine="Log(\"ENTRAMOS A PROMOS\")";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("LogImpl","065994807",RemoteObject.createImmutable("ENTRAMOS A PROMOS"),0);
 BA.debugLineNum = 502;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 503;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 504;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 505;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 506;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(33554432);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 507;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(67108864);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 508;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(134217728);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 509;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(268435456);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 510;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(536870912);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 511;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(1073741824);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 512;BA.debugLine="label2.TextSize = 15";
Debug.ShouldStop(-2147483648);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 513;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(1);
_label2.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 514;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(2);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 515;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
Debug.ShouldStop(4);
_label13 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"Label");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 516;BA.debugLine="label13.TextSize = 15";
Debug.ShouldStop(8);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 517;BA.debugLine="label13.TextColor = Colors.Black";
Debug.ShouldStop(16);
_label13.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 518;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(32);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 519;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(64);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 520;BA.debugLine="label14.TextSize = 15";
Debug.ShouldStop(128);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 521;BA.debugLine="label14.TextColor = Colors.Black";
Debug.ShouldStop(256);
_label14.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 522;BA.debugLine="lfila.text = \"PROMOCIONES\"";
Debug.ShouldStop(512);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOCIONES"));
 BA.debugLineNum = 523;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(1024);
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 = 524;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(2048);
if (true) break;

case 19:
//for
this.state = 26;
step58 = 1;
limit58 = 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 ((step58 > 0 && _i <= limit58) || (step58 < 0 && _i >= limit58)) this.state = 21;
if (true) break;

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

case 21:
//C
this.state = 22;
 BA.debugLineNum = 525;BA.debugLine="c2.Position=i";
Debug.ShouldStop(4096);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 526;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(8192);
_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 = 527;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
Debug.ShouldStop(16384);
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 = 528;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_NO";
Debug.ShouldStop(32768);
__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 = 576;BA.debugLine="c2.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 28:
//C
this.state = -1;
;
 BA.debugLineNum = 578;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(2);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 579;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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",7,__ref.getField(false, "ba"),__ref,1354);
if (RapidSub.canDelegate("lv_prodspedido_itemlongclick")) { return __ref.runUserSub(false, "c_productos","lv_prodspedido_itemlongclick", __ref, _position, _value);}
RemoteObject _x = null;
RemoteObject _nom = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _cedis = RemoteObject.createImmutable("");
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _clie_id = RemoteObject.createImmutable("");
RemoteObject _usuario = RemoteObject.createImmutable("");
int _j = 0;
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 1354;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position";
Debug.ShouldStop(512);
 BA.debugLineNum = 1355;BA.debugLine="Log(Value)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","067305473",BA.ObjectToString(_value),0);
 BA.debugLineNum = 1356;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
Debug.ShouldStop(2048);
_x = c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 1357;BA.debugLine="Log(X.Length)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","067305475",BA.NumberToString(_x.getField(true,"length")),0);
 BA.debugLineNum = 1358;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(8192);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 1359;BA.debugLine="For i = 0 To X.Length -1";
Debug.ShouldStop(16384);
{
final int step5 = 1;
final int limit5 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1360;BA.debugLine="If X(i).Contains(CRLF) Then";
Debug.ShouldStop(32768);
if (_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_productos.__c.getField(true,"CRLF"))).<Boolean>get().booleanValue()) { 
 };
 BA.debugLineNum = 1362;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(131072);
if (c_productos.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_productos.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1363;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(262144);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 1365;BA.debugLine="Exit";
Debug.ShouldStop(1048576);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1368;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(8388608);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 1369;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(16777216);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 BA.debugLineNum = 1370;BA.debugLine="Log(nom)";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","067305488",_nom,0);
 BA.debugLineNum = 1371;BA.debugLine="Log(cedis)";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","067305489",_cedis,0);
 BA.debugLineNum = 1372;BA.debugLine="Private sDate,sTime, clie_id, usuario As String";
Debug.ShouldStop(134217728);
_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 = 1374;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar este a";
Debug.ShouldStop(536870912);
__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 = 1375;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1376;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select PE_P";
Debug.ShouldStop(-2147483648);
__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, PE_FOLIO 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 = 1377;BA.debugLine="c.Position=0";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1378;BA.debugLine="Log(vamoaver.Get(Position))";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","067305496",BA.ObjectToString(__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_position))),0);
 BA.debugLineNum = 1379;BA.debugLine="If vamoaver.Get(Position) = \"VENTA\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_position)),RemoteObject.createImmutable(("VENTA")))) { 
 BA.debugLineNum = 1380;BA.debugLine="Log(\"CAT_GUNAPROD2\")";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","067305498",RemoteObject.createImmutable("CAT_GUNAPROD2"),0);
 BA.debugLineNum = 1381;BA.debugLine="Log(Position)";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","067305499",BA.NumberToString(_position),0);
 BA.debugLineNum = 1382;BA.debugLine="Log(Value)";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","067305500",BA.ObjectToString(_value),0);
 BA.debugLineNum = 1383;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
Debug.ShouldStop(64);
c_productos._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD2");
 }else {
 BA.debugLineNum = 1385;BA.debugLine="Log(\"CAT_GUNAPROD\")";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","067305503",RemoteObject.createImmutable("CAT_GUNAPROD"),0);
 BA.debugLineNum = 1386;BA.debugLine="Log(Position)";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","067305504",BA.NumberToString(_position),0);
 BA.debugLineNum = 1387;BA.debugLine="Log(Value)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","067305505",BA.ObjectToString(_value),0);
 BA.debugLineNum = 1388;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
Debug.ShouldStop(2048);
c_productos._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD");
 };
 BA.debugLineNum = 1447;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_P";
Debug.ShouldStop(64);
__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.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 1448;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDI";
Debug.ShouldStop(128);
c_productos.__c.runVoidMethod ("LogImpl","067305566",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' AND PE_CEDIS = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 1449;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","067305567",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1450;BA.debugLine="c.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(4096);
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 = 1460;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(524288);
if (c_productos.__c.runMethod(true,"Not",(Object)(c_productos.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1461;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
Debug.ShouldStop(1048576);
__ref.getField(false,"_j3" /*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_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 1463;BA.debugLine="LogColor(j3.RowCount,Colors.Yellow)";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","067305581",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),c_productos.__c.getField(false,"Colors").getField(true,"Yellow"));
 BA.debugLineNum = 1464;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1465;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","067305583",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 1466;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(33554432);
{
final int step45 = 1;
final int limit45 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step45 > 0 && _j <= limit45) || (step45 < 0 && _j >= limit45) ;_j = ((int)(0 + _j + step45))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 1467;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","067305585",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 1468;BA.debugLine="j3.Position = j";
Debug.ShouldStop(134217728);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 1469;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(268435456);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1470;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete";
Debug.ShouldStop(536870912);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 }
}Debug.locals.put("j", _j);
;
 BA.debugLineNum = 1473;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select s";
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 = 1474;BA.debugLine="c.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1475;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))) { 
 BA.debugLineNum = 1476;BA.debugLine="l_cant.Text = 0";
Debug.ShouldStop(8);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 1477;BA.debugLine="l_total2.Text = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 1479;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(64);
__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 = 1480;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(128);
__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 = 1482;BA.debugLine="c.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1484;BA.debugLine="j3.Close";
Debug.ShouldStop(2048);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 1487;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update ${";
Debug.ShouldStop(16384);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1488;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fr";
Debug.ShouldStop(32768);
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_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))))})))));
 BA.debugLineNum = 1489;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(65536);
__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 = 1490;BA.debugLine="c.Position=0";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1491;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))) { 
 BA.debugLineNum = 1492;BA.debugLine="l_cant.Text = 0";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 1493;BA.debugLine="l_total2.Text = 0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 1495;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(4194304);
__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 = 1496;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(8388608);
__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 = 1498;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1500;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1502;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(536870912);
c_productos.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1503;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(1073741824);
_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 = 1504;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(-2147483648);
_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 = 1505;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
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 CUENTA from cuentaa"))));
 BA.debugLineNum = 1506;BA.debugLine="c.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1507;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(4);
_clie_id = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")));Debug.locals.put("clie_id", _clie_id);
 BA.debugLineNum = 1508;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
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 USUARIO from usuarioa"))));
 BA.debugLineNum = 1509;BA.debugLine="c.Position=0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1510;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(32);
_usuario = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("usuario", _usuario);
 BA.debugLineNum = 1511;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
Debug.ShouldStop(64);
__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 = 1512;BA.debugLine="c.Position=0";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1513;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(256);
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 = 1514;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(512);
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 = 1515;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
Debug.ShouldStop(1024);
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 = 1516;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(2048);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 1518;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(8192);
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 = 1519;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(16384);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 1522;BA.debugLine="b_terminar1_Click";
Debug.ShouldStop(131072);
__ref.runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 };
 BA.debugLineNum = 1527;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
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",7,__ref.getField(false, "ba"),__ref,581);
if (RapidSub.canDelegate("lv_promos_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_promos_itemclick", __ref, _position, _value);}
RemoteObject _cliente = RemoteObject.declareNull("gunav2.keymon.com.mx.c_cliente");
RemoteObject _promos = RemoteObject.declareNull("gunav2.keymon.com.mx.c_promos");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 581;BA.debugLine="Sub lv_promos_ItemClick (Position As Int, Value As";
Debug.ShouldStop(16);
 BA.debugLineNum = 582;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 583;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
Debug.ShouldStop(64);
_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 = 585;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOCIONES"))) && RemoteObject.solveBoolean("!",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 586;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(512);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 587;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(1024);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 588;BA.debugLine="tipo = \"PROMOS\"";
Debug.ShouldStop(2048);
__ref.setField ("_tipo" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 }else 
{ BA.debugLineNum = 589;BA.debugLine="Else if Value = \"PROMOCIONES\" And cliente.cuenta";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOCIONES"))) && RemoteObject.solveBoolean("=",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 590;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(8192);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 591;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(16384);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }}
;
 BA.debugLineNum = 593;BA.debugLine="If entro = \"3\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
 }else 
{ BA.debugLineNum = 595;BA.debugLine="Else If entro = \"4\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 597;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(1048576);
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 = 598;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(2097152);
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 = 599;BA.debugLine="Dim promos As C_Promos = B4XPages.GetPage(\"Promo";
Debug.ShouldStop(4194304);
_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 = 600;BA.debugLine="promos.laPromo = Subs.traeProdIdDeBD.Get(\"id\")";
Debug.ShouldStop(8388608);
_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 = 601;BA.debugLine="promos.elCliente = Subs.traeUsuarioDeBD";
Debug.ShouldStop(16777216);
_promos.setField ("_elcliente" /*RemoteObject*/ ,c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 602;BA.debugLine="B4XPages.ShowPage(\"Promos\")";
Debug.ShouldStop(33554432);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Promos")));
 }}
;
 BA.debugLineNum = 604;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
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",7,__ref.getField(false, "ba"),__ref,1269);
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 = 1269;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1270;BA.debugLine="Log(\"Promo longclic = \"&Value)";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","066912257",RemoteObject.concat(RemoteObject.createImmutable("Promo longclic = "),_value),0);
 BA.debugLineNum = 1271;BA.debugLine="Private id As String = \"\"";
Debug.ShouldStop(4194304);
_id = BA.ObjectToString("");Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 1272;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(8388608);
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 "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" 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 = 1273;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1274;BA.debugLine="c.Position = 0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1275;BA.debugLine="id = c.GetString(\"CAT_GP_ID\")";
Debug.ShouldStop(67108864);
_id = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")));Debug.locals.put("id", _id);
 };
 BA.debugLineNum = 1277;BA.debugLine="l_info.Text = $\"ID: ${id}${CRLF}${Value}\"$";
Debug.ShouldStop(268435456);
__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 = 1278;BA.debugLine="l_info.Visible = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1279;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
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",7,__ref.getField(false, "ba"),__ref,1306);
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 = 1306;BA.debugLine="Private Sub lv_subtipo_ItemClick (Position As Int,";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 1320;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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",7,__ref.getField(false, "ba"),__ref,1286);
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 = 1286;BA.debugLine="Private Sub lv_tipo_ItemClick (Position As Int, Va";
Debug.ShouldStop(32);
 BA.debugLineNum = 1304;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_devo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_devo_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2441);
if (RapidSub.canDelegate("p_devo_click")) { return __ref.runUserSub(false, "c_productos","p_devo_click", __ref);}
 BA.debugLineNum = 2441;BA.debugLine="Private Sub p_devo_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 2443;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_promodesc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_promodesc_Click (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2300);
if (RapidSub.canDelegate("p_promodesc_click")) { return __ref.runUserSub(false, "c_productos","p_promodesc_click", __ref);}
 BA.debugLineNum = 2300;BA.debugLine="Private Sub p_promodesc_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 2301;BA.debugLine="p_promodesc.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_p_promodesc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 2302;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
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",7,__ref.getField(false, "ba"),__ref,1322);
if (RapidSub.canDelegate("p_vistapreviatrans_click")) { return __ref.runUserSub(false, "c_productos","p_vistapreviatrans_click", __ref);}
 BA.debugLineNum = 1322;BA.debugLine="Private Sub p_vistaPreviaTrans_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 1324;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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",7,__ref.getField(false, "ba"),__ref,271);
if (RapidSub.canDelegate("pclv_addprods")) { return __ref.runUserSub(false, "c_productos","pclv_addprods", __ref);}
 BA.debugLineNum = 271;BA.debugLine="Sub PCLV_AddProds";
Debug.ShouldStop(16384);
 BA.debugLineNum = 273;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
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",7,__ref.getField(false, "ba"),__ref,1972);
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 = 1972;BA.debugLine="Sub PCLV_HintRequested(Index As Int) As Object";
Debug.ShouldStop(524288);
 BA.debugLineNum = 1973;BA.debugLine="Dim word As String = listaHints.get(Index)";
Debug.ShouldStop(1048576);
_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 = 1974;BA.debugLine="Return word";
Debug.ShouldStop(2097152);
if (true) return (_word);
 BA.debugLineNum = 1975;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _terminarpromoesp(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("terminarpromoesp (c_productos) ","c_productos",7,__ref.getField(false, "ba"),__ref,2278);
if (RapidSub.canDelegate("terminarpromoesp")) { return __ref.runUserSub(false, "c_productos","terminarpromoesp", __ref);}
int _i = 0;
RemoteObject _pn = RemoteObject.createImmutable("");
 BA.debugLineNum = 2278;BA.debugLine="Sub terminarpromoesp";
Debug.ShouldStop(32);
 BA.debugLineNum = 2279;BA.debugLine="c2 = B4XPages.MainPage.skmt.ExecQuery($\"select *";
Debug.ShouldStop(64);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" WHERE CAT_GP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)"))))));
 BA.debugLineNum = 2280;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2281;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2282;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"), \"";
Debug.ShouldStop(512);
c_productos._subs.runVoidMethod ("_guardaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(BA.ObjectToString("0")),(Object)(BA.NumberToString(1)),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE")))),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(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 = 2283;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select * f";
Debug.ShouldStop(1024);
__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 * from CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)"))));
 BA.debugLineNum = 2284;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2285;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(4096);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step7 > 0 && _i <= limit7) || (step7 < 0 && _i >= limit7) ;_i = ((int)(0 + _i + step7))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2286;BA.debugLine="c.Position = i";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2287;BA.debugLine="Private pn As String = Subs.traeProdNombre(c.G";
Debug.ShouldStop(16384);
_pn = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_IDPROD")))));Debug.locals.put("pn", _pn);Debug.locals.put("pn", _pn);
 BA.debugLineNum = 2288;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"),";
Debug.ShouldStop(32768);
c_productos._subs.runVoidMethod ("_guardaproducto" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_PRECIO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_PZAS")))),(Object)(_pn),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_IDPROD")))),(Object)(c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(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("i", _i);
;
 };
 BA.debugLineNum = 2291;BA.debugLine="c.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 2293;BA.debugLine="c2.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2294;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}