package gunav2.keymon.com.mx;

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

public class c_nota_subs_0 {


public static RemoteObject  _activity_pause(RemoteObject __ref,RemoteObject _userclosed) throws Exception{
try {
		Debug.PushSubsStack("Activity_Pause (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,393);
if (RapidSub.canDelegate("activity_pause")) { return __ref.runUserSub(false, "c_nota","activity_pause", __ref, _userclosed);}
Debug.locals.put("UserClosed", _userclosed);
 BA.debugLineNum = 393;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
Debug.ShouldStop(256);
 BA.debugLineNum = 395;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_desc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_desc_Click (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,1060);
if (RapidSub.canDelegate("b_desc_click")) { return __ref.runUserSub(false, "c_nota","b_desc_click", __ref);}
 BA.debugLineNum = 1060;BA.debugLine="Sub b_desc_Click";
Debug.ShouldStop(8);
 BA.debugLineNum = 1061;BA.debugLine="If DESCUENTO = \"MENOS\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_descuento" /*RemoteObject*/ ),BA.ObjectToString("MENOS"))) { 
 BA.debugLineNum = 1062;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(32);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1063;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(64);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1064;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(128);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1065;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 1066;BA.debugLine="c.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1067;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(1024);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1068;BA.debugLine="c.Close";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1069;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1070;BA.debugLine="c.Position=0";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1071;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(16384);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1072;BA.debugLine="c.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1073;BA.debugLine="result =  Msgbox2(\"Seguro que desa dar descuento";
Debug.ShouldStop(65536);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desa dar descuento del 5%?")),(Object)(BA.ObjectToCharSequence("Dar descuento")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 1074;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE ped";
Debug.ShouldStop(262144);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE pedido SET PE_COSTO_TOT = PE_COSTO_TOT * .95, PE_DESC = 5 WHERE PE_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1076;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 1077;BA.debugLine="c.Position=0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1078;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(2097152);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1079;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
Debug.ShouldStop(4194304);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 1080;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1081;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16777216);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else 
{ BA.debugLineNum = 1083;BA.debugLine="ELSE IF DESCUENTO = \"MAS\" Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_descuento" /*RemoteObject*/ ),BA.ObjectToString("MAS"))) { 
 BA.debugLineNum = 1084;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(134217728);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1085;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(268435456);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1086;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(536870912);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1087;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 1088;BA.debugLine="c.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1089;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(1);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1090;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1091;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1092;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1093;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(16);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1094;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1095;BA.debugLine="result =  Msgbox2(\"Seguro que desa CANCELAR el d";
Debug.ShouldStop(64);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desa CANCELAR el descuento?")),(Object)(BA.ObjectToCharSequence("Cancelar descuento")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 1096;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1097;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE ped";
Debug.ShouldStop(256);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE pedido SET PE_COSTO_TOT = PE_COSTO_TOT / .95, PE_DESC = 0 WHERE PE_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1098;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 1099;BA.debugLine="c.Position=0";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1100;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(2048);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1101;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
Debug.ShouldStop(4096);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 1102;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1103;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16384);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }}
;
 BA.debugLineNum = 1106;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
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_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,250);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_nota","b4xpage_appear", __ref);}
RemoteObject _cd = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.ColorDrawable");
int _i = 0;
RemoteObject _nombre = RemoteObject.createImmutable("");
RemoteObject _cantidad = RemoteObject.createImmutable("");
RemoteObject _folioitem = RemoteObject.createImmutable("");
RemoteObject _cedis = RemoteObject.createImmutable("");
RemoteObject _precio = RemoteObject.createImmutable(0);
RemoteObject _colortitulo = RemoteObject.createImmutable(0);
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
RemoteObject _s3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _s = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _s5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _future = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 250;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 253;BA.debugLine="b_desc.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_b_desc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"False"));
 BA.debugLineNum = 255;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(1073741824);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 256;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
Debug.ShouldStop(-2147483648);
c_nota.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(c_nota.__c.getField(true,"True")));
 BA.debugLineNum = 257;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(1);
c_nota.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_nota._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 };
 BA.debugLineNum = 260;BA.debugLine="p_nota.Height = Root.Height * 0.9";
Debug.ShouldStop(8);
__ref.getField(false,"_p_nota" /*RemoteObject*/ ).runMethod(true,"setHeight",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.9)}, "*",0, 0)));
 BA.debugLineNum = 261;BA.debugLine="p_nota.Width = Root.Width * 0.9";
Debug.ShouldStop(16);
__ref.getField(false,"_p_nota" /*RemoteObject*/ ).runMethod(true,"setWidth",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(0.9)}, "*",0, 0)));
 BA.debugLineNum = 262;BA.debugLine="Panel1.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 266;BA.debugLine="ListView1.Color = Colors.White";
Debug.ShouldStop(512);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("setColor",c_nota.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 269;BA.debugLine="Dim cd As ColorDrawable";
Debug.ShouldStop(4096);
_cd = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.ColorDrawable");Debug.locals.put("cd", _cd);
 BA.debugLineNum = 270;BA.debugLine="cd.Initialize(Colors.White, 0)";
Debug.ShouldStop(8192);
_cd.runVoidMethod ("Initialize",(Object)(c_nota.__c.getField(false,"Colors").getField(true,"White")),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 271;BA.debugLine="ListView1.SingleLineLayout.Background = cd";
Debug.ShouldStop(16384);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").setField ("Background",(_cd.getObject()));
 BA.debugLineNum = 274;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(131072);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 275;BA.debugLine="ListView1.Height = Root.Height * 0.55";
Debug.ShouldStop(262144);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(true,"setHeight",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.55)}, "*",0, 0)));
 BA.debugLineNum = 276;BA.debugLine="ListView1.SingleLineLayout.ItemHeight = 110dip";
Debug.ShouldStop(524288);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").runMethod(true,"setItemHeight",c_nota.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 110))));
 BA.debugLineNum = 277;BA.debugLine="ListView1.SingleLineLayout.Label.Left = 15dip";
Debug.ShouldStop(1048576);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label").runMethod(true,"setLeft",c_nota.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 15))));
 BA.debugLineNum = 278;BA.debugLine="ListView1.SingleLineLayout.Label.Width = ListView";
Debug.ShouldStop(2097152);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label").runMethod(true,"setWidth",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(true,"getWidth"),c_nota.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 30)))}, "-",1, 1));
 BA.debugLineNum = 282;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";
Debug.ShouldStop(33554432);
c_nota._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_nota._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PE_PRONOMBRE, PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS, IFNULL(PE_RECALCULOTOT,0) AS PE_RECALCULOTOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS desc"))));__ref.setField("_c",c_nota._c);
 BA.debugLineNum = 284;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 285;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(268435456);
{
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 = 286;BA.debugLine="c.Position = i";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 288;BA.debugLine="Dim Nombre As String = c.GetString(\"PE_PRONOMBR";
Debug.ShouldStop(-2147483648);
_nombre = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")));Debug.locals.put("Nombre", _nombre);Debug.locals.put("Nombre", _nombre);
 BA.debugLineNum = 289;BA.debugLine="Dim Cantidad As String = c.GetString(\"PE_CANT\")";
Debug.ShouldStop(1);
_cantidad = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("Cantidad", _cantidad);Debug.locals.put("Cantidad", _cantidad);
 BA.debugLineNum = 290;BA.debugLine="Dim FolioItem As String = c.GetString(\"PE_FOLIO";
Debug.ShouldStop(2);
_folioitem = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")));Debug.locals.put("FolioItem", _folioitem);Debug.locals.put("FolioItem", _folioitem);
 BA.debugLineNum = 291;BA.debugLine="Dim Cedis As String = c.GetString(\"PE_CEDIS\")";
Debug.ShouldStop(4);
_cedis = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")));Debug.locals.put("Cedis", _cedis);Debug.locals.put("Cedis", _cedis);
 BA.debugLineNum = 293;BA.debugLine="Dim Precio As Double = IIf(c.GetDouble(\"PE_RECA";
Debug.ShouldStop(16);
_precio = BA.numberCast(double.class, ((RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PE_RECALCULOTOT"))),BA.numberCast(double.class, 0))) ? ((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))) : ((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PE_RECALCULOTOT")))))));Debug.locals.put("Precio", _precio);Debug.locals.put("Precio", _precio);
 BA.debugLineNum = 296;BA.debugLine="If c.GetString(\"PE_FOLIO\") = \"PREVENTA_FUTURA\"";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 297;BA.debugLine="Dim ColorTitulo As Int = Colors.Red";
Debug.ShouldStop(256);
_colortitulo = c_nota.__c.getField(false,"Colors").getField(true,"Red");Debug.locals.put("ColorTitulo", _colortitulo);Debug.locals.put("ColorTitulo", _colortitulo);
 }else {
 BA.debugLineNum = 299;BA.debugLine="Dim ColorTitulo As Int = Colors.Black";
Debug.ShouldStop(1024);
_colortitulo = c_nota.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("ColorTitulo", _colortitulo);Debug.locals.put("ColorTitulo", _colortitulo);
 };
 BA.debugLineNum = 301;BA.debugLine="If Cedis.Contains(\"PRO\") Or Not(IsNumber(Cedis)";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(".",_cedis.runMethod(true,"contains",(Object)(RemoteObject.createImmutable("PRO")))) || RemoteObject.solveBoolean(".",c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))))) { 
 BA.debugLineNum = 303;BA.debugLine="If c.GetString(\"PE_FOLIO\") = \"PREVENTA_FUTURA\"";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))),BA.ObjectToString("PREVENTA_FUTURA"))) { 
 BA.debugLineNum = 305;BA.debugLine="ColorTitulo = Colors.RGB(166, 0, 0) ' Azul Fu";
Debug.ShouldStop(65536);
_colortitulo = c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 166)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("ColorTitulo", _colortitulo);
 }else {
 BA.debugLineNum = 307;BA.debugLine="ColorTitulo = Colors.RGB(0, 70, 180) ' Azul F";
Debug.ShouldStop(262144);
_colortitulo = c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 70)),(Object)(BA.numberCast(int.class, 180)));Debug.locals.put("ColorTitulo", _colortitulo);
 };
 };
 BA.debugLineNum = 311;BA.debugLine="Dim cs As CSBuilder";
Debug.ShouldStop(4194304);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 312;BA.debugLine="cs.Initialize";
Debug.ShouldStop(8388608);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 314;BA.debugLine="cs.Size(19).Typeface(Typeface.DEFAULT_BOLD).Col";
Debug.ShouldStop(33554432);
_cs.runMethod(false,"Size",(Object)(BA.numberCast(int.class, 19))).runMethod(false,"Typeface",(Object)(c_nota.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD"))).runMethod(false,"Color",(Object)(_colortitulo)).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_nombre))).runMethod(false,"Pop").runVoidMethod ("Pop");
 BA.debugLineNum = 315;BA.debugLine="cs.Append(CRLF)";
Debug.ShouldStop(67108864);
_cs.runVoidMethod ("Append",(Object)(BA.ObjectToCharSequence(c_nota.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 318;BA.debugLine="cs.Size(15).Color(Colors.RGB(50, 50, 50)).Appen";
Debug.ShouldStop(536870912);
_cs.runMethod(false,"Size",(Object)(BA.numberCast(int.class, 15))).runMethod(false,"Color",(Object)(c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 50)),(Object)(BA.numberCast(int.class, 50)),(Object)(BA.numberCast(int.class, 50))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(" Cant: ")))).runMethod(false,"Color",(Object)(c_nota.__c.getField(false,"Colors").getField(true,"Black"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(_cantidad))).runVoidMethod ("Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("   "))));
 BA.debugLineNum = 319;BA.debugLine="cs.Color(Colors.RGB(50, 50, 50)).Append(\"Total:";
Debug.ShouldStop(1073741824);
_cs.runMethod(false,"Color",(Object)(c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 50)),(Object)(BA.numberCast(int.class, 50)),(Object)(BA.numberCast(int.class, 50))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Total: ")))).runMethod(false,"Color",(Object)(c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 120)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Typeface",(Object)(c_nota.__c.getField(false,"Typeface").getField(false,"DEFAULT_BOLD"))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("$"),c_nota.__c.runMethod(true,"NumberFormat2",(Object)(_precio),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"True"))))))).runMethod(false,"Pop").runMethod(false,"Pop").runVoidMethod ("Pop");
 BA.debugLineNum = 320;BA.debugLine="cs.Append(CRLF)";
Debug.ShouldStop(-2147483648);
_cs.runVoidMethod ("Append",(Object)(BA.ObjectToCharSequence(c_nota.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 323;BA.debugLine="cs.Size(13).Color(Colors.RGB(100, 100, 100)).Ap";
Debug.ShouldStop(4);
_cs.runMethod(false,"Size",(Object)(BA.numberCast(int.class, 13))).runMethod(false,"Color",(Object)(c_nota.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 100)),(Object)(BA.numberCast(int.class, 100)),(Object)(BA.numberCast(int.class, 100))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable(" Folio: "),_folioitem,RemoteObject.createImmutable(" | "),_cedis)))).runVoidMethod ("PopAll");
 BA.debugLineNum = 325;BA.debugLine="ListView1.AddSingleLine(cs)";
Debug.ShouldStop(16);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(_cs.getObject())));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 328;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 330;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as EXISTE from pedido_cliente WHERE pc_cliente IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 331;BA.debugLine="C.Position=0";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 332;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
Debug.ShouldStop(2048);
__ref.setField ("_existe" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("EXISTE"))));
 BA.debugLineNum = 333;BA.debugLine="L_CANT.Text = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 334;BA.debugLine="If Existe <> 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_existe" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 335;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(P";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select SUM(PE_CANT) AS PE_CANT from pedido where pe_cliente in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))));
 BA.debugLineNum = 336;BA.debugLine="C.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 337;BA.debugLine="L_CANT.Text = c.GetString(\"PE_CANT\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))));
 BA.debugLineNum = 339;BA.debugLine="c.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 340;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(I";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select SUM(IFNULL(PE_DESC,0)) AS DESCUENTO FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 341;BA.debugLine="c.Position=0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 342;BA.debugLine="DESC = c.GetString(\"DESCUENTO\")";
Debug.ShouldStop(2097152);
__ref.setField ("_desc" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("DESCUENTO"))));
 BA.debugLineNum = 343;BA.debugLine="b_desc.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b_desc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"False"));
 BA.debugLineNum = 346;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(33554432);
_s3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_s3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(""),RemoteObject.createImmutable("null")}))));Debug.locals.put("s3", _s3);Debug.locals.put("s3", _s3);
 BA.debugLineNum = 347;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)";
Debug.ShouldStop(67108864);
c_nota.__c.runVoidMethod ("LogImpl","076677217",BA.NumberToString(_s3.runMethod(true,"getRowCount")),c_nota.__c.getField(false,"Colors").getField(true,"Yellow"));
 BA.debugLineNum = 348;BA.debugLine="If s3.RowCount > 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",_s3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 349;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(268435456);
_s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_s = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(""),RemoteObject.createImmutable("null")}))));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 350;BA.debugLine="s.Position=0";
Debug.ShouldStop(536870912);
_s.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 351;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.E";
Debug.ShouldStop(1073741824);
_s5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_s5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(""),RemoteObject.createImmutable("null")}))));Debug.locals.put("s5", _s5);Debug.locals.put("s5", _s5);
 BA.debugLineNum = 352;BA.debugLine="s5.Position = 0";
Debug.ShouldStop(-2147483648);
_s5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 353;BA.debugLine="L_TOTAL.Text =NumberFormat2(s.GetString(\"TOTAL_";
Debug.ShouldStop(1);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _s.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),BA.numberCast(double.class, _s5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))))}, "+",1, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"True")))));
 BA.debugLineNum = 354;BA.debugLine="s.Close";
Debug.ShouldStop(2);
_s.runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 355;BA.debugLine="Else If s3.RowCount = 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_s3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 356;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exec";
Debug.ShouldStop(8);
_s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_s = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 357;BA.debugLine="s.Position=0";
Debug.ShouldStop(16);
_s.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 358;BA.debugLine="L_TOTAL.Text =NumberFormat2(s.GetString(\"TOTAL_";
Debug.ShouldStop(32);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _s.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"True")))));
 BA.debugLineNum = 359;BA.debugLine="s.Close";
Debug.ShouldStop(64);
_s.runVoidMethod ("Close");
 }}
;
 BA.debugLineNum = 362;BA.debugLine="L_TOTAL.text = Subs.calculaTotalConPromoXRango(S";
Debug.ShouldStop(512);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 };
 BA.debugLineNum = 368;BA.debugLine="L_TOTAL.Text = Subs.calculaTotalConPromoXRango(Su";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 BA.debugLineNum = 370;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(131072);
_future = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_future = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTAFUTURA")}))));Debug.locals.put("future", _future);Debug.locals.put("future", _future);
 BA.debugLineNum = 371;BA.debugLine="If future.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_future.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 372;BA.debugLine="future.Position = 0";
Debug.ShouldStop(524288);
_future.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 373;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_future.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR"))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 374;BA.debugLine="Panel3.Visible = True";
Debug.ShouldStop(2097152);
__ref.getField(false,"_panel3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 375;BA.debugLine="l_ocul.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_ocul" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"False"));
 BA.debugLineNum = 376;BA.debugLine="l_desct.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_desct" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"False"));
 BA.debugLineNum = 377;BA.debugLine="l_descacor.Text = NumberFormat2( (Subs.calculaT";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_descacor" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango4" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango1" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")))))}, "-",1, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"False")))));
 BA.debugLineNum = 378;BA.debugLine="l_descpre.Text = NumberFormat2( (Subs.calculaTo";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_descpre" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango3" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")))))}, "-",1, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"False")))));
 BA.debugLineNum = 379;BA.debugLine="L_PREVENTA.Text = Subs.calculaTotalConPromoXRan";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_preventa" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 BA.debugLineNum = 380;BA.debugLine="L_FUTURO.Text = Subs.calculaTotalConPromoXRango";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_futuro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango1" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 }else 
{ BA.debugLineNum = 381;BA.debugLine="Else If future.GetInt(\"CAT_VA_VALOR\") = 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_future.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR"))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 382;BA.debugLine="Panel3.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_panel3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"False"));
 BA.debugLineNum = 383;BA.debugLine="l_ocul.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_ocul" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 384;BA.debugLine="l_desct.Visible = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_desct" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 385;BA.debugLine="l_desct.Text = NumberFormat2( (Subs.calculaTota";
Debug.ShouldStop(1);
__ref.getField(false,"_l_desct" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango3" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),BA.numberCast(double.class, c_nota._subs.runMethod(true,"_calculatotalconpromoxrango2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")))))}, "-",1, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_nota.__c.getField(true,"False")))));
 BA.debugLineNum = 386;BA.debugLine="L_PREVENTA.Text = Subs.calculaTotalConPromoXRan";
Debug.ShouldStop(2);
__ref.getField(false,"_l_preventa" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 BA.debugLineNum = 387;BA.debugLine="L_FUTURO.Text = Subs.calculaTotalConPromoXRango";
Debug.ShouldStop(4);
__ref.getField(false,"_l_futuro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_nota._subs.runMethod(true,"_calculatotalconpromoxrango1" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_nota._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))));
 }}
;
 };
 BA.debugLineNum = 391;BA.debugLine="End Sub";
Debug.ShouldStop(64);
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_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,406);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_nota","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.c_nota parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.c_nota parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,406);
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 = 409;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(16777216);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 410;BA.debugLine="Return False";
Debug.ShouldStop(33554432);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 411;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
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_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,48);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_nota","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 48;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(32768);
 BA.debugLineNum = 49;BA.debugLine="Root = Root1";
Debug.ShouldStop(65536);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 50;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(131072);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_nota.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 51;BA.debugLine="Root.LoadLayout(\"nota\")";
Debug.ShouldStop(262144);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("nota")),__ref.getField(false, "ba"));
 BA.debugLineNum = 52;BA.debugLine="borra.Visible = True";
Debug.ShouldStop(524288);
__ref.getField(false,"_borra" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 53;BA.debugLine="Titulo.Text = \"Pedido Actual\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_titulo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Pedido Actual"));
 BA.debugLineNum = 60;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borra_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("borra_Click (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,413);
if (RapidSub.canDelegate("borra_click")) { return __ref.runUserSub(false, "c_nota","borra_click", __ref);}
int _i = 0;
 BA.debugLineNum = 413;BA.debugLine="Sub borra_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 418;BA.debugLine="If Not(Subs.revisaImpreso) Then";
Debug.ShouldStop(2);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota._subs.runMethod(true,"_revisaimpreso" /*RemoteObject*/ ,__ref.getField(false, "ba")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 420;BA.debugLine="result =  Msgbox2(\"Seguro que desa borrar el pe";
Debug.ShouldStop(8);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?")),(Object)(BA.ObjectToCharSequence("Cancelar pedido")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 421;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 422;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE_";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'"))));
 BA.debugLineNum = 423;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 424;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(128);
{
final int step6 = 1;
final int limit6 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step6 > 0 && _i <= limit6) || (step6 < 0 && _i >= limit6) ;_i = ((int)(0 + _i + step6))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 425;BA.debugLine="c.Position=i";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 426;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"updat";
Debug.ShouldStop(512);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?")))),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))})))));
 BA.debugLineNum = 427;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(1024);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO  INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 430;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
Debug.ShouldStop(8192);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 431;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
Debug.ShouldStop(16384);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 432;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE km";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 433;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(65536);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 439;BA.debugLine="Log(\"Aqui\")";
Debug.ShouldStop(4194304);
c_nota.__c.runVoidMethod ("LogImpl","077004826",RemoteObject.createImmutable("Aqui"),0);
 BA.debugLineNum = 440;BA.debugLine="Log(Subs.traeAlmacen)";
Debug.ShouldStop(8388608);
c_nota.__c.runVoidMethod ("LogImpl","077004827",c_nota._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),0);
 BA.debugLineNum = 441;BA.debugLine="If Subs.traeAlmacen = 94 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",c_nota._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(94))) { 
 BA.debugLineNum = 442;BA.debugLine="Log(\"Aqui\")";
Debug.ShouldStop(33554432);
c_nota.__c.runVoidMethod ("LogImpl","077004829",RemoteObject.createImmutable("Aqui"),0);
 BA.debugLineNum = 444;BA.debugLine="result =  Msgbox2(\"Seguro que desa borrar el p";
Debug.ShouldStop(134217728);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?")),(Object)(BA.ObjectToCharSequence("Cancelar pedido")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 445;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 446;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'"))));
 BA.debugLineNum = 447;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 448;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(-2147483648);
{
final int step26 = 1;
final int limit26 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step26 > 0 && _i <= limit26) || (step26 < 0 && _i >= limit26) ;_i = ((int)(0 + _i + step26))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 449;BA.debugLine="c.Position=i";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 450;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"upda";
Debug.ShouldStop(2);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?")))),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))})))));
 BA.debugLineNum = 451;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER";
Debug.ShouldStop(4);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO  INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
Debug.ShouldStop(32);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 455;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
Debug.ShouldStop(64);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 456;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k";
Debug.ShouldStop(128);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 457;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 se";
Debug.ShouldStop(256);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 458;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRED";
Debug.ShouldStop(512);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 459;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1024);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 465;BA.debugLine="Log(\"aqui\")";
Debug.ShouldStop(65536);
c_nota.__c.runVoidMethod ("LogImpl","077004852",RemoteObject.createImmutable("aqui"),0);
 BA.debugLineNum = 466;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, no";
Debug.ShouldStop(131072);
c_nota.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!")),(Object)(c_nota.__c.getField(true,"True")));
 BA.debugLineNum = 467;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicketI";
Debug.ShouldStop(262144);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(false,"_p_transparenteticketimpreso" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 468;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
Debug.ShouldStop(524288);
c_nota._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cliente")));
 };
 };
 BA.debugLineNum = 513;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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_nota._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_nota._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_nota._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_nota._xui);
 //BA.debugLineNum = 5;BA.debugLine="Dim skmt As SQL";
c_nota._skmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_skmt",c_nota._skmt);
 //BA.debugLineNum = 6;BA.debugLine="Dim g As GPS";
c_nota._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_nota._g);
 //BA.debugLineNum = 7;BA.debugLine="Dim clie_id As String";
c_nota._clie_id = RemoteObject.createImmutable("");__ref.setField("_clie_id",c_nota._clie_id);
 //BA.debugLineNum = 8;BA.debugLine="Dim sDate,sTime As String";
c_nota._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_nota._sdate);
c_nota._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_nota._stime);
 //BA.debugLineNum = 9;BA.debugLine="Dim usuario As String";
c_nota._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_nota._usuario);
 //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor";
c_nota._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_nota._c);
 //BA.debugLineNum = 12;BA.debugLine="Dim ruta As String";
c_nota._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",c_nota._ruta);
 //BA.debugLineNum = 13;BA.debugLine="Dim Regresar As Button";
c_nota._regresar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_regresar",c_nota._regresar);
 //BA.debugLineNum = 15;BA.debugLine="Dim ListView1 As ListView";
c_nota._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_nota._listview1);
 //BA.debugLineNum = 16;BA.debugLine="Dim L_CANT As Label";
c_nota._l_cant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cant",c_nota._l_cant);
 //BA.debugLineNum = 17;BA.debugLine="Dim L_TOTAL As Label";
c_nota._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_nota._l_total);
 //BA.debugLineNum = 18;BA.debugLine="Dim borra As Button";
c_nota._borra = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_borra",c_nota._borra);
 //BA.debugLineNum = 19;BA.debugLine="Dim Existe As String";
c_nota._existe = RemoteObject.createImmutable("");__ref.setField("_existe",c_nota._existe);
 //BA.debugLineNum = 20;BA.debugLine="Dim result As String";
c_nota._result = RemoteObject.createImmutable("");__ref.setField("_result",c_nota._result);
 //BA.debugLineNum = 22;BA.debugLine="Dim DESC As String";
c_nota._desc = RemoteObject.createImmutable("");__ref.setField("_desc",c_nota._desc);
 //BA.debugLineNum = 23;BA.debugLine="Dim c2, j3 As Cursor";
c_nota._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_nota._c2);
c_nota._j3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_j3",c_nota._j3);
 //BA.debugLineNum = 24;BA.debugLine="Private Titulo As Label";
c_nota._titulo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_titulo",c_nota._titulo);
 //BA.debugLineNum = 25;BA.debugLine="Private b_desc As Button";
c_nota._b_desc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_desc",c_nota._b_desc);
 //BA.debugLineNum = 26;BA.debugLine="Dim DESCUENTO As String";
c_nota._descuento = RemoteObject.createImmutable("");__ref.setField("_descuento",c_nota._descuento);
 //BA.debugLineNum = 27;BA.debugLine="Dim folio As String";
c_nota._folio = RemoteObject.createImmutable("");__ref.setField("_folio",c_nota._folio);
 //BA.debugLineNum = 28;BA.debugLine="Dim tgl As Toggle";
c_nota._tgl = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_tgl",c_nota._tgl);
 //BA.debugLineNum = 29;BA.debugLine="Private almacen As String";
c_nota._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_nota._almacen);
 //BA.debugLineNum = 30;BA.debugLine="Private p_nota As Panel";
c_nota._p_nota = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_nota",c_nota._p_nota);
 //BA.debugLineNum = 31;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
c_nota._tipo_venta = c_nota._subs.runMethod(true,"_traetipoventadebd" /*RemoteObject*/ ,__ref.getField(false, "ba"));__ref.setField("_tipo_venta",c_nota._tipo_venta);
 //BA.debugLineNum = 32;BA.debugLine="Private Panel1 As Panel";
c_nota._panel1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel1",c_nota._panel1);
 //BA.debugLineNum = 33;BA.debugLine="Private Panel3 As Panel";
c_nota._panel3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel3",c_nota._panel3);
 //BA.debugLineNum = 34;BA.debugLine="Private L_FUTURO As Label";
c_nota._l_futuro = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_futuro",c_nota._l_futuro);
 //BA.debugLineNum = 35;BA.debugLine="Private L_PREVENTA As Label";
c_nota._l_preventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_preventa",c_nota._l_preventa);
 //BA.debugLineNum = 36;BA.debugLine="Private l_descacor As Label";
c_nota._l_descacor = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_descacor",c_nota._l_descacor);
 //BA.debugLineNum = 37;BA.debugLine="Private l_descpre As Label";
c_nota._l_descpre = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_descpre",c_nota._l_descpre);
 //BA.debugLineNum = 38;BA.debugLine="Private l_ocul As Label";
c_nota._l_ocul = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ocul",c_nota._l_ocul);
 //BA.debugLineNum = 39;BA.debugLine="Private l_desct As Label";
c_nota._l_desct = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_desct",c_nota._l_desct);
 //BA.debugLineNum = 40;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,397);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_nota","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 397;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 400;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
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_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,43);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_nota","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 43;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(1024);
 BA.debugLineNum = 44;BA.debugLine="Return Me";
Debug.ShouldStop(2048);
if (true) return __ref;
 BA.debugLineNum = 45;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable(null);
}
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_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,515);
if (RapidSub.canDelegate("listview1_itemlongclick")) { return __ref.runUserSub(false, "c_nota","listview1_itemlongclick", __ref, _position, _value);}
RemoteObject _x = null;
RemoteObject _nom = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _palabrafinal = RemoteObject.createImmutable("");
RemoteObject _cedis = RemoteObject.createImmutable("");
RemoteObject _foliu = RemoteObject.createImmutable("");
RemoteObject _cx = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _j = 0;
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 515;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
Debug.ShouldStop(4);
 BA.debugLineNum = 516;BA.debugLine="Log(Subs.traeTablaProds(tipo_venta))";
Debug.ShouldStop(8);
c_nota.__c.runVoidMethod ("LogImpl","077070337",c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ ))),0);
 BA.debugLineNum = 517;BA.debugLine="Log(Value)";
Debug.ShouldStop(16);
c_nota.__c.runVoidMethod ("LogImpl","077070338",BA.ObjectToString(_value),0);
 BA.debugLineNum = 518;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
Debug.ShouldStop(32);
_x = c_nota.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 519;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(64);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 521;BA.debugLine="For i = 0 To X.Length - 1";
Debug.ShouldStop(256);
{
final int step5 = 1;
final int limit5 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 522;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(512);
if (c_nota.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 524;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(2048);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 528;BA.debugLine="Dim palabraFinal As String = X(i).Replace(CRLF,";
Debug.ShouldStop(32768);
_palabrafinal = _x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"replace",(Object)(c_nota.__c.getField(true,"CRLF")),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("palabraFinal", _palabrafinal);Debug.locals.put("palabraFinal", _palabrafinal);
 BA.debugLineNum = 531;BA.debugLine="nom = nom & \" \" & palabraFinal";
Debug.ShouldStop(262144);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_palabrafinal);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 533;BA.debugLine="Exit";
Debug.ShouldStop(1048576);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 536;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(8388608);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 537;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(16777216);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 BA.debugLineNum = 538;BA.debugLine="Private foliu As String = X(X.Length-3)";
Debug.ShouldStop(33554432);
_foliu = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(3)}, "-",1, 1));Debug.locals.put("foliu", _foliu);Debug.locals.put("foliu", _foliu);
 BA.debugLineNum = 539;BA.debugLine="Log(nom)";
Debug.ShouldStop(67108864);
c_nota.__c.runVoidMethod ("LogImpl","077070360",_nom,0);
 BA.debugLineNum = 540;BA.debugLine="Log(cedis)";
Debug.ShouldStop(134217728);
c_nota.__c.runVoidMethod ("LogImpl","077070361",_cedis,0);
 BA.debugLineNum = 541;BA.debugLine="Log(foliu)";
Debug.ShouldStop(268435456);
c_nota.__c.runVoidMethod ("LogImpl","077070362",_foliu,0);
 BA.debugLineNum = 542;BA.debugLine="Dim cx As Cursor = B4XPages.MainPage.skmt.ExecQue";
Debug.ShouldStop(536870912);
_cx = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cx = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE, PE_CEDIS/1 AS is_numeric FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and is_numeric > 0 and pe_cliente in (Select CUENTA from cuentaa) and PE_RECALCULO > 0"))))));Debug.locals.put("cx", _cx);Debug.locals.put("cx", _cx);
 BA.debugLineNum = 543;BA.debugLine="Log(\"Recalculados: \" & cx.RowCount)";
Debug.ShouldStop(1073741824);
c_nota.__c.runVoidMethod ("LogImpl","077070364",RemoteObject.concat(RemoteObject.createImmutable("Recalculados: "),_cx.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 544;BA.debugLine="If cx.RowCount > 0 Then ' Si hay recalculo (produ";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_cx.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 545;BA.debugLine="result =  Msgbox2(\"Si se borra este producto, se";
Debug.ShouldStop(1);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Si se borra este producto, se va a borrar el pedido COMPLETO, ¿desea continuar?")),(Object)(BA.ObjectToCharSequence("Borrar pedido completo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 546;BA.debugLine="If result = DialogResponse.NEGATIVE Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"NEGATIVE")))) { 
 BA.debugLineNum = 547;BA.debugLine="Return";
Debug.ShouldStop(4);
if (true) return RemoteObject.createImmutable("");
 }else {
 BA.debugLineNum = 549;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido w";
Debug.ShouldStop(16);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 550;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
Debug.ShouldStop(32);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)")));
 BA.debugLineNum = 551;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(64);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 552;BA.debugLine="Return";
Debug.ShouldStop(128);
if (true) return RemoteObject.createImmutable("");
 };
 };
 BA.debugLineNum = 555;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT HABI";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADA FROM IMPRESORA"))));
 BA.debugLineNum = 556;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 = 557;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 558;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADA"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 559;BA.debugLine="If Not(Subs.revisaImpreso) Then";
Debug.ShouldStop(16384);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota._subs.runMethod(true,"_revisaimpreso" /*RemoteObject*/ ,__ref.getField(false, "ba")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 560;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar est";
Debug.ShouldStop(32768);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 561;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 562;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 563;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
Debug.ShouldStop(262144);
c_nota.__c.runVoidMethod ("LogImpl","077070384",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 564;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(524288);
c_nota.__c.runVoidMethod ("LogImpl","077070385",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 565;BA.debugLine="Log(\"AQUI ESTOY\")";
Debug.ShouldStop(1048576);
c_nota.__c.runVoidMethod ("LogImpl","077070386",RemoteObject.createImmutable("AQUI ESTOY"),0);
 BA.debugLineNum = 566;BA.debugLine="Log(cedis)";
Debug.ShouldStop(2097152);
c_nota.__c.runVoidMethod ("LogImpl","077070387",_cedis,0);
 BA.debugLineNum = 567;BA.debugLine="Log(foliu)";
Debug.ShouldStop(4194304);
c_nota.__c.runVoidMethod ("LogImpl","077070388",_foliu,0);
 BA.debugLineNum = 568;BA.debugLine="Log(nom)";
Debug.ShouldStop(8388608);
c_nota.__c.runVoidMethod ("LogImpl","077070389",_nom,0);
 BA.debugLineNum = 570;BA.debugLine="c.Position=0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 573;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(268435456);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 BA.debugLineNum = 580;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(8);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 581;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
Debug.ShouldStop(16);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 582;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(32);
c_nota.__c.runVoidMethod ("LogImpl","077070403",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 583;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 584;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(128);
c_nota.__c.runVoidMethod ("LogImpl","077070405",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 585;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(256);
{
final int step54 = 1;
final int limit54 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step54 > 0 && _j <= limit54) || (step54 < 0 && _j >= limit54) ;_j = ((int)(0 + _j + step54))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 586;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(512);
c_nota.__c.runVoidMethod ("LogImpl","077070407",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 587;BA.debugLine="j3.Position = j";
Debug.ShouldStop(1024);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 589;BA.debugLine="Log(nom)";
Debug.ShouldStop(4096);
c_nota.__c.runVoidMethod ("LogImpl","077070410",_nom,0);
 BA.debugLineNum = 590;BA.debugLine="If cedis <> \"DUR\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("!",_cedis,BA.ObjectToString("DUR"))) { 
 BA.debugLineNum = 592;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upd";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 593;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"del";
Debug.ShouldStop(65536);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 594;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del";
Debug.ShouldStop(131072);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 }else {
 BA.debugLineNum = 596;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del";
Debug.ShouldStop(524288);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 };
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 600;BA.debugLine="j3.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 602;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(33554432);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 603;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(67108864);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 605;BA.debugLine="c.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 607;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(1073741824);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 608;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(-2147483648);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 609;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(1);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 610;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 611;BA.debugLine="c.Position=0";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 612;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(8);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 613;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 614;BA.debugLine="c.Position=0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 615;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(64);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 616;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 617;BA.debugLine="c.Position=0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 618;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 619;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(1024);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 620;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
Debug.ShouldStop(2048);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 621;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(4096);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 623;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(16384);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 624;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 626;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(131072);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 630;BA.debugLine="If Subs.traeAlmacen = 94 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",c_nota._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(94))) { 
 BA.debugLineNum = 631;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar es";
Debug.ShouldStop(4194304);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 632;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 633;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 634;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_";
Debug.ShouldStop(33554432);
c_nota.__c.runVoidMethod ("LogImpl","077070455",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 635;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(67108864);
c_nota.__c.runVoidMethod ("LogImpl","077070456",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 636;BA.debugLine="Log(\"AQUI ESTOY\")";
Debug.ShouldStop(134217728);
c_nota.__c.runVoidMethod ("LogImpl","077070457",RemoteObject.createImmutable("AQUI ESTOY"),0);
 BA.debugLineNum = 637;BA.debugLine="Log(cedis)";
Debug.ShouldStop(268435456);
c_nota.__c.runVoidMethod ("LogImpl","077070458",_cedis,0);
 BA.debugLineNum = 638;BA.debugLine="Log(foliu)";
Debug.ShouldStop(536870912);
c_nota.__c.runVoidMethod ("LogImpl","077070459",_foliu,0);
 BA.debugLineNum = 639;BA.debugLine="Log(nom)";
Debug.ShouldStop(1073741824);
c_nota.__c.runVoidMethod ("LogImpl","077070460",_nom,0);
 BA.debugLineNum = 641;BA.debugLine="c.Position=0";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 644;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(8);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 BA.debugLineNum = 651;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(1024);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 652;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL";
Debug.ShouldStop(2048);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 653;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(4096);
c_nota.__c.runVoidMethod ("LogImpl","077070474",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 654;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 655;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(16384);
c_nota.__c.runVoidMethod ("LogImpl","077070476",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 656;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(32768);
{
final int step112 = 1;
final int limit112 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step112 > 0 && _j <= limit112) || (step112 < 0 && _j >= limit112) ;_j = ((int)(0 + _j + step112))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 657;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(65536);
c_nota.__c.runVoidMethod ("LogImpl","077070478",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 658;BA.debugLine="j3.Position = j";
Debug.ShouldStop(131072);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 660;BA.debugLine="Log(nom)";
Debug.ShouldStop(524288);
c_nota.__c.runVoidMethod ("LogImpl","077070481",_nom,0);
 BA.debugLineNum = 661;BA.debugLine="If cedis <> \"DUR\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("!",_cedis,BA.ObjectToString("DUR"))) { 
 BA.debugLineNum = 663;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"up";
Debug.ShouldStop(4194304);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 664;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"de";
Debug.ShouldStop(8388608);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 665;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de";
Debug.ShouldStop(16777216);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 }else {
 BA.debugLineNum = 667;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de";
Debug.ShouldStop(67108864);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 };
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 671;BA.debugLine="j3.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 673;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat";
Debug.ShouldStop(1);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 674;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delet";
Debug.ShouldStop(2);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 676;BA.debugLine="c.Close";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 678;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(32);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 679;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(64);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 680;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(128);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 681;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select C";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 682;BA.debugLine="c.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 683;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(1024);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 684;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select U";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 685;BA.debugLine="c.Position=0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 686;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(8192);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 687;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select s";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 688;BA.debugLine="c.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 689;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 690;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(131072);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 691;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"inser";
Debug.ShouldStop(262144);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 692;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(524288);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 694;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(2097152);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 695;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(4194304);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 697;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3";
Debug.ShouldStop(16777216);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 698;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CR";
Debug.ShouldStop(33554432);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 699;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(67108864);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 702;BA.debugLine="Log(\"aqui\")";
Debug.ShouldStop(536870912);
c_nota.__c.runVoidMethod ("LogImpl","077070523",RemoteObject.createImmutable("aqui"),0);
 BA.debugLineNum = 703;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke";
Debug.ShouldStop(1073741824);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(false,"_p_transparenteticketimpreso" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 704;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
Debug.ShouldStop(-2147483648);
c_nota._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cliente")));
 BA.debugLineNum = 705;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, n";
Debug.ShouldStop(1);
c_nota.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!")),(Object)(c_nota.__c.getField(true,"True")));
 };
 };
 }else 
{ BA.debugLineNum = 708;BA.debugLine="Else If c.GetString(\"HABILITADA\") = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADA"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 709;BA.debugLine="If Not(Subs.revisaImpreso) Then";
Debug.ShouldStop(16);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota._subs.runMethod(true,"_revisaimpreso" /*RemoteObject*/ ,__ref.getField(false, "ba")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 710;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar est";
Debug.ShouldStop(32);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 711;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 712;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu";
Debug.ShouldStop(128);
_x = c_nota.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 713;BA.debugLine="Log(X)";
Debug.ShouldStop(256);
c_nota.__c.runVoidMethod ("LogImpl","077070534",BA.ObjectToString(_x),0);
 BA.debugLineNum = 714;BA.debugLine="Log(X.Length)";
Debug.ShouldStop(512);
c_nota.__c.runVoidMethod ("LogImpl","077070535",BA.NumberToString(_x.getField(true,"length")),0);
 BA.debugLineNum = 715;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(1024);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 716;BA.debugLine="For i = 0 To X.Length -1";
Debug.ShouldStop(2048);
{
final int step169 = 1;
final int limit169 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step169 > 0 && _i <= limit169) || (step169 < 0 && _i >= limit169) ;_i = ((int)(0 + _i + step169))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 718;BA.debugLine="If X(i).Contains(CRLF) Then";
Debug.ShouldStop(8192);
if (_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))).<Boolean>get().booleanValue()) { 
 };
 BA.debugLineNum = 721;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(65536);
if (c_nota.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 722;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(131072);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 724;BA.debugLine="Exit";
Debug.ShouldStop(524288);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 729;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(16777216);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 730;BA.debugLine="If X(X.Length-1) <> \".01\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("!",_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1)),BA.ObjectToString(".01"))) { 
 BA.debugLineNum = 731;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(67108864);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 }else {
 BA.debugLineNum = 733;BA.debugLine="Private cedis As String = (X(X.Length-2) &\"";
Debug.ShouldStop(268435456);
_cedis = (RemoteObject.concat(_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(2)}, "-",1, 1)),RemoteObject.createImmutable(" "),_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1))));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 };
 BA.debugLineNum = 735;BA.debugLine="Log(nom)";
Debug.ShouldStop(1073741824);
c_nota.__c.runVoidMethod ("LogImpl","077070556",_nom,0);
 BA.debugLineNum = 736;BA.debugLine="Log(cedis)";
Debug.ShouldStop(-2147483648);
c_nota.__c.runVoidMethod ("LogImpl","077070557",_cedis,0);
 BA.debugLineNum = 737;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 738;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
Debug.ShouldStop(2);
c_nota.__c.runVoidMethod ("LogImpl","077070559",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 739;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(4);
c_nota.__c.runVoidMethod ("LogImpl","077070560",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 740;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 750;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(8192);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 751;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
Debug.ShouldStop(16384);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 752;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(32768);
c_nota.__c.runVoidMethod ("LogImpl","077070573",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 753;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 754;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(131072);
c_nota.__c.runVoidMethod ("LogImpl","077070575",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 755;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(262144);
{
final int step195 = 1;
final int limit195 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step195 > 0 && _j <= limit195) || (step195 < 0 && _j >= limit195) ;_j = ((int)(0 + _j + step195))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 756;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(524288);
c_nota.__c.runVoidMethod ("LogImpl","077070577",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 757;BA.debugLine="j3.Position = j";
Debug.ShouldStop(1048576);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 759;BA.debugLine="If cedis <> \"DUR\" Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",_cedis,BA.ObjectToString("DUR"))) { 
 BA.debugLineNum = 760;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upd";
Debug.ShouldStop(8388608);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 761;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"del";
Debug.ShouldStop(16777216);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 762;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del";
Debug.ShouldStop(33554432);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 }else {
 BA.debugLineNum = 764;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del";
Debug.ShouldStop(134217728);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 };
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 768;BA.debugLine="j3.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 770;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(2);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 771;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(4);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 773;BA.debugLine="c.Close";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 775;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(64);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 776;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(128);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 777;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(256);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 778;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 779;BA.debugLine="c.Position=0";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 780;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(2048);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 781;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 782;BA.debugLine="c.Position=0";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 783;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(16384);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 784;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 785;BA.debugLine="c.Position=0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 786;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(262144);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 788;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
Debug.ShouldStop(524288);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 789;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(1048576);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 791;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(4194304);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 792;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(8388608);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 794;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 797;BA.debugLine="If Subs.traeAlmacen = 94 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",c_nota._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(94))) { 
 BA.debugLineNum = 798;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar es";
Debug.ShouldStop(536870912);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 799;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 800;BA.debugLine="Private X() As String = Regex.Split(\" \", Val";
Debug.ShouldStop(-2147483648);
_x = c_nota.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 801;BA.debugLine="Log(X)";
Debug.ShouldStop(1);
c_nota.__c.runVoidMethod ("LogImpl","077070622",BA.ObjectToString(_x),0);
 BA.debugLineNum = 802;BA.debugLine="Log(X.Length)";
Debug.ShouldStop(2);
c_nota.__c.runVoidMethod ("LogImpl","077070623",BA.NumberToString(_x.getField(true,"length")),0);
 BA.debugLineNum = 803;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(4);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 804;BA.debugLine="For i = 0 To X.Length -1";
Debug.ShouldStop(8);
{
final int step242 = 1;
final int limit242 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step242 > 0 && _i <= limit242) || (step242 < 0 && _i >= limit242) ;_i = ((int)(0 + _i + step242))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 806;BA.debugLine="If X(i).Contains(CRLF) Then";
Debug.ShouldStop(32);
if (_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))).<Boolean>get().booleanValue()) { 
 };
 BA.debugLineNum = 809;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(256);
if (c_nota.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 810;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(512);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 812;BA.debugLine="Exit";
Debug.ShouldStop(2048);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 817;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(65536);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 818;BA.debugLine="If X(X.Length-1) <> \".01\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("!",_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1)),BA.ObjectToString(".01"))) { 
 BA.debugLineNum = 819;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(262144);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 }else {
 BA.debugLineNum = 821;BA.debugLine="Private cedis As String = (X(X.Length-2) &\"";
Debug.ShouldStop(1048576);
_cedis = (RemoteObject.concat(_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(2)}, "-",1, 1)),RemoteObject.createImmutable(" "),_x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1))));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 };
 BA.debugLineNum = 823;BA.debugLine="Log(nom)";
Debug.ShouldStop(4194304);
c_nota.__c.runVoidMethod ("LogImpl","077070644",_nom,0);
 BA.debugLineNum = 824;BA.debugLine="Log(cedis)";
Debug.ShouldStop(8388608);
c_nota.__c.runVoidMethod ("LogImpl","077070645",_cedis,0);
 BA.debugLineNum = 825;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 826;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_";
Debug.ShouldStop(33554432);
c_nota.__c.runVoidMethod ("LogImpl","077070647",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 827;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(67108864);
c_nota.__c.runVoidMethod ("LogImpl","077070648",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 828;BA.debugLine="c.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 838;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(32);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 839;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL";
Debug.ShouldStop(64);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 840;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(128);
c_nota.__c.runVoidMethod ("LogImpl","077070661",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 841;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 842;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(512);
c_nota.__c.runVoidMethod ("LogImpl","077070663",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 843;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(1024);
{
final int step268 = 1;
final int limit268 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step268 > 0 && _j <= limit268) || (step268 < 0 && _j >= limit268) ;_j = ((int)(0 + _j + step268))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 844;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(2048);
c_nota.__c.runVoidMethod ("LogImpl","077070665",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 845;BA.debugLine="j3.Position = j";
Debug.ShouldStop(4096);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 847;BA.debugLine="If cedis <> \"DUR\" Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("!",_cedis,BA.ObjectToString("DUR"))) { 
 BA.debugLineNum = 848;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"up";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 849;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"de";
Debug.ShouldStop(65536);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 850;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de";
Debug.ShouldStop(131072);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 }else {
 BA.debugLineNum = 852;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de";
Debug.ShouldStop(524288);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cedis),(_foliu)})))));
 };
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 856;BA.debugLine="j3.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 858;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat";
Debug.ShouldStop(33554432);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 859;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delet";
Debug.ShouldStop(67108864);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 861;BA.debugLine="c.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 863;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(1073741824);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 864;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(-2147483648);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 865;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(1);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 866;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select C";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 867;BA.debugLine="c.Position=0";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 868;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(8);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 869;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select U";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 870;BA.debugLine="c.Position=0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 871;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(64);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 872;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select s";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 873;BA.debugLine="c.Position=0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 874;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 875;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(1024);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 876;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"inser";
Debug.ShouldStop(2048);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 877;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(4096);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 879;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(16384);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 880;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 882;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3";
Debug.ShouldStop(131072);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 883;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CR";
Debug.ShouldStop(262144);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 884;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(524288);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 887;BA.debugLine="Log(\"aqui\")";
Debug.ShouldStop(4194304);
c_nota.__c.runVoidMethod ("LogImpl","077070708",RemoteObject.createImmutable("aqui"),0);
 BA.debugLineNum = 888;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke";
Debug.ShouldStop(8388608);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(false,"_p_transparenteticketimpreso" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 889;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
Debug.ShouldStop(16777216);
c_nota._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cliente")));
 BA.debugLineNum = 890;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, n";
Debug.ShouldStop(33554432);
c_nota.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!")),(Object)(c_nota.__c.getField(true,"True")));
 };
 };
 }}
;
 }else 
{ BA.debugLineNum = 894;BA.debugLine="Else If c.RowCount =  0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 895;BA.debugLine="If Not(Subs.revisaImpreso) Then";
Debug.ShouldStop(1073741824);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota._subs.runMethod(true,"_revisaimpreso" /*RemoteObject*/ ,__ref.getField(false, "ba")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 896;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar este";
Debug.ShouldStop(-2147483648);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 897;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 898;BA.debugLine="Private X() As String = Regex.Split(\" \", Value";
Debug.ShouldStop(2);
_x = c_nota.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 899;BA.debugLine="Log(X)";
Debug.ShouldStop(4);
c_nota.__c.runVoidMethod ("LogImpl","077070720",BA.ObjectToString(_x),0);
 BA.debugLineNum = 900;BA.debugLine="Log(X.Length)";
Debug.ShouldStop(8);
c_nota.__c.runVoidMethod ("LogImpl","077070721",BA.NumberToString(_x.getField(true,"length")),0);
 BA.debugLineNum = 901;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(16);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 902;BA.debugLine="For i = 0 To X.Length -1";
Debug.ShouldStop(32);
{
final int step325 = 1;
final int limit325 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step325 > 0 && _i <= limit325) || (step325 < 0 && _i >= limit325) ;_i = ((int)(0 + _i + step325))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 904;BA.debugLine="If X(i).Contains(CRLF) Then";
Debug.ShouldStop(128);
if (_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))).<Boolean>get().booleanValue()) { 
 };
 BA.debugLineNum = 907;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(1024);
if (c_nota.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 908;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(2048);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 910;BA.debugLine="Exit";
Debug.ShouldStop(8192);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 915;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(262144);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 916;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(524288);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 BA.debugLineNum = 917;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 918;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CE";
Debug.ShouldStop(2097152);
c_nota.__c.runVoidMethod ("LogImpl","077070739",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 919;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(4194304);
c_nota.__c.runVoidMethod ("LogImpl","077070740",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 920;BA.debugLine="c.Position=0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 923;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
Debug.ShouldStop(67108864);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 BA.debugLineNum = 930;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(2);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 931;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELEC";
Debug.ShouldStop(4);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 932;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(8);
c_nota.__c.runVoidMethod ("LogImpl","077070753",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 933;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 934;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(32);
c_nota.__c.runVoidMethod ("LogImpl","077070755",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 935;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(64);
{
final int step346 = 1;
final int limit346 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step346 > 0 && _j <= limit346) || (step346 < 0 && _j >= limit346) ;_j = ((int)(0 + _j + step346))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 936;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(128);
c_nota.__c.runVoidMethod ("LogImpl","077070757",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 937;BA.debugLine="j3.Position = j";
Debug.ShouldStop(256);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 938;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat";
Debug.ShouldStop(512);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 939;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delet";
Debug.ShouldStop(1024);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 943;BA.debugLine="j3.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 945;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(65536);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 946;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(131072);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 948;BA.debugLine="c.Close";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 950;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(2097152);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 951;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(4194304);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 952;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(8388608);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 953;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUE";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 954;BA.debugLine="c.Position=0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 955;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(67108864);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 956;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USU";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 957;BA.debugLine="c.Position=0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 958;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(536870912);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 959;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 960;BA.debugLine="c.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 961;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 962;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
Debug.ShouldStop(2);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 963;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
Debug.ShouldStop(4);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 964;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k";
Debug.ShouldStop(8);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 966;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
Debug.ShouldStop(32);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 967;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k";
Debug.ShouldStop(64);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 969;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(256);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 972;BA.debugLine="If Subs.traeAlmacen = 94 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",c_nota._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(94))) { 
 BA.debugLineNum = 973;BA.debugLine="result =  Msgbox2(\"Seguro que desea borrar est";
Debug.ShouldStop(4096);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_nota.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?")),(Object)(BA.ObjectToCharSequence("Borrar Articulo")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_nota.__c.runMethod(false,"LoadBitmap",(Object)(c_nota.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 974;BA.debugLine="If result = DialogResponse.POSITIVE Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_nota.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 975;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu";
Debug.ShouldStop(16384);
_x = c_nota.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("X", _x);Debug.locals.put("X", _x);
 BA.debugLineNum = 976;BA.debugLine="Log(X)";
Debug.ShouldStop(32768);
c_nota.__c.runVoidMethod ("LogImpl","077070797",BA.ObjectToString(_x),0);
 BA.debugLineNum = 977;BA.debugLine="Log(X.Length)";
Debug.ShouldStop(65536);
c_nota.__c.runVoidMethod ("LogImpl","077070798",BA.NumberToString(_x.getField(true,"length")),0);
 BA.debugLineNum = 978;BA.debugLine="Private nom As String = \"\"";
Debug.ShouldStop(131072);
_nom = BA.ObjectToString("");Debug.locals.put("nom", _nom);Debug.locals.put("nom", _nom);
 BA.debugLineNum = 979;BA.debugLine="For i = 0 To X.Length -1";
Debug.ShouldStop(262144);
{
final int step388 = 1;
final int limit388 = RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step388 > 0 && _i <= limit388) || (step388 < 0 && _i >= limit388) ;_i = ((int)(0 + _i + step388))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 981;BA.debugLine="If X(i).Contains(CRLF) Then";
Debug.ShouldStop(1048576);
if (_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))).<Boolean>get().booleanValue()) { 
 };
 BA.debugLineNum = 984;BA.debugLine="If Not(X(i).Contains(CRLF)) Then";
Debug.ShouldStop(8388608);
if (c_nota.__c.runMethod(true,"Not",(Object)(_x.getArrayElement(true,BA.numberCast(int.class, _i)).runMethod(true,"contains",(Object)(c_nota.__c.getField(true,"CRLF"))))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 985;BA.debugLine="nom = nom & \" \" & X(i)";
Debug.ShouldStop(16777216);
_nom = RemoteObject.concat(_nom,RemoteObject.createImmutable(" "),_x.getArrayElement(true,BA.numberCast(int.class, _i)));Debug.locals.put("nom", _nom);
 }else {
 BA.debugLineNum = 987;BA.debugLine="Exit";
Debug.ShouldStop(67108864);
if (true) break;
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 992;BA.debugLine="nom = nom.Trim";
Debug.ShouldStop(-2147483648);
_nom = _nom.runMethod(true,"trim");Debug.locals.put("nom", _nom);
 BA.debugLineNum = 993;BA.debugLine="Private cedis As String = X(X.Length-1)";
Debug.ShouldStop(1);
_cedis = _x.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_x.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1));Debug.locals.put("cedis", _cedis);Debug.locals.put("cedis", _cedis);
 BA.debugLineNum = 994;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' or pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable(" ') AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))))));
 BA.debugLineNum = 995;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
Debug.ShouldStop(4);
c_nota.__c.runVoidMethod ("LogImpl","077070816",(RemoteObject.concat(RemoteObject.createImmutable("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_nom))),RemoteObject.createImmutable("' AND PE_CEDIS = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa)"))),0);
 BA.debugLineNum = 996;BA.debugLine="Log(c.RowCount)";
Debug.ShouldStop(8);
c_nota.__c.runVoidMethod ("LogImpl","077070817",BA.NumberToString(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 997;BA.debugLine="c.Position=0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1000;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(128);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),RemoteObject.createImmutable(((double)(Double.parseDouble(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).<String>get()))*-(double) (0 + 1)))})))));
 BA.debugLineNum = 1007;BA.debugLine="If Not(IsNumber(cedis)) Then";
Debug.ShouldStop(16384);
if (c_nota.__c.runMethod(true,"Not",(Object)(c_nota.__c.runMethod(true,"IsNumber",(Object)(_cedis)))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1008;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
Debug.ShouldStop(32768);
__ref.getField(false,"_j3" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cedis}))));
 BA.debugLineNum = 1009;BA.debugLine="Log(j3.RowCount)";
Debug.ShouldStop(65536);
c_nota.__c.runVoidMethod ("LogImpl","077070830",BA.NumberToString(__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1010;BA.debugLine="If j3.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1011;BA.debugLine="Log(\"Soy promo\")";
Debug.ShouldStop(262144);
c_nota.__c.runVoidMethod ("LogImpl","077070832",RemoteObject.createImmutable("Soy promo"),0);
 BA.debugLineNum = 1012;BA.debugLine="For j = 0 To j3.RowCount -1";
Debug.ShouldStop(524288);
{
final int step409 = 1;
final int limit409 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j = 0 ;
for (;(step409 > 0 && _j <= limit409) || (step409 < 0 && _j >= limit409) ;_j = ((int)(0 + _j + step409))  ) {
Debug.locals.put("j", _j);
 BA.debugLineNum = 1013;BA.debugLine="Log(\"aqui tronare?\")";
Debug.ShouldStop(1048576);
c_nota.__c.runVoidMethod ("LogImpl","077070834",RemoteObject.createImmutable("aqui tronare?"),0);
 BA.debugLineNum = 1014;BA.debugLine="j3.Position = j";
Debug.ShouldStop(2097152);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _j));
 BA.debugLineNum = 1015;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upda";
Debug.ShouldStop(4194304);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1016;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"dele";
Debug.ShouldStop(8388608);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from pedido where pe_cedis= '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cedis))),RemoteObject.createImmutable("' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_foliu))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_j3" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 }
}Debug.locals.put("j", _j);
;
 };
 BA.debugLineNum = 1020;BA.debugLine="j3.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_j3" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 1022;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(536870912);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_nota._subs.runMethod(true,"_traetablaprods" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_tipo_venta" /*RemoteObject*/ )))))),RemoteObject.createImmutable(" set cat_gp_almacen = cat_gp_almacen + "),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(" where cat_gp_id = '"),c_nota.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1023;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(1073741824);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nom),(_cedis),(_foliu)})))));
 };
 BA.debugLineNum = 1025;BA.debugLine="c.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1027;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(4);
c_nota.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1028;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(8);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1029;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(16);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nota.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nota.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1030;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 1031;BA.debugLine="c.Position=0";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1032;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(128);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1033;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1034;BA.debugLine="c.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1035;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1024);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1036;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 1037;BA.debugLine="c.Position=0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1038;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1039;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(16384);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1040;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert";
Debug.ShouldStop(32768);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)")),(Object)(c_nota.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 1041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(65536);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 }else {
 BA.debugLineNum = 1043;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(262144);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1044;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE";
Debug.ShouldStop(524288);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info3 set gestion = 0  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 1046;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s";
Debug.ShouldStop(2097152);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info3 set CONFIRMADO = 0  WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 1047;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRE";
Debug.ShouldStop(4194304);
c_nota._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update CODIGOS_CREDITO set BANDERA = 0  WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 BA.debugLineNum = 1048;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8388608);
__ref.runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 1051;BA.debugLine="Log(\"aqui\")";
Debug.ShouldStop(67108864);
c_nota.__c.runVoidMethod ("LogImpl","077070872",RemoteObject.createImmutable("aqui"),0);
 BA.debugLineNum = 1052;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicket";
Debug.ShouldStop(134217728);
c_nota._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_cliente" /*RemoteObject*/ ).getField(false,"_p_transparenteticketimpreso" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nota.__c.getField(true,"True"));
 BA.debugLineNum = 1053;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
Debug.ShouldStop(268435456);
c_nota._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cliente")));
 BA.debugLineNum = 1054;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, no";
Debug.ShouldStop(536870912);
c_nota.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!")),(Object)(c_nota.__c.getField(true,"True")));
 };
 };
 }}
;
 BA.debugLineNum = 1058;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_nota_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_nota_Click (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,1108);
if (RapidSub.canDelegate("p_nota_click")) { return __ref.runUserSub(false, "c_nota","p_nota_click", __ref);}
 BA.debugLineNum = 1108;BA.debugLine="Private Sub p_nota_Click";
Debug.ShouldStop(524288);
 BA.debugLineNum = 1110;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _regresar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Regresar_Click (c_nota) ","c_nota",21,__ref.getField(false, "ba"),__ref,402);
if (RapidSub.canDelegate("regresar_click")) { return __ref.runUserSub(false, "c_nota","regresar_click", __ref);}
 BA.debugLineNum = 402;BA.debugLine="Sub Regresar_Click";
Debug.ShouldStop(131072);
 BA.debugLineNum = 403;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(262144);
c_nota._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 404;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}