package SHARK2.keymon.com.mx;

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

public class c_productos_subs_0 {


public static RemoteObject  _actualizaretiquetastotales(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("ActualizarEtiquetasTotales (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,1254);
if (RapidSub.canDelegate("actualizaretiquetastotales")) { return __ref.runUserSub(false, "c_productos","actualizaretiquetastotales", __ref);}
RemoteObject _h = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 1254;BA.debugLine="Private Sub ActualizarEtiquetasTotales";
Debug.ShouldStop(32);
 BA.debugLineNum = 1255;BA.debugLine="Dim h As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(64);
_h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_h = 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 )"))));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 1256;BA.debugLine="h.Position = 0";
Debug.ShouldStop(128);
_h.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1258;BA.debugLine="l_cant.Text = h.GetString(\"PC_NOART\")";
Debug.ShouldStop(512);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))));
 BA.debugLineNum = 1259;BA.debugLine="l_total2.Text = NumberFormat2(h.GetDouble(\"PC_MON";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)(_h.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(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")))));
 BA.debugLineNum = 1261;BA.debugLine="h.Close";
Debug.ShouldStop(4096);
_h.runVoidMethod ("Close");
 BA.debugLineNum = 1262;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _actualizarlabelexistencias(RemoteObject __ref,RemoteObject _v,RemoteObject _idprod) throws Exception{
try {
		Debug.PushSubsStack("ActualizarLabelExistencias (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2625);
if (RapidSub.canDelegate("actualizarlabelexistencias")) { return __ref.runUserSub(false, "c_productos","actualizarlabelexistencias", __ref, _v, _idprod);}
RemoteObject _parent = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _child = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lbl = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _nuevostock = RemoteObject.createImmutable(0);
RemoteObject _prodnombre = RemoteObject.createImmutable("");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
Debug.locals.put("v", _v);
Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 2625;BA.debugLine="Private Sub ActualizarLabelExistencias(v As View,";
Debug.ShouldStop(1);
 BA.debugLineNum = 2628;BA.debugLine="Dim parent As B4XView = v.Parent";
Debug.ShouldStop(8);
_parent = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_parent = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), _v.runMethod(false,"getParent"));Debug.locals.put("parent", _parent);Debug.locals.put("parent", _parent);
 BA.debugLineNum = 2632;BA.debugLine="For Each child As B4XView In parent.GetAllViewsRe";
Debug.ShouldStop(128);
_child = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
{
final RemoteObject group2 = _parent.runMethod(false,"GetAllViewsRecursive");
final int groupLen2 = group2.runMethod(true,"getSize").<Integer>get()
;int index2 = 0;
;
for (; index2 < groupLen2;index2++){
_child = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), group2.runMethod(false,"Get",index2));Debug.locals.put("child", _child);
Debug.locals.put("child", _child);
 BA.debugLineNum = 2633;BA.debugLine="If child Is Label Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("i",_child.getObjectOrNull(), RemoteObject.createImmutable("android.widget.TextView"))) { 
 BA.debugLineNum = 2634;BA.debugLine="Dim lbl As Label = child";
Debug.ShouldStop(512);
_lbl = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
_lbl = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _child.getObject());Debug.locals.put("lbl", _lbl);Debug.locals.put("lbl", _lbl);
 BA.debugLineNum = 2636;BA.debugLine="If lbl.Text.Contains(\"Existencias:\") Then";
Debug.ShouldStop(2048);
if (_lbl.runMethod(true,"getText").runMethod(true,"contains",(Object)(RemoteObject.createImmutable("Existencias:"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 2637;BA.debugLine="Dim nuevoStock As Int = Subs.traeinventario(id";
Debug.ShouldStop(4096);
_nuevostock = BA.numberCast(int.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_idprod)));Debug.locals.put("nuevoStock", _nuevostock);Debug.locals.put("nuevoStock", _nuevostock);
 BA.debugLineNum = 2638;BA.debugLine="Dim prodNombre As String = Subs.traeProdNombre";
Debug.ShouldStop(8192);
_prodnombre = c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_idprod));Debug.locals.put("prodNombre", _prodnombre);Debug.locals.put("prodNombre", _prodnombre);
 BA.debugLineNum = 2640;BA.debugLine="Dim cs As CSBuilder";
Debug.ShouldStop(32768);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2641;BA.debugLine="cs.Initialize.Color(Colors.Red).Bold.Append(pr";
Debug.ShouldStop(65536);
_cs.runMethod(false,"Initialize").runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Red"))).runMethod(false,"Bold").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_prodnombre))).runMethod(false,"Pop").runMethod(false,"Pop").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF")))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 12))).runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),_nuevostock)))).runVoidMethod ("Pop");
 BA.debugLineNum = 2644;BA.debugLine="lbl.Text = cs";
Debug.ShouldStop(524288);
_lbl.runMethod(true,"setText",BA.ObjectToCharSequence(_cs.getObject()));
 BA.debugLineNum = 2645;BA.debugLine="Exit ' Ya lo encontramos, salimos del bucle";
Debug.ShouldStop(1048576);
if (true) break;
 };
 };
 }
}Debug.locals.put("child", _child);
;
 BA.debugLineNum = 2649;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _actualizarlabelnombrepresentacion(RemoteObject __ref,RemoteObject _v,RemoteObject _nombrepres,RemoteObject _totalunidades) throws Exception{
try {
		Debug.PushSubsStack("ActualizarLabelNombrePresentacion (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2712);
if (RapidSub.canDelegate("actualizarlabelnombrepresentacion")) { return __ref.runUserSub(false, "c_productos","actualizarlabelnombrepresentacion", __ref, _v, _nombrepres, _totalunidades);}
RemoteObject _parent = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _child = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lbl = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
Debug.locals.put("v", _v);
Debug.locals.put("nombrePres", _nombrepres);
Debug.locals.put("totalUnidades", _totalunidades);
 BA.debugLineNum = 2712;BA.debugLine="Private Sub ActualizarLabelNombrePresentacion(v As";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 2714;BA.debugLine="Dim parent As B4XView = v.Parent";
Debug.ShouldStop(33554432);
_parent = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_parent = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), _v.runMethod(false,"getParent"));Debug.locals.put("parent", _parent);Debug.locals.put("parent", _parent);
 BA.debugLineNum = 2717;BA.debugLine="For Each child As B4XView In parent.GetAllViewsRe";
Debug.ShouldStop(268435456);
_child = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
{
final RemoteObject group2 = _parent.runMethod(false,"GetAllViewsRecursive");
final int groupLen2 = group2.runMethod(true,"getSize").<Integer>get()
;int index2 = 0;
;
for (; index2 < groupLen2;index2++){
_child = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), group2.runMethod(false,"Get",index2));Debug.locals.put("child", _child);
Debug.locals.put("child", _child);
 BA.debugLineNum = 2718;BA.debugLine="If child Is Label Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("i",_child.getObjectOrNull(), RemoteObject.createImmutable("android.widget.TextView"))) { 
 BA.debugLineNum = 2719;BA.debugLine="Dim lbl As Label = child";
Debug.ShouldStop(1073741824);
_lbl = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
_lbl = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _child.getObject());Debug.locals.put("lbl", _lbl);Debug.locals.put("lbl", _lbl);
 BA.debugLineNum = 2722;BA.debugLine="If lbl.Text.ToUpperCase.Contains(nombrePres.ToU";
Debug.ShouldStop(2);
if (_lbl.runMethod(true,"getText").runMethod(true,"toUpperCase").runMethod(true,"contains",(Object)(_nombrepres.runMethod(true,"toUpperCase"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 2723;BA.debugLine="lbl.Text = nombrePres.ToUpperCase & \": \" & tot";
Debug.ShouldStop(4);
_lbl.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_nombrepres.runMethod(true,"toUpperCase"),RemoteObject.createImmutable(": "),_totalunidades)));
 BA.debugLineNum = 2724;BA.debugLine="Exit";
Debug.ShouldStop(8);
if (true) break;
 };
 };
 }
}Debug.locals.put("child", _child);
;
 BA.debugLineNum = 2728;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _actualizartotalespedido(RemoteObject __ref,RemoteObject _idclie) throws Exception{
try {
		Debug.PushSubsStack("ActualizarTotalesPedido (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,1680);
if (RapidSub.canDelegate("actualizartotalespedido")) { return __ref.runUserSub(false, "c_productos","actualizartotalespedido", __ref, _idclie);}
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _h = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _usuario = RemoteObject.createImmutable("");
Debug.locals.put("idClie", _idclie);
 BA.debugLineNum = 1680;BA.debugLine="Private Sub ActualizarTotalesPedido(idClie As Stri";
Debug.ShouldStop(32768);
 BA.debugLineNum = 1681;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(65536);
c_productos.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1682;BA.debugLine="Dim sDate As String = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(131072);
_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);Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 1683;BA.debugLine="Dim sTime As String = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(262144);
_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);Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 1686;BA.debugLine="Dim h As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(2097152);
_h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_h = 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_CANT) as PC_NOART, SUM(PE_COSTO_TOT) as PC_MONTO FROM PEDIDO WHERE PE_CLIENTE = '"),_idclie,RemoteObject.createImmutable("'")))));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 1687;BA.debugLine="h.Position = 0";
Debug.ShouldStop(4194304);
_h.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1689;BA.debugLine="If h.RowCount > 0 And h.GetString(\"PC_NOART\") <>";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_h.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("N",_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))) { 
 BA.debugLineNum = 1691;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(67108864);
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_cliente WHERE PC_CLIENTE = '"),_idclie,RemoteObject.createImmutable("'"))));
 BA.debugLineNum = 1693;BA.debugLine="Dim usuario As String = Subs.traeUsuarioDeBD 'As";
Debug.ShouldStop(268435456);
_usuario = c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("usuario", _usuario);Debug.locals.put("usuario", _usuario);
 BA.debugLineNum = 1694;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(536870912);
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[] {(_idclie),(RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime)),(_usuario),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(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 = 1697;BA.debugLine="l_cant.Text = h.GetString(\"PC_NOART\")";
Debug.ShouldStop(1);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))));
 BA.debugLineNum = 1698;BA.debugLine="l_total2.Text = NumberFormat2(h.GetDouble(\"PC_MO";
Debug.ShouldStop(2);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)(_h.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(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")))));
 }else {
 BA.debugLineNum = 1701;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(16);
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_cliente WHERE PC_CLIENTE = '"),_idclie,RemoteObject.createImmutable("'"))));
 BA.debugLineNum = 1702;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_";
Debug.ShouldStop(32);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.concat(RemoteObject.createImmutable("UPDATE kmt_info SET gestion = 0 WHERE CAT_CL_CODIGO = '"),_idclie,RemoteObject.createImmutable("'"))));
 BA.debugLineNum = 1703;BA.debugLine="l_cant.Text = \"0\"";
Debug.ShouldStop(64);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 BA.debugLineNum = 1704;BA.debugLine="l_total2.Text = \"0.00\"";
Debug.ShouldStop(128);
__ref.getField(false,"_l_total2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0.00"));
 };
 BA.debugLineNum = 1706;BA.debugLine="h.Close";
Debug.ShouldStop(512);
_h.runVoidMethod ("Close");
 BA.debugLineNum = 1707;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
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",14,__ref.getField(false, "ba"),__ref,1392);
if (RapidSub.canDelegate("b_aceptar_click")) { return __ref.runUserSub(false, "c_productos","b_aceptar_click", __ref);}
 BA.debugLineNum = 1392;BA.debugLine="Private Sub b_aceptar_Click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 1393;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1394;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(131072);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 1395;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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",14,__ref.getField(false, "ba"),__ref,1264);
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");
RemoteObject _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _costo = RemoteObject.createImmutable("");
 BA.debugLineNum = 1264;BA.debugLine="Private Sub b_continuar_Click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 1265;BA.debugLine="Log(\"b_continuar_Click\")";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","519202049",RemoteObject.createImmutable("b_continuar_Click"),0);
 BA.debugLineNum = 1266;BA.debugLine="cuentaProds";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 1268;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","519202052",(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 = 1275;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","519202059",RemoteObject.createImmutable("promos-inv, prods-inv, cat-vis"),0);
 BA.debugLineNum = 1276;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1277;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1278;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1279;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1280;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1281;BA.debugLine="Log(\"Continuar\")";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","519202065",RemoteObject.createImmutable("Continuar"),0);
 BA.debugLineNum = 1282;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
Debug.ShouldStop(2);
_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 = 1283;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")";
Debug.ShouldStop(4);
__ref.setField ("_prodspedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("productos"))))));
 BA.debugLineNum = 1284;BA.debugLine="montoPedidoActual = m.Get(\"monto\")";
Debug.ShouldStop(8);
__ref.setField ("_montopedidoactual" /*RemoteObject*/ ,BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))));
 BA.debugLineNum = 1285;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Select";
Debug.ShouldStop(16);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = 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.createImmutable("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 1286;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(32);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1287;BA.debugLine="Dim costo As String = fg.GetString(\"COSTO\")";
Debug.ShouldStop(64);
_costo = _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")));Debug.locals.put("costo", _costo);Debug.locals.put("costo", _costo);
 BA.debugLineNum = 1289;BA.debugLine="If costo > 0 And costo < 1000 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _costo),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("<",BA.numberCast(double.class, _costo),BA.numberCast(double.class, 1000))) { 
 BA.debugLineNum = 1290;BA.debugLine="result = Msgbox2($\"¿Desea continuar?${CRLF}Si ac";
Debug.ShouldStop(512);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_productos.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("¿Desea continuar?"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Si acepta, el pedido se borrará (mínimo $1,000)."),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Si cancela, podrá seguir agregando productos."))))),(Object)(BA.ObjectToCharSequence("Venta Minima de Credito")),(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 = 1291;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1292;BA.debugLine="Subs.borraPedidoCredito";
Debug.ShouldStop(2048);
c_productos._subs.runVoidMethod ("_borrapedidocredito" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 1293;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
Debug.ShouldStop(4096);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_promos" /*RemoteObject*/ ).getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1294;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(8192);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }else {
 BA.debugLineNum = 1296;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 };
 };
 BA.debugLineNum = 1299;BA.debugLine="fg.Close";
Debug.ShouldStop(262144);
_fg.runVoidMethod ("Close");
 BA.debugLineNum = 1300;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
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",14,__ref.getField(false, "ba"),__ref,645);
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 _panelcajas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacant2 = 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 _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
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 _maxcajas = RemoteObject.createImmutable(0);
 BA.debugLineNum = 645;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 646;BA.debugLine="totalcajasmaspiezas = 0";
Debug.ShouldStop(32);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 647;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(64);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 648;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(128);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 651;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(1024);
_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 = 652;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(2048);
_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 = 653;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(4096);
_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 = 654;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(8192);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 655;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(16384);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 656;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(32768);
_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 = 657;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(65536);
_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 = 658;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(131072);
_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 = 661;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(1048576);
_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 = 662;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(2097152);
_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 = 663;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
Debug.ShouldStop(4194304);
_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 = 664;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","518808851",(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_existencias))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 665;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 666;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(33554432);
_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 = 683;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","518808870",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),0);
 BA.debugLineNum = 684;BA.debugLine="Log(B4XPages.MainPage.cliente.credito_diponible)";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","518808871",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ ),0);
 BA.debugLineNum = 685;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","518808872",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 686;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_CREDI";
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_CREDITO"))) { 
 BA.debugLineNum = 687;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Selec";
Debug.ShouldStop(16384);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = 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.createImmutable("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 688;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(32768);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 690;BA.debugLine="If fg.GetString(\"COSTO\") + precio <= B4XPages.Ma";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),BA.numberCast(double.class, _precio)}, "+",1, 0),BA.numberCast(double.class, c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 691;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text";
Debug.ShouldStop(262144);
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 = 693;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"alma";
Debug.ShouldStop(1048576);
(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 = 694;BA.debugLine="inv = inv - 1";
Debug.ShouldStop(2097152);
_inv = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),RemoteObject.createImmutable(1)}, "-",1, 0));Debug.locals.put("inv", _inv);
 BA.debugLineNum = 696;BA.debugLine="laCant.Text = NumberFormat2((laCant.Text + 1),";
Debug.ShouldStop(8388608);
_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 = 699;BA.debugLine="Private nombreX As String = Subs.traeProdNombre";
Debug.ShouldStop(67108864);
_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 = 702;BA.debugLine="If laCant.Text > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 703;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(1073741824);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 704;BA.debugLine="Else If laCant.Text = 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 705;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(1);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 708;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","518808895",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 715;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio";
Debug.ShouldStop(1024);
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)(BA.numberCast(int.class, _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 = 716;BA.debugLine="cuentaProds";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 718;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 719;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(16384);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 720;BA.debugLine="cs.Initialize";
Debug.ShouldStop(32768);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 721;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 = 722;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 = 723;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 724;BA.debugLine="o.Position = 0";
Debug.ShouldStop(524288);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 725;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\"";
Debug.ShouldStop(1048576);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 727;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"p";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 728;BA.debugLine="Private maxcajas As Int = 0";
Debug.ShouldStop(8388608);
_maxcajas = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 729;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","518808916",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 731;BA.debugLine="Private maxcajas As Int = invActualizado/clv_";
Debug.ShouldStop(67108864);
_maxcajas = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 732;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","518808919",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 734;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.re";
Debug.ShouldStop(536870912);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 737;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinven";
Debug.ShouldStop(1);
__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)));
 }else {
 BA.debugLineNum = 740;BA.debugLine="MsgboxAsync(\"No se puede meter mas venta a cred";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se puede meter mas venta a credito por que supera el limite del credito")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atencion"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 743;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text";
Debug.ShouldStop(64);
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 = 745;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almac";
Debug.ShouldStop(256);
(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 = 746;BA.debugLine="inv = inv - 1";
Debug.ShouldStop(512);
_inv = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),RemoteObject.createImmutable(1)}, "-",1, 0));Debug.locals.put("inv", _inv);
 BA.debugLineNum = 748;BA.debugLine="laCant.Text = NumberFormat2((laCant.Text + 1),";
Debug.ShouldStop(2048);
_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 = 751;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
Debug.ShouldStop(16384);
_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 = 754;BA.debugLine="If laCant.Text > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 755;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(262144);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 756;BA.debugLine="Else If laCant.Text = 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 757;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(1048576);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 760;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","518808947",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 767;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(1073741824);
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)(BA.numberCast(int.class, _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 = 768;BA.debugLine="cuentaProds";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 770;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 771;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(4);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 772;BA.debugLine="cs.Initialize";
Debug.ShouldStop(8);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 773;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(16);
_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 = 774;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(32);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 775;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 776;BA.debugLine="o.Position = 0";
Debug.ShouldStop(128);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 777;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(256);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 779;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"pr";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 780;BA.debugLine="Private maxcajas As Int = 0";
Debug.ShouldStop(2048);
_maxcajas = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 781;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","518808968",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 783;BA.debugLine="Private maxcajas As Int = invActualizado/clv_p";
Debug.ShouldStop(16384);
_maxcajas = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 784;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","518808971",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 786;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red";
Debug.ShouldStop(131072);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 789;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinvent";
Debug.ShouldStop(1048576);
__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 = 792;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmasc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMasc_Click (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2179);
if (RapidSub.canDelegate("b_prodmasc_click")) { return __ref.runUserSub(false, "c_productos","b_prodmasc_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 _lacant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelcajas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _inv = RemoteObject.createImmutable("");
RemoteObject _existencias = RemoteObject.createImmutable("");
RemoteObject _conversion = RemoteObject.createImmutable("");
RemoteObject _preciocaja = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
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 _maxcajas2 = RemoteObject.createImmutable(0);
 BA.debugLineNum = 2179;BA.debugLine="Sub b_prodMasc_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 2180;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(8);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 2181;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(16);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 2184;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(128);
_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 = 2185;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(256);
_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 = 2186;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(512);
_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 = 2187;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(1024);
_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 = 2188;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(2048);
_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 = 2189;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(4096);
_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 = 2190;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(8192);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 2191;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(16384);
_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 = 2193;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(65536);
_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 = 2194;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(131072);
_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 = 2195;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
Debug.ShouldStop(262144);
_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 = 2196;BA.debugLine="Private conversion As String = clv_prods_ll.GetVa";
Debug.ShouldStop(524288);
_conversion = 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("conversion")))));Debug.locals.put("conversion", _conversion);Debug.locals.put("conversion", _conversion);
 BA.debugLineNum = 2197;BA.debugLine="Private preciocaja As String = clv_prods_ll.GetVa";
Debug.ShouldStop(1048576);
_preciocaja = 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_caja")))));Debug.locals.put("preciocaja", _preciocaja);Debug.locals.put("preciocaja", _preciocaja);
 BA.debugLineNum = 2198;BA.debugLine="Log(conversion)";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","520381715",_conversion,0);
 BA.debugLineNum = 2199;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","520381716",(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_existencias))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2200;BA.debugLine="If laCant2.Text = \"\" Then laCant2.Text = 0";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 2201;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 = 2218;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","520381735",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),0);
 BA.debugLineNum = 2219;BA.debugLine="Log(\"--------------->Credito Disponible: \"&B4XPag";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","520381736",RemoteObject.concat(RemoteObject.createImmutable("--------------->Credito Disponible: "),c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2220;BA.debugLine="Log(preciocaja)";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","520381737",_preciocaja,0);
 BA.debugLineNum = 2222;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_CREDI";
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_CREDITO"))) { 
 BA.debugLineNum = 2223;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Selec";
Debug.ShouldStop(16384);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = 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.createImmutable("Select Ifnull(sum(PE_COSTO_TOT),0) AS COSTO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 2224;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(32768);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2225;BA.debugLine="If fg.GetString(\"COSTO\") + preciocaja <= B4XPage";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),BA.numberCast(double.class, _preciocaja)}, "+",1, 0),BA.numberCast(double.class, c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 2226;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","520381743",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 2227;BA.debugLine="Log((laCant2.Text * conversion) + conversion)";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","520381744",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, _conversion)}, "+",1, 0)),0);
 BA.debugLineNum = 2228;BA.debugLine="Log((laCant2.Text *conversion)+ Subs.traeinvent";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","520381745",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0)),0);
 BA.debugLineNum = 2229;BA.debugLine="If Subs.traeinventario(id) > 0 And ((laCant2.Te";
Debug.ShouldStop(1048576);
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",RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, _conversion)}, "+",1, 0),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0))))))) { 
 BA.debugLineNum = 2231;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"alma";
Debug.ShouldStop(4194304);
(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),BA.numberCast(double.class, _conversion)}, "-",1, 0)))));
 BA.debugLineNum = 2232;BA.debugLine="inv = inv - conversion";
Debug.ShouldStop(8388608);
_inv = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),BA.numberCast(double.class, _conversion)}, "-",1, 0));Debug.locals.put("inv", _inv);
 BA.debugLineNum = 2234;BA.debugLine="laCant2.Text = NumberFormat2((laCant2.Text + 1";
Debug.ShouldStop(33554432);
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.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 = 2236;BA.debugLine="Log(\"cuando entro aqui?\")";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","520381753",RemoteObject.createImmutable("cuando entro aqui?"),0);
 };
 BA.debugLineNum = 2238;BA.debugLine="Private nombreX As String = Subs.traeProdNombre";
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 = 2240;BA.debugLine="Log((laCant2.Text * conversion))";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","520381757",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0))),0);
 BA.debugLineNum = 2241;BA.debugLine="If laCant2.Text > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2242;BA.debugLine="panelpiezas.Visible = False";
Debug.ShouldStop(2);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 2243;BA.debugLine="Else If laCant2.Text = 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 2244;BA.debugLine="panelpiezas.Visible = True";
Debug.ShouldStop(8);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 2254;BA.debugLine="Subs.actualizaProducto2(Subs.traeAlmacen,precio";
Debug.ShouldStop(8192);
c_productos._subs.runVoidMethod ("_actualizaproducto2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_preciocaja),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)))),(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)(_lacant2.runMethod(true,"getText")),(Object)(BA.NumberToString(1)));
 BA.debugLineNum = 2255;BA.debugLine="cuentaProds";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 2257;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2258;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(131072);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2259;BA.debugLine="cs.Initialize";
Debug.ShouldStop(262144);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 2260;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(524288);
_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 = 2261;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(1048576);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 2262;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2263;BA.debugLine="o.Position = 0";
Debug.ShouldStop(4194304);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2264;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\"";
Debug.ShouldStop(8388608);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 2266;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"p";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2267;BA.debugLine="Private maxcajas2 As Int = 0";
Debug.ShouldStop(67108864);
_maxcajas2 = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2268;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","520381785",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 2270;BA.debugLine="Private maxcajas2 As Int = invActualizado/clv";
Debug.ShouldStop(536870912);
_maxcajas2 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2271;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","520381788",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 2273;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.re";
Debug.ShouldStop(1);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas2))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 2276;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinven";
Debug.ShouldStop(8);
__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)));
 }else {
 BA.debugLineNum = 2279;BA.debugLine="MsgboxAsync(\"No se puede meter mas venta a cred";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se puede meter mas venta a credito por que supera el limite del credito")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atencion"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 2282;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","520381799",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 2283;BA.debugLine="Log((laCant2.Text * conversion) + conversion)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","520381800",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, _conversion)}, "+",1, 0)),0);
 BA.debugLineNum = 2284;BA.debugLine="Log((laCant2.Text *conversion)+ Subs.traeinventa";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","520381801",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0)),0);
 BA.debugLineNum = 2285;BA.debugLine="If Subs.traeinventario(id) > 0 And ((laCant2.Tex";
Debug.ShouldStop(4096);
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",RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, _conversion)}, "+",1, 0),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)))}, "+",1, 0))))))) { 
 BA.debugLineNum = 2287;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almac";
Debug.ShouldStop(16384);
(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),BA.numberCast(double.class, _conversion)}, "-",1, 0)))));
 BA.debugLineNum = 2288;BA.debugLine="inv = inv - conversion";
Debug.ShouldStop(32768);
_inv = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inv),BA.numberCast(double.class, _conversion)}, "-",1, 0));Debug.locals.put("inv", _inv);
 BA.debugLineNum = 2290;BA.debugLine="laCant2.Text = NumberFormat2((laCant2.Text + 1)";
Debug.ShouldStop(131072);
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.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 = 2292;BA.debugLine="Log(\"cuando entro aqui?\")";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","520381809",RemoteObject.createImmutable("cuando entro aqui?"),0);
 };
 BA.debugLineNum = 2294;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
Debug.ShouldStop(2097152);
_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 = 2296;BA.debugLine="Log((laCant2.Text * conversion))";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","520381813",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0))),0);
 BA.debugLineNum = 2297;BA.debugLine="If laCant2.Text > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2298;BA.debugLine="panelpiezas.Visible = False";
Debug.ShouldStop(33554432);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 2299;BA.debugLine="Else If laCant2.Text = 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 2300;BA.debugLine="panelpiezas.Visible = True";
Debug.ShouldStop(134217728);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 2310;BA.debugLine="Subs.actualizaProducto2(Subs.traeAlmacen,precioc";
Debug.ShouldStop(32);
c_productos._subs.runVoidMethod ("_actualizaproducto2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_preciocaja),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)))),(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)(_lacant2.runMethod(true,"getText")),(Object)(BA.NumberToString(1)));
 BA.debugLineNum = 2311;BA.debugLine="cuentaProds";
Debug.ShouldStop(64);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 2313;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2314;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(512);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2315;BA.debugLine="cs.Initialize";
Debug.ShouldStop(1024);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 2316;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(2048);
_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 = 2317;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(4096);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 2318;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2319;BA.debugLine="o.Position = 0";
Debug.ShouldStop(16384);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2320;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(32768);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 2322;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"pr";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2323;BA.debugLine="Private maxcajas2 As Int = 0";
Debug.ShouldStop(262144);
_maxcajas2 = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2324;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","520381841",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 2326;BA.debugLine="Private maxcajas2 As Int = invActualizado/clv_";
Debug.ShouldStop(2097152);
_maxcajas2 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2327;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","520381844",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 2329;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red";
Debug.ShouldStop(16777216);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas2))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 2332;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinvent";
Debug.ShouldStop(134217728);
__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 = 2336;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
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",14,__ref.getField(false, "ba"),__ref,552);
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 _lacant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelbotonesc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelcajas = 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 _maxcajas = RemoteObject.createImmutable(0);
 BA.debugLineNum = 552;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(128);
 BA.debugLineNum = 553;BA.debugLine="totalcajasmaspiezas = 0";
Debug.ShouldStop(256);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 554;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(512);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 555;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(1024);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 557;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(4096);
_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 = 558;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(8192);
_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 = 559;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(16384);
_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 = 560;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(32768);
_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 = 561;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(65536);
_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 = 562;BA.debugLine="Dim panelbotonesc As B4XView = pnl.GetView(3)";
Debug.ShouldStop(131072);
_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 = 563;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(262144);
_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 = 564;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(524288);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 565;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(1048576);
_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 = 567;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 569;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text-1,0,0";
Debug.ShouldStop(16777216);
_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 = 570;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(33554432);
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 = 571;BA.debugLine="Private tmpMap1 As Map = clv_prods_ll.GetValue(in";
Debug.ShouldStop(67108864);
_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 = 572;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(134217728);
_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 = 573;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(268435456);
_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 = 574;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(536870912);
_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 = 575;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
Debug.ShouldStop(1073741824);
_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 = 576;BA.debugLine="LogColor(tmpMap1,Colors.Magenta)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","518743320",BA.ObjectToString(_tmpmap1),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 578;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_id)));};
 BA.debugLineNum = 579;BA.debugLine="If laCant.Text = 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 580;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(8);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }else 
{ BA.debugLineNum = 581;BA.debugLine="Else If laCant.Text > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 582;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(32);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 589;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","518743333",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 591;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant.te";
Debug.ShouldStop(16384);
c_productos.__c.runVoidMethod ("LogImpl","518743335",(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 = 592;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
Debug.ShouldStop(32768);
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)(BA.numberCast(int.class, _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 = 593;BA.debugLine="cuentaProds";
Debug.ShouldStop(65536);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 594;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","518743338",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 595;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","518743339",(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 = 596;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 597;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(1048576);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 598;BA.debugLine="cs.Initialize";
Debug.ShouldStop(2097152);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 599;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(4194304);
_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 = 600;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(8388608);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 601;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 602;BA.debugLine="o.Position = 0";
Debug.ShouldStop(33554432);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 603;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(67108864);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 605;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"pre";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 606;BA.debugLine="Private maxcajas As Int = 0";
Debug.ShouldStop(536870912);
_maxcajas = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 607;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","518743351",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 609;BA.debugLine="Private maxcajas As Int = invActualizado/clv_pr";
Debug.ShouldStop(1);
_maxcajas = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 610;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","518743354",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 613;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)";
Debug.ShouldStop(16);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 616;BA.debugLine="If laCant.Text = 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 617;BA.debugLine="If maxcajas > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_maxcajas,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 618;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(512);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 620;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(2048);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 };
 }else 
{ BA.debugLineNum = 622;BA.debugLine="Else If laCant.Text > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 623;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(16384);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 625;BA.debugLine="If Subs.totalPedido < 1 Then laCant.Text = \"0\"";
Debug.ShouldStop(65536);
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 = 626;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(131072);
__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 = 628;BA.debugLine="If tmpMap1.Get(\"conversion\") = \"1\" Or tmpMap1.Get";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_tmpmap1.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))),RemoteObject.createImmutable(("1"))) || RemoteObject.solveBoolean("=",_tmpmap1.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))),RemoteObject.createImmutable(("0")))) { 
 BA.debugLineNum = 629;BA.debugLine="Log(\"invisible\")";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","518743373",RemoteObject.createImmutable("invisible"),0);
 BA.debugLineNum = 630;BA.debugLine="panelbotonesc.Visible = False";
Debug.ShouldStop(2097152);
_panelbotonesc.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 };
 BA.debugLineNum = 632;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"alma";
Debug.ShouldStop(8388608);
if (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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen"))))),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion"))))))) { 
 BA.debugLineNum = 633;BA.debugLine="Log(clv_prods_ll.GetValue(index).As(Map).Get(\"ca";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","518743377",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("cant"))))),0);
 BA.debugLineNum = 634;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"can";
Debug.ShouldStop(33554432);
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,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant")))))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 635;BA.debugLine="Log(\"Aqui debemos ponerlo invisible\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","518743379",RemoteObject.createImmutable("Aqui debemos ponerlo invisible"),0);
 BA.debugLineNum = 636;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(134217728);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else {
 };
 };
 BA.debugLineNum = 643;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenosc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenosc_Click (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2108);
if (RapidSub.canDelegate("b_prodmenosc_click")) { return __ref.runUserSub(false, "c_productos","b_prodmenosc_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 _lacant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lprodx = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelcajas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _tmpmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _precio = RemoteObject.createImmutable("");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _nombrex = RemoteObject.createImmutable("");
RemoteObject _conversion = RemoteObject.createImmutable("");
RemoteObject _preciocaja = RemoteObject.createImmutable("");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
RemoteObject _maxcajas2 = RemoteObject.createImmutable(0);
 BA.debugLineNum = 2108;BA.debugLine="Sub b_prodMenosc_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 2109;BA.debugLine="totalcajasmaspiezas = 0";
Debug.ShouldStop(268435456);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 2110;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(536870912);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 2111;BA.debugLine="Root.RequestFocus";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
 BA.debugLineNum = 2113;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 = 2114;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(2);
_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 = 2115;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(4);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 2116;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(8);
_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 = 2117;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(16);
_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 = 2118;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(32);
_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 = 2119;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(64);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 2120;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(128);
_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 = 2122;BA.debugLine="If laCant2.Text = \"\" Then laCant2.Text = 0";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 2124;BA.debugLine="laCant2.Text = $\"${NumberFormat2(laCant2.Text-1,0";
Debug.ShouldStop(2048);
_lacant2.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, _lacant2.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 = 2125;BA.debugLine="If laCant2.Text < 0 Then laCant2.Text = 0";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 2126;BA.debugLine="Private tmpMap As Map = clv_prods_ll.GetValue(ind";
Debug.ShouldStop(8192);
_tmpmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tmpmap = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getvalue",(Object)(_index))));Debug.locals.put("tmpMap", _tmpmap);Debug.locals.put("tmpMap", _tmpmap);
 BA.debugLineNum = 2127;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in";
Debug.ShouldStop(16384);
_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 = 2128;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(32768);
_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 = 2129;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio";
Debug.ShouldStop(65536);
_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")),(_lacant2.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 = 2130;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
Debug.ShouldStop(131072);
_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 = 2131;BA.debugLine="Private conversion As String = clv_prods_ll.GetVa";
Debug.ShouldStop(262144);
_conversion = 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("conversion")))));Debug.locals.put("conversion", _conversion);Debug.locals.put("conversion", _conversion);
 BA.debugLineNum = 2132;BA.debugLine="Private preciocaja As String = clv_prods_ll.GetVa";
Debug.ShouldStop(524288);
_preciocaja = 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_caja")))));Debug.locals.put("preciocaja", _preciocaja);Debug.locals.put("preciocaja", _preciocaja);
 BA.debugLineNum = 2133;BA.debugLine="Log(tmpMap)";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","520316185",BA.ObjectToString(_tmpmap),0);
 BA.debugLineNum = 2135;BA.debugLine="If laCant2.Text = 0 Then prodsMap.Remove(id)";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.NumberToString(0))) { 
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)((_id)));};
 BA.debugLineNum = 2136;BA.debugLine="If laCant2.Text = 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 2137;BA.debugLine="panelpiezas.Visible = True";
Debug.ShouldStop(16777216);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }else 
{ BA.debugLineNum = 2138;BA.debugLine="Else If laCant2.Text > 0 Or clv_prods_ll.GetValue";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, 0)) || 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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion"))))),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen"))))))) { 
 BA.debugLineNum = 2139;BA.debugLine="panelpiezas.Visible = False";
Debug.ShouldStop(67108864);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 2146;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","520316198",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 2148;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant2.t";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","520316200",(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)((_lacant2.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 = 2150;BA.debugLine="Subs.actualizaProducto2(Subs.traeAlmacen,  precio";
Debug.ShouldStop(32);
c_productos._subs.runVoidMethod ("_actualizaproducto2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_preciocaja),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)))),(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)(_lacant2.runMethod(true,"getText")),(Object)(BA.NumberToString(1)));
 BA.debugLineNum = 2151;BA.debugLine="cuentaProds";
Debug.ShouldStop(64);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 2152;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
Debug.ShouldStop(128);
c_productos.__c.runVoidMethod ("LogImpl","520316204",RemoteObject.concat(RemoteObject.createImmutable("prodsMap="),__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 2153;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","520316205",(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 = 2154;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2155;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(1024);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2156;BA.debugLine="cs.Initialize";
Debug.ShouldStop(2048);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 2157;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(4096);
_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 = 2158;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(8192);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 2159;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2160;BA.debugLine="o.Position = 0";
Debug.ShouldStop(32768);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2161;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")";
Debug.ShouldStop(65536);
_invactualizado = _o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")));Debug.locals.put("invActualizado", _invactualizado);
 };
 BA.debugLineNum = 2163;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"pre";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2164;BA.debugLine="Private maxcajas2 As Int = 0";
Debug.ShouldStop(524288);
_maxcajas2 = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2165;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","520316217",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 2167;BA.debugLine="Private maxcajas2 As Int = invActualizado/clv_p";
Debug.ShouldStop(4194304);
_maxcajas2 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2168;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","520316220",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 2170;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)";
Debug.ShouldStop(33554432);
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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas2))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));};
 };
 BA.debugLineNum = 2173;BA.debugLine="If Subs.totalPedido < 1 Then laCant2.Text = \"0\"";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, c_productos._subs.runMethod(true,"_totalpedido" /*RemoteObject*/ ,__ref.getField(false, "ba"))),BA.numberCast(double.class, 1))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 2174;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(536870912);
__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 = 2177;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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",14,__ref.getField(false, "ba"),__ref,508);
if (RapidSub.canDelegate("b_qr_click")) { return __ref.runUserSub(false, "c_productos","b_qr_click", __ref);}
 BA.debugLineNum = 508;BA.debugLine="Sub b_QR_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 509;BA.debugLine="If ciclo = 1 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 510;BA.debugLine="ciclo = 2";
Debug.ShouldStop(536870912);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(2));
 BA.debugLineNum = 511;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 512;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 513;BA.debugLine="else if ciclo = 2 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(2))) { 
 BA.debugLineNum = 514;BA.debugLine="ciclo = 3";
Debug.ShouldStop(2);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(3));
 BA.debugLineNum = 515;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(4);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 516;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 517;BA.debugLine="else if ciclo = 3 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(3))) { 
 BA.debugLineNum = 518;BA.debugLine="ciclo = 4";
Debug.ShouldStop(32);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(4));
 BA.debugLineNum = 519;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(64);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 520;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 521;BA.debugLine="else if ciclo = 4 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(4))) { 
 BA.debugLineNum = 522;BA.debugLine="ciclo = 5";
Debug.ShouldStop(512);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(5));
 BA.debugLineNum = 523;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(1024);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 524;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }else 
{ BA.debugLineNum = 525;BA.debugLine="else if ciclo = 5 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ciclo" /*RemoteObject*/ ),BA.NumberToString(5))) { 
 BA.debugLineNum = 526;BA.debugLine="ciclo = 1";
Debug.ShouldStop(8192);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 527;BA.debugLine="ya_entro  = \"0\"";
Debug.ShouldStop(16384);
__ref.setField ("_ya_entro" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 528;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(32768);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 }}}}}
;
 BA.debugLineNum = 530;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
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",14,__ref.getField(false, "ba"),__ref,1369);
if (RapidSub.canDelegate("b_rechazar_click")) { return __ref.runUserSub(false, "c_productos","b_rechazar_click", __ref);}
 BA.debugLineNum = 1369;BA.debugLine="Private Sub b_rechazar_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 1371;BA.debugLine="result =  Msgbox2($\"Seguro que desea borrar el pe";
Debug.ShouldStop(67108864);
__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 = 1372;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1373;BA.debugLine="Subs.borraPedidoClienteActual";
Debug.ShouldStop(268435456);
c_productos._subs.runVoidMethod ("_borrapedidoclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 1374;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1375;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
Debug.ShouldStop(1073741824);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_promos" /*RemoteObject*/ ).getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1378;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(2);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 1379;BA.debugLine="Log(\"Positivo\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","519660810",RemoteObject.createImmutable("Positivo"),0);
 BA.debugLineNum = 1380;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(8);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }else {
 BA.debugLineNum = 1382;BA.debugLine="Log(\"NO Positivo\")";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","519660813",RemoteObject.createImmutable("NO Positivo"),0);
 BA.debugLineNum = 1383;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 };
 BA.debugLineNum = 1388;BA.debugLine="p_vistaPreviaTrans.Visible=False";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1389;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(4096);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 1390;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",14,__ref.getField(false, "ba"),__ref,1151);
if (RapidSub.canDelegate("b_terminar1_click")) { return __ref.runUserSub(false, "c_productos","b_terminar1_click", __ref);}
RemoteObject _q = RemoteObject.createImmutable("");
RemoteObject _c_prods = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _almacenactual = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _nomprod = RemoteObject.createImmutable("");
RemoteObject _idprod = RemoteObject.createImmutable("");
RemoteObject _presname = RemoteObject.createImmutable("");
RemoteObject _cantpres = RemoteObject.createImmutable("");
RemoteObject _uvmval = RemoteObject.createImmutable(0);
RemoteObject _cedisfila = RemoteObject.createImmutable("");
RemoteObject _foliofila = RemoteObject.createImmutable("");
RemoteObject _dirfila = RemoteObject.createImmutable("");
RemoteObject _cantpzs = RemoteObject.createImmutable(0);
RemoteObject _cstitulo = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _detalle = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _datosidentidad = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
 BA.debugLineNum = 1151;BA.debugLine="Sub b_terminar1_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 1153;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete from";
Debug.ShouldStop(1);
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 = 1155;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1156;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1157;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1158;BA.debugLine="lv_prodsPedido.Clear";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 1163;BA.debugLine="lv_prodsPedido.TwoLinesLayout.ItemHeight = 140dip";
Debug.ShouldStop(1024);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").runMethod(true,"setItemHeight",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 140))));
 BA.debugLineNum = 1166;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Height = 45di";
Debug.ShouldStop(8192);
__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, 45))));
 BA.debugLineNum = 1167;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.TextSize = 14";
Debug.ShouldStop(16384);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label").runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 1168;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Typeface = Ty";
Debug.ShouldStop(32768);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label").runMethod(false,"setTypeface",c_productos.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD"));
 BA.debugLineNum = 1169;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Gravity = Gra";
Debug.ShouldStop(65536);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label").runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"CENTER_VERTICAL"));
 BA.debugLineNum = 1172;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.Height";
Debug.ShouldStop(524288);
__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, 90))));
 BA.debugLineNum = 1173;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.Top = 5";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel").runMethod(true,"setTop",c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50))));
 BA.debugLineNum = 1174;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.TextSiz";
Debug.ShouldStop(2097152);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel").runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 1177;BA.debugLine="Private q As String = \"SELECT PE_PRONOMBRE, PE_CO";
Debug.ShouldStop(16777216);
_q = RemoteObject.concat(RemoteObject.createImmutable("SELECT PE_PRONOMBRE, PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRESENTACION, PE_CANTC, PE_UVM, PE_PROID, PE_DIRIGIDA "),RemoteObject.createImmutable("FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS,PE_COSTO_TOT, PE_PRONOMBRE"));Debug.locals.put("q", _q);Debug.locals.put("q", _q);
 BA.debugLineNum = 1180;BA.debugLine="Private c_prods As Cursor = B4XPages.MainPage.skm";
Debug.ShouldStop(134217728);
_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)(_q)));Debug.locals.put("c_prods", _c_prods);Debug.locals.put("c_prods", _c_prods);
 BA.debugLineNum = 1182;BA.debugLine="If c_prods.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_c_prods.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1183;BA.debugLine="vamoaver.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1184;BA.debugLine="Dim almacenActual As String = Subs.traeAlmacen '";
Debug.ShouldStop(-2147483648);
_almacenactual = c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("almacenActual", _almacenactual);Debug.locals.put("almacenActual", _almacenactual);
 BA.debugLineNum = 1186;BA.debugLine="For i = 0 To c_prods.RowCount - 1";
Debug.ShouldStop(2);
{
final int step19 = 1;
final int limit19 = RemoteObject.solve(new RemoteObject[] {_c_prods.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step19 > 0 && _i <= limit19) || (step19 < 0 && _i >= limit19) ;_i = ((int)(0 + _i + step19))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1187;BA.debugLine="c_prods.Position = i";
Debug.ShouldStop(4);
_c_prods.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1190;BA.debugLine="Dim nomProd As String = c_prods.GetString(\"PE_P";
Debug.ShouldStop(32);
_nomprod = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")));Debug.locals.put("nomProd", _nomprod);Debug.locals.put("nomProd", _nomprod);
 BA.debugLineNum = 1191;BA.debugLine="Dim idProd As String = c_prods.GetString(\"PE_PR";
Debug.ShouldStop(64);
_idprod = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")));Debug.locals.put("idProd", _idprod);Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 1192;BA.debugLine="Dim presName As String = c_prods.GetString(\"PE_";
Debug.ShouldStop(128);
_presname = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRESENTACION")));Debug.locals.put("presName", _presname);Debug.locals.put("presName", _presname);
 BA.debugLineNum = 1193;BA.debugLine="Dim cantPres As String = c_prods.GetString(\"PE_";
Debug.ShouldStop(256);
_cantpres = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANTC")));Debug.locals.put("cantPres", _cantpres);Debug.locals.put("cantPres", _cantpres);
 BA.debugLineNum = 1194;BA.debugLine="Dim uvmVal As Int = c_prods.GetInt(\"PE_UVM\")";
Debug.ShouldStop(512);
_uvmval = _c_prods.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("PE_UVM")));Debug.locals.put("uvmVal", _uvmval);Debug.locals.put("uvmVal", _uvmval);
 BA.debugLineNum = 1195;BA.debugLine="Dim cedisFila As String = c_prods.GetString(\"PE";
Debug.ShouldStop(1024);
_cedisfila = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")));Debug.locals.put("cedisFila", _cedisfila);Debug.locals.put("cedisFila", _cedisfila);
 BA.debugLineNum = 1196;BA.debugLine="Dim folioFila As String = c_prods.GetString(\"PE";
Debug.ShouldStop(2048);
_foliofila = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")));Debug.locals.put("folioFila", _foliofila);Debug.locals.put("folioFila", _foliofila);
 BA.debugLineNum = 1197;BA.debugLine="Dim dirFila As String = c_prods.GetString(\"PE_D";
Debug.ShouldStop(4096);
_dirfila = _c_prods.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DIRIGIDA")));Debug.locals.put("dirFila", _dirfila);Debug.locals.put("dirFila", _dirfila);
 BA.debugLineNum = 1198;BA.debugLine="Dim cantPzs As Int = c_prods.GetInt(\"PE_CANT\")";
Debug.ShouldStop(8192);
_cantpzs = _c_prods.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("cantPzs", _cantpzs);Debug.locals.put("cantPzs", _cantpzs);
 BA.debugLineNum = 1200;BA.debugLine="If cantPres = \"\" Or cantPres = \"null\" Then cant";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_cantpres,BA.ObjectToString("")) || RemoteObject.solveBoolean("=",_cantpres,BA.ObjectToString("null"))) { 
_cantpres = BA.ObjectToString("0");Debug.locals.put("cantPres", _cantpres);};
 BA.debugLineNum = 1205;BA.debugLine="Dim csTitulo As CSBuilder";
Debug.ShouldStop(1048576);
_cstitulo = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("csTitulo", _cstitulo);
 BA.debugLineNum = 1206;BA.debugLine="csTitulo.Initialize";
Debug.ShouldStop(2097152);
_cstitulo.runVoidMethod ("Initialize");
 BA.debugLineNum = 1208;BA.debugLine="If cedisFila <> almacenActual Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("!",_cedisfila,_almacenactual)) { 
 BA.debugLineNum = 1210;BA.debugLine="csTitulo.Color(Colors.RGB(0, 150, 136)).Typefa";
Debug.ShouldStop(33554432);
_cstitulo.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 150)),(Object)(BA.numberCast(int.class, 136))))).runMethod(false,"Typeface",(Object)(c_productos.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_nomprod,RemoteObject.createImmutable(" (PROMO)"))))).runVoidMethod ("PopAll");
 }else {
 BA.debugLineNum = 1213;BA.debugLine="csTitulo.Color(Colors.RGB(150, 0, 0)).Typeface";
Debug.ShouldStop(268435456);
_cstitulo.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 150)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Typeface",(Object)(c_productos.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_nomprod))).runVoidMethod ("PopAll");
 };
 BA.debugLineNum = 1219;BA.debugLine="Dim detalle As CSBuilder";
Debug.ShouldStop(4);
_detalle = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("detalle", _detalle);
 BA.debugLineNum = 1220;BA.debugLine="detalle.Initialize";
Debug.ShouldStop(8);
_detalle.runVoidMethod ("Initialize");
 BA.debugLineNum = 1221;BA.debugLine="detalle.Append(CRLF) ' Salto de línea inicial p";
Debug.ShouldStop(16);
_detalle.runVoidMethod ("Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 1224;BA.debugLine="If uvmVal > 1 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_uvmval,BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 1225;BA.debugLine="detalle.Color(Colors.Blue).Size(14).Append(pre";
Debug.ShouldStop(256);
_detalle.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Blue"))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 14))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_presname.runMethod(true,"toUpperCase"),RemoteObject.createImmutable(": "),(RemoteObject.solve(new RemoteObject[] {_cantpzs,_uvmval}, "/",0, 0)))))).runMethod(false,"Pop").runMethod(false,"Pop").runVoidMethod ("Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 1226;BA.debugLine="detalle.Size(6).Append(CRLF).Pop";
Debug.ShouldStop(512);
_detalle.runMethod(false,"Size",(Object)(BA.numberCast(int.class, 6))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF")))).runVoidMethod ("Pop");
 };
 BA.debugLineNum = 1229;BA.debugLine="detalle.Color(Colors.DarkGray).Size(13).Append(";
Debug.ShouldStop(4096);
_detalle.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"DarkGray"))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 13))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Piezas: ")))).runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("#"),_cantpzs)))).runVoidMethod ("Pop");
 BA.debugLineNum = 1230;BA.debugLine="detalle.Append(\"  |  \").Color(Colors.DarkGray).";
Debug.ShouldStop(8192);
_detalle.runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("  |  ")))).runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"DarkGray"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Subtotal: ")))).runMethod(false,"Color",(Object)(BA.numberCast(int.class, ((int)0xff008000)))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("$"),c_productos.__c.runMethod(true,"NumberFormat2",(Object)(_c_prods.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),(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"))))))).runVoidMethod ("PopAll");
 BA.debugLineNum = 1233;BA.debugLine="Dim datosIdentidad As Map = CreateMap(\"id\": idP";
Debug.ShouldStop(65536);
_datosidentidad = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_datosidentidad = c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("id")),(_idprod),RemoteObject.createImmutable(("nombre")),(_nomprod),RemoteObject.createImmutable(("cedis")),(_cedisfila),RemoteObject.createImmutable(("pres")),(_presname),RemoteObject.createImmutable(("uvm")),(_uvmval),RemoteObject.createImmutable(("dir")),(_dirfila),RemoteObject.createImmutable(("folio")),(_foliofila),RemoteObject.createImmutable(("cant")),(_cantpzs)}));Debug.locals.put("datosIdentidad", _datosidentidad);Debug.locals.put("datosIdentidad", _datosidentidad);
 BA.debugLineNum = 1236;BA.debugLine="lv_prodsPedido.AddTwoLines2(csTitulo, detalle,";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_prodspedido" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines2",(Object)(BA.ObjectToCharSequence(_cstitulo.getObject())),(Object)(BA.ObjectToCharSequence(_detalle.getObject())),(Object)((_datosidentidad.getObject())));
 BA.debugLineNum = 1238;BA.debugLine="vamoaver.Add(folioFila)";
Debug.ShouldStop(2097152);
__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_foliofila)));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1241;BA.debugLine="ActualizarEtiquetasTotales";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizaretiquetastotales" /*RemoteObject*/ );
 };
 BA.debugLineNum = 1243;BA.debugLine="c_prods.Close";
Debug.ShouldStop(67108864);
_c_prods.runVoidMethod ("Close");
 BA.debugLineNum = 1246;BA.debugLine="p_vistaPreviaTrans.Width = Root.Width";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 1247;BA.debugLine="p_vistaPreviaTrans.Height = Root.Height";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 1248;BA.debugLine="Subs.centraPanel(p_vistaPrevia, Root.Width)";
Debug.ShouldStop(-2147483648);
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 = 1249;BA.debugLine="p_vistaPrevia.Visible = True";
Debug.ShouldStop(1);
__ref.getField(false,"_p_vistaprevia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1250;BA.debugLine="p_vistaPreviaTrans.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1251;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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",14,__ref.getField(false, "ba"),__ref,141);
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(SHARK2.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;
SHARK2.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 step63;
int limit63;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,141);
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 = 142;BA.debugLine="Log(Subs.traeTipoCliente2)";
Debug.ShouldStop(8192);
parent.__c.runVoidMethod ("LogImpl","518153473",parent._subs.runMethod(true,"_traetipocliente2" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 143;BA.debugLine="tipoClienteActual = Subs.traeTipoCliente2";
Debug.ShouldStop(16384);
__ref.setField ("_tipoclienteactual" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traetipocliente2" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 144;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("LogImpl","518153475",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),0);
 BA.debugLineNum = 145;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_CONTA";
Debug.ShouldStop(65536);
if (true) break;

case 1:
//if
this.state = 10;
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_CONTADO")) || RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("ABORDO"))) { 
this.state = 3;
}else 
{ BA.debugLineNum = 148;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"VENTA\" Th";
Debug.ShouldStop(524288);
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 = 151;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"RECARGA\"";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("RECARGA"))) { 
this.state = 7;
}else 
{ BA.debugLineNum = 154;BA.debugLine="Else If B4XPages.MainPage.tipo_venta = \"PREVENTA_";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_CREDITO"))) { 
this.state = 9;
}}}}
if (true) break;

case 3:
//C
this.state = 10;
 BA.debugLineNum = 146;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
Debug.ShouldStop(131072);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD");
 BA.debugLineNum = 147;BA.debugLine="Log(\"1\")";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","518153478",RemoteObject.createImmutable("1"),0);
 if (true) break;

case 5:
//C
this.state = 10;
 BA.debugLineNum = 149;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
Debug.ShouldStop(1048576);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD2");
 BA.debugLineNum = 150;BA.debugLine="Log(2)";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("LogImpl","518153481",BA.NumberToString(2),0);
 if (true) break;

case 7:
//C
this.state = 10;
 BA.debugLineNum = 152;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
Debug.ShouldStop(8388608);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD");
 BA.debugLineNum = 153;BA.debugLine="Log(3)";
Debug.ShouldStop(16777216);
parent.__c.runVoidMethod ("LogImpl","518153484",BA.NumberToString(3),0);
 if (true) break;

case 9:
//C
this.state = 10;
 BA.debugLineNum = 155;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD4\"";
Debug.ShouldStop(67108864);
parent._starter._tabla /*RemoteObject*/  = BA.ObjectToString("CAT_GUNAPROD4");
 BA.debugLineNum = 156;BA.debugLine="Log(4)";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("LogImpl","518153487",BA.NumberToString(4),0);
 if (true) break;

case 10:
//C
this.state = 11;
;
 BA.debugLineNum = 158;BA.debugLine="Log(Starter.tabla)";
Debug.ShouldStop(536870912);
parent.__c.runVoidMethod ("LogImpl","518153489",parent._starter._tabla /*RemoteObject*/ ,0);
 BA.debugLineNum = 159;BA.debugLine="clienteId = Subs.traeCliente";
Debug.ShouldStop(1073741824);
__ref.setField ("_clienteid" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 160;BA.debugLine="rutaUsuario = Subs.traeRuta(Subs.traeCliente)";
Debug.ShouldStop(-2147483648);
__ref.setField ("_rutausuario" /*RemoteObject*/ ,parent._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")))));
 BA.debugLineNum = 161;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(1);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("PRIORITARIO")),(RemoteObject.createImmutable("1"))})))));
 BA.debugLineNum = 162;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(2);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("ESTRATEGICO")),(RemoteObject.createImmutable("2"))})))));
 BA.debugLineNum = 163;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(4);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("COMPLEMENTARIO")),(RemoteObject.createImmutable("3"))})))));
 BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(8);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("CATALOGO REGULAR")),(RemoteObject.createImmutable("0"))})))));
 BA.debugLineNum = 165;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
Debug.ShouldStop(16);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_CLASIF = (?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("PROMOS")),(RemoteObject.createImmutable("PROMOS"))})))));
 BA.debugLineNum = 166;BA.debugLine="clv_prods_ll.GetBase.SetLayoutAnimated(0, 5dip, 1";
Debug.ShouldStop(32);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5)))),(Object)(parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 130)))),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(10)}, "+",1, 1)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.74)}, "*",0, 0))));
 BA.debugLineNum = 167;BA.debugLine="clv_prods_ll.Base_Resize(clv_prods_ll.GetBase.Wid";
Debug.ShouldStop(64);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getHeight"))));
 BA.debugLineNum = 168;BA.debugLine="If B4XPages.MainPage.bTerminarClicked Then";
Debug.ShouldStop(128);
if (true) break;

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

case 13:
//C
this.state = 14;
 BA.debugLineNum = 169;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 170;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 171;BA.debugLine="lv_tipo.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 172;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 173;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 = 174;BA.debugLine="B4XPages.MainPage.bTerminarClicked = False";
Debug.ShouldStop(8192);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_bterminarclicked" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;
;
 BA.debugLineNum = 176;BA.debugLine="If ya_entro <> \"1\" Then";
Debug.ShouldStop(32768);

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

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

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

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

case 22:
//C
this.state = 23;
;
 BA.debugLineNum = 178;BA.debugLine="entro =\"3\"";
Debug.ShouldStop(131072);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 179;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(262144);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 180;BA.debugLine="Sleep(100)";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_productos", "b4xpage_appear"),BA.numberCast(int.class, 100));
this.state = 64;
return;
case 64:
//C
this.state = 23;
;
 BA.debugLineNum = 181;BA.debugLine="lfila.Text = \"CATALOGOS\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGOS"));
 BA.debugLineNum = 182;BA.debugLine="p_productos.Height = Root.Height";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_productos" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 183;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 184;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 185;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 186;BA.debugLine="p_botonesVenta.Top = clv_prods_ll.AsView.top + c";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setTop",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getTop"),__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getHeight"),RemoteObject.createImmutable(10)}, "+-",2, 1));
 BA.debugLineNum = 187;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 23:
//C
this.state = 24;
;
 BA.debugLineNum = 189;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(268435456);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 190;BA.debugLine="label1 = lv_catalogos.SingleLineLayout.Label";
Debug.ShouldStop(536870912);
_label1 = __ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 191;BA.debugLine="label1.TextSize = 17";
Debug.ShouldStop(1073741824);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 192;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(-2147483648);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 193;BA.debugLine="lv_catalogos.Clear";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 194;BA.debugLine="lv_catalogos.AddSingleLine(\"CATALOGO\")";
Debug.ShouldStop(2);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("CATALOGO"))));
 BA.debugLineNum = 196;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select cou";
Debug.ShouldStop(8);
__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._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_TIPO = 'PROMOS'"))))));
 BA.debugLineNum = 197;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 198;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"SELECT CUE";
Debug.ShouldStop(32);
__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 = 199;BA.debugLine="c.Position = 0";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 200;BA.debugLine="If c.GetString(\"CUENTA\") <> \"0\" And c.GetString(\"";
Debug.ShouldStop(128);
if (true) break;

case 24:
//if
this.state = 52;
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 = 26;
}if (true) break;

case 26:
//C
this.state = 27;
 BA.debugLineNum = 201;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
Debug.ShouldStop(256);
__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_PRECIO1, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_PRECIO1 > 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 = 204;BA.debugLine="Private hayPromos As Boolean = False";
Debug.ShouldStop(2048);
_haypromos = parent.__c.getField(true,"False");Debug.locals.put("hayPromos", _haypromos);Debug.locals.put("hayPromos", _haypromos);
 BA.debugLineNum = 205;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (true) break;

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

case 29:
//C
this.state = 30;
 BA.debugLineNum = 206;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa";
Debug.ShouldStop(8192);
parent.__c.runVoidMethod ("LogImpl","518153537",RemoteObject.concat(RemoteObject.createImmutable("Esto es un conteo --->"),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 207;BA.debugLine="For i = 0 To c2.RowCount - 1";
Debug.ShouldStop(16384);
if (true) break;

case 30:
//for
this.state = 43;
step63 = 1;
limit63 = 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 = 65;
if (true) break;

case 65:
//C
this.state = 43;
if ((step63 > 0 && _i <= limit63) || (step63 < 0 && _i >= limit63)) this.state = 32;
if (true) break;

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

case 32:
//C
this.state = 33;
 BA.debugLineNum = 208;BA.debugLine="c2.Position = i";
Debug.ShouldStop(32768);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 209;BA.debugLine="Log(\"Esto es i----->\" & i) 'Isaac";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("LogImpl","518153540",RemoteObject.concat(RemoteObject.createImmutable("Esto es i----->"),RemoteObject.createImmutable(_i)),0);
 BA.debugLineNum = 210;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(131072);
_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 = 213;BA.debugLine="If tm <> Null Then";
Debug.ShouldStop(1048576);
if (true) break;

case 33:
//if
this.state = 42;
if (RemoteObject.solveBoolean("N",_tm)) { 
this.state = 35;
}else {
this.state = 41;
}if (true) break;

case 35:
//C
this.state = 36;
 BA.debugLineNum = 214;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestra";
Debug.ShouldStop(2097152);
if (true) break;

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

case 38:
//C
this.state = 39;
 BA.debugLineNum = 215;BA.debugLine="hayPromos = True";
Debug.ShouldStop(4194304);
_haypromos = parent.__c.getField(true,"True");Debug.locals.put("hayPromos", _haypromos);
 if (true) break;

case 39:
//C
this.state = 42;
;
 if (true) break;

case 41:
//C
this.state = 42;
 BA.debugLineNum = 218;BA.debugLine="Log(\"El Map devuelto por procesaPromocion es";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("LogImpl","518153549",RemoteObject.createImmutable("El Map devuelto por procesaPromocion es null"),0);
 if (true) break;

case 42:
//C
this.state = 66;
;
 if (true) break;
if (true) break;
Debug.locals.put("i", _i);
;
 BA.debugLineNum = 221;BA.debugLine="If hayPromos Then lv_catalogos.AddSingleLine(\"P";
Debug.ShouldStop(268435456);

case 43:
//if
this.state = 48;
if (_haypromos.<Boolean>get().booleanValue()) { 
this.state = 45;
;}if (true) break;

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

case 48:
//C
this.state = 51;
;
 if (true) break;

case 50:
//C
this.state = 51;
 BA.debugLineNum = 223;BA.debugLine="Log(\"NO HAY PROMOS\")";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("LogImpl","518153554",RemoteObject.createImmutable("NO HAY PROMOS"),0);
 if (true) break;

case 51:
//C
this.state = 52;
;
 BA.debugLineNum = 225;BA.debugLine="c2.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

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

case 53:
//if
this.state = 58;
if (__ref.getField(true,"_reiniciarlistaprods" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 55;
}else 
{ BA.debugLineNum = 245;BA.debugLine="else If hayPedido Then";
Debug.ShouldStop(1048576);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 57;
}}
if (true) break;

case 55:
//C
this.state = 58;
 BA.debugLineNum = 244;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 if (true) break;

case 57:
//C
this.state = 58;
 BA.debugLineNum = 249;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(16777216);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 if (true) break;
;
 BA.debugLineNum = 251;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)";
Debug.ShouldStop(67108864);

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

case 60:
//C
this.state = 63;
__ref.runClassMethod (SHARK2.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 63:
//C
this.state = -1;
;
 BA.debugLineNum = 252;BA.debugLine="clv_prods_ll.JumpToItem(0) 'Vamos al primer artíc";
Debug.ShouldStop(134217728);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_jumptoitem",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 253;BA.debugLine="PCLV.lblHint.SetTextSizeAnimated(0,13)";
Debug.ShouldStop(268435456);
__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 = 254;BA.debugLine="PCLV.B4XSeekBar1.Color1=Colors.Transparent";
Debug.ShouldStop(536870912);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color1" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"Transparent"));
 BA.debugLineNum = 255;BA.debugLine="PCLV.B4XSeekBar1.Color2=Colors.Transparent";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_color2" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"Transparent"));
 BA.debugLineNum = 256;BA.debugLine="PCLV.B4XSeekBar1.ThumbColor=Colors.Transparent";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_thumbcolor" /*RemoteObject*/ ,parent.__c.getField(false,"Colors").getField(true,"Transparent"));
 BA.debugLineNum = 257;BA.debugLine="PCLV.B4XSeekBar1.mBase.Left=Root.Width *110";
Debug.ShouldStop(1);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"setLeft",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(110)}, "*",0, 1));
 BA.debugLineNum = 259;BA.debugLine="PCLV.B4XSeekBar1.mBase.Height=0";
Debug.ShouldStop(4);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"setHeight",BA.numberCast(int.class, 0));
 BA.debugLineNum = 260;BA.debugLine="PCLV.pnlOverlay.Height = clv_prods_ll.AsView.Heig";
Debug.ShouldStop(8);
__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 = 261;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(16);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xseekbar.class, "_update" /*RemoteObject*/ );
 BA.debugLineNum = 262;BA.debugLine="End Sub";
Debug.ShouldStop(32);
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",14,__ref.getField(false, "ba"),__ref,458);
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(SHARK2.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;
SHARK2.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",14,__ref.getField(false, "ba"),__ref,458);
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 = 461;BA.debugLine="If l_info.Visible Then";
Debug.ShouldStop(4096);
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 = 464;BA.debugLine="else if p_vistaPreviaTrans.Visible Then";
Debug.ShouldStop(32768);
if (__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 5;
}else 
{ BA.debugLineNum = 467;BA.debugLine="else if lv_promos.visible Then";
Debug.ShouldStop(262144);
if (__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 7;
}else 
{ BA.debugLineNum = 474;BA.debugLine="else if clv_prods_ll.AsView.Visible Then";
Debug.ShouldStop(33554432);
if (__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 9;
}else 
{ BA.debugLineNum = 493;BA.debugLine="else If entro = \"4\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
this.state = 11;
}else 
{ BA.debugLineNum = 497;BA.debugLine="Else If entro = \"3\" Then";
Debug.ShouldStop(65536);
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 = 462;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 463;BA.debugLine="Return False";
Debug.ShouldStop(16384);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 5:
//C
this.state = 16;
 BA.debugLineNum = 465;BA.debugLine="p_vistaPreviaTrans.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_vistapreviatrans" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 466;BA.debugLine="Return False";
Debug.ShouldStop(131072);
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 = 468;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 469;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 470;BA.debugLine="p_botonesVenta.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 471;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 472;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 473;BA.debugLine="Return False";
Debug.ShouldStop(16777216);
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 = 475;BA.debugLine="lfila.text = \"CATALOGO\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGO"));
 BA.debugLineNum = 476;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 = 477;BA.debugLine="lv_subtipo.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_lv_subtipo" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 478;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 = 479;BA.debugLine="l_total.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 480;BA.debugLine="l_totProds.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_totprods" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 481;BA.debugLine="lv_catalogos.Visible = True";
Debug.ShouldStop(1);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 482;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 11:
//C
this.state = 16;
 BA.debugLineNum = 494;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(8192);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 495;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 496;BA.debugLine="Return True";
Debug.ShouldStop(32768);
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 = 498;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(131072);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 499;BA.debugLine="Return False";
Debug.ShouldStop(262144);
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 = 501;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(1048576);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 502;BA.debugLine="Return False";
Debug.ShouldStop(2097152);
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 = 504;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
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",14,__ref.getField(false, "ba"),__ref,100);
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 = 100;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(8);
 BA.debugLineNum = 101;BA.debugLine="Root = Root1";
Debug.ShouldStop(16);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 104;BA.debugLine="Root.LoadLayout(\"productos\")";
Debug.ShouldStop(128);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("productos")),__ref.getField(false, "ba"));
 BA.debugLineNum = 105;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(256);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_productos.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 106;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(512);
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 = 107;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(1024);
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 = 109;BA.debugLine="PCLV.Initialize(Me, \"PCLV\", clv_prods_ll)";
Debug.ShouldStop(4096);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (SHARK2.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 = 110;BA.debugLine="ciclo = 1";
Debug.ShouldStop(8192);
__ref.setField ("_ciclo" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 111;BA.debugLine="l_info.Width = Root.Width * 0.8";
Debug.ShouldStop(16384);
__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 = 112;BA.debugLine="l_info.Left = (Root.Width/2) - (l_info.Width/2)";
Debug.ShouldStop(32768);
__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 = 113;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select dist";
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 distinct CAT_GP_TIPO from cat_gunaprod where CAT_GP_TIPO <> 'PROMOS' order by CAT_GP_TIPO"))));
 BA.debugLineNum = 114;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 115;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(262144);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 116;BA.debugLine="label1 = lv_tipo.SingleLineLayout.Label";
Debug.ShouldStop(524288);
_label1 = __ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 117;BA.debugLine="label1.TextSize = 17";
Debug.ShouldStop(1048576);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 118;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(2097152);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 119;BA.debugLine="lv_tipo.Clear";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_tipo" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 120;BA.debugLine="For i=0 To c.RowCount-1";
Debug.ShouldStop(8388608);
{
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 = 121;BA.debugLine="c.Position=i";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 122;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","518087958",RemoteObject.createImmutable("ENTRE AQUI EN PROMOS create"),0);
 BA.debugLineNum = 123;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
Debug.ShouldStop(67108864);
__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 = 126;BA.debugLine="c.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 129;BA.debugLine="listaTiempos.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_listatiempos" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 130;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 131;BA.debugLine="pedidoMap.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_pedidomap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 132;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(8);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 135;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(64);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 136;BA.debugLine="prodsMap.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 137;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _btnmasdinamico_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("btnMasDinamico_Click (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2651);
if (RapidSub.canDelegate("btnmasdinamico_click")) { return __ref.runUserSub(false, "c_productos","btnmasdinamico_click", __ref);}
RemoteObject _btn = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
RemoteObject _info = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _et = RemoteObject.declareNull("anywheresoftware.b4a.objects.EditTextWrapper");
RemoteObject _pres = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _idprod = RemoteObject.createImmutable("");
RemoteObject _stockdisponible = RemoteObject.createImmutable(0);
RemoteObject _umv = RemoteObject.createImmutable(0);
RemoteObject _cantactual = RemoteObject.createImmutable(0);
RemoteObject _nuevacant = RemoteObject.createImmutable(0);
RemoteObject _unidades = RemoteObject.createImmutable(0);
 BA.debugLineNum = 2651;BA.debugLine="Sub btnMasDinamico_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 2652;BA.debugLine="Dim btn As Button = Sender";
Debug.ShouldStop(134217728);
_btn = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
_btn = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ButtonWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")));Debug.locals.put("btn", _btn);Debug.locals.put("btn", _btn);
 BA.debugLineNum = 2653;BA.debugLine="Dim info As Map = btn.Tag";
Debug.ShouldStop(268435456);
_info = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_info = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _btn.runMethod(false,"getTag"));Debug.locals.put("info", _info);Debug.locals.put("info", _info);
 BA.debugLineNum = 2654;BA.debugLine="Dim et As EditText = info.Get(\"et\")";
Debug.ShouldStop(536870912);
_et = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
_et = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), _info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("et")))));Debug.locals.put("et", _et);Debug.locals.put("et", _et);
 BA.debugLineNum = 2655;BA.debugLine="Dim pres As Map = info.Get(\"pres\")";
Debug.ShouldStop(1073741824);
_pres = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_pres = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("pres")))));Debug.locals.put("pres", _pres);Debug.locals.put("pres", _pres);
 BA.debugLineNum = 2656;BA.debugLine="Dim idProd As String = info.Get(\"id\")";
Debug.ShouldStop(-2147483648);
_idprod = BA.ObjectToString(_info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("idProd", _idprod);Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 2658;BA.debugLine="Dim stockDisponible As Int = Subs.traeinventario(";
Debug.ShouldStop(2);
_stockdisponible = BA.numberCast(int.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_idprod)));Debug.locals.put("stockDisponible", _stockdisponible);Debug.locals.put("stockDisponible", _stockdisponible);
 BA.debugLineNum = 2659;BA.debugLine="Dim umv As Int = pres.Get(\"umv\")";
Debug.ShouldStop(4);
_umv = BA.numberCast(int.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("umv")))));Debug.locals.put("umv", _umv);Debug.locals.put("umv", _umv);
 BA.debugLineNum = 2661;BA.debugLine="Dim cantActual As Int = 0";
Debug.ShouldStop(16);
_cantactual = BA.numberCast(int.class, 0);Debug.locals.put("cantActual", _cantactual);Debug.locals.put("cantActual", _cantactual);
 BA.debugLineNum = 2662;BA.debugLine="If et.Text <> \"\" Then cantActual = et.Text";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("!",_et.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_cantactual = BA.numberCast(int.class, _et.runMethod(true,"getText"));Debug.locals.put("cantActual", _cantactual);};
 BA.debugLineNum = 2664;BA.debugLine="If stockDisponible >= umv Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("g",_stockdisponible,BA.numberCast(double.class, _umv))) { 
 BA.debugLineNum = 2665;BA.debugLine="Dim nuevaCant As Int = cantActual + umv";
Debug.ShouldStop(256);
_nuevacant = RemoteObject.solve(new RemoteObject[] {_cantactual,_umv}, "+",1, 1);Debug.locals.put("nuevaCant", _nuevacant);Debug.locals.put("nuevaCant", _nuevacant);
 BA.debugLineNum = 2666;BA.debugLine="et.Text = nuevaCant";
Debug.ShouldStop(512);
_et.runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_nuevacant));
 BA.debugLineNum = 2669;BA.debugLine="Dim unidades As Int = nuevaCant / umv";
Debug.ShouldStop(4096);
_unidades = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_nuevacant,_umv}, "/",0, 0));Debug.locals.put("unidades", _unidades);Debug.locals.put("unidades", _unidades);
 BA.debugLineNum = 2670;BA.debugLine="ActualizarLabelNombrePresentacion(btn, pres.Get(";
Debug.ShouldStop(8192);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizarlabelnombrepresentacion" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ConcreteViewWrapper"), _btn.getObject()),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))))),(Object)(_unidades));
 BA.debugLineNum = 2673;BA.debugLine="Subs.actualizaProductoDinamico(Subs.traeAlmacen,";
Debug.ShouldStop(65536);
c_productos._subs.runVoidMethod ("_actualizaproductodinamico" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.numberCast(float.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))))),(Object)(BA.numberCast(int.class, _et.runMethod(true,"getText"))),(Object)(c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_idprod))),(Object)(_idprod),(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)),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("listaprecio")))))),(Object)(_umv),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))))));
 BA.debugLineNum = 2676;BA.debugLine="ActualizarLabelExistencias(btn, idProd)";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizarlabelexistencias" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ConcreteViewWrapper"), _btn.getObject()),(Object)(_idprod));
 BA.debugLineNum = 2677;BA.debugLine="cuentaProds";
Debug.ShouldStop(1048576);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 2679;BA.debugLine="ToastMessageShow(\"Inventario insuficiente. Stock";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Inventario insuficiente. Stock: "),_stockdisponible))),(Object)(c_productos.__c.getField(true,"False")));
 };
 BA.debugLineNum = 2681;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _btnmenosdinamico_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("btnMenosDinamico_Click (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2683);
if (RapidSub.canDelegate("btnmenosdinamico_click")) { return __ref.runUserSub(false, "c_productos","btnmenosdinamico_click", __ref);}
RemoteObject _btn = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
RemoteObject _info = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _et = RemoteObject.declareNull("anywheresoftware.b4a.objects.EditTextWrapper");
RemoteObject _pres = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _idprod = RemoteObject.createImmutable("");
RemoteObject _cantactual = RemoteObject.createImmutable(0);
RemoteObject _umv = RemoteObject.createImmutable(0);
RemoteObject _nuevacant = RemoteObject.createImmutable(0);
RemoteObject _unidades = RemoteObject.createImmutable(0);
 BA.debugLineNum = 2683;BA.debugLine="Sub btnMenosDinamico_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 2684;BA.debugLine="Dim btn As Button = Sender";
Debug.ShouldStop(134217728);
_btn = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
_btn = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ButtonWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")));Debug.locals.put("btn", _btn);Debug.locals.put("btn", _btn);
 BA.debugLineNum = 2685;BA.debugLine="Dim info As Map = btn.Tag";
Debug.ShouldStop(268435456);
_info = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_info = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _btn.runMethod(false,"getTag"));Debug.locals.put("info", _info);Debug.locals.put("info", _info);
 BA.debugLineNum = 2686;BA.debugLine="Dim et As EditText = info.Get(\"et\")";
Debug.ShouldStop(536870912);
_et = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
_et = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), _info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("et")))));Debug.locals.put("et", _et);Debug.locals.put("et", _et);
 BA.debugLineNum = 2687;BA.debugLine="Dim pres As Map = info.Get(\"pres\")";
Debug.ShouldStop(1073741824);
_pres = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_pres = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("pres")))));Debug.locals.put("pres", _pres);Debug.locals.put("pres", _pres);
 BA.debugLineNum = 2688;BA.debugLine="Dim idProd As String = info.Get(\"id\")";
Debug.ShouldStop(-2147483648);
_idprod = BA.ObjectToString(_info.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("idProd", _idprod);Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 2690;BA.debugLine="Dim cantActual As Int = 0";
Debug.ShouldStop(2);
_cantactual = BA.numberCast(int.class, 0);Debug.locals.put("cantActual", _cantactual);Debug.locals.put("cantActual", _cantactual);
 BA.debugLineNum = 2691;BA.debugLine="If et.Text <> \"\" Then cantActual = et.Text";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("!",_et.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_cantactual = BA.numberCast(int.class, _et.runMethod(true,"getText"));Debug.locals.put("cantActual", _cantactual);};
 BA.debugLineNum = 2693;BA.debugLine="If cantActual > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",_cantactual,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2694;BA.debugLine="Dim umv As Int = pres.Get(\"umv\")";
Debug.ShouldStop(32);
_umv = BA.numberCast(int.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("umv")))));Debug.locals.put("umv", _umv);Debug.locals.put("umv", _umv);
 BA.debugLineNum = 2695;BA.debugLine="Dim nuevaCant As Int = cantActual - umv";
Debug.ShouldStop(64);
_nuevacant = RemoteObject.solve(new RemoteObject[] {_cantactual,_umv}, "-",1, 1);Debug.locals.put("nuevaCant", _nuevacant);Debug.locals.put("nuevaCant", _nuevacant);
 BA.debugLineNum = 2696;BA.debugLine="If nuevaCant < 0 Then nuevaCant = 0";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("<",_nuevacant,BA.numberCast(double.class, 0))) { 
_nuevacant = BA.numberCast(int.class, 0);Debug.locals.put("nuevaCant", _nuevacant);};
 BA.debugLineNum = 2697;BA.debugLine="et.Text = nuevaCant";
Debug.ShouldStop(256);
_et.runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_nuevacant));
 BA.debugLineNum = 2700;BA.debugLine="Dim unidades As Int = nuevaCant / umv";
Debug.ShouldStop(2048);
_unidades = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_nuevacant,_umv}, "/",0, 0));Debug.locals.put("unidades", _unidades);Debug.locals.put("unidades", _unidades);
 BA.debugLineNum = 2701;BA.debugLine="ActualizarLabelNombrePresentacion(btn, pres.Get(";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizarlabelnombrepresentacion" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ConcreteViewWrapper"), _btn.getObject()),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))))),(Object)(_unidades));
 BA.debugLineNum = 2704;BA.debugLine="Subs.actualizaProductoDinamico(Subs.traeAlmacen,";
Debug.ShouldStop(32768);
c_productos._subs.runVoidMethod ("_actualizaproductodinamico" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.numberCast(float.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio")))))),(Object)(BA.numberCast(int.class, _et.runMethod(true,"getText"))),(Object)(c_productos._subs.runMethod(true,"_traeprodnombre" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_idprod))),(Object)(_idprod),(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)),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("listaprecio")))))),(Object)(_umv),(Object)(BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))))));
 BA.debugLineNum = 2707;BA.debugLine="ActualizarLabelExistencias(btn, idProd)";
Debug.ShouldStop(262144);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizarlabelexistencias" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ConcreteViewWrapper"), _btn.getObject()),(Object)(_idprod));
 BA.debugLineNum = 2708;BA.debugLine="cuentaProds";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 2710;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _busca_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("Busca_TextChanged (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,1960);
if (RapidSub.canDelegate("busca_textchanged")) { return __ref.runUserSub(false, "c_productos","busca_textchanged", __ref, _old, _new);}
RemoteObject _query = RemoteObject.createImmutable("");
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 1960;BA.debugLine="Sub Busca_TextChanged (Old As String, New As Strin";
Debug.ShouldStop(128);
 BA.debugLineNum = 1962;BA.debugLine="If Not(clv_prods_ll.AsView.Visible) Then clv_prod";
Debug.ShouldStop(512);
if (c_productos.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getVisible"))).<Boolean>get().booleanValue()) { 
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));};
 BA.debugLineNum = 1966;BA.debugLine="If New.Length > 0 And New.Length < 3 And Not(forz";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_new.runMethod(true,"length"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("<",_new.runMethod(true,"length"),BA.numberCast(double.class, 3)) && RemoteObject.solveBoolean(".",c_productos.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_forzarbusqueda" /*RemoteObject*/ ))))) { 
if (true) return RemoteObject.createImmutable("");};
 BA.debugLineNum = 1968;BA.debugLine="forzarBusqueda = False";
Debug.ShouldStop(32768);
__ref.setField ("_forzarbusqueda" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1969;BA.debugLine="Log(\"Texto buscado: [\" & New.Trim & \"]\")";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","520119561",RemoteObject.concat(RemoteObject.createImmutable("Texto buscado: ["),_new.runMethod(true,"trim"),RemoteObject.createImmutable("]")),0);
 BA.debugLineNum = 1972;BA.debugLine="If New.Trim = \"\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_new.runMethod(true,"trim"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 1975;BA.debugLine="Log(\"Búsqueda borrada. Restaurando catálogo prin";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","520119567",RemoteObject.createImmutable("Búsqueda borrada. Restaurando catálogo principal..."),0);
 BA.debugLineNum = 1976;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.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")));
 }else {
 BA.debugLineNum = 1980;BA.debugLine="Dim query As String = $\"SELECT * FROM ${Starter.";
Debug.ShouldStop(134217728);
_query = (RemoteObject.concat(RemoteObject.createImmutable("SELECT * FROM "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" WHERE CAT_GP_STS = 1 AND CAT_GP_TIPO <> 'PROMOS' AND CAT_GP_SUBTIPO <> 'PROMOS' AND CAT_GP_NOMBRE LIKE '%"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_new))),RemoteObject.createImmutable("%' ORDER BY CAT_GP_NOMBRE")));Debug.locals.put("query", _query);Debug.locals.put("query", _query);
 BA.debugLineNum = 1981;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(268435456);
_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)(_query)));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 1983;BA.debugLine="Log(\"Buscando: \" & New & \" - Resultados encontra";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","520119575",RemoteObject.concat(RemoteObject.createImmutable("Buscando: "),_new,RemoteObject.createImmutable(" - Resultados encontrados: "),_p.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1984;BA.debugLine="LlenaProdsLL(p)";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_llenaprodsll" /*RemoteObject*/ ,(Object)(_p));
 };
 BA.debugLineNum = 1986;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
c_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 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 = 65;BA.debugLine="Private PCLV As PreoptimizedCLV";
c_productos._pclv = RemoteObject.createNew ("SHARK2.keymon.com.mx.preoptimizedclv");__ref.setField("_pclv",c_productos._pclv);
 //BA.debugLineNum = 66;BA.debugLine="Dim listaProds As List";
c_productos._listaprods = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listaprods",c_productos._listaprods);
 //BA.debugLineNum = 68;BA.debugLine="Dim pedidoMap As Map";
c_productos._pedidomap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_pedidomap",c_productos._pedidomap);
 //BA.debugLineNum = 69;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 = 70;BA.debugLine="Dim reiniciarlistaProds As Boolean= False";
c_productos._reiniciarlistaprods = c_productos.__c.getField(true,"False");__ref.setField("_reiniciarlistaprods",c_productos._reiniciarlistaprods);
 //BA.debugLineNum = 72;BA.debugLine="Dim listaTiempos As List";
c_productos._listatiempos = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listatiempos",c_productos._listatiempos);
 //BA.debugLineNum = 73;BA.debugLine="Dim clienteId As String";
c_productos._clienteid = RemoteObject.createImmutable("");__ref.setField("_clienteid",c_productos._clienteid);
 //BA.debugLineNum = 74;BA.debugLine="Dim rutaUsuario As String";
c_productos._rutausuario = RemoteObject.createImmutable("");__ref.setField("_rutausuario",c_productos._rutausuario);
 //BA.debugLineNum = 75;BA.debugLine="Dim hayPedido As Boolean";
c_productos._haypedido = RemoteObject.createImmutable(false);__ref.setField("_haypedido",c_productos._haypedido);
 //BA.debugLineNum = 76;BA.debugLine="Dim listaHints As List";
c_productos._listahints = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_listahints",c_productos._listahints);
 //BA.debugLineNum = 77;BA.debugLine="Dim r As Cursor";
c_productos._r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_r",c_productos._r);
 //BA.debugLineNum = 78;BA.debugLine="Dim vamoaver As List";
c_productos._vamoaver = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_vamoaver",c_productos._vamoaver);
 //BA.debugLineNum = 79;BA.debugLine="Dim j3 As Cursor";
c_productos._j3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_j3",c_productos._j3);
 //BA.debugLineNum = 80;BA.debugLine="Dim invTotal As Int";
c_productos._invtotal = RemoteObject.createImmutable(0);__ref.setField("_invtotal",c_productos._invtotal);
 //BA.debugLineNum = 81;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 = 82;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 = 83;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 = 84;BA.debugLine="Dim totalcajasmaspiezas As Int";
c_productos._totalcajasmaspiezas = RemoteObject.createImmutable(0);__ref.setField("_totalcajasmaspiezas",c_productos._totalcajasmaspiezas);
 //BA.debugLineNum = 85;BA.debugLine="Dim cajas As Int";
c_productos._cajas = RemoteObject.createImmutable(0);__ref.setField("_cajas",c_productos._cajas);
 //BA.debugLineNum = 86;BA.debugLine="Dim piezas As Int";
c_productos._piezas = RemoteObject.createImmutable(0);__ref.setField("_piezas",c_productos._piezas);
 //BA.debugLineNum = 87;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 = 90;BA.debugLine="Dim tipoClienteActual As String = \"DETALLE\"";
c_productos._tipoclienteactual = BA.ObjectToString("DETALLE");__ref.setField("_tipoclienteactual",c_productos._tipoclienteactual);
 //BA.debugLineNum = 91;BA.debugLine="Dim cantsMap As Map";
c_productos._cantsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_cantsmap",c_productos._cantsmap);
 //BA.debugLineNum = 92;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",14,__ref.getField(false, "ba"),__ref,1709);
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 = 1709;BA.debugLine="Private Sub clv_prods_ll_ItemClick (Index As Int,";
Debug.ShouldStop(4096);
 BA.debugLineNum = 1710;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",14,__ref.getField(false, "ba"),__ref,1787);
if (RapidSub.canDelegate("clv_prods_ll_visiblerangechanged")) { return __ref.runUserSub(false, "c_productos","clv_prods_ll_visiblerangechanged", __ref, _firstindex, _lastindex);}
int _i = 0;
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _data = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _base = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _lblinfo = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _xlbl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _presentaciones = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _vtop = RemoteObject.createImmutable(0);
RemoteObject _pres = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _lbltipo = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _cantpiezas = RemoteObject.createImmutable(0);
RemoteObject _factorumv = RemoteObject.createImmutable(0);
RemoteObject _unidadesexistentes = RemoteObject.createImmutable(0);
RemoteObject _lblprice = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _bm = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
RemoteObject _et = RemoteObject.declareNull("anywheresoftware.b4a.objects.EditTextWrapper");
RemoteObject _bp = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
RemoteObject _taginfo = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
Debug.locals.put("FirstIndex", _firstindex);
Debug.locals.put("LastIndex", _lastindex);
 BA.debugLineNum = 1787;BA.debugLine="Private Sub clv_prods_ll_VisibleRangeChanged (Firs";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1788;BA.debugLine="For i = Max(0, FirstIndex - 2) To Min(LastIndex +";
Debug.ShouldStop(134217728);
{
final int step1 = 1;
final int limit1 = (int) (0 + c_productos.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_lastindex,RemoteObject.createImmutable(2)}, "+",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,RemoteObject.createImmutable(2)}, "-",1, 1)))).<Double>get().doubleValue()) ;
for (;(step1 > 0 && _i <= limit1) || (step1 < 0 && _i >= limit1) ;_i = ((int)(0 + _i + step1))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1789;BA.debugLine="Dim Pnl As B4XView = clv_prods_ll.GetPanel(i)";
Debug.ShouldStop(268435456);
_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 = 1791;BA.debugLine="If i >= FirstIndex And i <= LastIndex Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("g",RemoteObject.createImmutable(_i),BA.numberCast(double.class, _firstindex)) && RemoteObject.solveBoolean("k",RemoteObject.createImmutable(_i),BA.numberCast(double.class, _lastindex))) { 
 BA.debugLineNum = 1792;BA.debugLine="If Pnl.NumberOfViews = 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_pnl.runMethod(true,"getNumberOfViews"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1793;BA.debugLine="Dim data As Map = clv_prods_ll.GetValue(i)";
Debug.ShouldStop(1);
_data = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_data = 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))));Debug.locals.put("data", _data);Debug.locals.put("data", _data);
 BA.debugLineNum = 1796;BA.debugLine="Dim base As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(8);
_base = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_base = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("base", _base);Debug.locals.put("base", _base);
 BA.debugLineNum = 1800;BA.debugLine="base.SetColorAndBorder(xui.Color_White, 1dip,";
Debug.ShouldStop(128);
_base.runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 1)))),(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Black")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 8)))));
 BA.debugLineNum = 1803;BA.debugLine="Pnl.AddView(base, 5dip, 2dip, Pnl.Width - 10di";
Debug.ShouldStop(1024);
_pnl.runVoidMethod ("AddView",(Object)((_base.getObject())),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 2)))),(Object)(RemoteObject.solve(new RemoteObject[] {_pnl.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 10)))}, "-",1, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_pnl.runMethod(true,"getHeight"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 4)))}, "-",1, 1)));
 BA.debugLineNum = 1806;BA.debugLine="Dim cs As CSBuilder";
Debug.ShouldStop(8192);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 1807;BA.debugLine="cs.Initialize.Color(Colors.Red).Bold.Append(da";
Debug.ShouldStop(16384);
_cs.runMethod(false,"Initialize").runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Red"))).runMethod(false,"Bold").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_data.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("prod"))))))).runMethod(false,"Pop").runMethod(false,"Pop").runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(c_productos.__c.getField(true,"CRLF")))).runMethod(false,"Size",(Object)(BA.numberCast(int.class, 12))).runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Existencias: "),_data.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen")))))))).runVoidMethod ("Pop");
 BA.debugLineNum = 1810;BA.debugLine="Dim lblInfo As Label : lblInfo.Initialize(\"\")";
Debug.ShouldStop(131072);
_lblinfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("lblInfo", _lblinfo);
 BA.debugLineNum = 1810;BA.debugLine="Dim lblInfo As Label : lblInfo.Initialize(\"\")";
Debug.ShouldStop(131072);
_lblinfo.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1811;BA.debugLine="Dim xlbl As B4XView = lblInfo";
Debug.ShouldStop(262144);
_xlbl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_xlbl = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), _lblinfo.getObject());Debug.locals.put("xlbl", _xlbl);Debug.locals.put("xlbl", _xlbl);
 BA.debugLineNum = 1812;BA.debugLine="xlbl.Text = cs";
Debug.ShouldStop(524288);
_xlbl.runMethod(true,"setText",BA.ObjectToCharSequence(_cs.getObject()));
 BA.debugLineNum = 1813;BA.debugLine="lblInfo.Gravity = Gravity.TOP";
Debug.ShouldStop(1048576);
_lblinfo.runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"TOP"));
 BA.debugLineNum = 1814;BA.debugLine="base.AddView(xlbl, 10dip, 8dip, base.Width * 0";
Debug.ShouldStop(2097152);
_base.runVoidMethod ("AddView",(Object)((_xlbl.getObject())),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 10)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 8)))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),RemoteObject.createImmutable(0.55)}, "*",0, 0))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 45)))));
 BA.debugLineNum = 1817;BA.debugLine="Dim presentaciones As List = data.Get(\"present";
Debug.ShouldStop(16777216);
_presentaciones = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_presentaciones = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _data.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("presentaciones")))));Debug.locals.put("presentaciones", _presentaciones);Debug.locals.put("presentaciones", _presentaciones);
 BA.debugLineNum = 1818;BA.debugLine="Dim vTop As Int = 10dip";
Debug.ShouldStop(33554432);
_vtop = c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 10)));Debug.locals.put("vTop", _vtop);Debug.locals.put("vTop", _vtop);
 BA.debugLineNum = 1820;BA.debugLine="For Each pres As Map In presentaciones";
Debug.ShouldStop(134217728);
_pres = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
{
final RemoteObject group19 = _presentaciones;
final int groupLen19 = group19.runMethod(true,"getSize").<Integer>get()
;int index19 = 0;
;
for (; index19 < groupLen19;index19++){
_pres = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), group19.runMethod(false,"Get",index19));Debug.locals.put("pres", _pres);
Debug.locals.put("pres", _pres);
 BA.debugLineNum = 1822;BA.debugLine="Dim lblTipo As Label : lblTipo.Initialize(\"\")";
Debug.ShouldStop(536870912);
_lbltipo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("lblTipo", _lbltipo);
 BA.debugLineNum = 1822;BA.debugLine="Dim lblTipo As Label : lblTipo.Initialize(\"\")";
Debug.ShouldStop(536870912);
_lbltipo.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1823;BA.debugLine="lblTipo.Text = pres.Get(\"nombre\")";
Debug.ShouldStop(1073741824);
_lbltipo.runMethod(true,"setText",BA.ObjectToCharSequence(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre"))))));
 BA.debugLineNum = 1824;BA.debugLine="lblTipo.TextColor = Colors.Black  ' <--- Camb";
Debug.ShouldStop(-2147483648);
_lbltipo.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 1825;BA.debugLine="lblTipo.TextSize = 14             ' <--- Tama";
Debug.ShouldStop(1);
_lbltipo.runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 1827;BA.debugLine="lblTipo.Gravity = Gravity.LEFT";
Debug.ShouldStop(4);
_lbltipo.runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"LEFT"));
 BA.debugLineNum = 1830;BA.debugLine="Dim cantPiezas As Int = pres.Get(\"cantidad\")";
Debug.ShouldStop(32);
_cantpiezas = BA.numberCast(int.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cantidad")))));Debug.locals.put("cantPiezas", _cantpiezas);Debug.locals.put("cantPiezas", _cantpiezas);
 BA.debugLineNum = 1831;BA.debugLine="Dim factorUmv As Int = pres.Get(\"umv\")";
Debug.ShouldStop(64);
_factorumv = BA.numberCast(int.class, _pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("umv")))));Debug.locals.put("factorUmv", _factorumv);Debug.locals.put("factorUmv", _factorumv);
 BA.debugLineNum = 1832;BA.debugLine="Dim unidadesExistentes As Int = 0";
Debug.ShouldStop(128);
_unidadesexistentes = BA.numberCast(int.class, 0);Debug.locals.put("unidadesExistentes", _unidadesexistentes);Debug.locals.put("unidadesExistentes", _unidadesexistentes);
 BA.debugLineNum = 1835;BA.debugLine="If factorUmv > 0 Then unidadesExistentes = ca";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_factorumv,BA.numberCast(double.class, 0))) { 
_unidadesexistentes = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cantpiezas,_factorumv}, "/",0, 0));Debug.locals.put("unidadesExistentes", _unidadesexistentes);};
 BA.debugLineNum = 1837;BA.debugLine="Dim lblTipo As Label : lblTipo.Initialize(\"\")";
Debug.ShouldStop(4096);
_lbltipo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("lblTipo", _lbltipo);
 BA.debugLineNum = 1837;BA.debugLine="Dim lblTipo As Label : lblTipo.Initialize(\"\")";
Debug.ShouldStop(4096);
_lbltipo.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1839;BA.debugLine="lblTipo.Text = pres.Get(\"nombre\").As(String).";
Debug.ShouldStop(16384);
_lbltipo.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat((BA.ObjectToString(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))))).runMethod(true,"toUpperCase"),RemoteObject.createImmutable(": "),_unidadesexistentes)));
 BA.debugLineNum = 1840;BA.debugLine="lblTipo.TextColor = Colors.Black";
Debug.ShouldStop(32768);
_lbltipo.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 1841;BA.debugLine="lblTipo.TextSize = 14";
Debug.ShouldStop(65536);
_lbltipo.runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 1842;BA.debugLine="lblTipo.Gravity = Gravity.LEFT";
Debug.ShouldStop(131072);
_lbltipo.runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"LEFT"));
 BA.debugLineNum = 1846;BA.debugLine="base.AddView(lblTipo, base.Width - 145dip, vT";
Debug.ShouldStop(2097152);
_base.runVoidMethod ("AddView",(Object)((_lbltipo.getObject())),(Object)(RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 145)))}, "-",1, 1)),(Object)(_vtop),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 140)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 22)))));
 BA.debugLineNum = 1849;BA.debugLine="Dim lblPrice As Label : lblPrice.Initialize(\"";
Debug.ShouldStop(16777216);
_lblprice = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("lblPrice", _lblprice);
 BA.debugLineNum = 1849;BA.debugLine="Dim lblPrice As Label : lblPrice.Initialize(\"";
Debug.ShouldStop(16777216);
_lblprice.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1850;BA.debugLine="lblPrice.Text = \"$\" & NumberFormat2(pres.Get(";
Debug.ShouldStop(33554432);
_lblprice.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("$"),c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _pres.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"))))));
 BA.debugLineNum = 1851;BA.debugLine="lblPrice.TextColor = 0xFF008000";
Debug.ShouldStop(67108864);
_lblprice.runMethod(true,"setTextColor",BA.numberCast(int.class, ((int)0xff008000)));
 BA.debugLineNum = 1852;BA.debugLine="lblPrice.TextSize = 14            ' <--- Tamb";
Debug.ShouldStop(134217728);
_lblprice.runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 1853;BA.debugLine="lblPrice.Gravity = Gravity.CENTER_VERTICAL";
Debug.ShouldStop(268435456);
_lblprice.runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"CENTER_VERTICAL"));
 BA.debugLineNum = 1854;BA.debugLine="base.AddView(lblPrice, base.Width - 215dip, v";
Debug.ShouldStop(536870912);
_base.runVoidMethod ("AddView",(Object)((_lblprice.getObject())),(Object)(RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 215)))}, "-",1, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_vtop,c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 22)))}, "+",1, 1)),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 65)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 42)))));
 BA.debugLineNum = 1857;BA.debugLine="Dim bM As Button : bM.Initialize(\"btnMenosDin";
Debug.ShouldStop(1);
_bm = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");Debug.locals.put("bM", _bm);
 BA.debugLineNum = 1857;BA.debugLine="Dim bM As Button : bM.Initialize(\"btnMenosDin";
Debug.ShouldStop(1);
_bm.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("btnMenosDinamico")));
 BA.debugLineNum = 1858;BA.debugLine="bM.Text = \"-\" : bM.TextColor = Colors.White :";
Debug.ShouldStop(2);
_bm.runMethod(true,"setText",BA.ObjectToCharSequence("-"));
 BA.debugLineNum = 1858;BA.debugLine="bM.Text = \"-\" : bM.TextColor = Colors.White :";
Debug.ShouldStop(2);
_bm.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 1858;BA.debugLine="bM.Text = \"-\" : bM.TextColor = Colors.White :";
Debug.ShouldStop(2);
_bm.runVoidMethod ("setColor",BA.numberCast(int.class, ((int)0xfff4511e)));
 BA.debugLineNum = 1860;BA.debugLine="Dim et As EditText : et.Initialize(\"etCantDin";
Debug.ShouldStop(8);
_et = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");Debug.locals.put("et", _et);
 BA.debugLineNum = 1860;BA.debugLine="Dim et As EditText : et.Initialize(\"etCantDin";
Debug.ShouldStop(8);
_et.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("etCantDinamico")));
 BA.debugLineNum = 1861;BA.debugLine="et.Text = pres.Get(\"cantidad\")";
Debug.ShouldStop(16);
_et.runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cantidad"))))));
 BA.debugLineNum = 1862;BA.debugLine="et.InputType = et.INPUT_TYPE_NUMBERS";
Debug.ShouldStop(32);
_et.runMethod(true,"setInputType",_et.getField(true,"INPUT_TYPE_NUMBERS"));
 BA.debugLineNum = 1863;BA.debugLine="et.Gravity = Gravity.CENTER";
Debug.ShouldStop(64);
_et.runMethod(true,"setGravity",c_productos.__c.getField(false,"Gravity").getField(true,"CENTER"));
 BA.debugLineNum = 1864;BA.debugLine="et.Background = Null";
Debug.ShouldStop(128);
_et.runMethod(false,"setBackground",(c_productos.__c.getField(false,"Null")));
 BA.debugLineNum = 1866;BA.debugLine="Dim bP As Button : bP.Initialize(\"btnMasDinam";
Debug.ShouldStop(512);
_bp = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");Debug.locals.put("bP", _bp);
 BA.debugLineNum = 1866;BA.debugLine="Dim bP As Button : bP.Initialize(\"btnMasDinam";
Debug.ShouldStop(512);
_bp.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("btnMasDinamico")));
 BA.debugLineNum = 1867;BA.debugLine="bP.Text = \"+\" : bP.TextColor = Colors.White :";
Debug.ShouldStop(1024);
_bp.runMethod(true,"setText",BA.ObjectToCharSequence("+"));
 BA.debugLineNum = 1867;BA.debugLine="bP.Text = \"+\" : bP.TextColor = Colors.White :";
Debug.ShouldStop(1024);
_bp.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 1867;BA.debugLine="bP.Text = \"+\" : bP.TextColor = Colors.White :";
Debug.ShouldStop(1024);
_bp.runVoidMethod ("setColor",BA.numberCast(int.class, ((int)0xff000080)));
 BA.debugLineNum = 1869;BA.debugLine="Dim tagInfo As Map = CreateMap(\"id\": data.Get";
Debug.ShouldStop(4096);
_taginfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_taginfo = c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("id")),_data.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))),RemoteObject.createImmutable(("col")),_pres.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("col_index")))),RemoteObject.createImmutable(("et")),(_et.getObject()),RemoteObject.createImmutable(("pres")),(_pres.getObject()),RemoteObject.createImmutable(("almacen")),_data.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("almacen"))))}));Debug.locals.put("tagInfo", _taginfo);Debug.locals.put("tagInfo", _taginfo);
 BA.debugLineNum = 1870;BA.debugLine="bM.Tag = tagInfo : bP.Tag = tagInfo : et.Tag";
Debug.ShouldStop(8192);
_bm.runMethod(false,"setTag",(_taginfo.getObject()));
 BA.debugLineNum = 1870;BA.debugLine="bM.Tag = tagInfo : bP.Tag = tagInfo : et.Tag";
Debug.ShouldStop(8192);
_bp.runMethod(false,"setTag",(_taginfo.getObject()));
 BA.debugLineNum = 1870;BA.debugLine="bM.Tag = tagInfo : bP.Tag = tagInfo : et.Tag";
Debug.ShouldStop(8192);
_et.runMethod(false,"setTag",(_taginfo.getObject()));
 BA.debugLineNum = 1873;BA.debugLine="base.AddView(bM, base.Width - 145dip, vTop +";
Debug.ShouldStop(65536);
_base.runVoidMethod ("AddView",(Object)((_bm.getObject())),(Object)(RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 145)))}, "-",1, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_vtop,c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 22)))}, "+",1, 1)),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 38)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 42)))));
 BA.debugLineNum = 1874;BA.debugLine="base.AddView(et, base.Width - 105dip, vTop +";
Debug.ShouldStop(131072);
_base.runVoidMethod ("AddView",(Object)((_et.getObject())),(Object)(RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 105)))}, "-",1, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_vtop,c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 22)))}, "+",1, 1)),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 45)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 42)))));
 BA.debugLineNum = 1875;BA.debugLine="base.AddView(bP, base.Width - 58dip, vTop + 2";
Debug.ShouldStop(262144);
_base.runVoidMethod ("AddView",(Object)((_bp.getObject())),(Object)(RemoteObject.solve(new RemoteObject[] {_base.runMethod(true,"getWidth"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 58)))}, "-",1, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_vtop,c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 22)))}, "+",1, 1)),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 38)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 42)))));
 BA.debugLineNum = 1878;BA.debugLine="vTop = vTop + 75dip";
Debug.ShouldStop(2097152);
_vtop = RemoteObject.solve(new RemoteObject[] {_vtop,c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 75)))}, "+",1, 1);Debug.locals.put("vTop", _vtop);
 BA.debugLineNum = 1879;BA.debugLine="et.Enabled = False";
Debug.ShouldStop(4194304);
_et.runMethod(true,"setEnabled",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1880;BA.debugLine="et.TextColor = Colors.Black";
Debug.ShouldStop(8388608);
_et.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 }
}Debug.locals.put("pres", _pres);
;
 };
 }else {
 BA.debugLineNum = 1884;BA.debugLine="If Pnl.NumberOfViews > 0 Then Pnl.RemoveAllView";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",_pnl.runMethod(true,"getNumberOfViews"),BA.numberCast(double.class, 0))) { 
_pnl.runVoidMethod ("RemoveAllViews");};
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1887;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
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",14,__ref.getField(false, "ba"),__ref,535);
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 = 535;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 550;BA.debugLine="End Sub";
Debug.ShouldStop(32);
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",14,__ref.getField(false, "ba"),__ref,956);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_productos","cuentaprods", __ref);}
 BA.debugLineNum = 956;BA.debugLine="Sub cuentaProds";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 958;BA.debugLine="Log(\"===========================\")";
Debug.ShouldStop(536870912);
c_productos.__c.runVoidMethod ("LogImpl","519005442",RemoteObject.createImmutable("==========================="),0);
 BA.debugLineNum = 959;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(1073741824);
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 = 962;BA.debugLine="p_botonesVenta.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 963;BA.debugLine="p_botonesVenta.BringToFront";
Debug.ShouldStop(4);
__ref.getField(false,"_p_botonesventa" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 964;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 966;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 968;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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",14,__ref.getField(false, "ba"),__ref,794);
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 = 794;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 795;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","518874369",(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 = 796;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\"";
Debug.ShouldStop(134217728);
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 = 797;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(268435456);
_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 = 798;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(536870912);
_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 = 799;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(1073741824);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 800;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(-2147483648);
_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 = 801;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(1);
_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 = 802;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(2);
_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 = 803;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\"";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 804;BA.debugLine="etCantHasFocus = HasFocus";
Debug.ShouldStop(8);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,_hasfocus);
 BA.debugLineNum = 805;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","518874379",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 806;BA.debugLine="If laCant2.IsInitialized Then";
Debug.ShouldStop(32);
if (_lacant2.runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 807;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text";
Debug.ShouldStop(64);
__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 = 809;BA.debugLine="totalcajasmaspiezas = laCant.Text";
Debug.ShouldStop(256);
__ref.setField ("_totalcajasmaspiezas" /*RemoteObject*/ ,BA.numberCast(int.class, _lacant.runMethod(true,"getText")));
 };
 BA.debugLineNum = 811;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(1024);
__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 = 813;BA.debugLine="cuentaProds";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 814;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",14,__ref.getField(false, "ba"),__ref,816);
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 _lacant2 = 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 _panelcajas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
RemoteObject _maxcajas = RemoteObject.createImmutable(0);
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 816;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N";
Debug.ShouldStop(32768);
 BA.debugLineNum = 819;BA.debugLine="If etCantHasFocus = True Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ),c_productos.__c.getField(true,"True"))) { 
 BA.debugLineNum = 820;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus=";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","518939908",(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 = 821;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(1048576);
_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 = 822;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
Debug.ShouldStop(2097152);
_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 = 823;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(4194304);
_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 = 824;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2";
Debug.ShouldStop(8388608);
_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 = 825;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(";
Debug.ShouldStop(16777216);
_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 = 826;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(33554432);
_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 = 827;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(67108864);
_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 = 828;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i";
Debug.ShouldStop(134217728);
_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 = 829;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
Debug.ShouldStop(268435456);
_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 = 830;BA.debugLine="Private inv As String=Subs.traeinventario(id)";
Debug.ShouldStop(536870912);
_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 = 831;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
Debug.ShouldStop(1073741824);
_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 = 832;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(-2147483648);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 833;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(1);
_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 = 834;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 = 836;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 = 837;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 = 840;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 841;BA.debugLine="If Old = \"\" Or Old = Null Then New = 0";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_old,BA.ObjectToString("")) || RemoteObject.solveBoolean("n",_old)) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 842;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 = 843;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","518939931",_lacant.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 844;BA.debugLine="If New > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _new),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 845;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(4096);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 846;BA.debugLine="Else If New = 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_new,BA.NumberToString(0))) { 
 BA.debugLineNum = 847;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(16384);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 849;BA.debugLine="Log(Old)";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","518939937",_old,0);
 BA.debugLineNum = 850;BA.debugLine="If Old <> \"\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("!",_old,BA.ObjectToString(""))) { 
 BA.debugLineNum = 851;BA.debugLine="Log(\"--------------->Credito Disponible: \"&B4XP";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","518939939",RemoteObject.concat(RemoteObject.createImmutable("--------------->Credito Disponible: "),c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )),0);
 BA.debugLineNum = 852;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_CRE";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_tipo_venta" /*RemoteObject*/ ),BA.ObjectToString("PREVENTA_CREDITO"))) { 
 BA.debugLineNum = 853;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Sel";
Debug.ShouldStop(1048576);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = 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.createImmutable("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 854;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(2097152);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 855;BA.debugLine="If Old = \"\" Or Old = Null Then New = 0";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_old,BA.ObjectToString("")) || RemoteObject.solveBoolean("n",_old)) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 856;BA.debugLine="Log(precio &\"     *    \"&Old)";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","518939944",RemoteObject.concat(_precio,RemoteObject.createImmutable("     *    "),_old),0);
 BA.debugLineNum = 857;BA.debugLine="Log(fg.GetString(\"COSTO\") +(precio*New))";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","518939945",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _precio),BA.numberCast(double.class, _new)}, "*",0, 0))}, "+",1, 0)),0);
 BA.debugLineNum = 858;BA.debugLine="If fg.GetString(\"COSTO\") +((precio*New)-(preci";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _precio),BA.numberCast(double.class, _new)}, "*",0, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _precio),BA.numberCast(double.class, _old)}, "*",0, 0))}, "-",1, 0))}, "+",1, 0),BA.numberCast(double.class, c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 864;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Tex";
Debug.ShouldStop(-2147483648);
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 = 865;BA.debugLine="Log(\"actualizamos producto\")";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","518939953",RemoteObject.createImmutable("actualizamos producto"),0);
 BA.debugLineNum = 866;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, pre";
Debug.ShouldStop(2);
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)(BA.numberCast(int.class, _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 = 867;BA.debugLine="cuentaProds";
Debug.ShouldStop(4);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 878;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 879;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(16384);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 880;BA.debugLine="cs.Initialize";
Debug.ShouldStop(32768);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 881;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 = 882;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 = 884;BA.debugLine="o.Position = 0";
Debug.ShouldStop(524288);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 885;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 = 886;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","518939974",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 888;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 889;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 890;BA.debugLine="Private maxcajas As Int = 0";
Debug.ShouldStop(33554432);
_maxcajas = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 891;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","518939979",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 893;BA.debugLine="Private maxcajas As Int = invActualizado/cl";
Debug.ShouldStop(268435456);
_maxcajas = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 894;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(536870912);
c_productos.__c.runVoidMethod ("LogImpl","518939982",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 896;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(no";
Debug.ShouldStop(-2147483648);
_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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));
 };
 }else {
 BA.debugLineNum = 899;BA.debugLine="laCant.Text = 0";
Debug.ShouldStop(4);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 900;BA.debugLine="MsgboxAsync(\"No se puede meter mas venta a cr";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se puede meter mas venta a credito por que supera el limite del credito")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atencion"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 908;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text";
Debug.ShouldStop(2048);
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 = 909;BA.debugLine="Log(\"actualizamos producto\")";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","518939997",RemoteObject.createImmutable("actualizamos producto"),0);
 BA.debugLineNum = 910;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, prec";
Debug.ShouldStop(8192);
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)(BA.numberCast(int.class, _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 = 911;BA.debugLine="cuentaProds";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 };
 BA.debugLineNum = 922;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 923;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(67108864);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 924;BA.debugLine="cs.Initialize";
Debug.ShouldStop(134217728);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 925;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(268435456);
_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 = 926;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(536870912);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 928;BA.debugLine="o.Position = 0";
Debug.ShouldStop(-2147483648);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 929;BA.debugLine="invActualizado = Subs.traeinventario(id)";
Debug.ShouldStop(1);
_invactualizado = c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 930;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","518940018",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 932;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 933;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 934;BA.debugLine="Private maxcajas As Int = 0";
Debug.ShouldStop(32);
_maxcajas = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 935;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(64);
c_productos.__c.runVoidMethod ("LogImpl","518940023",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 937;BA.debugLine="Private maxcajas As Int = invActualizado/clv";
Debug.ShouldStop(256);
_maxcajas = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas", _maxcajas);Debug.locals.put("maxcajas", _maxcajas);
 BA.debugLineNum = 938;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","518940026",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 940;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nom";
Debug.ShouldStop(2048);
_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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));
 };
 };
 };
 BA.debugLineNum = 944;BA.debugLine="If New > 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _new),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 945;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(65536);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 946;BA.debugLine="Else If New = 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_new,BA.NumberToString(0))) { 
 BA.debugLineNum = 947;BA.debugLine="If maxcajas = 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_maxcajas,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 948;BA.debugLine="panelcajas.Visible = False";
Debug.ShouldStop(524288);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 950;BA.debugLine="panelcajas.Visible = True";
Debug.ShouldStop(2097152);
_panelcajas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 };
 }}
;
 };
 BA.debugLineNum = 954;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_pcantc_focuschanged(RemoteObject __ref,RemoteObject _hasfocus) throws Exception{
try {
		Debug.PushSubsStack("et_pCantc_FocusChanged (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2338);
if (RapidSub.canDelegate("et_pcantc_focuschanged")) { return __ref.runUserSub(false, "c_productos","et_pcantc_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 = 2338;BA.debugLine="Private Sub et_pCantc_FocusChanged (HasFocus As Bo";
Debug.ShouldStop(2);
 BA.debugLineNum = 2339;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","520447233",(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 = 2340;BA.debugLine="If et_pCantc.Text = \"\" Then et_pCantc.Text = \"0\"";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 2341;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(16);
_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 = 2342;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index";
Debug.ShouldStop(32);
_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 = 2343;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(64);
_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 = 2344;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)";
Debug.ShouldStop(128);
_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 = 2345;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2";
Debug.ShouldStop(256);
_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 = 2346;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
Debug.ShouldStop(512);
_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 = 2347;BA.debugLine="If laCant2.Text = \"\" Then laCant2.Text = \"0\"";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence("0"));};
 BA.debugLineNum = 2348;BA.debugLine="etCantHasFocus = HasFocus";
Debug.ShouldStop(2048);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,_hasfocus);
 BA.debugLineNum = 2355;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa";
Debug.ShouldStop(262144);
__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 = 2357;BA.debugLine="cuentaProds";
Debug.ShouldStop(1048576);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 BA.debugLineNum = 2358;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_pcantc_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("et_pCantc_TextChanged (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,2360);
if (RapidSub.canDelegate("et_pcantc_textchanged")) { return __ref.runUserSub(false, "c_productos","et_pcantc_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 _lacant2 = 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 _panelcajas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _panelpiezas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _conversion = RemoteObject.createImmutable("");
RemoteObject _preciocaja = RemoteObject.createImmutable("");
RemoteObject _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totalcajaspermi = RemoteObject.createImmutable(0);
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _invactualizado = RemoteObject.createImmutable("");
RemoteObject _maxcajas2 = RemoteObject.createImmutable(0);
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 2360;BA.debugLine="Private Sub et_pCantc_TextChanged (Old As String,";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 2363;BA.debugLine="If etCantHasFocus = True Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ),c_productos.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2366;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
Debug.ShouldStop(536870912);
_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 = 2367;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
Debug.ShouldStop(1073741824);
_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 = 2368;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(-2147483648);
_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 = 2369;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2";
Debug.ShouldStop(1);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 2370;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(";
Debug.ShouldStop(2);
_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 = 2371;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)";
Debug.ShouldStop(4);
_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 = 2372;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index";
Debug.ShouldStop(8);
_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 = 2373;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i";
Debug.ShouldStop(16);
_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 = 2374;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde";
Debug.ShouldStop(32);
_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 = 2375;BA.debugLine="Private inv As String=Subs.traeinventario(id)";
Debug.ShouldStop(64);
_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 = 2376;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(";
Debug.ShouldStop(128);
_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 = 2377;BA.debugLine="Dim panelcajas As B4XView = pnl.GetView(3)";
Debug.ShouldStop(256);
_panelcajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_panelcajas = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("panelcajas", _panelcajas);Debug.locals.put("panelcajas", _panelcajas);
 BA.debugLineNum = 2378;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)";
Debug.ShouldStop(512);
_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 = 2379;BA.debugLine="Private conversion As String = clv_prods_ll.GetV";
Debug.ShouldStop(1024);
_conversion = 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("conversion")))));Debug.locals.put("conversion", _conversion);Debug.locals.put("conversion", _conversion);
 BA.debugLineNum = 2380;BA.debugLine="Private preciocaja As String = clv_prods_ll.GetV";
Debug.ShouldStop(2048);
_preciocaja = 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_caja")))));Debug.locals.put("preciocaja", _preciocaja);Debug.locals.put("preciocaja", _preciocaja);
 BA.debugLineNum = 2381;BA.debugLine="invTotal = Subs.traeinventario(id)";
Debug.ShouldStop(4096);
__ref.setField ("_invtotal" /*RemoteObject*/ ,BA.numberCast(int.class, c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id))));
 BA.debugLineNum = 2382;BA.debugLine="Log(\"inventario total \"& invTotal)";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","520512790",RemoteObject.concat(RemoteObject.createImmutable("inventario total "),__ref.getField(true,"_invtotal" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2383;BA.debugLine="If(New = \"\" Or New = Null Or New = \"-\") Then New";
Debug.ShouldStop(16384);
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 = 2385;BA.debugLine="Log(($\"new*conversion  ${New * conversion} > ${i";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","520512793",((RemoteObject.concat(RemoteObject.createImmutable("new*conversion  "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _new),BA.numberCast(double.class, _conversion)}, "*",0, 0)))),RemoteObject.createImmutable(" > "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_invtotal" /*RemoteObject*/ )))),RemoteObject.createImmutable(" =  "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((RemoteObject.solveBoolean(">",(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _new),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, __ref.getField(true,"_invtotal" /*RemoteObject*/ )))))))),RemoteObject.createImmutable("")))),0);
 BA.debugLineNum = 2386;BA.debugLine="If((New * conversion)  > invTotal) Then";
Debug.ShouldStop(131072);
if ((RemoteObject.solveBoolean(">",(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _new),BA.numberCast(double.class, _conversion)}, "*",0, 0)),BA.numberCast(double.class, __ref.getField(true,"_invtotal" /*RemoteObject*/ ))))) { 
 BA.debugLineNum = 2388;BA.debugLine="Sender.As(EditText).text = 0";
Debug.ShouldStop(524288);
(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(0));
 BA.debugLineNum = 2389;BA.debugLine="New = 0";
Debug.ShouldStop(1048576);
_new = BA.NumberToString(0);Debug.locals.put("New", _new);
 BA.debugLineNum = 2391;BA.debugLine="pnl.GetView(2).Visible = True";
Debug.ShouldStop(4194304);
_pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 2392;BA.debugLine="Log(\"ponemos en 0\")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","520512800",RemoteObject.createImmutable("ponemos en 0"),0);
 };
 BA.debugLineNum = 2394;BA.debugLine="Log(\"--------------->Credito Disponible: \"&B4XPa";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","520512802",RemoteObject.concat(RemoteObject.createImmutable("--------------->Credito Disponible: "),c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2395;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Selec";
Debug.ShouldStop(67108864);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = 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.createImmutable("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 2396;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(134217728);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2397;BA.debugLine="If Old = \"\" Or Old = Null Then New = 0";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_old,BA.ObjectToString("")) || RemoteObject.solveBoolean("n",_old)) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 2398;BA.debugLine="Log(preciocaja &\"     *    \"&Old)";
Debug.ShouldStop(536870912);
c_productos.__c.runVoidMethod ("LogImpl","520512806",RemoteObject.concat(_preciocaja,RemoteObject.createImmutable("     *    "),_old),0);
 BA.debugLineNum = 2399;BA.debugLine="Log((fg.GetString(\"COSTO\") + (preciocaja*New)) &";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","520512807",RemoteObject.concat((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciocaja),BA.numberCast(double.class, _new)}, "*",0, 0))}, "+",1, 0)),RemoteObject.createImmutable(" Monto Actual<-------")),0);
 BA.debugLineNum = 2400;BA.debugLine="If fg.GetString(\"COSTO\") +((preciocaja*New))  >";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")))),((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciocaja),BA.numberCast(double.class, _new)}, "*",0, 0)))}, "+",1, 0),BA.numberCast(double.class, c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(true,"_credito_diponible" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 2401;BA.debugLine="laCant2.Text = 0";
Debug.ShouldStop(1);
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 2402;BA.debugLine="MsgboxAsync(\"No se puede meter mas venta a cred";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se puede meter mas venta a credito por que supera el limite del credito")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atencion"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 2405;BA.debugLine="Log(\"inventario total despues de max \"& invTotal";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","520512813",RemoteObject.concat(RemoteObject.createImmutable("inventario total despues de max "),__ref.getField(true,"_invtotal" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2406;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 2407;BA.debugLine="If laCant2.Text = \"\" Then laCant2.Text = 0";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_lacant2.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 2409;BA.debugLine="If New > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _new),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2410;BA.debugLine="Log(\"lo ocultamos\")";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","520512818",RemoteObject.createImmutable("lo ocultamos"),0);
 BA.debugLineNum = 2411;BA.debugLine="panelpiezas.Visible = False";
Debug.ShouldStop(1024);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 2412;BA.debugLine="Else If New = 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_new,BA.NumberToString(0))) { 
 BA.debugLineNum = 2413;BA.debugLine="panelpiezas.Visible = True";
Debug.ShouldStop(4096);
_panelpiezas.runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 }}
;
 BA.debugLineNum = 2420;BA.debugLine="Log(\"InvTotal: \" & invTotal)";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","520512828",RemoteObject.concat(RemoteObject.createImmutable("InvTotal: "),__ref.getField(true,"_invtotal" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2421;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant2.Text";
Debug.ShouldStop(1048576);
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",_lacant2.runMethod(true,"getText")) && RemoteObject.solveBoolean("!",_lacant2.runMethod(true,"getText"),BA.ObjectToString("")) && RemoteObject.solveBoolean(".",__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ ))) { 
 BA.debugLineNum = 2422;BA.debugLine="If invTotal - (laCant2.Text * conversion) >= 0";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("g",RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_invtotal" /*RemoteObject*/ ),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0))}, "-",1, 0),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2423;BA.debugLine="LogColor(\"validacion inventariio \" & (invTotal";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","520512831",RemoteObject.concat(RemoteObject.createImmutable("validacion inventariio "),(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_invtotal" /*RemoteObject*/ ),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0))}, "-",1, 0))),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 2424;BA.debugLine="Log(\"actualizamos producto\")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","520512832",RemoteObject.createImmutable("actualizamos producto"),0);
 BA.debugLineNum = 2425;BA.debugLine="Subs.actualizaProducto2(Subs.traeAlmacen,  pre";
Debug.ShouldStop(16777216);
c_productos._subs.runVoidMethod ("_actualizaproducto2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_preciocaja),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant2.runMethod(true,"getText")),BA.numberCast(double.class, _conversion)}, "*",0, 0)))),(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)(_lacant2.runMethod(true,"getText")),(Object)(BA.NumberToString(1)));
 BA.debugLineNum = 2426;BA.debugLine="cuentaProds";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_cuentaprods" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 2428;BA.debugLine="Private totalcajaspermi As Int = invTotal / co";
Debug.ShouldStop(134217728);
_totalcajaspermi = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_invtotal" /*RemoteObject*/ ),BA.numberCast(double.class, _conversion)}, "/",0, 0));Debug.locals.put("totalcajaspermi", _totalcajaspermi);Debug.locals.put("totalcajaspermi", _totalcajaspermi);
 BA.debugLineNum = 2429;BA.debugLine="laCant2.Text = totalcajaspermi";
Debug.ShouldStop(268435456);
_lacant2.runMethod(true,"setText",BA.ObjectToCharSequence(_totalcajaspermi));
 BA.debugLineNum = 2430;BA.debugLine="Log(\"cajas permitidas total por guerra \"& tota";
Debug.ShouldStop(536870912);
c_productos.__c.runVoidMethod ("LogImpl","520512838",RemoteObject.concat(RemoteObject.createImmutable("cajas permitidas total por guerra "),_totalcajaspermi),0);
 };
 };
 BA.debugLineNum = 2433;BA.debugLine="LogColor(\"la cant2 \" & laCant2.Text,Colors.Green";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","520512841",RemoteObject.concat(RemoteObject.createImmutable("la cant2 "),_lacant2.runMethod(true,"getText")),c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 2443;BA.debugLine="If 1 = 1 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(1),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2444;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(2048);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 2445;BA.debugLine="cs.Initialize";
Debug.ShouldStop(4096);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 2446;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(8192);
_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 = 2447;BA.debugLine="Private invActualizado As String = \"0\"";
Debug.ShouldStop(16384);
_invactualizado = BA.ObjectToString("0");Debug.locals.put("invActualizado", _invactualizado);Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 2449;BA.debugLine="o.Position = 0";
Debug.ShouldStop(65536);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2450;BA.debugLine="invActualizado = Subs.traeinventario(id)";
Debug.ShouldStop(131072);
_invactualizado = c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id));Debug.locals.put("invActualizado", _invactualizado);
 BA.debugLineNum = 2451;BA.debugLine="Log(Subs.traeinventario(id))";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","520512859",c_productos._subs.runMethod(true,"_traeinventario" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_id)),0);
 BA.debugLineNum = 2453;BA.debugLine="If New = \"\" Then New = 0";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_new,BA.ObjectToString(""))) { 
_new = BA.NumberToString(0);Debug.locals.put("New", _new);};
 BA.debugLineNum = 2454;BA.debugLine="Log(clv_prods_ll.GetValue(index).As(Map).Get(\"p";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","520512862",RemoteObject.concat((BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),RemoteObject.createImmutable(" Precio caja")),0);
 BA.debugLineNum = 2455;BA.debugLine="Log(clv_prods_ll.GetValue(index).As(Map).Get(\"c";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","520512863",RemoteObject.concat((BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),RemoteObject.createImmutable(" Conversion")),0);
 BA.debugLineNum = 2456;BA.debugLine="If clv_prods_ll.GetValue(index).As(Map).Get(\"pr";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",(BA.numberCast(float.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("precio_caja")))))),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean("=",(BA.numberCast(int.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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2457;BA.debugLine="Private maxcajas2 As Int = 0";
Debug.ShouldStop(16777216);
_maxcajas2 = BA.numberCast(int.class, 0);Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2458;BA.debugLine="Log(\"cajas a 0\")";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","520512866",RemoteObject.createImmutable("cajas a 0"),0);
 }else {
 BA.debugLineNum = 2460;BA.debugLine="Private maxcajas2 As Int = invActualizado/clv_";
Debug.ShouldStop(134217728);
_maxcajas2 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _invactualizado),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)(_index)))).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("conversion")))))}, "/",0, 0));Debug.locals.put("maxcajas2", _maxcajas2);Debug.locals.put("maxcajas2", _maxcajas2);
 BA.debugLineNum = 2461;BA.debugLine="Log(\"cajas no a 0\")";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","520512869",RemoteObject.createImmutable("cajas no a 0"),0);
 };
 BA.debugLineNum = 2463;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
Debug.ShouldStop(1073741824);
_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(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Max. Cajas: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_maxcajas2))),RemoteObject.createImmutable("")))))).runMethod(false,"PopAll").getObject()));
 };
 };
 BA.debugLineNum = 2466;BA.debugLine="End Sub";
Debug.ShouldStop(2);
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",14,__ref.getField(false, "ba"),__ref,95);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_productos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 95;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 96;BA.debugLine="Return Me";
Debug.ShouldStop(-2147483648);
if (true) return __ref;
 BA.debugLineNum = 97;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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",14,__ref.getField(false, "ba"),__ref,1308);
if (RapidSub.canDelegate("l_info_click")) { return __ref.runUserSub(false, "c_productos","l_info_click", __ref);}
 BA.debugLineNum = 1308;BA.debugLine="Private Sub l_info_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 1309;BA.debugLine="l_info.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 1310;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
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",14,__ref.getField(false, "ba"),__ref,1712);
if (RapidSub.canDelegate("l_prodx_click")) { return __ref.runUserSub(false, "c_productos","l_prodx_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _p0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cant1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
 BA.debugLineNum = 1712;BA.debugLine="Sub l_prodx_click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 1713;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
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 = 1714;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(ind";
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 = 1715;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 = 1716;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(2";
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 = 1717;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
Debug.ShouldStop(1048576);
_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 = 1719;BA.debugLine="Log(cant1.Text)";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","519988487",_cant1.runMethod(true,"getText"),0);
 BA.debugLineNum = 1720;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
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",14,__ref.getField(false, "ba"),__ref,1302);
if (RapidSub.canDelegate("l_prodx_longclick")) { return __ref.runUserSub(false, "c_productos","l_prodx_longclick", __ref);}
 BA.debugLineNum = 1302;BA.debugLine="Private Sub l_prodX_LongClick";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 1303;BA.debugLine="Log(\"longclic = \"&Sender.as(Label).tag)";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","519267585",RemoteObject.concat(RemoteObject.createImmutable("longclic = "),(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")),0);
 BA.debugLineNum = 1304;BA.debugLine="l_info.Text = Sender.as(Label).tag";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")));
 BA.debugLineNum = 1305;BA.debugLine="l_info.Visible = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1306;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
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",14,__ref.getField(false, "ba"),__ref,433);
if (RapidSub.canDelegate("llenacatalogo")) { return __ref.runUserSub(false, "c_productos","llenacatalogo", __ref, _subtipo1);}
Debug.locals.put("subtipo1", _subtipo1);
 BA.debugLineNum = 433;BA.debugLine="Sub llenaCatalogo(subtipo1 As String)";
Debug.ShouldStop(65536);
 BA.debugLineNum = 456;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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",14,__ref.getField(false, "ba"),__ref,1988);
if (RapidSub.canDelegate("llenaprodsll")) { return __ref.runUserSub(false, "c_productos","llenaprodsll", __ref, _p);}
RemoteObject _pe = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
RemoteObject _idprod = RemoteObject.createImmutable("");
RemoteObject _presentacionesvalidas = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
int _i = 0;
RemoteObject _precio = RemoteObject.createImmutable(0);
RemoteObject _presnombre = RemoteObject.createImmutable("");
RemoteObject _dirigida = RemoteObject.createImmutable("");
RemoteObject _umvval = RemoteObject.createImmutable(0);
RemoteObject _cantexistente = RemoteObject.createImmutable(0);
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lpres = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _alturaitem = RemoteObject.createImmutable(0);
Debug.locals.put("p", _p);
 BA.debugLineNum = 1988;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
Debug.ShouldStop(8);
 BA.debugLineNum = 1989;BA.debugLine="Log(\"--- Iniciando LlenaProdsLL (11 Niveles) ---\"";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","520185089",RemoteObject.createImmutable("--- Iniciando LlenaProdsLL (11 Niveles) ---"),0);
 BA.debugLineNum = 1990;BA.debugLine="listaProds.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1991;BA.debugLine="listaHints.Initialize";
Debug.ShouldStop(64);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1992;BA.debugLine="cantsMap.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_cantsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2005;BA.debugLine="If hayPedido Then";
Debug.ShouldStop(1048576);
if (__ref.getField(true,"_haypedido" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 2006;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(2097152);
_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_DIRIGIDA, 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_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("'"))))));Debug.locals.put("pe", _pe);Debug.locals.put("pe", _pe);
 BA.debugLineNum = 2007;BA.debugLine="Do While pe.NextRow";
Debug.ShouldStop(4194304);
while (_pe.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 2009;BA.debugLine="cantsMap.Put(pe.GetString(\"PE_PROID\") & \"_\" & p";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cantsmap" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)((RemoteObject.concat(_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))),RemoteObject.createImmutable("_"),_pe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DIRIGIDA")))))),(Object)((_pe.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("PE_CANT"))))));
 }
;
 BA.debugLineNum = 2011;BA.debugLine="pe.Close";
Debug.ShouldStop(67108864);
_pe.runVoidMethod ("Close");
 };
 BA.debugLineNum = 2015;BA.debugLine="If p = Null Or p.IsInitialized = False Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("n",_p) || RemoteObject.solveBoolean("=",_p.runMethod(true,"IsInitialized"),c_productos.__c.getField(true,"False"))) { 
 BA.debugLineNum = 2016;BA.debugLine="Log(Starter.tabla)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","520185116",c_productos._starter._tabla /*RemoteObject*/ ,0);
 BA.debugLineNum = 2017;BA.debugLine="p = B4XPages.MainPage.skmt.ExecQuery($\"SELECT *";
Debug.ShouldStop(1);
_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 * FROM "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" WHERE CAT_GP_STS = 1 AND CAT_GP_TIPO <> 'PROMOS' AND CAT_GP_SUBTIPO <> 'PROMOS' ORDER BY CAT_GP_NOMBRE"))))));Debug.locals.put("p", _p);
 };
 BA.debugLineNum = 2021;BA.debugLine="Do While p.NextRow";
Debug.ShouldStop(16);
while (_p.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 2022;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","520185122",_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID"))),0);
 BA.debugLineNum = 2023;BA.debugLine="Dim idProd As String = p.GetString(\"CAT_GP_ID\")";
Debug.ShouldStop(64);
_idprod = _p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")));Debug.locals.put("idProd", _idprod);Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 2024;BA.debugLine="Dim presentacionesValidas As List : presentacion";
Debug.ShouldStop(128);
_presentacionesvalidas = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("presentacionesValidas", _presentacionesvalidas);
 BA.debugLineNum = 2024;BA.debugLine="Dim presentacionesValidas As List : presentacion";
Debug.ShouldStop(128);
_presentacionesvalidas.runVoidMethod ("Initialize");
 BA.debugLineNum = 2027;BA.debugLine="For i = 1 To 11";
Debug.ShouldStop(1024);
{
final int step21 = 1;
final int limit21 = 11;
_i = 1 ;
for (;(step21 > 0 && _i <= limit21) || (step21 < 0 && _i >= limit21) ;_i = ((int)(0 + _i + step21))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2028;BA.debugLine="Dim precio As Double = p.GetDouble(\"CAT_GP_PREC";
Debug.ShouldStop(2048);
_precio = _p.runMethod(true,"GetDouble",(Object)(RemoteObject.concat(RemoteObject.createImmutable("CAT_GP_PRECIO"),RemoteObject.createImmutable(_i))));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 2029;BA.debugLine="Dim presNombre As String = p.GetString(\"CAT_GP_";
Debug.ShouldStop(4096);
_presnombre = _p.runMethod(true,"GetString",(Object)(RemoteObject.concat(RemoteObject.createImmutable("CAT_GP_PRESENTACION"),RemoteObject.createImmutable(_i))));Debug.locals.put("presNombre", _presnombre);Debug.locals.put("presNombre", _presnombre);
 BA.debugLineNum = 2030;BA.debugLine="Dim dirigida As String = p.GetString(\"CAT_GP_DI";
Debug.ShouldStop(8192);
_dirigida = _p.runMethod(true,"GetString",(Object)(RemoteObject.concat(RemoteObject.createImmutable("CAT_GP_DIRIGIDA"),RemoteObject.createImmutable(_i))));Debug.locals.put("dirigida", _dirigida);Debug.locals.put("dirigida", _dirigida);
 BA.debugLineNum = 2031;BA.debugLine="Dim umvVal As Int = p.GetInt(\"CAT_GP_UMV\" & i)";
Debug.ShouldStop(16384);
_umvval = _p.runMethod(true,"GetInt",(Object)(RemoteObject.concat(RemoteObject.createImmutable("CAT_GP_UMV"),RemoteObject.createImmutable(_i))));Debug.locals.put("umvVal", _umvval);Debug.locals.put("umvVal", _umvval);
 BA.debugLineNum = 2032;BA.debugLine="Log(precio)";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","520185132",BA.NumberToString(_precio),0);
 BA.debugLineNum = 2033;BA.debugLine="Log(presNombre)";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","520185133",_presnombre,0);
 BA.debugLineNum = 2034;BA.debugLine="Log(dirigida)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","520185134",_dirigida,0);
 BA.debugLineNum = 2035;BA.debugLine="Log(umvVal)";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","520185135",BA.NumberToString(_umvval),0);
 BA.debugLineNum = 2039;BA.debugLine="If precio > 0 And presNombre <> \"\" And dirigida";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",_precio,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_presnombre,BA.ObjectToString("")) && RemoteObject.solveBoolean("!",_dirigida,BA.ObjectToString("")) && RemoteObject.solveBoolean(">",_umvval,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2041;BA.debugLine="Log(tipoClienteActual.ToUpperCase)";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","520185141",__ref.getField(true,"_tipoclienteactual" /*RemoteObject*/ ).runMethod(true,"toUpperCase"),0);
 BA.debugLineNum = 2042;BA.debugLine="If dirigida.ToUpperCase = tipoClienteActual.To";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_dirigida.runMethod(true,"toUpperCase"),__ref.getField(true,"_tipoclienteactual" /*RemoteObject*/ ).runMethod(true,"toUpperCase"))) { 
 BA.debugLineNum = 2043;BA.debugLine="Dim cantExistente As Int = cantsMap.GetDefaul";
Debug.ShouldStop(67108864);
_cantexistente = BA.numberCast(int.class, __ref.getField(false,"_cantsmap" /*RemoteObject*/ ).runMethod(false,"GetDefault",(Object)((RemoteObject.concat(_idprod,RemoteObject.createImmutable("_"),RemoteObject.createImmutable(_i)))),(Object)(RemoteObject.createImmutable((0)))));Debug.locals.put("cantExistente", _cantexistente);Debug.locals.put("cantExistente", _cantexistente);
 BA.debugLineNum = 2045;BA.debugLine="presentacionesValidas.Add(CreateMap( _     \"c";
Debug.ShouldStop(268435456);
_presentacionesvalidas.runVoidMethod ("Add",(Object)((c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("col_index")),RemoteObject.createImmutable((_i)),RemoteObject.createImmutable(("nombre")),(_presnombre),RemoteObject.createImmutable(("precio")),(_precio),RemoteObject.createImmutable(("umv")),(_umvval),RemoteObject.createImmutable(("cantidad")),(_cantexistente),RemoteObject.createImmutable(("dirigida")),(_dirigida),RemoteObject.createImmutable(("listaprecio")),RemoteObject.createImmutable((_i))})).getObject())));
 };
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2057;BA.debugLine="Log(presentacionesValidas)";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","520185157",BA.ObjectToString(_presentacionesvalidas),0);
 BA.debugLineNum = 2059;BA.debugLine="If presentacionesValidas.Size > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_presentacionesvalidas.runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2060;BA.debugLine="listaProds.Add(CreateMap( _                 \"id";
Debug.ShouldStop(2048);
__ref.getField(false,"_listaprods" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((c_productos.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("id")),(_idprod),RemoteObject.createImmutable(("prod")),(_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE")))),RemoteObject.createImmutable(("almacen")),(_p.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_GP_ALMACEN")))),RemoteObject.createImmutable(("presentaciones")),(_presentacionesvalidas.getObject())})).getObject())));
 BA.debugLineNum = 2066;BA.debugLine="listaHints.Add(p.GetString(\"CAT_GP_NOMBRE\"))";
Debug.ShouldStop(131072);
__ref.getField(false,"_listahints" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_p.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE"))))));
 };
 }
;
 BA.debugLineNum = 2069;BA.debugLine="p.Close";
Debug.ShouldStop(1048576);
_p.runVoidMethod ("Close");
 BA.debugLineNum = 2072;BA.debugLine="clv_prods_ll.Clear";
Debug.ShouldStop(8388608);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2073;BA.debugLine="PCLV.Commit";
Debug.ShouldStop(16777216);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.preoptimizedclv.class, "_commit" /*RemoteObject*/ );
 BA.debugLineNum = 2075;BA.debugLine="For Each m As Map In listaProds";
Debug.ShouldStop(67108864);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
{
final RemoteObject group47 = __ref.getField(false,"_listaprods" /*RemoteObject*/ );
final int groupLen47 = group47.runMethod(true,"getSize").<Integer>get()
;int index47 = 0;
;
for (; index47 < groupLen47;index47++){
_m = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), group47.runMethod(false,"Get",index47));Debug.locals.put("m", _m);
Debug.locals.put("m", _m);
 BA.debugLineNum = 2077;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(268435456);
_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 = 2078;BA.debugLine="Dim lPres As List = m.Get(\"presentaciones\")";
Debug.ShouldStop(536870912);
_lpres = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_lpres = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), _m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("presentaciones")))));Debug.locals.put("lPres", _lpres);Debug.locals.put("lPres", _lpres);
 BA.debugLineNum = 2080;BA.debugLine="Dim alturaItem As Int = 45dip + (lPres.Size * 60";
Debug.ShouldStop(-2147483648);
_alturaitem = RemoteObject.solve(new RemoteObject[] {c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 45))),(RemoteObject.solve(new RemoteObject[] {_lpres.runMethod(true,"getSize"),c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 60)))}, "*",0, 1))}, "+",1, 1);Debug.locals.put("alturaItem", _alturaitem);Debug.locals.put("alturaItem", _alturaitem);
 BA.debugLineNum = 2082;BA.debugLine="pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsVi";
Debug.ShouldStop(2);
_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)(_alturaitem));
 BA.debugLineNum = 2083;BA.debugLine="clv_prods_ll.Add(pnl, m)";
Debug.ShouldStop(4);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runVoidMethod ("_add",(Object)(_pnl),(Object)((_m.getObject())));
 }
}Debug.locals.put("m", _m);
;
 BA.debugLineNum = 2087;BA.debugLine="If clv_prods_ll.Size > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2091;BA.debugLine="PCLV.B4XSeekBar1.MaxValue = clv_prods_ll.Size";
Debug.ShouldStop(1024);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_maxvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 2092;BA.debugLine="PCLV.B4XSeekBar1.MinValue = 0";
Debug.ShouldStop(2048);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).setField ("_minvalue" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 2093;BA.debugLine="PCLV.B4XSeekBar1.Interval = clv_prods_ll.Size/20";
Debug.ShouldStop(4096);
__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 = 2094;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size";
Debug.ShouldStop(8192);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xseekbar.class, "_setvalue" /*RemoteObject*/ ,__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(true,"_getsize"));
 BA.debugLineNum = 2095;BA.debugLine="PCLV.B4XSeekBar1.Update";
Debug.ShouldStop(16384);
__ref.getField(false,"_pclv" /*RemoteObject*/ ).getField(false,"_b4xseekbar1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xseekbar.class, "_update" /*RemoteObject*/ );
 };
 BA.debugLineNum = 2097;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",14,__ref.getField(false, "ba"),__ref,268);
if (RapidSub.canDelegate("lv_catalogos_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_catalogos_itemclick", __ref, _position, _value);}
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label13 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label14 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
RemoteObject _tm = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 268;BA.debugLine="Sub lv_catalogos_ItemClick (Position As Int, Value";
Debug.ShouldStop(2048);
 BA.debugLineNum = 269;BA.debugLine="If Value = \"CATALOGO\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("CATALOGO")))) { 
 BA.debugLineNum = 280;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 281;BA.debugLine="lfila.text = \"PRODUCTOS\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PRODUCTOS"));
 BA.debugLineNum = 284;BA.debugLine="LlenaProdsLL(Null)";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.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 = 287;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 288;BA.debugLine="clv_prods_ll.AsView.BringToFront";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runVoidMethod ("BringToFront");
 }else {
 BA.debugLineNum = 291;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 292;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(8);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 293;BA.debugLine="lfila.text = \"PROMOCIONES\"";
Debug.ShouldStop(16);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOCIONES"));
 BA.debugLineNum = 294;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 295;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(64);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 296;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(128);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 297;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(256);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 298;BA.debugLine="label1.TextSize = 12";
Debug.ShouldStop(512);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 299;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(1024);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 300;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(2048);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 301;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(4096);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 302;BA.debugLine="label2.TextSize = 12";
Debug.ShouldStop(8192);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 303;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(16384);
_label2.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 304;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(32768);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 305;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
Debug.ShouldStop(65536);
_label13 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"Label");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 306;BA.debugLine="label13.TextSize = 12";
Debug.ShouldStop(131072);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 307;BA.debugLine="label13.TextColor = Colors.Black";
Debug.ShouldStop(262144);
_label13.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 308;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(524288);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 309;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(1048576);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 310;BA.debugLine="label14.TextSize = 12";
Debug.ShouldStop(2097152);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 311;BA.debugLine="label14.TextColor = Colors.Black";
Debug.ShouldStop(4194304);
_label14.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 312;BA.debugLine="lfila.text = \"PROMOS\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOS"));
 BA.debugLineNum = 314;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select  C";
Debug.ShouldStop(33554432);
__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_PRECIO1, CAT_GP_ALMACEN, CAT_GP_IMG from "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._starter._tabla /*RemoteObject*/ ))),RemoteObject.createImmutable(" where CAT_GP_PRECIO1 > 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(_value),BA.ObjectToString(_value)}))));
 BA.debugLineNum = 316;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 317;BA.debugLine="For i = 0 To c2.RowCount - 1";
Debug.ShouldStop(268435456);
{
final int step32 = 1;
final int limit32 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step32 > 0 && _i <= limit32) || (step32 < 0 && _i >= limit32) ;_i = ((int)(0 + _i + step32))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 318;BA.debugLine="c2.Position = i";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 319;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
Debug.ShouldStop(1073741824);
_tm = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_tm = c_productos._subs.runMethod(false,"_procesapromocion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")))),(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )));Debug.locals.put("tm", _tm);Debug.locals.put("tm", _tm);
 BA.debugLineNum = 321;BA.debugLine="If tm <> Null Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("N",_tm)) { 
 BA.debugLineNum = 322;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_tm.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("status")))),RemoteObject.createImmutable(("ok")))) { 
 BA.debugLineNum = 323;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_N";
Debug.ShouldStop(4);
__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_PRECIO1"))),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 = 326;BA.debugLine="Log(\"El Map devuelto por procesaPromocion es";
Debug.ShouldStop(32);
c_productos.__c.runVoidMethod ("LogImpl","518284602",RemoteObject.concat(RemoteObject.createImmutable("El Map devuelto por procesaPromocion es null para el producto: "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE")))),0);
 };
 }
}Debug.locals.put("i", _i);
;
 }else {
 BA.debugLineNum = 330;BA.debugLine="ToastMessageShow(\"No hay promociones disponible";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No hay promociones disponibles.")),(Object)(c_productos.__c.getField(true,"False")));
 };
 BA.debugLineNum = 332;BA.debugLine="c2.Close";
Debug.ShouldStop(2048);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 333;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(4096);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 };
 BA.debugLineNum = 335;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
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",14,__ref.getField(false, "ba"),__ref,337);
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(SHARK2.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;
SHARK2.keymon.com.mx.c_productos parent;
RemoteObject _position;
RemoteObject _value;
RemoteObject _cliente = RemoteObject.declareNull("SHARK2.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 step57;
int limit57;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("lv_catalogos2_ItemClick (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,337);
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 = 338;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 = 339;BA.debugLine="BUSCA.Text = \"\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 340;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
Debug.ShouldStop(524288);
_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 = 341;BA.debugLine="Log($\"value=${Value}\"$)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("LogImpl","518350084",(RemoteObject.concat(RemoteObject.createImmutable("value="),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_value)),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 342;BA.debugLine="If Value = \"PROMOS\" And cliente.cuenta <> \"N\" The";
Debug.ShouldStop(2097152);
if (true) break;

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

case 3:
//C
this.state = 6;
 BA.debugLineNum = 343;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(4194304);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 344;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(8388608);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 345;BA.debugLine="tipo = \"PROMOS\"";
Debug.ShouldStop(16777216);
__ref.setField ("_tipo" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 347;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(67108864);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 348;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(134217728);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 if (true) break;
;
 BA.debugLineNum = 350;BA.debugLine="If Value = \"PROMOS\" Then";
Debug.ShouldStop(536870912);

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

case 8:
//C
this.state = 11;
 BA.debugLineNum = 351;BA.debugLine="LogColor(\"Promos\", Colors.red)";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("LogImpl","518350094",BA.ObjectToString("Promos"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 352;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select  C";
Debug.ShouldStop(-2147483648);
__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_PRECIO1, 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_PRECIO1 > 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(_value),__ref.getField(true,"_marca" /*RemoteObject*/ ),__ref.getField(true,"_tipo" /*RemoteObject*/ )}))));
 if (true) break;

case 10:
//C
this.state = 11;
 BA.debugLineNum = 354;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","518350097",BA.ObjectToString("Catalogo"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 355;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery($\"select CAT";
Debug.ShouldStop(4);
__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_PRECIO1, 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_PRECIO1 > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))))));
 if (true) break;
;
 BA.debugLineNum = 357;BA.debugLine="If Value = \"CATALOGO\" Then";
Debug.ShouldStop(16);

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

case 13:
//C
this.state = 28;
 BA.debugLineNum = 358;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 359;BA.debugLine="lv_promos.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 360;BA.debugLine="lfila.text = \"CATALOGO\"";
Debug.ShouldStop(128);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CATALOGO"));
 BA.debugLineNum = 361;BA.debugLine="Log(\"PGS\")";
Debug.ShouldStop(256);
parent.__c.runVoidMethod ("LogImpl","518350104",RemoteObject.createImmutable("PGS"),0);
 BA.debugLineNum = 362;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Cargando catalogo ..."))));
 BA.debugLineNum = 363;BA.debugLine="Sleep(100)";
Debug.ShouldStop(1024);
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 = 364;BA.debugLine="Private inicioContador As String = DateTime.Now";
Debug.ShouldStop(2048);
_iniciocontador = BA.NumberToString(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"));Debug.locals.put("inicioContador", _iniciocontador);Debug.locals.put("inicioContador", _iniciocontador);
 BA.debugLineNum = 365;BA.debugLine="llenaCatalogo(False)";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_llenacatalogo" /*RemoteObject*/ ,(Object)(BA.ObjectToString(parent.__c.getField(true,"False"))));
 BA.debugLineNum = 366;BA.debugLine="clv_prods_ll.AsView.Visible = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 367;BA.debugLine="Log(\"PGH\")";
Debug.ShouldStop(16384);
parent.__c.runVoidMethod ("LogImpl","518350110",RemoteObject.createImmutable("PGH"),0);
 BA.debugLineNum = 368;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("LogImpl","518350111",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 = 369;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 370;BA.debugLine="c2.Close";
Debug.ShouldStop(131072);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 15:
//C
this.state = 16;
 BA.debugLineNum = 372;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 373;BA.debugLine="lv_promos.Visible = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 374;BA.debugLine="lv_catalogos.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_lv_catalogos" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 375;BA.debugLine="lv_promos.Clear";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 376;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(8388608);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 377;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label";
Debug.ShouldStop(16777216);
_label1 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 378;BA.debugLine="label1.TextSize = 15";
Debug.ShouldStop(33554432);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 379;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(67108864);
_label1.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 380;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(134217728);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 381;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(268435456);
_label2 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 382;BA.debugLine="label2.TextSize = 15";
Debug.ShouldStop(536870912);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 383;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(1073741824);
_label2.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 384;BA.debugLine="Dim label13 As Label";
Debug.ShouldStop(-2147483648);
_label13 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 385;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label";
Debug.ShouldStop(1);
_label13 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"Label");Debug.locals.put("label13", _label13);
 BA.debugLineNum = 386;BA.debugLine="label13.TextSize = 15";
Debug.ShouldStop(2);
_label13.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 387;BA.debugLine="label13.TextColor = Colors.Black";
Debug.ShouldStop(4);
_label13.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 388;BA.debugLine="Dim label14 As Label";
Debug.ShouldStop(8);
_label14 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 389;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe";
Debug.ShouldStop(16);
_label14 = __ref.getField(false,"_lv_promos" /*RemoteObject*/ ).runMethod(false,"getTwoLinesAndBitmap").getField(false,"SecondLabel");Debug.locals.put("label14", _label14);
 BA.debugLineNum = 390;BA.debugLine="label14.TextSize = 15";
Debug.ShouldStop(32);
_label14.runMethod(true,"setTextSize",BA.numberCast(float.class, 15));
 BA.debugLineNum = 391;BA.debugLine="label14.TextColor = Colors.Black";
Debug.ShouldStop(64);
_label14.runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 392;BA.debugLine="lfila.text = \"PROMOS\"";
Debug.ShouldStop(128);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("PROMOS"));
 BA.debugLineNum = 393;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(256);
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 = 394;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(512);
if (true) break;

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

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

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

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

case 28:
//C
this.state = -1;
;
 BA.debugLineNum = 404;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(524288);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 405;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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",14,__ref.getField(false, "ba"),__ref,1583);
if (RapidSub.canDelegate("lv_prodspedido_itemlongclick")) { return __ref.runUserSub(false, "c_productos","lv_prodspedido_itemlongclick", __ref, _position, _value);}
RemoteObject _datos = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _idprod = RemoteObject.createImmutable("");
RemoteObject _nom = RemoteObject.createImmutable("");
RemoteObject _presname = RemoteObject.createImmutable("");
RemoteObject _uvmval = RemoteObject.createImmutable(0);
RemoteObject _cedis = RemoteObject.createImmutable("");
RemoteObject _dirtarget = RemoteObject.createImmutable("");
RemoteObject _folioactual = RemoteObject.createImmutable("");
RemoteObject _cantregresar = RemoteObject.createImmutable(0);
RemoteObject _tablainventario = RemoteObject.createImmutable("");
int _j = 0;
RemoteObject _qdelete = RemoteObject.createImmutable("");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 1583;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position";
Debug.ShouldStop(16384);
 BA.debugLineNum = 1585;BA.debugLine="If Not(Value Is Map) Then";
Debug.ShouldStop(65536);
if (c_productos.__c.runMethod(true,"Not",(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("i",_value, RemoteObject.createImmutable("java.util.Map"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1586;BA.debugLine="Log(\"Error: El valor recibido no es un Mapa de d";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","519791875",RemoteObject.createImmutable("Error: El valor recibido no es un Mapa de datos."),0);
 BA.debugLineNum = 1587;BA.debugLine="Return";
Debug.ShouldStop(262144);
if (true) return RemoteObject.createImmutable("");
 };
 BA.debugLineNum = 1591;BA.debugLine="Dim datos As Map = Value";
Debug.ShouldStop(4194304);
_datos = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_datos = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.Map"), _value);Debug.locals.put("datos", _datos);Debug.locals.put("datos", _datos);
 BA.debugLineNum = 1592;BA.debugLine="Dim idProd As String = datos.Get(\"id\")";
Debug.ShouldStop(8388608);
_idprod = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("id")))));Debug.locals.put("idProd", _idprod);Debug.locals.put("idProd", _idprod);
 BA.debugLineNum = 1593;BA.debugLine="Dim nom As String = datos.Get(\"nombre\")";
Debug.ShouldStop(16777216);
_nom = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("nombre")))));Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 1594;BA.debugLine="Dim presName As String = datos.Get(\"pres\")";
Debug.ShouldStop(33554432);
_presname = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("pres")))));Debug.locals.put("presName", _presname);Debug.locals.put("presName", _presname);
 BA.debugLineNum = 1595;BA.debugLine="Dim uvmVal As Int = datos.Get(\"uvm\")";
Debug.ShouldStop(67108864);
_uvmval = BA.numberCast(int.class, _datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("uvm")))));Debug.locals.put("uvmVal", _uvmval);Debug.locals.put("uvmVal", _uvmval);
 BA.debugLineNum = 1596;BA.debugLine="Dim cedis As String = datos.Get(\"cedis\")";
Debug.ShouldStop(134217728);
_cedis = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cedis")))));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 BA.debugLineNum = 1597;BA.debugLine="Dim dirTarget As String = datos.Get(\"dir\")";
Debug.ShouldStop(268435456);
_dirtarget = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("dir")))));Debug.locals.put("dirTarget", _dirtarget);Debug.locals.put("dirTarget", _dirtarget);
 BA.debugLineNum = 1598;BA.debugLine="Dim folioActual As String = datos.Get(\"folio\")";
Debug.ShouldStop(536870912);
_folioactual = BA.ObjectToString(_datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("folio")))));Debug.locals.put("folioActual", _folioactual);Debug.locals.put("folioActual", _folioactual);
 BA.debugLineNum = 1599;BA.debugLine="Dim cantRegresar As Int = datos.Get(\"cant\")";
Debug.ShouldStop(1073741824);
_cantregresar = BA.numberCast(int.class, _datos.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("cant")))));Debug.locals.put("cantRegresar", _cantregresar);Debug.locals.put("cantRegresar", _cantregresar);
 BA.debugLineNum = 1600;BA.debugLine="Log(cedis)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","519791889",_cedis,0);
 BA.debugLineNum = 1601;BA.debugLine="Log(folioActual)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","519791890",_folioactual,0);
 BA.debugLineNum = 1603;BA.debugLine="Log(\"Intentando borrar -> ID: \" & idProd & \" | No";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","519791892",RemoteObject.concat(RemoteObject.createImmutable("Intentando borrar -> ID: "),_idprod,RemoteObject.createImmutable(" | Nombre: "),_nom,RemoteObject.createImmutable(" | Almacen: "),_cedis),0);
 BA.debugLineNum = 1605;BA.debugLine="result = Msgbox2(\"¿Seguro que desea borrar \" & no";
Debug.ShouldStop(16);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_productos.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("¿Seguro que desea borrar "),_nom,RemoteObject.createImmutable(" ("),_presname,RemoteObject.createImmutable(")?")))),(Object)(BA.ObjectToCharSequence("Borrar Artículo")),(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 = 1607;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_productos.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1609;BA.debugLine="Dim tablaInventario As String";
Debug.ShouldStop(256);
_tablainventario = RemoteObject.createImmutable("");Debug.locals.put("tablaInventario", _tablainventario);
 BA.debugLineNum = 1611;BA.debugLine="If folioActual = \"PREVENTA_CONTADO\" Or folioActu";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_folioactual,BA.ObjectToString("PREVENTA_CONTADO")) || RemoteObject.solveBoolean("=",_folioactual,BA.ObjectToString("ABORDO"))) { 
 BA.debugLineNum = 1612;BA.debugLine="tablaInventario = \"CAT_GUNAPROD\"";
Debug.ShouldStop(2048);
_tablainventario = BA.ObjectToString("CAT_GUNAPROD");Debug.locals.put("tablaInventario", _tablainventario);
 BA.debugLineNum = 1613;BA.debugLine="Log(\"1\")";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","519791902",RemoteObject.createImmutable("1"),0);
 }else 
{ BA.debugLineNum = 1614;BA.debugLine="Else If folioActual = \"VENTA\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_folioactual,BA.ObjectToString("VENTA"))) { 
 BA.debugLineNum = 1615;BA.debugLine="tablaInventario = \"CAT_GUNAPROD2\"";
Debug.ShouldStop(16384);
_tablainventario = BA.ObjectToString("CAT_GUNAPROD2");Debug.locals.put("tablaInventario", _tablainventario);
 BA.debugLineNum = 1616;BA.debugLine="Log(2)";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","519791905",BA.NumberToString(2),0);
 }else 
{ BA.debugLineNum = 1617;BA.debugLine="Else If folioActual = \"RECARGA\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_folioactual,BA.ObjectToString("RECARGA"))) { 
 BA.debugLineNum = 1618;BA.debugLine="tablaInventario = \"CAT_GUNAPROD\"";
Debug.ShouldStop(131072);
_tablainventario = BA.ObjectToString("CAT_GUNAPROD");Debug.locals.put("tablaInventario", _tablainventario);
 BA.debugLineNum = 1619;BA.debugLine="Log(3)";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","519791908",BA.NumberToString(3),0);
 }else 
{ BA.debugLineNum = 1620;BA.debugLine="Else If folioActual = \"PREVENTA_CREDITO\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_folioactual,BA.ObjectToString("PREVENTA_CREDITO"))) { 
 BA.debugLineNum = 1621;BA.debugLine="tablaInventario = \"CAT_GUNAPROD4\"";
Debug.ShouldStop(1048576);
_tablainventario = BA.ObjectToString("CAT_GUNAPROD4");Debug.locals.put("tablaInventario", _tablainventario);
 BA.debugLineNum = 1622;BA.debugLine="Log(4)";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","519791911",BA.NumberToString(4),0);
 }}}}
;
 BA.debugLineNum = 1626;BA.debugLine="If cedis <> Subs.traeAlmacen Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("!",_cedis,c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 1627;BA.debugLine="Log(\"entre\")";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","519791916",RemoteObject.createImmutable("entre"),0);
 BA.debugLineNum = 1628;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
Debug.ShouldStop(134217728);
__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_PRONOMBRE = ? and PE_CEDIS = ?) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {_nom,_cedis,_folioactual}))));
 BA.debugLineNum = 1629;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","519791918",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1630;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1631;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","519791920",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 1632;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(-2147483648);
{
final int step39 = 1;
final int limit39 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step39 > 0 && _j <= limit39) || (step39 < 0 && _j >= limit39) ;_j = ((int)(0 + _j + step39))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 1633;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","519791922",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 1635;BA.debugLine="j3.Position = j";
Debug.ShouldStop(4);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 1636;BA.debugLine="Log(j3.GetString(\"PE_CANT\"))";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","519791925",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),0);
 BA.debugLineNum = 1637;BA.debugLine="Log($\"update ${tablaInventario} set CAT_GP_AL";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","519791926",(RemoteObject.concat(RemoteObject.createImmutable("update "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tablainventario))),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("'"))),0);
 BA.debugLineNum = 1638;BA.debugLine="If vamoaver.Get(Position) = \"PREVENTA_CREDITO";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_vamoaver" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_position)),RemoteObject.createImmutable(("PREVENTA_CREDITO")))) { 
 BA.debugLineNum = 1639;BA.debugLine="Starter.skmt.ExecNonQuery($\"update CAT_GUNAP";
Debug.ShouldStop(64);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update CAT_GUNAPROD4 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 = 1640;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete";
Debug.ShouldStop(128);
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("'")))));
 }else {
 BA.debugLineNum = 1642;BA.debugLine="Starter.skmt.ExecNonQuery($\"update ${tablaIn";
Debug.ShouldStop(512);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tablainventario))),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 = 1643;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete";
Debug.ShouldStop(1024);
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 = 1648;BA.debugLine="j3.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1650;BA.debugLine="ActualizarTotalesPedido(clienteId)";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizartotalespedido" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )));
 BA.debugLineNum = 1651;BA.debugLine="b_terminar1_Click";
Debug.ShouldStop(262144);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 1655;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE ${";
Debug.ShouldStop(4194304);
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)((_tablainventario))),RemoteObject.createImmutable(" SET CAT_GP_ALMACEN = CAT_GP_ALMACEN + "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cantregresar))),RemoteObject.createImmutable(" WHERE CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idprod))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1658;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
Debug.ShouldStop(33554432);
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[] {(_cedis),(_idprod),RemoteObject.createImmutable(((double) (0 + _cantregresar.<Integer>get().intValue())*-(double) (0 + 1)))})))));
 BA.debugLineNum = 1662;BA.debugLine="Dim qDelete As String = \"DELETE FROM PEDIDO WHE";
Debug.ShouldStop(536870912);
_qdelete = RemoteObject.concat(RemoteObject.createImmutable("DELETE FROM PEDIDO WHERE PE_PROID = ? AND PE_PRESENTACION = ? "),RemoteObject.createImmutable("AND PE_UVM = ? AND PE_DIRIGIDA = ? AND PE_CEDIS = ? "),RemoteObject.createImmutable("AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = ?"));Debug.locals.put("qDelete", _qdelete);Debug.locals.put("qDelete", _qdelete);
 BA.debugLineNum = 1666;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(qDelete, A";
Debug.ShouldStop(2);
c_productos._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(_qdelete),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {6},new Object[] {(_idprod),(_presname),(_uvmval),(_dirtarget),(_cedis),(_folioactual)})))));
 BA.debugLineNum = 1668;BA.debugLine="LogColor(\"Borrado exitoso de base de datos.\", C";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","519791957",BA.ObjectToString("Borrado exitoso de base de datos."),c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 1671;BA.debugLine="ActualizarTotalesPedido(clienteId)";
Debug.ShouldStop(64);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_actualizartotalespedido" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_clienteid" /*RemoteObject*/ )));
 BA.debugLineNum = 1672;BA.debugLine="b_terminar1_Click";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_productos.class, "_b_terminar1_click" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 1677;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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",14,__ref.getField(false, "ba"),__ref,407);
if (RapidSub.canDelegate("lv_promos_itemclick")) { return __ref.runUserSub(false, "c_productos","lv_promos_itemclick", __ref, _position, _value);}
RemoteObject _cliente = RemoteObject.declareNull("SHARK2.keymon.com.mx.c_cliente");
RemoteObject _promos = RemoteObject.declareNull("SHARK2.keymon.com.mx.c_promos");
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 407;BA.debugLine="Sub lv_promos_ItemClick (Position As Int, Value As";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 408;BA.debugLine="clv_prods_ll.AsView.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_clv_prods_ll" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 409;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
Debug.ShouldStop(16777216);
_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 = 411;BA.debugLine="If Value = \"PROMOS\" And cliente.cuenta <> \"N\" The";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("!",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 412;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(134217728);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 BA.debugLineNum = 413;BA.debugLine="marca = \"PROMOS\"";
Debug.ShouldStop(268435456);
__ref.setField ("_marca" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 BA.debugLineNum = 414;BA.debugLine="tipo = \"PROMOS\"";
Debug.ShouldStop(536870912);
__ref.setField ("_tipo" /*RemoteObject*/ ,BA.ObjectToString("PROMOS"));
 }else 
{ BA.debugLineNum = 415;BA.debugLine="Else if Value = \"PROMOS\" And cliente.cuenta = \"N\"";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("PROMOS"))) && RemoteObject.solveBoolean("=",_cliente.getField(true,"_cuenta" /*RemoteObject*/ ),BA.ObjectToString("N"))) { 
 BA.debugLineNum = 416;BA.debugLine="entro = \"5\"";
Debug.ShouldStop(-2147483648);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("5"));
 BA.debugLineNum = 417;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(1);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }}
;
 BA.debugLineNum = 419;BA.debugLine="If entro = \"3\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
 }else 
{ BA.debugLineNum = 421;BA.debugLine="Else If entro = \"4\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 423;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(64);
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 = 424;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(128);
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 = 425;BA.debugLine="Dim promos As C_Promos = B4XPages.GetPage(\"Promo";
Debug.ShouldStop(256);
_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 = 426;BA.debugLine="promos.laPromo = Subs.traeProdIdDeBD.Get(\"id\")";
Debug.ShouldStop(512);
_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 = 427;BA.debugLine="promos.elCliente = Subs.traeUsuarioDeBD";
Debug.ShouldStop(1024);
_promos.setField ("_elcliente" /*RemoteObject*/ ,c_productos._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 428;BA.debugLine="B4XPages.ShowPage(\"Promos\")";
Debug.ShouldStop(2048);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Promos")));
 }}
;
 BA.debugLineNum = 430;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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",14,__ref.getField(false, "ba"),__ref,1312);
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 = 1312;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 1313;BA.debugLine="Log(\"Promo longclic = \"&Value)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","519398657",RemoteObject.concat(RemoteObject.createImmutable("Promo longclic = "),_value),0);
 BA.debugLineNum = 1314;BA.debugLine="Private id As String = \"\"";
Debug.ShouldStop(2);
_id = BA.ObjectToString("");Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 1315;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(4);
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 = 1316;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1317;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1318;BA.debugLine="id = c.GetString(\"CAT_GP_ID\")";
Debug.ShouldStop(32);
_id = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_ID")));Debug.locals.put("id", _id);
 };
 BA.debugLineNum = 1320;BA.debugLine="l_info.Text = $\"ID: ${id}${CRLF}${Value}\"$";
Debug.ShouldStop(128);
__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 = 1321;BA.debugLine="l_info.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_l_info" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"True"));
 BA.debugLineNum = 1322;BA.debugLine="End Sub";
Debug.ShouldStop(512);
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",14,__ref.getField(false, "ba"),__ref,1349);
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 = 1349;BA.debugLine="Private Sub lv_subtipo_ItemClick (Position As Int,";
Debug.ShouldStop(16);
 BA.debugLineNum = 1363;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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",14,__ref.getField(false, "ba"),__ref,1329);
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 = 1329;BA.debugLine="Private Sub lv_tipo_ItemClick (Position As Int, Va";
Debug.ShouldStop(65536);
 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  _p_vistapreviatrans_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_vistaPreviaTrans_Click (c_productos) ","c_productos",14,__ref.getField(false, "ba"),__ref,1365);
if (RapidSub.canDelegate("p_vistapreviatrans_click")) { return __ref.runUserSub(false, "c_productos","p_vistapreviatrans_click", __ref);}
 BA.debugLineNum = 1365;BA.debugLine="Private Sub p_vistaPreviaTrans_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1367;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
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",14,__ref.getField(false, "ba"),__ref,264);
if (RapidSub.canDelegate("pclv_addprods")) { return __ref.runUserSub(false, "c_productos","pclv_addprods", __ref);}
 BA.debugLineNum = 264;BA.debugLine="Sub PCLV_AddProds";
Debug.ShouldStop(128);
 BA.debugLineNum = 266;BA.debugLine="End Sub";
Debug.ShouldStop(512);
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",14,__ref.getField(false, "ba"),__ref,2100);
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 = 2100;BA.debugLine="Sub PCLV_HintRequested(Index As Int) As Object";
Debug.ShouldStop(524288);
 BA.debugLineNum = 2101;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 = 2102;BA.debugLine="Return word";
Debug.ShouldStop(2097152);
if (true) return (_word);
 BA.debugLineNum = 2103;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}