package reparto_izca.keymon.lat;

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

public class c_productos_subs_0 {


public static RemoteObject  _b_guardar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_guardar_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,1107);
if (RapidSub.canDelegate("b_guardar_click")) { return __ref.runUserSub(false, "c_productos","b_guardar_click", __ref);}
 BA.debugLineNum = 1107;BA.debugLine="Private Sub b_guardar_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 1109;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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",18,__ref.getField(false, "ba"),__ref,672);
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 _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _maxprods = RemoteObject.createImmutable("");
RemoteObject _minimoadesc = RemoteObject.createImmutable("");
RemoteObject _minimos = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciocat = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciofull = RemoteObject.createImmutable("");
RemoteObject _pup = RemoteObject.createImmutable("");
RemoteObject _precioreg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _precioregalo = RemoteObject.createImmutable("");
RemoteObject _esregalo = RemoteObject.createImmutable("");
 BA.debugLineNum = 672;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 673;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(1);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 674;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(2);
c_productos._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_productos._sdate);
c_productos._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_productos._stime);
 BA.debugLineNum = 675;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(4);
c_productos.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 676;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8);
c_productos.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 677;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_productos.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_productos.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 678;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(32);
__ref.setField ("_stime" /*RemoteObject*/ ,c_productos.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_productos.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 680;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
Debug.ShouldStop(128);
c_productos.__c.runVoidMethod ("LogImpl","824969224",BA.ObjectToString("b_prodMas_Click"),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 681;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(256);
_index = __ref.getField(false,"_clv_pedido" /*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 = 682;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(512);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 683;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(1024);
_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 = 684;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
Debug.ShouldStop(2048);
_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, 3)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 688;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
Debug.ShouldStop(32768);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_productos.__c.runMethod(false, "ArrayToList", (Object)(c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 689;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","824969233",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacant.runMethod(true,"getText"),RemoteObject.createImmutable("|LC_TAG:"),_lacant.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 690;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 692;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
Debug.ShouldStop(524288);
_maxprods = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))))}, "+",1, 0));Debug.locals.put("maxProds", _maxprods);Debug.locals.put("maxProds", _maxprods);
 BA.debugLineNum = 694;BA.debugLine="Private minimoadesc As String";
Debug.ShouldStop(2097152);
_minimoadesc = RemoteObject.createImmutable("");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 695;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(4194304);
_minimos = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_minimos = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("minimos", _minimos);Debug.locals.put("minimos", _minimos);
 BA.debugLineNum = 696;BA.debugLine="If minimos.RowCount > 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",_minimos.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 697;BA.debugLine="minimos.Position = 0";
Debug.ShouldStop(16777216);
_minimos.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 698;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
Debug.ShouldStop(33554432);
_minimoadesc = _minimos.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_CANT_MIN_VENTA")));Debug.locals.put("minimoadesc", _minimoadesc);
 }else {
 BA.debugLineNum = 700;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(134217728);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 };
 BA.debugLineNum = 702;BA.debugLine="minimos.Close";
Debug.ShouldStop(536870912);
_minimos.runVoidMethod ("Close");
 BA.debugLineNum = 703;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(1073741824);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 706;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","824969250",(RemoteObject.concat(RemoteObject.createImmutable("++++++++++++++++++++++++++   "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_estetag.getObject()))),RemoteObject.createImmutable(""))),c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 707;BA.debugLine="Log(esteTag.get(4))";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","824969251",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4)))),0);
 BA.debugLineNum = 708;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))),RemoteObject.createImmutable(("0")))) { 
 }else {
 BA.debugLineNum = 711;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _maxprods))) { 
 BA.debugLineNum = 712;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
Debug.ShouldStop(128);
c_productos.__c.runVoidMethod ("LogImpl","824969256",(RemoteObject.concat(RemoteObject.createImmutable("NuevaCant = "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 713;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
Debug.ShouldStop(256);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 714;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
Debug.ShouldStop(512);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))})))));
 BA.debugLineNum = 715;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));
 BA.debugLineNum = 716;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 717;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(4096);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 718;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 719;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(16384);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 721;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(65536);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 722;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 723;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(262144);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 724;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
Debug.ShouldStop(524288);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 726;BA.debugLine="preciocat.Close";
Debug.ShouldStop(2097152);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 728;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 729;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
Debug.ShouldStop(16777216);
_pup = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0));Debug.locals.put("pup", _pup);Debug.locals.put("pup", _pup);
 BA.debugLineNum = 731;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(67108864);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pup))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 }else {
 BA.debugLineNum = 733;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(268435456);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 };
 };
 }else {
 BA.debugLineNum = 738;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(2);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 739;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 740;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(8);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 742;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(32);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 743;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 744;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(128);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 745;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
Debug.ShouldStop(256);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 747;BA.debugLine="preciocat.Close";
Debug.ShouldStop(1024);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 749;BA.debugLine="Dim precioreg As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(4096);
_precioreg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_precioreg = 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 IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS WHERE HVD_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("precioreg", _precioreg);Debug.locals.put("precioreg", _precioreg);
 BA.debugLineNum = 750;BA.debugLine="If precioreg.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_precioreg.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 751;BA.debugLine="precioreg.Position = 0";
Debug.ShouldStop(16384);
_precioreg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 752;BA.debugLine="Dim precioregalo As String = precioreg.GetSt";
Debug.ShouldStop(32768);
_precioregalo = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _precioreg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _precioreg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0));Debug.locals.put("precioregalo", _precioregalo);Debug.locals.put("precioregalo", _precioregalo);
 BA.debugLineNum = 753;BA.debugLine="If precioregalo < 1 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _precioregalo),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 754;BA.debugLine="Dim esregalo As String = 1";
Debug.ShouldStop(131072);
_esregalo = BA.NumberToString(1);Debug.locals.put("esregalo", _esregalo);Debug.locals.put("esregalo", _esregalo);
 }else {
 BA.debugLineNum = 756;BA.debugLine="Dim esregalo As String = 0";
Debug.ShouldStop(524288);
_esregalo = BA.NumberToString(0);Debug.locals.put("esregalo", _esregalo);Debug.locals.put("esregalo", _esregalo);
 };
 };
 BA.debugLineNum = 759;BA.debugLine="precioreg.Close";
Debug.ShouldStop(4194304);
_precioreg.runVoidMethod ("Close");
 BA.debugLineNum = 761;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 762;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
Debug.ShouldStop(33554432);
_pup = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0));Debug.locals.put("pup", _pup);Debug.locals.put("pup", _pup);
 BA.debugLineNum = 765;BA.debugLine="Log(\"algo1\")";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","824969309",RemoteObject.createImmutable("algo1"),0);
 BA.debugLineNum = 766;BA.debugLine="If Subs.traeCliente = \"63403\" Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("63403"))) { 
 BA.debugLineNum = 767;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(1073741824);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0)),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pup),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pup),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("DANADO"),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),_esregalo})))));
 }else {
 BA.debugLineNum = 769;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(1);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0)),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pup),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pup),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("PREVENTA"),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),_esregalo})))));
 };
 }else {
 BA.debugLineNum = 772;BA.debugLine="Log(\"|\" & preciofull& \"|\")";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","824969316",RemoteObject.concat(RemoteObject.createImmutable("|"),_preciofull,RemoteObject.createImmutable("|")),0);
 BA.debugLineNum = 773;BA.debugLine="Log(\"|\" & minimoadesc& \"|\")";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","824969317",RemoteObject.concat(RemoteObject.createImmutable("|"),_minimoadesc,RemoteObject.createImmutable("|")),0);
 BA.debugLineNum = 777;BA.debugLine="Log(esteTag.Get(2))";
Debug.ShouldStop(256);
c_productos.__c.runVoidMethod ("LogImpl","824969321",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),0);
 BA.debugLineNum = 778;BA.debugLine="Log(c2.GetString(\"HVD_PRONOMBRE\"))";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","824969322",_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),0);
 BA.debugLineNum = 779;BA.debugLine="Log((1*minimoadesc))";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","824969323",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),0);
 BA.debugLineNum = 780;BA.debugLine="Log(esteTag.Get(5))";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","824969324",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),0);
 BA.debugLineNum = 781;BA.debugLine="Log(Subs.traeCliente)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","824969325",c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 782;BA.debugLine="Log((preciofull*minimoadesc))";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","824969326",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),0);
 BA.debugLineNum = 783;BA.debugLine="Log(esteTag.Get(6))";
Debug.ShouldStop(16384);
c_productos.__c.runVoidMethod ("LogImpl","824969327",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),0);
 BA.debugLineNum = 784;BA.debugLine="Log(Subs.traerUTAPREV)";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","824969328",c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 785;BA.debugLine="Log(Subs.traeAlmacen)";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","824969329",c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 786;BA.debugLine="Log(sDate & \" \" & sTime)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","824969330",RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),0);
 BA.debugLineNum = 787;BA.debugLine="Log(Subs.traeUsuario)";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","824969331",c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 788;BA.debugLine="Log(Subs.traefECHAPREV)";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","824969332",c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 789;BA.debugLine="Log(Subs.traeRutaReparto)";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","824969333",c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 790;BA.debugLine="Log(esregalo)";
Debug.ShouldStop(2097152);
c_productos.__c.runVoidMethod ("LogImpl","824969334",_esregalo,0);
 BA.debugLineNum = 793;BA.debugLine="If Subs.traeCliente = \"63403\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("63403"))) { 
 BA.debugLineNum = 794;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(33554432);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0)),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("DANADO"),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),_esregalo})))));
 }else {
 BA.debugLineNum = 796;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(134217728);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0)),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("PREVENTA"),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),_esregalo})))));
 };
 };
 };
 };
 BA.debugLineNum = 804;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
Debug.ShouldStop(8);
c_productos._subs.runVoidMethod ("_prodventa" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))))),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))));
 BA.debugLineNum = 809;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(256);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 826;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
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",18,__ref.getField(false, "ba"),__ref,829);
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 _lacantc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _maxprods = RemoteObject.createImmutable("");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _puc = RemoteObject.createImmutable("");
 BA.debugLineNum = 829;BA.debugLine="Private Sub b_prodMasC_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 830;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(536870912);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 832;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","825034755",BA.ObjectToString("b_prodMas_Click"),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 833;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(1);
_index = __ref.getField(false,"_clv_pedido" /*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 = 834;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(2);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 835;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 = 836;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
Debug.ShouldStop(8);
_lacantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacantc = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCantc", _lacantc);Debug.locals.put("laCantc", _lacantc);
 BA.debugLineNum = 837;BA.debugLine="LogColor(laCantc.Text&\"--------------------------";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","825034760",RemoteObject.concat(_lacantc.runMethod(true,"getText"),RemoteObject.createImmutable("-----------------------------")),c_productos.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 841;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
Debug.ShouldStop(256);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_productos.__c.runMethod(false, "ArrayToList", (Object)(c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacantc.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 842;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","825034765",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacantc.runMethod(true,"getText"),RemoteObject.createImmutable("|LC_TAG:"),_lacantc.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 843;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 845;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
Debug.ShouldStop(4096);
_maxprods = BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))))}, "+",1, 0)));Debug.locals.put("maxProds", _maxprods);Debug.locals.put("maxProds", _maxprods);
 BA.debugLineNum = 846;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
Debug.ShouldStop(8192);
c_productos.__c.runVoidMethod ("LogImpl","825034769",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 847;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
Debug.ShouldStop(16384);
c_productos.__c.runVoidMethod ("LogImpl","825034770",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4)))),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 848;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","825034771",(RemoteObject.concat(RemoteObject.createImmutable("++++++++++++++++++++++++++   "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_estetag.getObject()))),RemoteObject.createImmutable(""))),c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 850;BA.debugLine="Log(maxProds)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","825034773",_maxprods,0);
 BA.debugLineNum = 853;BA.debugLine="Log(esteTag.Get(4))";
Debug.ShouldStop(1048576);
c_productos.__c.runVoidMethod ("LogImpl","825034776",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4)))),0);
 BA.debugLineNum = 854;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))),RemoteObject.createImmutable(("0")))) { 
 }else {
 BA.debugLineNum = 857;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _maxprods))) { 
 BA.debugLineNum = 858;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
Debug.ShouldStop(33554432);
c_productos.__c.runVoidMethod ("LogImpl","825034781",(RemoteObject.concat(RemoteObject.createImmutable("NuevaCant = "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 860;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
Debug.ShouldStop(134217728);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 861;BA.debugLine="LogColor(esteTag,Colors.Magenta)";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","825034784",BA.ObjectToString(_estetag),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 863;BA.debugLine="LogColor(laCantc.Text,Colors.Red)";
Debug.ShouldStop(1073741824);
c_productos.__c.runVoidMethod ("LogImpl","825034786",_lacantc.runMethod(true,"getText"),c_productos.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 866;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));
 BA.debugLineNum = 867;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 868;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(8);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 869;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 870;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(32);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 871;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
Debug.ShouldStop(64);
_puc = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0));Debug.locals.put("puc", _puc);Debug.locals.put("puc", _puc);
 BA.debugLineNum = 873;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
Debug.ShouldStop(256);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_puc))),RemoteObject.createImmutable("', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 874;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(512);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 875;BA.debugLine="Log(\"aqui2\")";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","825034798",RemoteObject.createImmutable("aqui2"),0);
 };
 }else {
 BA.debugLineNum = 878;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(8192);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 879;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 880;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(32768);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 881;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
Debug.ShouldStop(65536);
_puc = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0));Debug.locals.put("puc", _puc);Debug.locals.put("puc", _puc);
 BA.debugLineNum = 882;BA.debugLine="Log(puc)";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","825034805",_puc,0);
 BA.debugLineNum = 885;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID";
Debug.ShouldStop(1048576);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)")),(Object)(c_productos.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_productos._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_puc,_puc,BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6)))),c_productos._subs.runMethod(true,"_traerutaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("PREVENTA"),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )),c_productos._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_productos._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 BA.debugLineNum = 886;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2097152);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 };
 };
 BA.debugLineNum = 892;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
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",18,__ref.getField(false, "ba"),__ref,566);
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 _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _minimoadesc = RemoteObject.createImmutable("");
RemoteObject _minimos = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciou = RemoteObject.createImmutable(0f);
 BA.debugLineNum = 566;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 567;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(4194304);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 568;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","824903682",RemoteObject.concat(RemoteObject.createImmutable("etCantHasFocus="),__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ )),0);
 BA.debugLineNum = 569;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
Debug.ShouldStop(16777216);
c_productos.__c.runVoidMethod ("LogImpl","824903683",BA.ObjectToString("b_prodMenos_Click"),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 570;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(33554432);
_index = __ref.getField(false,"_clv_pedido" /*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 = 571;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(67108864);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 572;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(134217728);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 573;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
Debug.ShouldStop(268435456);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 575;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
Debug.ShouldStop(1073741824);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_productos.__c.runMethod(false, "ArrayToList", (Object)(c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 576;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","824903690",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacant.runMethod(true,"getText"),RemoteObject.createImmutable("|PROMO:"),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))),RemoteObject.createImmutable("|LC_TAG:"),_lacant.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 578;BA.debugLine="Private minimoadesc As String";
Debug.ShouldStop(2);
_minimoadesc = RemoteObject.createImmutable("");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 579;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(4);
_minimos = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_minimos = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("minimos", _minimos);Debug.locals.put("minimos", _minimos);
 BA.debugLineNum = 580;BA.debugLine="If minimos.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_minimos.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 581;BA.debugLine="minimos.Position = 0";
Debug.ShouldStop(16);
_minimos.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 582;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
Debug.ShouldStop(32);
_minimoadesc = _minimos.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_CANT_MIN_VENTA")));Debug.locals.put("minimoadesc", _minimoadesc);
 }else {
 BA.debugLineNum = 584;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(128);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 };
 BA.debugLineNum = 586;BA.debugLine="minimos.Close";
Debug.ShouldStop(512);
_minimos.runVoidMethod ("Close");
 BA.debugLineNum = 588;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(2048);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 589;BA.debugLine="If laCant.Text > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 624;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 625;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-(1*minimoadesc)";
Debug.ShouldStop(65536);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0))}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 626;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(131072);
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 = 627;BA.debugLine="Log(\"NO ES promo\")";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","824903741",RemoteObject.createImmutable("NO ES promo"),0);
 BA.debugLineNum = 632;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(8388608);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 633;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 634;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(33554432);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 635;BA.debugLine="If c3.GetString(\"PE_CANT\")> minimoadesc Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),BA.numberCast(double.class, _minimoadesc))) { 
 BA.debugLineNum = 636;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(134217728);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 637;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 638;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(536870912);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 640;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
Debug.ShouldStop(-2147483648);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 };
 }else 
{ BA.debugLineNum = 642;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = minimoadesc T";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),_minimoadesc)) { 
 BA.debugLineNum = 643;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(4);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 644;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 645;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(16);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 648;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
Debug.ShouldStop(128);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 };
 }}
;
 };
 BA.debugLineNum = 655;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16384);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 BA.debugLineNum = 658;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
Debug.ShouldStop(131072);
_preciou = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1))))}, "/",0, 0));Debug.locals.put("preciou", _preciou);Debug.locals.put("preciou", _preciou);
 BA.debugLineNum = 659;BA.debugLine="Log(\"PU: \" & preciou)";
Debug.ShouldStop(262144);
c_productos.__c.runVoidMethod ("LogImpl","824903773",RemoteObject.concat(RemoteObject.createImmutable("PU: "),_preciou),0);
 BA.debugLineNum = 670;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenosc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenosC_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,894);
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 _lacantc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciou = RemoteObject.createImmutable(0f);
 BA.debugLineNum = 894;BA.debugLine="Private Sub b_prodMenosC_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 895;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(1073741824);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 896;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","825100290",RemoteObject.concat(RemoteObject.createImmutable("etCantHasFocus="),__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ )),0);
 BA.debugLineNum = 897;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","825100291",BA.ObjectToString("b_prodMenos_Click"),c_productos.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 898;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(2);
_index = __ref.getField(false,"_clv_pedido" /*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 = 899;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(4);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 900;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(8);
_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 = 901;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
Debug.ShouldStop(16);
_lacantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacantc = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCantc", _lacantc);Debug.locals.put("laCantc", _lacantc);
 BA.debugLineNum = 903;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
Debug.ShouldStop(64);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_productos.__c.runMethod(false, "ArrayToList", (Object)(c_productos.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacantc.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 904;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
Debug.ShouldStop(128);
c_productos.__c.runVoidMethod ("LogImpl","825100298",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacantc.runMethod(true,"getText"),RemoteObject.createImmutable("|PROMO:"),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))),RemoteObject.createImmutable("|LC_TAG:"),_lacantc.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 908;BA.debugLine="If laCantc.Text > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 911;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(16384);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 912;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 913;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(65536);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 914;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS")))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 915;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
Debug.ShouldStop(262144);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos._subs.runMethod(true,"_traeprecioc" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 916;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 917;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
Debug.ShouldStop(1048576);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))),RemoteObject.createImmutable("'")))));
 }}
;
 };
 BA.debugLineNum = 920;BA.debugLine="Log(\"entre al if o algo asi \")";
Debug.ShouldStop(8388608);
c_productos.__c.runVoidMethod ("LogImpl","825100314",RemoteObject.createImmutable("entre al if o algo asi "),0);
 BA.debugLineNum = 921;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 922;BA.debugLine="laCantc.Text = laCantc.Text - 1";
Debug.ShouldStop(33554432);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)));
 BA.debugLineNum = 923;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 924;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(134217728);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else 
{ BA.debugLineNum = 926;BA.debugLine="Else If laCantc.Text = 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.NumberToString(0))) { 
 }}
;
 BA.debugLineNum = 930;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
Debug.ShouldStop(2);
_preciou = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1))))}, "/",0, 0));Debug.locals.put("preciou", _preciou);Debug.locals.put("preciou", _preciou);
 BA.debugLineNum = 931;BA.debugLine="Log(\"PU: \" & preciou)";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","825100325",RemoteObject.concat(RemoteObject.createImmutable("PU: "),_preciou),0);
 BA.debugLineNum = 932;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_regresar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_regresar_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,375);
if (RapidSub.canDelegate("b_regresar_click")) { return __ref.runUserSub(false, "c_productos","b_regresar_click", __ref);}
 BA.debugLineNum = 375;BA.debugLine="Sub b_regresar_Click";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 376;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(8388608);
c_productos._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 377;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_revversar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_revversar_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,938);
if (RapidSub.canDelegate("b_revversar_click")) { return __ref.runUserSub(false, "c_productos","b_revversar_click", __ref);}
 BA.debugLineNum = 938;BA.debugLine="Private Sub b_revversar_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 939;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS se";
Debug.ShouldStop(1024);
c_productos._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 0,  HVD_RECHAZOCANT = 0  WHERE HVD_cliente in (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 940;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2048);
__ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 941;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,74);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_productos","b4xpage_appear", __ref);}
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _bgcolor = RemoteObject.createImmutable(0);
RemoteObject _textcolor = RemoteObject.createImmutable(0);
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _d5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _restacant = RemoteObject.createImmutable("");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _resta = RemoteObject.createImmutable("");
RemoteObject _preciocat = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciofull = RemoteObject.createImmutable("");
RemoteObject _oc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cant2 = RemoteObject.createImmutable(0);
RemoteObject _puc = RemoteObject.createImmutable("");
 BA.debugLineNum = 74;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(512);
 BA.debugLineNum = 75;BA.debugLine="Label2.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_label2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 76;BA.debugLine="Label3.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_label3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 77;BA.debugLine="L_TOTAL.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 78;BA.debugLine="L_CANT.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 79;BA.debugLine="b_revversar.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_b_revversar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 80;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
Debug.ShouldStop(32768);
c_productos._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 84;BA.debugLine="L_CANT.Text =\"\"";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 85;BA.debugLine="L_TOTAL.Text=\"\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 86;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))));
 BA.debugLineNum = 87;BA.debugLine="C.Position=0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 88;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
Debug.ShouldStop(8388608);
__ref.setField ("_existe" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("EXISTE"))));
 BA.debugLineNum = 89;BA.debugLine="C.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 93;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VENT";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))));
 BA.debugLineNum = 96;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 97;BA.debugLine="clv_pedido.Clear";
Debug.ShouldStop(1);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 98;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
Debug.ShouldStop(2);
c_productos._subs.runVoidMethod ("_setdivider" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_listview1" /*RemoteObject*/ )),(Object)(c_productos.__c.getField(false,"Colors").getField(true,"LightGray")),(Object)(BA.numberCast(int.class, 2)));
 BA.debugLineNum = 99;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
Debug.ShouldStop(4);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 100)),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 0)))),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 60)))),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(50)}, "-",1, 1)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.62)}, "*",0, 0))));
 BA.debugLineNum = 100;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
Debug.ShouldStop(8);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getHeight"))));
 BA.debugLineNum = 102;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 105;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(256);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step20 > 0 && _i <= limit20) || (step20 < 0 && _i >= limit20) ;_i = ((int)(0 + _i + step20))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 106;BA.debugLine="c.Position=i";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 108;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("BCAJAS"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 119;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(4194304);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 120;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(8388608);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 121;BA.debugLine="label1.TextSize = 12";
Debug.ShouldStop(16777216);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 122;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(33554432);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 123;BA.debugLine="Dim Label2 As Label";
Debug.ShouldStop(67108864);
c_productos._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label2",c_productos._label2);
 BA.debugLineNum = 124;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(134217728);
__ref.setField ("_label2" /*RemoteObject*/ ,__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel"));
 BA.debugLineNum = 125;BA.debugLine="Label2.TextSize = 12";
Debug.ShouldStop(268435456);
__ref.getField(false,"_label2" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 126;BA.debugLine="Label2.TextColor = Colors.black";
Debug.ShouldStop(536870912);
__ref.getField(false,"_label2" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 127;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(1073741824);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 128;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
Debug.ShouldStop(-2147483648);
_bgcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 177)),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 249)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 129;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(1);
_textcolor = c_productos.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 130;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 132;BA.debugLine="bgColor = Colors.White";
Debug.ShouldStop(8);
_bgcolor = c_productos.__c.getField(false,"Colors").getField(true,"White");Debug.locals.put("bgColor", _bgcolor);
 };
 BA.debugLineNum = 138;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(512);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = 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 IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 141;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery";
Debug.ShouldStop(4096);
_d5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_d5 = 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 IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("d5", _d5);Debug.locals.put("d5", _d5);
 BA.debugLineNum = 142;BA.debugLine="d5.Position = 0";
Debug.ShouldStop(8192);
_d5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 143;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
Debug.ShouldStop(16384);
_restacant = _d5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("restacant", _restacant);Debug.locals.put("restacant", _restacant);
 BA.debugLineNum = 144;BA.debugLine="d5.Close";
Debug.ShouldStop(32768);
_d5.runVoidMethod ("Close");
 BA.debugLineNum = 146;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("!",(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _restacant)}, "-",1, 0)),BA.numberCast(double.class, "0"))) { 
 BA.debugLineNum = 147;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 148;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(524288);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 150;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
Debug.ShouldStop(2097152);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = 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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID ='"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 151;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(4194304);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 153;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 155;BA.debugLine="Log(1)";
Debug.ShouldStop(67108864);
c_productos.__c.runVoidMethod ("LogImpl","824379473",BA.NumberToString(1),0);
 BA.debugLineNum = 156;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(134217728);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 157;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(268435456);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 160;BA.debugLine="Log(2)";
Debug.ShouldStop(-2147483648);
c_productos.__c.runVoidMethod ("LogImpl","824379478",BA.NumberToString(2),0);
 BA.debugLineNum = 161;BA.debugLine="resta = 0";
Debug.ShouldStop(1);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 164;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(8);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 165;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 166;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(32);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 167;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(64);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 169;BA.debugLine="preciocat.Close";
Debug.ShouldStop(256);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 170;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
Debug.ShouldStop(512);
c_productos.__c.runVoidMethod ("LogImpl","824379488",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),0);
 BA.debugLineNum = 171;BA.debugLine="Log(Subs.traeAlmacen)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","824379489",c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 174;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 175;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(c_productos._subs.runMethod(true,"_traeprecio2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),(Object)(BA.numberCast(int.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),BA.numberCast(double.class, _resta)}, "--",2, 0))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 }else {
 BA.debugLineNum = 177;BA.debugLine="Log(\"aqui arriba\")";
Debug.ShouldStop(65536);
c_productos.__c.runVoidMethod ("LogImpl","824379495",RemoteObject.createImmutable("aqui arriba"),0);
 BA.debugLineNum = 178;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(_preciofull),(Object)(BA.numberCast(int.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),BA.numberCast(double.class, _resta)}, "--",2, 0))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }else 
{ BA.debugLineNum = 182;BA.debugLine="Else iF c2.RowCount = 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 183;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
Debug.ShouldStop(4194304);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = 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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID ='"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 184;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(8388608);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 186;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 188;BA.debugLine="Log(3)";
Debug.ShouldStop(134217728);
c_productos.__c.runVoidMethod ("LogImpl","824379506",BA.NumberToString(3),0);
 BA.debugLineNum = 189;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(268435456);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 190;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(536870912);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 193;BA.debugLine="Log(4)";
Debug.ShouldStop(1);
c_productos.__c.runVoidMethod ("LogImpl","824379511",BA.NumberToString(4),0);
 BA.debugLineNum = 194;BA.debugLine="resta = 0";
Debug.ShouldStop(2);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 198;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(32);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_productos._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 199;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 200;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(128);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 201;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(256);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 203;BA.debugLine="preciocat.Close";
Debug.ShouldStop(1024);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 204;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
Debug.ShouldStop(2048);
c_productos.__c.runVoidMethod ("LogImpl","824379522",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),0);
 BA.debugLineNum = 205;BA.debugLine="Log(Subs.traeAlmacen)";
Debug.ShouldStop(4096);
c_productos.__c.runVoidMethod ("LogImpl","824379523",c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 207;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 208;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(c_productos._subs.runMethod(true,"_traeprecio2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _resta)}, "-",1, 0))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 }else {
 BA.debugLineNum = 210;BA.debugLine="Log(\"aqui abajo\")";
Debug.ShouldStop(131072);
c_productos.__c.runVoidMethod ("LogImpl","824379528",RemoteObject.createImmutable("aqui abajo"),0);
 BA.debugLineNum = 211;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(_preciofull),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _resta)}, "-",1, 0))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }}
;
 };
 BA.debugLineNum = 218;BA.debugLine="c2.Close";
Debug.ShouldStop(33554432);
_c2.runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 221;BA.debugLine="Else If c.GetString(\"BCAJAS\") = \"1\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("BCAJAS"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 222;BA.debugLine="Log(\"AQUI1\")";
Debug.ShouldStop(536870912);
c_productos.__c.runVoidMethod ("LogImpl","824379540",RemoteObject.createImmutable("AQUI1"),0);
 BA.debugLineNum = 225;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(1);
_oc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_oc = 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 HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' and HVD_NUM_REGISTRO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_REGISTRO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("oc", _oc);Debug.locals.put("oc", _oc);
 BA.debugLineNum = 226;BA.debugLine="Private cant2 As Int = 0";
Debug.ShouldStop(2);
_cant2 = BA.numberCast(int.class, 0);Debug.locals.put("cant2", _cant2);Debug.locals.put("cant2", _cant2);
 BA.debugLineNum = 227;BA.debugLine="If oc.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_oc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 228;BA.debugLine="oc.Position = 0";
Debug.ShouldStop(8);
_oc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 229;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
Debug.ShouldStop(16);
_cant2 = BA.numberCast(int.class, _oc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))));Debug.locals.put("cant2", _cant2);
 };
 BA.debugLineNum = 231;BA.debugLine="oc.Close";
Debug.ShouldStop(64);
_oc.runVoidMethod ("Close");
 BA.debugLineNum = 232;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(128);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 233;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(256);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 234;BA.debugLine="label1.TextSize = 12";
Debug.ShouldStop(512);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 235;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(1024);
_label1.runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 236;BA.debugLine="Dim Label2 As Label";
Debug.ShouldStop(2048);
c_productos._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label2",c_productos._label2);
 BA.debugLineNum = 237;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(4096);
__ref.setField ("_label2" /*RemoteObject*/ ,__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel"));
 BA.debugLineNum = 238;BA.debugLine="Label2.TextSize = 12";
Debug.ShouldStop(8192);
__ref.getField(false,"_label2" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 239;BA.debugLine="Label2.TextColor = Colors.black";
Debug.ShouldStop(16384);
__ref.getField(false,"_label2" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_productos.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 240;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(32768);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 241;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
Debug.ShouldStop(65536);
_bgcolor = c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 177)),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 249)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 242;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(131072);
_textcolor = c_productos.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 243;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_productos._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 245;BA.debugLine="bgColor = Colors.White";
Debug.ShouldStop(1048576);
_bgcolor = c_productos.__c.getField(false,"Colors").getField(true,"White");Debug.locals.put("bgColor", _bgcolor);
 };
 BA.debugLineNum = 250;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(33554432);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = 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 * from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 252;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery";
Debug.ShouldStop(134217728);
_d5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_d5 = 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 IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("d5", _d5);Debug.locals.put("d5", _d5);
 BA.debugLineNum = 253;BA.debugLine="d5.Position = 0";
Debug.ShouldStop(268435456);
_d5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 254;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
Debug.ShouldStop(536870912);
_restacant = _d5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("restacant", _restacant);Debug.locals.put("restacant", _restacant);
 BA.debugLineNum = 255;BA.debugLine="d5.Close";
Debug.ShouldStop(1073741824);
_d5.runVoidMethod ("Close");
 BA.debugLineNum = 257;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("!",(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _restacant)}, "-",1, 0)),BA.numberCast(double.class, "0"))) { 
 BA.debugLineNum = 258;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 259;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(4);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 260;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")";
Debug.ShouldStop(8);
c_productos.__c.runVoidMethod ("LogImpl","824379578",RemoteObject.createImmutable("SI ENTRO A PONER CAJAS BIEN "),0);
 BA.debugLineNum = 261;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","824379579",_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS"))),0);
 BA.debugLineNum = 262;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
Debug.ShouldStop(32);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = 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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID ='"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 263;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(64);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 265;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 267;BA.debugLine="Log(5)";
Debug.ShouldStop(1024);
c_productos.__c.runVoidMethod ("LogImpl","824379585",BA.NumberToString(5),0);
 BA.debugLineNum = 268;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(2048);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 269;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(4096);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 272;BA.debugLine="Log(6)";
Debug.ShouldStop(32768);
c_productos.__c.runVoidMethod ("LogImpl","824379590",BA.NumberToString(6),0);
 BA.debugLineNum = 273;BA.debugLine="resta = 0";
Debug.ShouldStop(65536);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 275;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
Debug.ShouldStop(262144);
_puc = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0));Debug.locals.put("puc", _puc);Debug.locals.put("puc", _puc);
 BA.debugLineNum = 276;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge";
Debug.ShouldStop(524288);
c_productos.__c.runVoidMethod ("LogImpl","824379594",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _restacant),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0))),c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 277;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem2" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(_puc),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _restacant),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0)))),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _restacant),BA.numberCast(double.class, _resta)}, "--",2, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0)))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 }else {
 BA.debugLineNum = 279;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")";
Debug.ShouldStop(4194304);
c_productos.__c.runVoidMethod ("LogImpl","824379597",RemoteObject.createImmutable("NO ENTRO A PONER CAJAS BIEN "),0);
 BA.debugLineNum = 280;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
Debug.ShouldStop(8388608);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = 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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID ='"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 281;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(16777216);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 283;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 285;BA.debugLine="Log(7)";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","824379603",BA.NumberToString(7),0);
 BA.debugLineNum = 286;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(536870912);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 287;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(1073741824);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 290;BA.debugLine="Log(1)";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","824379608",BA.NumberToString(1),0);
 BA.debugLineNum = 291;BA.debugLine="resta = 0";
Debug.ShouldStop(4);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 293;BA.debugLine="LogColor(resta,Colors.Green)";
Debug.ShouldStop(16);
c_productos.__c.runVoidMethod ("LogImpl","824379611",_resta,c_productos.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 294;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
Debug.ShouldStop(32);
_puc = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0));Debug.locals.put("puc", _puc);Debug.locals.put("puc", _puc);
 BA.debugLineNum = 296;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
Debug.ShouldStop(128);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_productos.class, "_createlistitem2" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(_puc),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _resta)}, "-",1, 0)),BA.numberCast(double.class, c_productos._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0)))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_productos.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 };
 BA.debugLineNum = 299;BA.debugLine="c2.Close";
Debug.ShouldStop(1024);
_c2.runVoidMethod ("Close");
 }}
;
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 368;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
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",18,__ref.getField(false, "ba"),__ref,379);
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(reparto_izca.keymon.lat.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;
reparto_izca.keymon.lat.c_productos parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,379);
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 = 382;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(536870912);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 384;BA.debugLine="Return False";
Debug.ShouldStop(-2147483648);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 385;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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",18,__ref.getField(false, "ba"),__ref,62);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_productos","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 62;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 63;BA.debugLine="Root = Root1";
Debug.ShouldStop(1073741824);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 64;BA.debugLine="B4XPages.SetTitle(Me, \"Productos\")";
Debug.ShouldStop(-2147483648);
c_productos._b4xpages.runVoidMethod ("_settitle" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)((RemoteObject.createImmutable("Productos"))));
 BA.debugLineNum = 66;BA.debugLine="g.Initialize(\"GPS\")";
Debug.ShouldStop(2);
__ref.getField(false,"_g" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("GPS")));
 BA.debugLineNum = 67;BA.debugLine="Root.LoadLayout(\"detalleVenta\")";
Debug.ShouldStop(4);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("detalleVenta")),__ref.getField(false, "ba"));
 BA.debugLineNum = 68;BA.debugLine="b_borra.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_b_borra" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 69;BA.debugLine="Titulo.Text = \"Pedido\"";
Debug.ShouldStop(16);
__ref.getField(false,"_titulo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Pedido"));
 BA.debugLineNum = 70;BA.debugLine="End Sub";
Debug.ShouldStop(32);
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 g As GPS";
c_productos._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_productos._g);
 //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
c_productos._clie_id = RemoteObject.createImmutable("");__ref.setField("_clie_id",c_productos._clie_id);
 //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
c_productos._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_productos._sdate);
c_productos._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_productos._stime);
 //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
c_productos._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_productos._usuario);
 //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 = 10;BA.debugLine="Dim b_regresar As Button";
c_productos._b_regresar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_regresar",c_productos._b_regresar);
 //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView";
c_productos._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_productos._listview1);
 //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label";
c_productos._l_cant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cant",c_productos._l_cant);
 //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label";
c_productos._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_productos._l_total);
 //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button";
c_productos._b_borra = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_borra",c_productos._b_borra);
 //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String";
c_productos._existe = RemoteObject.createImmutable("");__ref.setField("_existe",c_productos._existe);
 //BA.debugLineNum = 16;BA.debugLine="Dim result As String";
c_productos._result = RemoteObject.createImmutable("");__ref.setField("_result",c_productos._result);
 //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String";
c_productos._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_productos._cuantos);
 //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String";
c_productos._nombre_prod = RemoteObject.createImmutable("");__ref.setField("_nombre_prod",c_productos._nombre_prod);
 //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String";
c_productos._cuantos_pedido = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedido",c_productos._cuantos_pedido);
 //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label";
c_productos._titulo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_titulo",c_productos._titulo);
 //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel";
c_productos._p1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p1",c_productos._p1);
 //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView";
c_productos._lv2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv2",c_productos._lv2);
 //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel";
c_productos._p_principal = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_principal",c_productos._p_principal);
 //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView";
c_productos._clv_pedido = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_pedido",c_productos._clv_pedido);
 //BA.debugLineNum = 26;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 = 27;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 = 28;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 = 29;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 = 30;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 = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False";
c_productos._etcanthasfocus = c_productos.__c.getField(true,"False");__ref.setField("_etcanthasfocus",c_productos._etcanthasfocus);
 //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0";
c_productos._totalprods = BA.numberCast(int.class, 0);__ref.setField("_totalprods",c_productos._totalprods);
 //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0";
c_productos._totalcompra = BA.numberCast(int.class, 0);__ref.setField("_totalcompra",c_productos._totalcompra);
 //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map";
c_productos._prodsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_prodsmap",c_productos._prodsmap);
 //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False";
c_productos._reconstruirpedido = c_productos.__c.getField(true,"False");__ref.setField("_reconstruirpedido",c_productos._reconstruirpedido);
 //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String";
c_productos._promoaborrar = RemoteObject.createImmutable("");__ref.setField("_promoaborrar",c_productos._promoaborrar);
 //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button";
c_productos._b_guardar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_guardar",c_productos._b_guardar);
 //BA.debugLineNum = 38;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 = 39;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 = 40;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 = 41;BA.debugLine="Private l_pCantC As Label";
c_productos._l_pcantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pcantc",c_productos._l_pcantc);
 //BA.debugLineNum = 42;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 = 43;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 = 44;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 = 45;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 = 46;BA.debugLine="Private b_revversar As Button";
c_productos._b_revversar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_revversar",c_productos._b_revversar);
 //BA.debugLineNum = 47;BA.debugLine="Private Label2 As Label";
c_productos._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label2",c_productos._label2);
 //BA.debugLineNum = 48;BA.debugLine="Private Label3 As Label";
c_productos._label3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label3",c_productos._label3);
 //BA.debugLineNum = 49;BA.debugLine="Private l_piezas As Label";
c_productos._l_piezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_piezas",c_productos._l_piezas);
 //BA.debugLineNum = 50;BA.debugLine="Private l_cajas As Label";
c_productos._l_cajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cajas",c_productos._l_cajas);
 //BA.debugLineNum = 52;BA.debugLine="Private l_cajas As Label";
c_productos._l_cajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cajas",c_productos._l_cajas);
 //BA.debugLineNum = 53;BA.debugLine="Private l_piezas As Label";
c_productos._l_piezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_piezas",c_productos._l_piezas);
 //BA.debugLineNum = 54;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _inv2,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid,RemoteObject _bc,RemoteObject _tc,RemoteObject _promo,RemoteObject _cliente_original,RemoteObject _consecutivo) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,500);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_productos","createlistitem", __ref, _text, _preciou, _inv, _inv2, _width, _height, _img, _prodid, _bc, _tc, _promo, _cliente_original, _consecutivo);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
Debug.locals.put("Text", _text);
Debug.locals.put("precioU", _preciou);
Debug.locals.put("inv", _inv);
Debug.locals.put("inv2", _inv2);
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);
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente_original", _cliente_original);
Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 500;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(524288);
 BA.debugLineNum = 501;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(1048576);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 502;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(2097152);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 503;BA.debugLine="cs.Initialize";
Debug.ShouldStop(4194304);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 504;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(8388608);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
 BA.debugLineNum = 505;BA.debugLine="p.LoadLayout(\"prodItem2\")";
Debug.ShouldStop(16777216);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem2")),__ref.getField(false, "ba"));
 BA.debugLineNum = 506;BA.debugLine="p_prods.Color = bc";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",_bc);
 BA.debugLineNum = 507;BA.debugLine="l_prodX.TextColor = tc";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextColor",_tc);
 BA.debugLineNum = 508;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
Debug.ShouldStop(134217728);
_preciou = (RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable("")));Debug.locals.put("precioU", _preciou);
 BA.debugLineNum = 509;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_text,c_productos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)));
 BA.debugLineNum = 510;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",_promo,BA.ObjectToString("1")) && RemoteObject.solveBoolean("=",_preciou,BA.NumberToString(0))) { 
 BA.debugLineNum = 511;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 123)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_text,c_productos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)))).runMethod(false,"PopAll").getObject()));
 };
 BA.debugLineNum = 513;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
Debug.ShouldStop(1);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(false,"setTag",((RemoteObject.concat(RemoteObject.createImmutable("ID: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),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)((_text))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Precio: $"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Inv: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_inv))),RemoteObject.createImmutable(" pzs")))));
 BA.debugLineNum = 516;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\"";
Debug.ShouldStop(8);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_productos.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 517;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
Debug.ShouldStop(16);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_productos.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 518;BA.debugLine="p_prods.Tag = l_pCant.tag";
Debug.ShouldStop(32);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(false,"setTag",__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"getTag"));
 BA.debugLineNum = 520;BA.debugLine="l_pCant.Text = inv";
Debug.ShouldStop(128);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_inv));
 BA.debugLineNum = 524;BA.debugLine="l_pCant.BringToFront";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 525;BA.debugLine="et_pCant.SendToBack";
Debug.ShouldStop(4096);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runVoidMethod ("SendToBack");
 BA.debugLineNum = 526;BA.debugLine="p_botMasMenC.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_botmasmenc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 527;BA.debugLine="l_cajas.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_cajas" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 529;BA.debugLine="Return p";
Debug.ShouldStop(65536);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 530;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem2(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _inv2,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid,RemoteObject _bc,RemoteObject _tc,RemoteObject _promo,RemoteObject _cliente_original,RemoteObject _consecutivo) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem2 (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,532);
if (RapidSub.canDelegate("createlistitem2")) { return __ref.runUserSub(false, "c_productos","createlistitem2", __ref, _text, _preciou, _inv, _inv2, _width, _height, _img, _prodid, _bc, _tc, _promo, _cliente_original, _consecutivo);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
Debug.locals.put("Text", _text);
Debug.locals.put("precioU", _preciou);
Debug.locals.put("inv", _inv);
Debug.locals.put("inv2", _inv2);
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);
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente_original", _cliente_original);
Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 532;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
Debug.ShouldStop(524288);
 BA.debugLineNum = 533;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(1048576);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 534;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(2097152);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 535;BA.debugLine="cs.Initialize";
Debug.ShouldStop(4194304);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 536;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(8388608);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
 BA.debugLineNum = 537;BA.debugLine="p.LoadLayout(\"prodItem2\")";
Debug.ShouldStop(16777216);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem2")),__ref.getField(false, "ba"));
 BA.debugLineNum = 538;BA.debugLine="p_prods.Color = bc";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",_bc);
 BA.debugLineNum = 539;BA.debugLine="l_prodX.TextColor = tc";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextColor",_tc);
 BA.debugLineNum = 540;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
Debug.ShouldStop(134217728);
_preciou = (RemoteObject.concat(RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable("")));Debug.locals.put("precioU", _preciou);
 BA.debugLineNum = 541;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_text,c_productos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)));
 BA.debugLineNum = 542;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",_promo,BA.ObjectToString("1")) && RemoteObject.solveBoolean("=",_preciou,BA.NumberToString(0))) { 
 BA.debugLineNum = 543;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_productos.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 123)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_text,c_productos.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)))).runMethod(false,"PopAll").getObject()));
 };
 BA.debugLineNum = 546;BA.debugLine="Log(inv&\" inventario 1\")";
Debug.ShouldStop(2);
c_productos.__c.runVoidMethod ("LogImpl","824838158",RemoteObject.concat(_inv,RemoteObject.createImmutable(" inventario 1")),0);
 BA.debugLineNum = 547;BA.debugLine="Log(inv2&\" inventario 2\")";
Debug.ShouldStop(4);
c_productos.__c.runVoidMethod ("LogImpl","824838159",RemoteObject.concat(_inv2,RemoteObject.createImmutable(" inventario 2")),0);
 BA.debugLineNum = 548;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
Debug.ShouldStop(8);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(false,"setTag",((RemoteObject.concat(RemoteObject.createImmutable("ID: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),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)((_text))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Precio: $"),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable(""),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_productos.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Inv: "),c_productos.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_inv))),RemoteObject.createImmutable(" pzs")))));
 BA.debugLineNum = 550;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
Debug.ShouldStop(32);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_productos.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 551;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)";
Debug.ShouldStop(64);
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_productos.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 552;BA.debugLine="p_prods.Tag = l_pCantC.tag";
Debug.ShouldStop(128);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(false,"setTag",__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(false,"getTag"));
 BA.debugLineNum = 554;BA.debugLine="l_pCantC.Text = NumberFormat2(inv,0,0,0,False)";
Debug.ShouldStop(512);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_productos.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _inv)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_productos.__c.getField(true,"False")))));
 BA.debugLineNum = 558;BA.debugLine="l_pCantC.BringToFront";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 559;BA.debugLine="et_pCantC.SendToBack";
Debug.ShouldStop(16384);
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runVoidMethod ("SendToBack");
 BA.debugLineNum = 560;BA.debugLine="p_botMasMen.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_botmasmen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 561;BA.debugLine="l_piezas.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_piezas" /*RemoteObject*/ ).runMethod(true,"setVisible",c_productos.__c.getField(true,"False"));
 BA.debugLineNum = 563;BA.debugLine="Return p";
Debug.ShouldStop(262144);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 564;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cuentaprods(RemoteObject __ref,RemoteObject _accion) throws Exception{
try {
		Debug.PushSubsStack("cuentaProds (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,943);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_productos","cuentaprods", __ref, _accion);}
Debug.locals.put("accion", _accion);
 BA.debugLineNum = 943;BA.debugLine="Sub cuentaProds(accion As String)";
Debug.ShouldStop(16384);
 BA.debugLineNum = 1105;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,370);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_productos","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 370;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(131072);
 BA.debugLineNum = 373;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,57);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_productos","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 57;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 58;BA.debugLine="Return Me";
Debug.ShouldStop(33554432);
if (true) return __ref;
 BA.debugLineNum = 59;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_pcant_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_pCant_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,1112);
if (RapidSub.canDelegate("l_pcant_click")) { return __ref.runUserSub(false, "c_productos","l_pcant_click", __ref);}
 BA.debugLineNum = 1112;BA.debugLine="Private Sub l_pCant_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 1114;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_pcantc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_pCantC_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,934);
if (RapidSub.canDelegate("l_pcantc_click")) { return __ref.runUserSub(false, "c_productos","l_pcantc_click", __ref);}
 BA.debugLineNum = 934;BA.debugLine="Private Sub l_pCantC_Click";
Debug.ShouldStop(32);
 BA.debugLineNum = 936;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _listview1_itemlongclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("ListView1_ItemLongClick (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,387);
if (RapidSub.canDelegate("listview1_itemlongclick")) { return __ref.runUserSub(false, "c_productos","listview1_itemlongclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 387;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
Debug.ShouldStop(4);
 BA.debugLineNum = 431;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv2_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv2_ItemClick (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,433);
if (RapidSub.canDelegate("lv2_itemclick")) { return __ref.runUserSub(false, "c_productos","lv2_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 433;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
Debug.ShouldStop(65536);
 BA.debugLineNum = 494;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_prods_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_prods_Click (c_productos) ","c_productos",18,__ref.getField(false, "ba"),__ref,1116);
if (RapidSub.canDelegate("p_prods_click")) { return __ref.runUserSub(false, "c_productos","p_prods_click", __ref);}
 BA.debugLineNum = 1116;BA.debugLine="Sub p_prods_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 1117;BA.debugLine="Log(Sender.As(Panel).tag)";
Debug.ShouldStop(268435456);
c_productos.__c.runVoidMethod ("LogImpl","825493505",BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_productos.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")),0);
 BA.debugLineNum = 1118;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}